joyce8/EMBER2024-capa huggingface dataset:
Function at 0x59a630
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffba4
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x45c], eax
mov dword [ebp - 0x358], eax
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
lea esi, [ebp - 0x148]
xor eax, eax
push ebp
push 0x59a847
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 0x24d]
mov edx, edi
call fcn.005967ec
xor edx, edx
push ebp
push 0x59a81c
push dword fs:[edx]
mov dword fs:[edx], esp
push esi
lea eax, [ebp - 0x358]
mov edx, edi
call fcn.005948d4
lea eax, [ebp - 0x358]
mov edx, 0x59a864
call fcn.00594974
mov eax, dword [ebp - 0x358]
call fcn.00594b54
push eax
call sub.KERNEL32.dll_FindFirstFileA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x59a6d9
mov ecx, 0xab4
mov edx, 0x59a870
mov eax, 0x59a8ac
call fcn.005946dc
cmp dword [ebp - 8], 0xffffffff
jne 0x59a6ee
xor eax, eax
mov dword [ebp - 4], eax
call fcn.00594160
jmp 0x59a823
mov al, 1
jmp 0x59a7f7
lea eax, [ebp - 0x458]
lea edx, [esi + 0x2c]
call fcn.00593830
lea eax, [ebp - 0x458]
mov edx, 0x59a8c0
xor ecx, ecx
mov cl, byte [eax]
inc ecx
call fcn.005936f4
je 0x59a7e7
lea eax, [ebp - 0x45c]
lea edx, [esi + 0x2c]
call fcn.005948d4
mov eax, dword [ebp - 0x45c]
mov edx, 0x59a8cc
call fcn.00594ab0
je 0x59a7e7
lea edx, [ebp - 0x24d]
lea eax, [ebp - 0x352]
call fcn.005967ec
test byte [esi], 0x10
je 0x59a7c2
lea edx, [esi + 0x2c]
lea eax, [ebp - 0x352]
call fcn.00596848
push 0xffffffffffffffff
lea eax, [ebp - 0x352]
push eax
call dword [0x8419a8]
cmp eax, 1
sbb eax, eax
inc eax
test al, al
test ebx, ebx
je 0x59a7e7
lea edx, [ebp - 0x24d]
lea eax, [ebp - 0x352]
call fcn.005967ec
lea edx, [esi + 0x2c]
lea eax, [ebp - 0x352]
call fcn.00596848
mov edx, 0x59a8d0
lea eax, [ebp - 0x352]
call fcn.00596848
push ebx
lea eax, [ebp - 0x352]
push eax
call fcn.0059a630
mov dword [ebp - 4], eax
jmp 0x59a7e7
lea edx, [esi + 0x2c]
lea eax, [ebp - 0x352]
call fcn.00596848
push 0
lea eax, [ebp - 0x352]
push eax
call dword [0x8419a8]
cmp eax, 1
sbb eax, eax
inc eax
test al, al
push esi
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.dll_FindNextFileA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x59a6f5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59a823
cmp dword [ebp - 8], 0xffffffff
je 0x59a81b
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.dll_FindClose
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59a84e
lea eax, [ebp - 0x45c]
call fcn.005946fc
lea eax, [ebp - 0x358]
call fcn.005946fc
ret
Function at 0x403270
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
xor eax, eax
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
test edx, edx
je 0x403293
mov ecx, eax
and ecx, 0xf
mov cl, byte [ecx + esi]
xor byte [edi + eax], cl
inc eax
cmp eax, edx
jb 0x403283
pop edi
pop esi
pop ebp
ret

Function at 0x4032a0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
push edi
call dword [0x8b094]
cmp eax, dword [0x8aec0]
je 0x403300
mov edx, 1
mov dword [0x8aec0], eax
push ebx
mov dword [0x8a500], eax
mov ebx, edx
mov edi, 4
lea esi, [edx + 7]
nop word [eax + eax]
mov eax, dword [edi + 0x8a4fc]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
lea edx, [ebx + 1]
mov dword [edi + 0x8a500], eax
mov ebx, edx
mov edi, esi
add esi, 4
cmp edx, 0x270
jl 0x4032d0
pop ebx
jmp 0x403310
mov eax, dword [0x8aec4]
cmp eax, 0x270
jl 0x4033d8
xor eax, eax
nop dword [eax]
nop word [eax + eax]
mov ecx, dword [eax*4 + 0x8a500]
mov edx, dword [eax*4 + 0x8a504]
xor edx, ecx
and edx, 0x7fffffff
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
mov ecx, dword [ecx*4 + 0x81134]
xor ecx, dword [eax*4 + 0x8ab34]
xor ecx, edx
mov dword [eax*4 + 0x8a500], ecx
inc eax
cmp eax, 0xe3
jl 0x403320
mov edi, dword [eax*4 + 0x8a500]
lea esi, [eax*4 + 0x8a500]
nop dword [eax]
mov eax, edi
mov edi, dword [esi + 4]
mov ecx, eax
xor ecx, edi
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
mov eax, dword [eax*4 + 0x81134]
xor eax, dword [esi - 0x38c]
xor eax, ecx
mov dword [esi], eax
add esi, 4
cmp esi, 0x8aebc
jl 0x403370
mov ecx, dword [0x8aebc]
mov eax, dword [0x8a500]
and ecx, 0x80000000
and eax, 0x7fffffff
or ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
xor ecx, dword [eax*4 + 0x81134]
xor ecx, dword [0x8ab30]
xor eax, eax
mov dword [0x8aebc], ecx
mov ecx, dword [eax*4 + 0x8a500]
inc eax
mov dword [0x8aec4], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
pop edi
xor eax, ecx
pop esi
ret
Function at 0x403440
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
mov edi, edx
mov esi, ecx
mov eax, 0xaaaaaaab
lea ecx, [edi + 2]
mul ecx
shr edx, 1
lea eax, [edx*4 + 1]
push eax
push 8
call dword [0x8b0c4]
push eax
call dword [0x8b0c0]
mov ecx, eax
mov dword [ebp - 0x10], ecx
test ecx, ecx
je 0x40354a
mov dword [ebp - 0xc], ecx
push ebx
mov ebx, ecx
test edi, edi
je 0x403539
lea eax, [ebp - 4]
sub eax, esi
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
xor edx, edx
lea ecx, [edx + 3]
nop word [eax + eax]
test edi, edi
je 0x4034aa
mov al, byte [esi]
dec edi
inc edx
jmp 0x4034ac
xor al, al
mov byte [ebx + esi], al
inc esi
sub ecx, 1
jne 0x4034a0
movzx ecx, byte [ebp - 4]
mov ebx, dword [ebp - 0xc]
mov eax, ecx
sub dword [ebp - 8], 3
and ecx, 3
shr eax, 2
shl ecx, 4
movzx eax, byte [eax + 0x81040]
mov byte [ebx], al
movzx eax, byte [ebp - 3]
mov dword [ebp - 0xc], eax
shr eax, 4
or eax, ecx
movzx eax, byte [eax + 0x81040]
mov byte [ebx + 1], al
cmp edx, 1
jbe 0x40351f
mov ecx, dword [ebp - 0xc]
movzx eax, byte [ebp - 2]
and ecx, 0xf
shr eax, 6
shl ecx, 2
or eax, ecx
movzx eax, byte [eax + 0x81040]
mov byte [ebx + 2], al
cmp edx, 2
jbe 0x403523
movzx eax, byte [ebp - 2]
and eax, 0x3f
mov al, byte [eax + 0x81040]
jmp 0x403525
mov byte [ebx + 2], 0x3d
mov al, 0x3d
mov byte [ebx + 3], al
add ebx, 4
mov dword [ebp - 0xc], ebx
test edi, edi
jne 0x403492
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov byte [ebx], 0
test eax, eax
je 0x403547
sub ebx, ecx
mov dword [eax], ebx
mov eax, ecx
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4063d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], edx
xor esi, esi
mov eax, dword [edi + 0x3c]
mov ebx, dword [eax + edi + 0x78]
mov eax, dword [ebx + edi + 0x20]
add ebx, edi
add eax, edi
mov dword [ebp - 4], eax
mov ecx, dword [ebx + 0x1c]
add ecx, edi
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebx + 0x24]
add ecx, edi
mov dword [ebp - 0xc], ecx
cmp dword [ebx + 0x18], esi
jbe 0x406424
mov eax, dword [eax + esi*4]
add eax, edi
push edx
push eax
call dword [0x8b0e4]
test eax, eax
je 0x40642d
mov eax, dword [ebp - 4]
inc esi
mov edx, dword [ebp - 8]
cmp esi, dword [ebx + 0x18]
jb 0x406407
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + esi*2]
mov eax, dword [ecx + eax*4]
add eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408310
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
push ebx
push esi
push edi
mov ebx, edx
mov edi, ecx
xor esi, esi
mov al, byte [esi + 0x8a0ac]
mov byte [ebp + esi - 0xd8], al
inc esi
cmp esi, 0x20
jb 0x408322
test edi, edi
je 0x408350
xor ecx, ecx
nop dword [eax + eax]
mov al, byte [ecx + edi]
mov byte [ebp + ecx - 0xb8], al
inc ecx
cmp ecx, 0x10
jb 0x408340
xor ecx, ecx
mov dword [ebp - 0x60], 0x67452301
mov dword [ebp - 0x5c], 0xefcdab89
xor esi, esi
mov dword [ebp - 0x58], 0x98badcfe
mov dword [ebp - 0x54], 0x10325476
mov dword [ebp - 0x68], 0x30
mov dword [ebp - 0x64], ecx
nop word [eax + eax]
mov al, byte [ebp + esi - 0xd8]
mov byte [ebp + ecx - 0x50], al
inc ecx
test cl, 0x3f
jne 0x4083d5
xor eax, eax
movzx edx, byte [ebp + eax - 0x4d]
movzx ecx, byte [ebp + eax - 0x4e]
shl edx, 8
or edx, ecx
movzx ecx, byte [ebp + eax - 0x4f]
shl edx, 8
or edx, ecx
movzx ecx, byte [ebp + eax - 0x50]
shl edx, 8
or edx, ecx
mov dword [ebp + eax - 0xa8], edx
add eax, 4
cmp eax, 0x40
jb 0x408393
lea edx, [ebp - 0xa8]
lea ecx, [ebp - 0x60]
call fcn.00406260
xor ecx, ecx
inc esi
cmp esi, 0x30
jb 0x408380
mov ecx, dword [ebp - 0x68]
mov eax, 0x78
and ecx, 0x3f
mov esi, 0x38
sub eax, ecx
sub esi, ecx
cmp ecx, 0x38
mov edx, 0x8a020
lea ecx, [ebp - 0x68]
cmovae esi, eax
push esi
call fcn.004061e0
mov edi, dword [ebp - 0x68]
add esp, 4
sub edi, esi
mov esi, dword [ebp - 0x64]
mov dword [ebp - 0x68], edi
sbb esi, 0
xor edx, edx
mov dword [ebp - 0x64], esi
nop dword [eax]
movzx ecx, byte [ebp + edx - 0x4d]
movzx eax, byte [ebp + edx - 0x4e]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp + edx - 0x4f]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp + edx - 0x50]
shl ecx, 8
or ecx, eax
mov dword [ebp + edx - 0xa8], ecx
add edx, 4
cmp edx, 0x38
jb 0x408420
lea eax, [edi*8]
shld esi, edi, 3
lea edx, [ebp - 0xa8]
mov dword [ebp - 0x70], eax
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x6c], esi
call fcn.00406260
movzx eax, byte [ebp - 0x60]
mov ecx, dword [ebp - 0x60]
mov byte [ebp - 0x10], al
mov eax, ecx
shr eax, 8
mov byte [ebp - 0xf], al
mov eax, ecx
shr eax, 0x10
mov byte [ebp - 0xe], al
movzx eax, byte [ebp - 0x5c]
mov byte [ebp - 0xc], al
shr ecx, 0x18
mov byte [ebp - 0xd], cl
mov ecx, dword [ebp - 0x5c]
mov eax, ecx
shr eax, 8
mov byte [ebp - 0xb], al
mov eax, ecx
shr eax, 0x10
mov byte [ebp - 0xa], al
movzx eax, byte [ebp - 0x58]
shr ecx, 0x18
mov byte [ebp - 8], al
mov byte [ebp - 9], cl
mov ecx, dword [ebp - 0x58]
mov eax, ecx
shr eax, 8
mov byte [ebp - 7], al
mov eax, ecx
shr eax, 0x10
mov byte [ebp - 6], al
movzx eax, byte [ebp - 0x54]
shr ecx, 0x18
mov byte [ebp - 4], al
mov byte [ebp - 5], cl
mov ecx, dword [ebp - 0x54]
mov eax, ecx
shr eax, 8
mov byte [ebp - 3], al
mov eax, ecx
shr eax, 0x10
shr ecx, 0x18
mov byte [ebp - 2], al
mov byte [ebp - 1], cl
test ebx, ebx
je 0x408504
xor ecx, ecx
mov al, byte [ebp + ecx - 0x10]
mov byte [ecx + ebx], al
inc ecx
cmp ecx, 0x10
jb 0x4084f7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402e2c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004044e4
test esi, esi
jne 0x402e63
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.004045d4
jmp 0x402e84
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402cc8
mov dword [esp], eax
test esi, esi
je 0x402e84
cmp dword [ebx], 0
je 0x402e84
dec esi
jmp 0x402e6b
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x403524
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x499020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4035bc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40359c
xor eax, eax
push ebp
push 0x403595
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4035d8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40359c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x499020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x499020], ax
mov esp, ebp
pop ebp
ret

Function at 0x4042dc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x49f04c], 0
je 0x40433d
cmp word [0x49f220], 0xd7b2
jne 0x404305
cmp dword [0x49f228], 0
jbe 0x404305
mov eax, 0x49f21c
call dword [0x49f238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x49906c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404364
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x499030], 0
jne 0x404359
push 0
push 0x499064
push 0x49906c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404498
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402a68
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x49f04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404460
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x40662c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x406692
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404754
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004030dc
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x40667c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406699
lea eax, [ebp - 0x10]
call fcn.004044e4
ret

Function at 0x409404
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004049a4
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40941d
test al, 0x10
jne 0x409421
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40c050
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40c089
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004045d4
jmp 0x40c092
mov eax, ebx
mov edx, esi
call fcn.00404538
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c09c
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40c0bd
mov al, byte [esp]
jmp 0x40c0bf
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40c754
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c5bc
mov eax, dword [0x49e0a4]
cmp byte [eax], 0
je 0x40c7d0
mov eax, dword [0x49dbec]
call fcn.00402f48
call fcn.00402bf4
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00409724
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40c818
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c806
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x49db24]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x49f668]
call fcn.00405a48
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40d0bc
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40d192
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.0040457c
lea eax, [ebp - 8]
call fcn.004049f4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004049a4
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d17c
mov eax, ebx
call fcn.00402a68
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d175
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004049a4
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d15f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d1a4
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d15f
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d17c
mov eax, dword [ebp - 0x10]
call fcn.00402a98
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d199
lea eax, [ebp - 8]
call fcn.004044e4
ret

Function at 0x40d7a4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40d808
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404754
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00409064
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d80f
lea eax, [ebp - 0xc]
call fcn.004044e4
ret

Function at 0x41ffb8
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0041fe10
dec esi
jne 0x41ffda
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x42111c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x49f8cc
cmp dword [edi], 0
jne 0x421198
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x49f8c8]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x499428
mov ecx, 2
call fcn.00402c88
mov edx, 0x4210f4
lea eax, [esi + 5]
call fcn.00421114
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00421114
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x42116d
mov dword [0x49f8c8], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x42294c
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x422952
ret

Function at 0x4250d8
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x425129
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x425110
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x425100
jmp 0x425129
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x425111
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x432834
Capabilities:
Enumerate gui resources

Disassembly:
mov byte [eax + 0xc], 0
mov byte [eax + 0xd], 0
xor edx, edx
mov dword [eax + 4], edx
push eax
push 0x432780
call sub.user32.dll_EnumWindows
ret

Function at 0x432954
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x4329d1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004323b4
call sub.kernel32.dll_GetTickCount
mov ebx, eax
push 0
call sub.kernel32.dll_Sleep
call sub.kernel32.dll_GetTickCount
sub eax, ebx
cmp eax, 0x3e8
jbe 0x432979
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.00431fb4
cmp dword [ebp - 4], 0
je 0x4329bb
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.004049a4
push eax
mov eax, dword [esi + 0x1c]
mov edx, dword [eax]
call dword [edx + 0xc]
push eax
call sub.user32.dll_WinHelpA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4329d8
lea eax, [ebp - 4]
call fcn.004044e4
ret

Function at 0x435824
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 9]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x49fb8c], 0
je 0x435973
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x49dfa8]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x435973
mov eax, dword [0x49fb90]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x49fb8c]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x435942
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x49fb8c]
call fcn.004194f8
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x43593a
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x43593a
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x43593a
mov eax, dword [ebp - 0x14]
call fcn.0043e4a0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x43593a
push ebp
call fcn.004357e0
pop ecx
test al, al
jne 0x43593a
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x4358f6
mov eax, dword [ebp - 0x14]
call fcn.0043cfd0
dec eax
jle 0x43593a
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbd
call fcn.004038c0
cmp byte [ebp - 1], 0
je 0x43593a
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x43593a
mov edx, dword [ebp - 0x14]
mov eax, dword [0x49fb90]
call fcn.00434fac
inc edi
dec ebx
jne 0x435889
mov eax, dword [0x49fb90]
cmp dword [eax + 8], 0
jle 0x43595a
mov eax, dword [0x49fb90]
call fcn.0043503c
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x435973
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00435648
pop ecx
test al, al
jne 0x435973
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret