joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40149d
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
push edi
push eax
nop
nop
nop
nop
mov eax, dword fs:[0x30]
nop
nop
nop
nop
mov dword [ebp - 4], eax
nop
nop
pop eax
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0xc]
add esi, 0x14
mov edi, dword [esi]
jmp 0x4014db
push dword [ebp + 8]
push dword [edi + 0x28]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4014e5
mov edi, dword [edi]
cmp edi, esi
jne 0x4014c9
xor al, al
pop edi
pop esi
leave
ret
mov al, 1
jmp 0x4014e1

Function at 0x401656
Capabilities:
Get common file path
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x62c
mov eax, dword [0x43e078]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x20c]
push eax
xor edi, edi
push 0x104
mov dword [ebp - 0x62c], edi
mov dword [ebp - 0x628], edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4017f9
push str.delays.tmp
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x61c]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov dword [ebp - 0x624], edi
mov esi, 0xfffff
push edi
push 0x100
push 2
push edi
push edi
push 0x40000000
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x620], eax
cmp eax, 0xffffffff
je 0x4017f9
push esi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push edi
mov ebx, eax
call dword [sym.imp.msvcrt.dll__time64]
push eax
call dword [sym.imp.msvcrt.dll_srand]
pop ecx
pop ecx
push esi
call dword [sym.imp.msvcrt.dll_rand]
cdq
mov ecx, 0xff
idiv ecx
push edx
push ebx
call fcn.00425490
add esp, 0xc
push edi
lea eax, [ebp - 0x628]
push eax
push esi
push ebx
push dword [ebp - 0x620]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4017f9
cmp dword [ebp - 0x628], esi
jne 0x4017f9
push esi
push edi
push ebx
call fcn.00425490
add esp, 0xc
push dword [ebp - 0x620]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push 0x4000100
push 3
push edi
push edi
push 0x80000000
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x620], eax
cmp eax, 0xffffffff
je 0x4017f9
push edi
lea ecx, [ebp - 0x62c]
push ecx
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4017f9
cmp dword [ebp - 0x62c], esi
jne 0x4017f9
push esi
push edi
push ebx
call fcn.00425490
add esp, 0xc
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 0x620]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [ebp - 0x624]
cmp dword [ebp - 0x624], 0x3e8
jb 0x4016c0
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e88c
leave
ret
xor eax, eax
jmp 0x4017ea
Function at 0x40688f
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x980
mov eax, dword [0x43e078]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
sub esp, 0xc
mov dword [ebp - 0x8d8], eax
lea eax, [ebp + 0xc]
mov esi, esp
call fcn.00412175
lea eax, [ebp - 0x980]
push eax
call fcn.004049de
add esp, 0x10
push 0xf
pop ecx
mov esi, eax
lea edi, [ebp - 0x944]
rep movsd dword es:[edi], dword [esi]
push 0x437a5a
lea esi, [ebp - 0x8f8]
call fcn.00412143
xor ebx, ebx
push ebx
push ebx
push ebx
push 1
push dword [ebp + 0x18]
call dword [0x642104]
push dword [0x641dcc]
mov dword [ebp - 0x8dc], eax
push dword [ebp - 0x940]
xor esi, esi
call dword [0x6421e0]
test eax, eax
jne 0x406916
inc esi
cmp dword [ebp - 0x8dc], ebx
je 0x406a9a
push ebx
push ebx
push 3
push ebx
push ebx
push dword [ebp - 0x92c]
push dword [ebp - 0x934]
push dword [ebp - 0x8dc]
call dword [0x642204]
mov dword [ebp - 0x8e8], eax
cmp eax, ebx
je 0x406a8e
mov eax, esi
neg eax
push ebx
sbb eax, eax
and eax, 0x800000
add eax, 0x400100
push eax
push ebx
push ebx
push dword [0x641c18]
push dword [ebp - 0x918]
push 0x438ab4
push dword [ebp - 0x8e8]
call dword [0x642244]
mov edi, eax
mov dword [ebp - 0x8e0], edi
cmp edi, ebx
je 0x406a82
cmp esi, ebx
je 0x4069af
or dword [ebp - 0x8ec], 0x10300
push 4
lea eax, [ebp - 0x8ec]
push eax
push 0x1f
push edi
call dword [0x641ffc]
push ebx
push ebx
push ebx
push ebx
push edi
call dword [0x6421cc]
push ebx
mov esi, eax
lea eax, [ebp - 0x8fc]
push eax
lea eax, [ebp - 0x104]
push eax
push 0x13
push edi
mov dword [ebp - 0x8fc], 0x100
call dword [0x64225c]
test eax, eax
jne 0x4069f7
push 0x438ab8
mov esi, dword [ebp - 0x8d8]
call fcn.00412143
jmp 0x406aab
lea edx, [ebp - 0x104]
call fcn.00413759
cmp eax, 0xc8
jne 0x406ad7
cmp esi, ebx
je 0x406a76
mov edi, 0x7cf
jmp 0x406a57
mov eax, dword [ebp - 0x8e4]
cmp eax, ebx
je 0x406a76
mov byte [ebp + eax - 0x8d4], bl
lea eax, [ebp - 0x8d4]
push eax
lea esi, [ebp - 0x908]
lea eax, [ebp - 0x8f8]
call fcn.00412265
lea esi, [ebp - 0x8f8]
call fcn.004121e9
mov eax, dword [ebp - 0x908]
call fcn.00402910
lea eax, [ebp - 0x8e4]
push eax
push edi
lea eax, [ebp - 0x8d4]
push eax
push dword [ebp - 0x8e0]
call dword [0x64212c]
test eax, eax
jne 0x406a18
push dword [ebp - 0x8e0]
call dword [0x642100]
push dword [ebp - 0x8e8]
call dword [0x642100]
push dword [ebp - 0x8dc]
call dword [0x642100]
mov esi, dword [ebp - 0x8d8]
lea eax, [ebp - 0x8f8]
call fcn.00412175
mov eax, dword [ebp - 0x8f8]
call fcn.00402910
mov eax, dword [ebp + 0xc]
call fcn.00402910
mov eax, dword [ebp + 0x18]
call fcn.00402910
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e88c
leave
ret
push 0x438ac0
jmp 0x4069e7
Function at 0x994cdc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x994d03
call fcn.00937288
mov dword [eax], esi
call fcn.00937275
push 0x16
pop esi
mov dword [eax], esi
call fcn.00937eca
mov eax, esi
jmp 0x994d58
test dword [ebp + 0xc], 0xfffffff9
jne 0x994ce9
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x994d30
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0093729b
pop ecx
call fcn.00937275
mov eax, dword [eax]
jmp 0x994d58
test al, 0x10
jne 0x994d56
test al, 1
je 0x994d56
test byte [ebp + 0xc], 2
je 0x994d56
call fcn.00937288
mov dword [eax], 5
call fcn.00937275
mov dword [eax], 0xd
jmp 0x994d27
xor eax, eax
pop esi
pop ebp
ret

Function at 0x4012b6
Capabilities:
Hide graphical window

Disassembly:
push ebp
push 0x10000
push 0x1000
push 1
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [0x403eb4], eax
push 0x64
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, 0x30
push eax
mov dword [eax], ecx
add eax, 0x4c
mov ebp, eax
mov eax, 0x400000
mov dword [0x403eb0], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x44], 0x401191
mov dword [ebp - 0x24], str.resiliency
call dword [sym.imp.USER32.dll_RegisterClassExA]
xor eax, eax
push eax
push dword [0x403eb0]
push eax
push eax
push 0x190
push 0x2b2
push 0x640
push 0x9c4
push 0
push str.abasement
push str.resiliency
push eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x403eb8], eax
push eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call dword [sym.imp.USER32.dll_UpdateWindow]
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x401380
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
lea ecx, [ebp - 0x1c]
push ecx
call edi
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x401367
mov eax, dword [0x403eb4]
push eax
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
pop ebp
ret 0x10
Function at 0x4010af
Capabilities:
Encode data using xor

Disassembly:
movzx eax, byte [esp + 0xc]
cdq
mov ecx, 0x5ab
push esi
idiv ecx
mov esi, dword [esp + 0xc]
add dl, 0x3d
test esi, esi
jbe 0x4010d8
mov eax, dword [esp + 8]
mov cl, byte [eax]
xor cl, dl
add cl, dl
mov byte [eax], cl
inc eax
dec esi
jne 0x4010cc
pop esi
ret

Function at 0x4010da
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
xor edi, edi
push edi
push edi
push edi
push edi
push 0x405074
call dword [0x405330]
add esp, 0x14
cmp eax, edi
je 0x401152
push edi
push edi
push edi
push edi
push dword [ebp + 8]
push eax
call dword [0x40532c]
add esp, 0x18
cmp eax, edi
mov dword [ebp + 8], eax
je 0x401152
push ebx
push esi
push 0x40
mov esi, 0x1771
push 0x3000
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
push esi
push edi
push ebx
call fcn.00401076
lea eax, [ebp - 4]
dec esi
push eax
push esi
push ebx
push dword [ebp + 8]
call dword [0x405328]
push 0x400
push esi
push ebx
call fcn.004010af
add esp, 0x28
call ebx
pop esi
pop ebx
pop edi
leave
ret

Function at 0x401155
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
rdtsc
xchg ebx, eax
rdtsc
sub eax, ebx
cmp eax, dword [ebp + 8]
jg 0x40116b
xor eax, eax
jmp 0x40116e
push 1
pop eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x53b904f4
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x453b07e0
nop
nop
nop
nop
test eax, eax
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x4f7cfd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004f7b73
Function at 0x402fc8
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x40368c
Capabilities:
Query or enumerate registry value

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

Function at 0x40448c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x478048], 0
je 0x4044ed
cmp word [0x47821c], 0xd7b2
jne 0x4044b5
cmp dword [0x478224], 0
jbe 0x4044b5
mov eax, 0x478218
call dword [0x478234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x475078
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 0x404514
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x475020], 0
jne 0x404509
push 0
push 0x475098
push 0x475078
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405f60
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 0x406190
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405fe3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406190
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405fe3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4061ac
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40606c
xor eax, eax
push ebp
push 0x406065
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405da8
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 0x40604a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4061cc
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40604a
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 0x40606c
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 0x406186
cmp byte [ebp - 0xd], 0
jne 0x4060b3
cmp byte [ebp - 0x12], 0
je 0x406186
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4060cc
dec ebx
cmp byte [ebx], 0x2e
je 0x4060db
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4060cb
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406186
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406118
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 0x406186
cmp byte [ebp - 0xd], 0
je 0x406186
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 0x406186
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 0x409d64
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 0x409d9d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004046f8
jmp 0x409da6
mov eax, ebx
mov edx, esi
call fcn.0040465c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40a458
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40a2d0
mov eax, dword [0x4773c0]
cmp byte [eax], 0
je 0x40a4c0
mov eax, dword [0x477204]
call fcn.00402d4c
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408d54
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff5
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 0x40a508
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40a4f6
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4771bc]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x478714]
call fcn.00405d6c
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 0x40aff4
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 0x40b058
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.00404870
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004089d4
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b05f
lea eax, [ebp - 0xc]
call fcn.00404608
ret
Function at 0x41cc48
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x478a24
cmp dword [edi], 0
jne 0x41ccc4
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x478a20]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x475520
mov ecx, 2
call fcn.004028e8
mov edx, 0x41cc20
lea eax, [esi + 5]
call fcn.0041cc40
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041cc40
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 0x41cc99
mov dword [0x478a20], 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 0x41e168
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 0x41e16e
ret

Function at 0x420714
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 0x420765
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x42074c
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x42073c
jmp 0x420765
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 0x42074d
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4316a0
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 0x4315ec
call sub.user32.dll_EnumWindows
ret

Function at 0x4317c4
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 0x431841
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00431210
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 0x4317e9
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.00430e68
cmp dword [ebp - 4], 0
je 0x43182b
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.00404ab8
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 0x431848
lea eax, [ebp - 4]
call fcn.00404608
ret

Function at 0x43475c
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 [0x478bac], 0
je 0x4348ab
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x477364]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x4348ab
mov eax, dword [0x478bb0]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x478bac]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x43487a
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x478bac]
call fcn.004142c4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x434872
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x434872
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x434872
mov eax, dword [ebp - 0x14]
call fcn.0043d274
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x434872
push ebp
call fcn.00434718
pop ecx
test al, al
jne 0x434872
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x43482e
mov eax, dword [ebp - 0x14]
call fcn.0043be08
dec eax
jle 0x434872
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.00403a10
cmp byte [ebp - 1], 0
je 0x434872
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x434872
mov edx, dword [ebp - 0x14]
mov eax, dword [0x478bb0]
call fcn.00433ee0
inc edi
dec ebx
jne 0x4347c1
mov eax, dword [0x478bb0]
cmp dword [eax + 8], 0
jle 0x434892
mov eax, dword [0x478bb0]
call fcn.00433f70
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4348ab
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00434580
pop ecx
test al, al
jne 0x4348ab
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