joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43d180
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x469b63
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0045d5c2
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00462c58
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00464174
test eax, eax
je 0x43d29c
mov ecx, dword [esp + 0x3c]
call fcn.00462c85
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43d260
push edi
mov ecx, esi
call fcn.004602e9
mov ecx, esi
call fcn.0043d400
cmp dword [esp + 0x38], 1
jne 0x43d295
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00460424
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x43fcc0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43fcf3
push esi
call fcn.00442db0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43fcec
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43fd79
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43fd62
mov eax, dword [esi + 8]
test eax, eax
je 0x43fd17
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43fd5e
cmp eax, 2
je 0x43fd62
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43fd0a
cmp eax, 3
je 0x43fd3d
cmp eax, 1
jne 0x43fd0a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43fd0a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43fd0a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043fda0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43fd88
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043fda0
add esp, 4
pop esi
ret

Function at 0x45e3b8
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x45e3f0
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.0045c46c
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0045c444
jmp 0x45e3fc
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x45faa6
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 0x45fae8
call fcn.0046555f
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x45fae8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x45fadf
xor eax, eax
jmp 0x45faf0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0045faf6
pop edi
pop esi
pop ebx
ret 4

Function at 0x465a8f
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 0x465abd
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x465adb
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004659f5
jmp 0x465adb
mov eax, dword [esi + 0x14]
test eax, eax
je 0x465adb
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004659f5
test edi, edi
mov eax, edi
jne 0x465ac5
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x479a50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x46000]
push edi
or ebp, 0xffffffff
jmp 0x479a72
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x479a79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x479a68
mov eax, 1
add ebx, ebx
jne 0x479a8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x479a9c
jne 0x479aac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x479aac
dec eax
add ebx, ebx
jne 0x479aa8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x479a80
xor ecx, ecx
sub eax, 3
jb 0x479ac4
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x479b36
sar eax, 1
mov ebp, eax
jmp 0x479acf
add ebx, ebx
jne 0x479acf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x479adc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x479b00
inc ecx
add ebx, ebx
jne 0x479aec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x479ae1
jne 0x479afd
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x479ae1
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x479b20
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x479b11
jmp 0x479a6e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x479b20
add edi, ecx
jmp 0x479a6e
pop esi
mov edi, esi
mov ecx, 0x1256
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x479b3e
cmp byte [edi], 0x11
jne 0x479b3e
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x479b43
lea edi, [esi + 0x76000]
mov eax, dword [edi]
or eax, eax
je 0x479bbb
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x79dc8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x79ecc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x479b70
mov ecx, edi
jns 0x479b9f
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x79ed0]
or eax, eax
je 0x479bb5
mov dword [ebx], eax
add ebx, 4
jmp 0x479b8d
call dword [esi + 0x79ed4]
popal
jmp 0x40d570
Function at 0x402998
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x4029d5
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x4029f5
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404c8c
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402b5c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404a1c
test esi, esi
jne 0x402b92
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404b0c
jmp 0x402bb0
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402a70
mov edi, eax
test esi, esi
je 0x402bb0
cmp dword [ebx], 0
je 0x402bb0
dec esi
jmp 0x402b99
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4031d4
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x4a2008], 0x8088405
inc edx
mov dword [ebx + 0x4a2008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x4031f0
Capabilities:
Read file on windows

Disassembly:
push ebx
xor ecx, ecx
mov ebx, eax
mov cx, word [eax + 4]
sub ecx, 0xd7b1
je 0x403206
sub ecx, 2
jne 0x403228
push 0
mov eax, esp
push 0
push eax
push dword [ebx + 8]
push edx
push dword [ebx]
call sub.kernel32.dll_ReadFile
pop edx
dec eax
jne 0x40322f
cmp edx, dword [ebx + 8]
je 0x403239
mov eax, 0x64
jmp 0x403234
mov eax, 0x67
jmp 0x403234
call sub.kernel32.dll_GetLastError
call fcn.0040290c
pop ebx
ret

Function at 0x403afc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4a2024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403b94
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403b74
xor eax, eax
push ebp
push 0x403b6d
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 0x403bb0
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 0x403b74
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x4a2024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4a2024], ax
mov esp, ebp
pop ebp
ret
Function at 0x4048a0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4a504c], 0
je 0x404901
cmp word [0x4a5220], 0xd7b2
jne 0x4048c9
cmp dword [0x4a5228], 0
jbe 0x4048c9
mov eax, 0x4a521c
call dword [0x4a5238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4a2094
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 0x404928
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4a2034], 0
jne 0x40491d
push 0
push 0x4a208c
push 0x4a2094
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405f58
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 0x406188
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405fdb
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406188
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405fdb
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4061a4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406064
xor eax, eax
push ebp
push 0x40605d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405da0
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 0x406042
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4061c4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406042
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 0x406064
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 0x40617e
cmp byte [ebp - 0xd], 0
jne 0x4060ab
cmp byte [ebp - 0x12], 0
je 0x40617e
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4060c4
dec ebx
cmp byte [ebx], 0x2e
je 0x4060d3
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4060c3
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40617e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406110
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 0x40617e
cmp byte [ebp - 0xd], 0
je 0x40617e
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 0x40617e
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 0x40686c
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 0x4068d2
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.00404c8c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403564
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4068bc
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4068d9
lea eax, [ebp - 0x10]
call fcn.00404a1c
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404edc
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40946d
test al, 0x10
jne 0x409471
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40c114
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 0x40c14d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404b0c
jmp 0x40c156
mov eax, ebx
mov edx, esi
call fcn.00404a70
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40d168
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 0x40d23e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404ab4
lea eax, [ebp - 8]
call fcn.00404f2c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404edc
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d228
mov eax, ebx
call fcn.00402784
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d221
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.00404edc
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d20b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d250
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d20b
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 0x40d228
mov eax, dword [ebp - 0x10]
call fcn.004027a4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d245
lea eax, [ebp - 8]
call fcn.00404a1c
ret
Function at 0x40d828
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 0x40d88c
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.00404c8c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00409080
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d893
lea eax, [ebp - 0xc]
call fcn.00404a1c
ret

Function at 0x422e38
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4a5888
cmp dword [edi], 0
jne 0x422eb4
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4a5884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4a254c
mov ecx, 2
call fcn.00402a30
mov edx, 0x422e10
lea eax, [esi + 5]
call fcn.00422e30
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00422e30
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 0x422e89
mov dword [0x4a5884], 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 0x4244a8
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 0x4244ae
ret

Function at 0x426d30
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 0x426d81
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x426d68
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x426d58
jmp 0x426d81
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 0x426d69
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43a010
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.00439d6c
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00404edc
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x43a06e
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4a3ec4]
mov dl, 1
mov eax, dword [0x439c90]
call fcn.0040c9c8
call fcn.00404458
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x459bdc
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 0x459b28
call sub.user32.dll_EnumWindows
ret

Function at 0x459cfc
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 0x459d79
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0045975c
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 0x459d21
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.0045935c
cmp dword [ebp - 4], 0
je 0x459d63
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.00404edc
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 0x459d80
lea eax, [ebp - 4]
call fcn.00404a1c
ret
Function at 0x45d3bc
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 [0x4a5b6c], 0
je 0x45d50b
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x4a3f50]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x45d50b
mov eax, dword [0x4a5b70]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x4a5b6c]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x45d4da
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x4a5b6c]
call fcn.004197b0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x45d4d2
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x45d4d2
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x45d4d2
mov eax, dword [ebp - 0x14]
call fcn.004661a0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45d4d2
push ebp
call fcn.0045d378
pop ecx
test al, al
jne 0x45d4d2
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x45d48e
mov eax, dword [ebp - 0x14]
call fcn.00464cd0
dec eax
jle 0x45d4d2
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.00403e88
cmp byte [ebp - 1], 0
je 0x45d4d2
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x45d4d2
mov edx, dword [ebp - 0x14]
mov eax, dword [0x4a5b70]
call fcn.0045cb44
inc edi
dec ebx
jne 0x45d421
mov eax, dword [0x4a5b70]
cmp dword [eax + 8], 0
jle 0x45d4f2
mov eax, dword [0x4a5b70]
call fcn.0045cbd4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x45d50b
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0045d1e0
pop ecx
test al, al
jne 0x45d50b
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