joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44c550
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x44c599
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x44ca10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46d930
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0044c5c0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0044c640
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0044c640
lea ecx, [esi + 0xc]
call fcn.0045f81a
lea ecx, [esi + 0x10]
call fcn.0045f81a
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0044dbd0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0044dbd0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0044dbd0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0045f88f
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0045f88f
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x44ddc0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x44de26
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x44de26
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x44de07
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x461c33
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x461c6b
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0045fcea
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0045fcc2
jmp 0x461c77
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x463324
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x463366
call fcn.00468e9d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x463366
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46335d
xor eax, eax
jmp 0x46336e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00463374
pop edi
pop esi
pop ebx
ret 4

Function at 0x4693cd
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4693fb
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x469419
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00469333
jmp 0x469419
mov eax, dword [esi + 0x14]
test eax, eax
je 0x469419
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00469333
test edi, edi
mov eax, edi
jne 0x469403
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x100578c
Capabilities:
Modify service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 2
push dword [ebp + 0xc]
xor esi, esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
jne 0x10057cd
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
call fcn.01004fd9
push eax
push edi
push 0x10016b4
call dword [sym.imp.msvcrt.dll_printf]
add esp, 0xc
pop edi
jmp 0x1005814
mov ecx, dword [ebp + 0x10]
mov dword [ebp + 0xc], ecx
lea ecx, [ebp + 0xc]
push ecx
push 5
push eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x10057f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x10057fe
push 0x10026f4
call dword [sym.imp.msvcrt.dll_printf]
pop ecx
jmp 0x1005814
push esi
call fcn.01004fd9
push eax
push esi
push 0x10026c8
call dword [sym.imp.msvcrt.dll_printf]
add esp, 0xc
mov eax, esi
pop esi
pop ebp
ret 0x10

Function at 0x1005913
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
push 4
pop esi
xor ebx, ebx
lea eax, [ebp - 0xc]
push eax
push 0x20019
push ebx
push 0x1002820
push 0x80000002
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10059db
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x1002808
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0xc]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, ebx
jne 0x10059db
cmp dword [ebp - 0x10], esi
jne 0x10059db
cmp dword [ebp - 0x14], esi
jne 0x10059db
cmp dword [ebp - 0x18], 1
jne 0x10059db
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0x10027ec
call edi
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x10059db
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10027dc
push eax
call esi
cmp eax, ebx
mov dword [0x1009840], eax
je 0x10059db
push 0x10027c8
call edi
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x10059db
push 0x10027b4
push eax
call esi
cmp eax, ebx
mov dword [0x1009030], eax
jne 0x1005a01
cmp dword [ebp - 4], ebx
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x1009030], ebx
mov dword [0x1009840], ebx
je 0x10059f7
push dword [ebp - 4]
call esi
cmp dword [ebp - 8], ebx
je 0x1005a01
push dword [ebp - 8]
call esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1005ff3
Capabilities:
Modify service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 2
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
jne 0x1006027
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
call fcn.01004fd9
push eax
push esi
push 0x10016b4
jmp 0x1006065
mov ecx, dword [ebp + 0x10]
mov dword [ebp + 0xc], ecx
lea ecx, [ebp + 0xc]
push ecx
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x100604a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x1006058
push 0x10026f4
call dword [sym.imp.msvcrt.dll_printf]
pop ecx
jmp 0x100606e
push esi
call fcn.01004fd9
push eax
push esi
push 0x10026c8
call dword [sym.imp.msvcrt.dll_printf]
add esp, 0xc
xor eax, eax
pop esi
pop ebp
ret 0x10
Function at 0x1006896
Capabilities:
Enumerate services

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 8
push dword [ebp + 0xc]
xor ebx, ebx
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
cmp edi, ebx
jne 0x10068db
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
call fcn.01004fd9
push eax
push esi
push 0x10016b4
call dword [sym.imp.msvcrt.dll_printf]
add esp, 0xc
jmp 0x10069c7
cmp dword [ebp + 0x10], ebx
jbe 0x100691a
push dword [ebp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
cmp esi, ebx
jne 0x100691c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
call fcn.01004fd9
push eax
push esi
push 0x1002d64
call dword [sym.imp.msvcrt.dll_printf]
add esp, 0xc
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x10069c7
xor esi, esi
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x10]
push esi
push 3
push edi
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
jne 0x1006963
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1006963
cmp eax, 0xea
je 0x1006963
push eax
call fcn.01004fd9
push eax
push dword [ebp - 4]
push 0x1002d38
call dword [sym.imp.msvcrt.dll_printf]
add esp, 0xc
jmp 0x10069bc
push dword [ebp + 0xc]
mov ebx, dword [sym.imp.msvcrt.dll_printf]
push 0x1002d1c
call ebx
cmp dword [ebp + 0xc], 0
pop ecx
pop ecx
jbe 0x10069a7
xor edi, edi
cmp dword [ebp + 0xc], edi
jbe 0x10069a1
lea eax, [esi + 8]
push 1
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push dword [esi + 4]
push dword [esi]
call fcn.01005009
add esi, 0x24
inc edi
cmp edi, dword [ebp + 0xc]
jb 0x1006982
inc edi
cmp edi, dword [ebp + 0xc]
jb 0x100697b
cmp dword [ebp - 4], 0xea
jne 0x10069bc
push dword [ebp + 8]
push 0x1002cfc
call ebx
pop ecx
pop ecx
test esi, esi
je 0x10069c7
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x100844a
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x1004f50
call fcn.01008600
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x1008485
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1008485
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x100849d
cmp eax, 0x20b
je 0x100848a
mov dword [ebp - 0x1c], edi
jmp 0x10084b1
cmp dword [ecx + 0x84], 0xe
jbe 0x1008485
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x10084ab
cmp dword [ecx + 0x74], 0xe
jbe 0x1008485
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1009844], 0xffffffff
or dword [0x1009848], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x100902c]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1009028]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x100984c], eax
call fcn.010085f8
cmp dword [0x100901c], edi
jne 0x100850c
push fcn.010085f8
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.010085e1
push 0x1009010
push 0x100900c
call sub.msvcrt.dll__initterm
mov eax, dword [0x1009024]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x1009020]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x34], eax
push 0x1009008
push section..data
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x20]
mov ecx, dword [sym.imp.msvcrt.dll___winitenv]
mov dword [ecx], eax
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.01006e42
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], edi
jne 0x1008583
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x10085b8
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0100863b
ret
Function at 0x402fdc
Capabilities:
Query or enumerate registry value

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

Function at 0x403dc8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x47004c], 0
je 0x403e29
cmp word [0x470220], 0xd7b2
jne 0x403df1
cmp dword [0x470228], 0
jbe 0x403df1
mov eax, 0x47021c
call dword [0x470238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46e06c
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 0x403e50
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x46e030], 0
jne 0x403e45
push 0
push 0x46e064
push 0x46e06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405458
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405688
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4054db
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405688
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4054db
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4056a4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405564
xor eax, eax
push ebp
push 0x40555d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004052a0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405542
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4056c4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405542
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405564
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x40567e
cmp byte [ebp - 0xd], 0
jne 0x4055ab
cmp byte [ebp - 0x12], 0
je 0x40567e
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4055c4
dec ebx
cmp byte [ebx], 0x2e
je 0x4055d3
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4055c3
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40567e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405610
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40567e
cmp byte [ebp - 0xd], 0
je 0x40567e
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40567e
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405d50
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 0x405db6
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.004041b4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402ba0
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405da0
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405dbd
lea eax, [ebp - 0x10]
call fcn.00403f44
ret

Function at 0x40afb4
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 0x40afed
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404034
jmp 0x40aff6
mov eax, ebx
mov edx, esi
call fcn.00403f98
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40b6a8
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b520
mov eax, dword [0x46f9fc]
cmp byte [eax], 0
je 0x40b724
mov eax, dword [0x46f800]
call fcn.00402a0c
call fcn.00402880
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.004087f4
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 0x40b76c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b75a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x46f7ac]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x470668]
call fcn.00405264
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 0x40c008
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 0x40c0de
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00403fdc
lea eax, [ebp - 8]
call fcn.00404454
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404404
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c0c8
mov eax, ebx
call fcn.004026cc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c0c1
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.00404404
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c0ab
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c0f0
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c0ab
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 0x40c0c8
mov eax, dword [ebp - 0x10]
call fcn.004026ec
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c0e5
lea eax, [ebp - 8]
call fcn.00403f44
ret

Function at 0x40c5e8
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 0x40c64c
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.004041b4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040831c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c653
lea eax, [ebp - 0xc]
call fcn.00403f44
ret

Function at 0x41d8dc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x470890
cmp dword [edi], 0
jne 0x41d958
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x47088c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x46e408
mov ecx, 2
call fcn.00402914
mov edx, 0x41d8b4
lea eax, [esi + 5]
call fcn.0041d8d4
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041d8d4
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 0x41d92d
mov dword [0x47088c], 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 0x41eed4
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 0x41eeda
ret
Function at 0x4213dc
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 0x42142d
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x421414
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x421404
jmp 0x42142d
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 0x421415
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42e990
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 0x42e8dc
call sub.user32.dll_EnumWindows
ret

Function at 0x42eab0
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 0x42eb2d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0042e510
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 0x42ead5
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.0042e110
cmp dword [ebp - 4], 0
je 0x42eb17
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.00404404
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 0x42eb34
lea eax, [ebp - 4]
call fcn.00403f44
ret

Function at 0x432028
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x432078]
test si, 4
je 0x43203c
or bl, 1
test si, 8
je 0x432046
or bl, 4
test si, 1
je 0x432050
or bl, 8
test si, 2
je 0x43205a
or bl, 0x10
test si, 0x10
je 0x432064
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x432073
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x43207c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4320b4]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x432095
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4320a4
or bl, 4
test esi, 0x20000000
je 0x4320af
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret