joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418a3a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x43a340]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x418a7a
cmp byte [ebx], 0xa
jne 0x418a7a
or byte [edi + eax + 0x28], 4
jmp 0x418a7f
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x418b7e
mov dl, byte [eax]
cmp dl, 0x1a
je 0x418b61
inc eax
cmp dl, 0xd
je 0x418aab
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x418ad1
cmp eax, ecx
jae 0x418adf
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x418a93
jmp 0x418b7e
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x418b5c
cmp dword [ebp - 0x10], 0
je 0x418b5c
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x43a340]
test byte [eax + edi + 0x28], 0x48
je 0x418b36
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x418b21
mov byte [esi], dl
jmp 0x418b32
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x43a340]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x418b7e
cmp byte [ebp - 1], 0xa
jne 0x418b45
cmp esi, ebx
jne 0x418b45
mov byte [esi], 0xa
jmp 0x418b7d
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041975a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x418b7e
mov byte [esi], 0xd
jmp 0x418b7d
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x43a340]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x418b7b
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x418b7e
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x418b87
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x43a340]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x418bcd
cmp word [ebx], dx
jne 0x418bcd
or byte [eax + edi + 0x28], 4
jmp 0x418bd2
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x418d35
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x418d15
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x418c13
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x418c49
cmp eax, edx
jae 0x418c57
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x418bee
jmp 0x418d35
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x418d10
cmp dword [ebp - 0x18], 0
je 0x418d10
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x43a340]
test byte [eax + edi + 0x28], 0x48
je 0x418ce6
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x418caa
mov word [esi], cx
jmp 0x418ce1
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x43a340]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x43a340]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x43a340]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x418d35
pop eax
cmp word [ebp - 4], ax
jne 0x418cf6
cmp esi, ebx
jne 0x418cf6
mov word [esi], ax
jmp 0x418d32
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041975a
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x418d35
push 0xd
pop eax
jmp 0x418cf1
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x43a340]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x418d2f
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x418d35
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41bdb7
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42fe00
push 0x42fdf8
push str.FlsAlloc
push 0x1f
call fcn.0041bc76
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41bdeb
push dword [ebp + 8]
mov ecx, esi
call dword [0x428234]
call esi
jmp 0x41bdf1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41be35
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42fe10
push 0x42fe08
push str.FlsGetValue
push 0x21
call fcn.0041bc76
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41be6c
push dword [ebp + 8]
mov ecx, esi
call dword [0x428234]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x41be74
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42fe18
push 0x42fe10
push str.FlsSetValue
push 0x22
call fcn.0041bc76
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41beae
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x428234]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x41d313
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x436040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x41d356
call fcn.0041318d
mov dword [eax], 0xf
call fcn.004131a0
mov dword [eax], 0xd
call fcn.00417fd9
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b703
leave
ret
test eax, eax
jne 0x41d35d
inc eax
jmp 0x41d34a
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x41d348
xor eax, eax
cmp ecx, 1
setne al
jmp 0x41d34a

Function at 0x41dbef
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041d70a
Function at 0x41e564
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x436040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x41e5af
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0041e6ff
test al, al
jne 0x41e5a9
sub edx, 2
cmp edx, edi
jne 0x41e58f
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x41e5d1
lea eax, [edi + 2]
cmp edx, eax
je 0x41e5d1
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0041e4b0
add esp, 0x10
jmp 0x41e6cb
push esi
lea ecx, [ebp - 0x255]
call fcn.0041e6ff
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41e614
push dword [ebp - 0x25c]
jmp 0x41e5c1
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x41e651
cmp word [ebp - 0x226], 0
je 0x41e672
cmp word [ebp - 0x226], ax
jne 0x41e651
cmp word [ebp - 0x224], 0
je 0x41e672
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0041e4b0
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x41e6be
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x41e62b
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x41e6a6
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x41e6cb
push 0x41e2e0
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00423a80
add esp, 0x10
jmp 0x41e69b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b703
leave
ret
Function at 0x41efd7
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41f074
push ebx
push esi
call fcn.0041efa0
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041d43e
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41f021
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41f073
push edi
push eax
call fcn.0041a831
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41f041
call fcn.0041801d
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41f072
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041d43e
add esp, 0x20
test eax, eax
jne 0x41f060
push edi
call fcn.0041801d
jmp 0x41f068
push ebx
call fcn.0041801d
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x41f077
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x41f088
pop esi
ret
push ebx
push edi
push esi
call fcn.0041efa0
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0041a831
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x41f0b0
push ebx
push esi
push edi
call fcn.0040c500
add esp, 0xc
push 0
call fcn.0041801d
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x424e05
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00424d81
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x424f74
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x424f74
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x424f29
jg 0x424e61
test eax, eax
je 0x424f1f
push 1
push 0x1000
call fcn.0041ba18
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x424e84
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x424f16
push 0x8000
push ebx
call fcn.0041753b
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x424ead
jg 0x424ea8
cmp ecx, 0x1000
jb 0x424ead
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0041a296
add esp, 0x10
cmp eax, 0xffffffff
je 0x424ef2
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x424ea8
jl 0x424ed9
test ecx, ecx
jne 0x424e9a
push dword [ebp - 0xc]
push ebx
call fcn.0041753b
push esi
call fcn.0041801d
add esp, 0xc
xor ebx, ebx
jmp 0x424f82
cmp byte [edi + 0x24], 0
je 0x424f09
cmp dword [edi + 0x20], 5
jne 0x424f09
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x424f14
mov ebx, dword [edi + 0x18]
jmp 0x424f16
xor ebx, ebx
push esi
call fcn.0041801d
pop ecx
jmp 0x424f82
test ecx, ecx
jg 0x424eeb
jl 0x424f29
test eax, eax
jae 0x424eeb
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041975a
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x424f49
cmp byte [edi + 0x1c], 0
je 0x424eeb
jmp 0x424f7a
push ebx
call fcn.00416262
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x424eeb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x424f82
cmp byte [edi + 0x1c], 0
je 0x424f7f
mov ebx, dword [edi + 0x18]
jmp 0x424f82
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0041975a
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x426bf0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x426c1d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x426c1d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..pdata
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408f6c
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0xbc20630
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
mov eax, section..pdata_1
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4300d2
nop
nop
mov ebx, 0x42e3d0
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x30ba7ac7
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x401b15
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401b6b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401b6b
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x401b5d
cmp esi, ecx
jae 0x401b6b
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x401b4b
cmp esi, ecx
jae 0x401b6b
cmp word [esi], 0
je 0x401b6b
mov eax, esi
jmp 0x401b6d
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x401f8f
Capabilities:
Compare security identifiers

Disassembly:
push ebx
push esi
lea ebx, [ecx + 4]
push edi
mov edi, edx
test ebx, ebx
je 0x401fc5
lea esi, [edi + 4]
test esi, esi
je 0x401fc5
call fcn.00401ef1
test al, al
je 0x401fc5
mov ecx, edi
call fcn.00401ef1
test al, al
je 0x401fc5
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne al
jmp 0x401fc7
xor al, al
pop edi
pop esi
pop ebx
ret

Function at 0x403713
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x43f008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
mov ebx, ecx
push edi
mov ecx, esi
call fcn.0040163e
push 0x208
xor edi, edi
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.00416a10
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push edi
push edi
push ebx
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
test edi, edi
jns 0x4037ad
movzx ecx, bl
cmp ecx, 0x26
jne 0x403771
mov edx, str.ProgramFiles
jmp 0x40377b
cmp ecx, 0x1c
jne 0x40379c
mov edx, str.LocalAppData
lea ecx, [ebp - 0x210]
call fcn.00403a1e
push eax
mov ecx, esi
call fcn.004015e6
mov ecx, dword [ebp - 0x210]
lea ecx, [ecx - 0x10]
call fcn.004015ce
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x4037a9
xor eax, eax
inc eax
jmp 0x4037cb
mov eax, edi
jmp 0x4037cb
lea eax, [ebp - 0x20c]
push eax
call fcn.0042a58c
pop ecx
push eax
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.004016da
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00415e90
leave
ret
Function at 0x404ec7
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
test edi, edi
jle 0x404fdf
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
cmp edi, 2
jle 0x404f47
sub edx, 4
js 0x404fdf
movzx eax, byte [ebx]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], al
movzx ecx, byte [ebx]
movzx eax, byte [ebx + 1]
and ecx, 3
shr eax, 4
add ecx, ecx
mov al, byte [eax + ecx*8 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 1], al
movzx ecx, byte [ebx + 1]
movzx eax, byte [ebx + 2]
and ecx, 0xf
shr eax, 6
mov al, byte [eax + ecx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 2], al
movzx eax, byte [ebx + 2]
add ebx, 3
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 3], al
add esi, 4
sub edi, 3
jmp 0x404edf
sub edi, 1
je 0x404fa3
sub edi, 1
jne 0x404fd8
sub edx, 3
js 0x404fdf
movzx eax, byte [ebx]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], al
movzx ecx, byte [ebx]
movzx eax, byte [ebx + 1]
and ecx, 3
shr eax, 4
add ecx, ecx
mov al, byte [eax + ecx*8 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 1], al
movzx eax, byte [ebx + 1]
and eax, 0xf
mov al, byte [eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 2], al
lea eax, [edx - 1]
test eax, eax
js 0x404fdf
mov byte [esi + 3], 0x3d
jmp 0x404fd5
sub edx, 2
js 0x404fdf
movzx eax, byte [ebx]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], al
movzx eax, byte [ebx]
and eax, 3
shl eax, 4
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 1], al
lea eax, [edx - 2]
test eax, eax
js 0x404fdf
mov word [esi + 2], 0x3d3d
add esi, 4
sub esi, dword [ebp + 8]
mov eax, esi
jmp 0x404fe1
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x40566f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
mov dword [ebp - 0x5c], 0x44
lea eax, [ebp - 0x58]
mov edi, edx
push ebx
push eax
call fcn.00416a10
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0x5c]
add esp, 0xc
mov dword [ebp - 0x30], 0x80
push esi
push eax
push ebx
cmp dword [ebp + 8], ebx
jne 0x4056ab
push ebx
push ebx
jmp 0x4056b3
push dword [ebp + 8]
push 0x400
push dword [ebp + 0xc]
push ebx
push ebx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4056cb
call fcn.0040864c
jmp 0x40570d
movzx ecx, byte [0x440d19]
neg ecx
sbb ecx, ecx
and ecx, 0x440d20
je 0x40570b
push 7
pop edx
xor eax, eax
mov dword [ebp - 0x14], ecx
inc eax
mov dword [ebp - 0x10], edx
push eax
push edx
mov dword [ebp - 0xc], eax
call fcn.00406243
push dword [esi + 8]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push str._Started_process___u_
push eax
call fcn.00403086
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405a9e
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
lea eax, [ebp - 4]
mov ebx, ecx
push eax
call fcn.004066ce
mov esi, dword [ebp - 4]
lea edi, [ebx + 0x78]
xor eax, eax
cmp dword [esi - 0xc], eax
je 0x405b93
push esi
push 1
push str.EnableLogging
push str.LoggingSettings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push esi
push 1
test eax, eax
push str.ShowTime
setne al
push str.LoggingSettings
mov byte [ebx + 0x74], al
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push esi
push 0
test eax, eax
push str.LogToFile
setne al
push str.LoggingSettings
mov byte [ebx + 0x76], al
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push esi
push 0
test eax, eax
push str.LogToOutputDebug
setne al
push str.LoggingSettings
mov byte [ebx + 0x77], al
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push esi
push 1
test eax, eax
push str.AppendToFile
setne al
push str.LoggingSettings
mov byte [ebx + 0x7c], al
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
setne al
xor ecx, ecx
mov byte [ebx + 0x7d], al
inc ecx
mov edx, dword [edi]
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, 0x104
or ecx, eax
jge 0x405b6c
push 0x104
mov ecx, edi
call fcn.0040180d
mov edx, dword [edi]
push esi
push 0x104
push edx
push str.GoogleUpdate.log
push str.LogFilePath
push str.LoggingSettings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0xffffffffffffffff
mov ecx, edi
call fcn.00403faf
jmp 0x405bbb
push str.GoogleUpdate.log
mov byte [ebx + 0x74], 1
mov word [ebx + 0x76], 1
mov word [ebx + 0x7c], pe_nt_image_headers32
call fcn.0042a58c
pop ecx
push eax
push str.GoogleUpdate.log
mov ecx, edi
call fcn.004016da
cmp byte [ebx + 0x75], 0
je 0x405bc5
mov byte [ebx + 0x76], 1
xor eax, eax
mov byte [ebx], 1
mov dword [ebx + 4], 7
mov dword [ebp - 4], eax
mov ecx, dword [eax + 0x43f8d0]
mov dword [ebp - 0xc], ecx
test ecx, ecx
je 0x405c33
mov ecx, dword [eax + 0x43f8d4]
mov dword [ebp - 0x10], ecx
cmp ecx, 9
ja 0x405c33
lea eax, [ebp - 8]
mov ecx, ebx
push eax
call fcn.004066ce
mov edi, dword [ebp - 8]
cmp dword [edi - 0xc], 0
je 0x405c16
push edi
push 1
push dword [ebp - 0xc]
push str.LoggingLevel
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
jmp 0x405c19
xor eax, eax
inc eax
mov edx, dword [ebp - 0x10]
test eax, eax
setne cl
mov byte [ebx + edx*8], cl
lea ecx, [edi - 0x10]
mov dword [ebx + edx*8 + 4], eax
call fcn.004015ce
mov eax, dword [ebp - 4]
add eax, 8
mov dword [ebp - 4], eax
cmp eax, 0x48
jb 0x405bd4
call fcn.0040563f
lea ecx, [esi - 0x10]
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x84], edx
call fcn.004015ce
pop edi
pop esi
pop ebx
leave
ret