joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401210
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push 0x4011bb
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.KERNEL32.dll_FindResourceA
mov dword [ebp - 4], eax
push eax
push dword [ebp + 8]
call sub.KERNEL32.dll_LoadResource
push eax
call sub.KERNEL32.dll_LockResource
mov dword [ebp - 0xc], eax
push dword [ebp - 4]
push dword [ebp + 8]
call sub.KERNEL32.dll_SizeofResource
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40125c
push dword [ebp - 8]
push dword [ebp - 0xc]
call fcn.0040189c
jmp 0x401268
push 2
call sub.KERNEL32.dll_SetLastError
mov eax, 0
leave
ret 8

Function at 0x4015e4
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push 0
call sub.KERNEL32.dll_GetModuleHandleA
mov dword [ebp - 0xc], eax
push dword [ebp + 0x14]
push dword [ebp - 0xc]
call fcn.00401934
mov dword [ebp - 0x18], eax
push dword [ebp + 0x18]
push dword [ebp - 0xc]
call fcn.00401934
mov dword [ebp - 0x1c], eax
jmp 0x401623
mov dword [ebp - 0x5c], 0x30
mov dword [ebp - 0x58], 0x2000
mov dword [ebp - 0x54], 0x401766
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0x10
push dword [ebp - 0xc]
pop dword [ebp - 0x48]
mov dword [ebp - 0x3c], 0x10
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0x401612
mov dword [ebp - 0x44], 0
push 0x7f00
push 0
call sub.user32.dll_LoadCursorA
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call sub.user32.dll_RegisterClassExA
push 0
push dword [ebp - 0xc]
push dword [ebp + 0x1c]
push dword [ebp + 8]
push 0x64
push 0x64
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0x50000000
push 0
push 0x401612
push 0x20
call sub.user32.dll_CreateWindowExA
mov dword [ebp - 4], eax
push dword [ebp - 0x18]
push 0
push dword [ebp - 4]
call sub.user32.dll_SetWindowLongA
push dword [ebp - 0x1c]
push 4
push dword [ebp - 4]
call sub.user32.dll_SetWindowLongA
jmp 0x4016d5
push 0
push dword [ebp - 0xc]
push dword [ebp + 0x1c]
push dword [ebp - 4]
push 0
push 0
push 0
push 0
push 0x5000000e
push 0
push 0x4016ce
push 0
call sub.user32.dll_CreateWindowExA
mov dword [ebp - 8], eax
push dword [ebp - 0x18]
push 0
push 0x172
push dword [ebp - 8]
call sub.USER32.dll_SendMessageA
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 8]
call sub.user32.dll_GetWindowRect
push dword [ebp - 8]
push 8
push dword [ebp - 4]
call sub.user32.dll_SetWindowLongA
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x28]
sub eax, edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x2c]
sub eax, edx
mov dword [ebp - 0x10], eax
push 2
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push 0
push 0
push 0
push dword [ebp - 4]
call sub.user32.dll_SetWindowPos
push 5
push dword [ebp - 4]
call sub.user32.dll_ShowWindow
mov eax, dword [ebp - 4]
leave
ret 0x18
Function at 0x401934
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push 0x401204
push dword [ebp + 0xc]
push 0
call sub.KERNEL32.dll_FindResourceA
mov dword [ebp - 4], eax
push eax
push 0
call sub.KERNEL32.dll_LoadResource
push eax
call sub.KERNEL32.dll_LockResource
mov dword [ebp - 0xc], eax
push dword [ebp - 4]
push 0
call sub.KERNEL32.dll_SizeofResource
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40197d
push dword [ebp - 8]
push dword [ebp - 0xc]
call fcn.0040189c
jmp 0x401989
push 2
call sub.KERNEL32.dll_SetLastError
mov eax, 0
leave
ret 8

Function at 0x401a10
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
test ecx, ecx
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 8], esi
mov esi, edx
mov dword [ebp - 4], edi
mov edi, ecx
jne 0x401a36
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x38]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x401aca
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x401a85
cmp eax, 0x40
je 0x401a85
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x401a29
cmp eax, 0x40
je 0x401a29
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
jmp 0x401a29
mov dword [esp + 8], 0x34
mov dword [esp + 4], str..._.._runtime_pseudo_reloc.c
mov dword [esp], str.VirtualQuery__addr__b__sizeof_b__
call sym.__assert
lea esi, [esi]
lea edi, [edi]

Function at 0x419bf4
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 0x419bfa
ret
Function at 0x402550
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x864
xor eax, eax
push ebx
push esi
mov ebx, ecx
push edi
mov ecx, 0x200
lea edi, [esp + 0x70]
rep stosd dword es:[edi], eax
mov ecx, 0x19
lea edi, [esp + 0x70]
rep stosd dword es:[edi], eax
push str.._config.cfg
lea eax, [esp + 0x74]
push 0x800
push eax
mov dword [ebx + 0xcf8], 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
mov al, byte [esp + 0x70]
lea esi, [esp + 0x70]
test al, al
je 0x4025c0
lea edi, [ebx + 0x9d8]
push esi
mov ecx, edi
call fcn.00402d0e
mov ecx, dword [edi]
add edi, 4
mov edx, dword [ecx - 8]
mov al, byte [esi + edx + 1]
lea esi, [esi + edx + 1]
test al, al
jne 0x4025a4
mov al, byte [esp + 0x70]
lea esi, [esp + 0x70]
test al, al
je 0x40261a
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
push str.._config.cfg
lea eax, [esp + 0x14]
push 0x64
push eax
push 0
push str.host
push esi
call edi
mov eax, dword [ebx + 0xcf8]
lea edx, [esp + 0x10]
push edx
lea ecx, [ebx + eax*4 + 0xb68]
inc eax
mov dword [ebx + 0xcf8], eax
call fcn.00402d0e
push esi
call ebp
lea esi, [esi + eax + 1]
cmp byte [esi], 0
jne 0x4025d9
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x864
ret
Function at 0x402d51
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40f018]
jne 0x402d5b
repz ret
jmp fcn.00403f16

Function at 0x4092e8
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00406c95
and dword [ebp - 4], 0
cmp dword [0x410994], 0
mov ebx, eax
jne 0x409399
push 0x40197c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40944a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401970
push edi
call esi
test eax, eax
je 0x40944a
push eax
call fcn.00406c23
mov dword [esp], 0x401960
push edi
mov dword [0x410994], eax
call esi
push eax
call fcn.00406c23
mov dword [esp], 0x40194c
push edi
mov dword [0x410998], eax
call esi
push eax
call fcn.00406c23
mov dword [esp], 0x401930
push edi
mov dword [0x41099c], eax
call esi
push eax
call fcn.00406c23
pop ecx
mov dword [0x4109a4], eax
test eax, eax
je 0x409399
push 0x401918
push edi
call esi
push eax
call fcn.00406c23
pop ecx
mov dword [0x4109a0], eax
mov eax, dword [0x4109a0]
cmp eax, ebx
je 0x4093f1
cmp dword [0x4109a4], ebx
je 0x4093f1
push eax
call fcn.00406c9e
push dword [0x4109a4]
mov esi, eax
call fcn.00406c9e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4093f1
test edi, edi
je 0x4093f1
call esi
test eax, eax
je 0x4093e8
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4093e8
test byte [ebp - 0xc], 1
jne 0x4093f1
or dword [ebp + 0x10], 0x200000
jmp 0x40942a
mov eax, dword [0x410998]
cmp eax, ebx
je 0x40942a
push eax
call fcn.00406c9e
pop ecx
test eax, eax
je 0x40942a
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40942a
mov eax, dword [0x41099c]
cmp eax, ebx
je 0x40942a
push eax
call fcn.00406c9e
pop ecx
test eax, eax
je 0x40942a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x410994]
call fcn.00406c9e
pop ecx
test eax, eax
je 0x40944a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40944c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40d0a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov dword [ebp - 0xc], 0x10
mov byte [ebp - 0x98], 0x30
mov dword [ebp - 0x94], 0
mov byte [ebp - 0x90], 0x31
mov dword [ebp - 0x8c], 1
mov byte [ebp - 0x88], 0x32
mov dword [ebp - 0x84], 2
mov byte [ebp - 0x80], 0x33
mov dword [ebp - 0x7c], 3
mov byte [ebp - 0x78], 0x34
mov dword [ebp - 0x74], 4
mov byte [ebp - 0x70], 0x35
mov dword [ebp - 0x6c], 5
mov byte [ebp - 0x68], 0x36
mov dword [ebp - 0x64], 6
mov byte [ebp - 0x60], 0x37
mov dword [ebp - 0x5c], 7
mov byte [ebp - 0x58], 0x38
mov dword [ebp - 0x54], 8
mov byte [ebp - 0x50], 0x39
mov dword [ebp - 0x4c], 9
mov byte [ebp - 0x48], 0x41
mov dword [ebp - 0x44], 0xa
mov byte [ebp - 0x40], 0x42
mov dword [ebp - 0x3c], 0xb
mov byte [ebp - 0x38], 0x43
mov dword [ebp - 0x34], 0xc
mov byte [ebp - 0x30], 0x44
mov dword [ebp - 0x2c], 0xd
mov byte [ebp - 0x28], 0x45
mov dword [ebp - 0x24], 0xe
mov byte [ebp - 0x20], 0x46
mov dword [ebp - 0x1c], 0xf
mov eax, dword [ebp + 8]
push eax
call fcn.00403515
add esp, 4
push eax
call fcn.00402d40
add esp, 4
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 4]
movsx eax, byte [edx]
cmp eax, 0x30
jne 0x40d1b7
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx + 1]
cmp edx, 0x58
jne 0x40d1b7
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
mov byte [ebp - 0x11], 1
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx]
test edx, edx
je 0x40d25a
mov byte [ebp - 0x99], 0
mov dword [ebp - 0xa0], 0
jmp 0x40d1eb
mov eax, dword [ebp - 0xa0]
add eax, 1
mov dword [ebp - 0xa0], eax
cmp dword [ebp - 0xa0], 0x10
jge 0x40d23b
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx]
mov eax, dword [ebp - 0xa0]
movsx ecx, byte [ebp + eax*8 - 0x98]
cmp edx, ecx
jne 0x40d239
movzx edx, byte [ebp - 0x11]
test edx, edx
jne 0x40d21d
mov eax, dword [ebp - 0x10]
shl eax, 4
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0xa0]
mov edx, dword [ebp - 0x10]
or edx, dword [ebp + ecx*8 - 0x94]
mov dword [ebp - 0x10], edx
mov byte [ebp - 0x99], 1
jmp 0x40d23b
jmp 0x40d1dc
movzx eax, byte [ebp - 0x99]
test eax, eax
jne 0x40d248
jmp 0x40d25a
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov byte [ebp - 0x11], 0
jmp 0x40d1bb
mov edx, dword [ebp - 8]
push edx
call fcn.004030c5
add esp, 4
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x402c30
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4059d0
push 0x402dd0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
add esp, 4
mov dword [0x406928], 0xffffffff
mov dword [0x40692c], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x406924]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov edx, dword [0x406920]
mov dword [eax], edx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov ecx, dword [eax]
mov dword [0x406930], ecx
call fcn.00402dc0
mov eax, dword [0x406910]
test eax, eax
jne 0x402cc1
push 0x402db0
call dword [sym.imp.MSVCRT.dll___setusermatherr]
add esp, 4
call fcn.00402d90
push 0x40600c
push 0x406008
call sub.MSVCRT.dll__initterm
add esp, 8
mov edx, dword [0x40691c]
mov dword [ebp - 0x28], edx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [0x406918]
push ecx
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call dword [sym.imp.MSVCRT.dll___getmainargs]
add esp, 0x14
push 0x406004
push section..data
call sub.MSVCRT.dll__initterm
add esp, 8
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov edx, dword [ebp - 0x20]
mov dword [eax], edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call fcn.004028b7
add esp, 0xc
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
jmp 0x402d60
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403304
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x463020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40339c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40337c
xor eax, eax
push ebp
push 0x403375
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 0x4033b8
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 0x40337c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x463020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x463020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404120
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x465044], 0
je 0x404181
cmp word [0x465218], 0xd7b2
jne 0x404149
cmp dword [0x465220], 0
jbe 0x404149
mov eax, 0x465214
call dword [0x465230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46306c
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 0x4041a8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x463030], 0
jne 0x40419d
push 0
push 0x463064
push 0x46306c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405ef8
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 0x405f5e
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.00404514
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402ec8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405f48
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405f65
lea eax, [ebp - 0x10]
call fcn.004042a4
ret

Function at 0x40b048
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 0x40b081
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404394
jmp 0x40b08a
mov eax, ebx
mov edx, esi
call fcn.004042f8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b094
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 0x40b0b5
mov al, byte [esp]
jmp 0x40b0b7
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40b74c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b5b4
mov eax, dword [0x464948]
cmp byte [eax], 0
je 0x40b7c8
mov eax, dword [0x464768]
call fcn.00402d34
call fcn.00402bb4
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.00408838
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 0x40b810
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b7fe
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x464718]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x465660]
call fcn.00405364
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 0x40c06c
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 0x40c142
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.0040433c
lea eax, [ebp - 8]
call fcn.004047b4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404764
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c12c
mov eax, ebx
call fcn.00402a28
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c125
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.00404764
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c10f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c154
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c10f
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 0x40c12c
mov eax, dword [ebp - 0x10]
call fcn.00402a58
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c149
lea eax, [ebp - 8]
call fcn.004042a4
ret

Function at 0x40c6a8
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 0x40c70c
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.00404514
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040836c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c713
lea eax, [ebp - 0xc]
call fcn.004042a4
ret
Function at 0x41a9c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
lea ebx, [ebp - 0xc]
mov esi, 0x465884
cmp dword [esi], 0
jne 0x41aa66
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov edx, dword [0x465880]
mov dword [eax], edx
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, 0x4633f8
mov ecx, 2
call fcn.00402c48
mov edx, 0x41a998
mov eax, dword [ebp - 8]
add eax, 5
call fcn.0041a9b8
mov edx, dword [ebp - 8]
mov dword [edx + 6], eax
mov eax, dword [ebp - 8]
add eax, 0xa
mov dword [ebx], eax
mov eax, dword [ebx]
mov byte [eax], 0xe8
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, dword [ebx]
call fcn.0041a9b8
mov edx, dword [ebx]
mov dword [edx + 1], eax
mov eax, dword [ebx]
mov edx, dword [esi]
mov dword [eax + 5], edx
mov eax, dword [ebx]
mov dword [esi], eax
add dword [ebx], 0xd
mov eax, dword [ebx]
sub eax, dword [ebp - 8]
cmp eax, 0xffc
jl 0x41aa2d
mov eax, dword [ebp - 8]
mov dword [0x465880], eax
mov eax, dword [esi]
mov dword [ebp - 4], eax
mov eax, dword [esi]
mov dword [ebx], eax
mov eax, dword [ebx]
mov eax, dword [eax + 5]
mov dword [esi], eax
mov eax, dword [ebx]
mov edx, dword [ebp + 8]
mov dword [eax + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [eax + 9], edx
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x41bf1c
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 0x41bf22
ret

Function at 0x41e3a0
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 0x41e3f1
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41e3d8
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41e3c8
jmp 0x41e3f1
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 0x41e3d9
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x428ce8
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 0x428c34
call sub.user32.dll_EnumWindows
ret

Function at 0x428e08
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 0x428e85
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00428868
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 0x428e2d
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.00428468
cmp dword [ebp - 4], 0
je 0x428e6f
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.00404764
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 0x428e8c
lea eax, [ebp - 4]
call fcn.004042a4
ret

Function at 0x42c378
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x42c3c8]
test si, 4
je 0x42c38c
or bl, 1
test si, 8
je 0x42c396
or bl, 4
test si, 1
je 0x42c3a0
or bl, 8
test si, 2
je 0x42c3aa
or bl, 0x10
test si, 0x10
je 0x42c3b4
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x42c3c3
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x42c3cc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x42c404]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x42c3e5
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x42c3f4
or bl, 4
test esi, 0x20000000
je 0x42c3ff
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret