joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403004
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 0x403041
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 0x403061
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404bb4
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x4032dc
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404944
test esi, esi
jne 0x403313
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00404a34
jmp 0x403334
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00403178
mov dword [esp], eax
test esi, esi
je 0x403334
cmp dword [ebx], 0
je 0x403334
dec esi
jmp 0x40331b
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x403a04
Capabilities:
Query or enumerate registry value

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

Function at 0x4047a0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x49304c], 0
je 0x404801
cmp word [0x493220], 0xd7b2
jne 0x4047c9
cmp dword [0x493228], 0
jbe 0x4047c9
mov eax, 0x49321c
call dword [0x493238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x48d06c
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 0x404828
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x48d030], 0
jne 0x40481d
push 0
push 0x48d064
push 0x48d06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4068e4
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 0x40694a
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.00404bb4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004035c8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406934
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406951
lea eax, [ebp - 0x10]
call fcn.00404944
ret

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

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

Function at 0x40a95c
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404e04
push eax
call sub.kernel32.dll_GetFileAttributesA
pop ebx
ret

Function at 0x40a970
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00404e04
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x40a992
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40d898
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 0x40d8d1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404a34
jmp 0x40d8da
mov eax, ebx
mov edx, esi
call fcn.00404998
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40d8e4
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 0x40d905
mov al, byte [esp]
jmp 0x40d907
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40df9c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40de04
mov eax, dword [0x491eb4]
cmp byte [eax], 0
je 0x40e018
mov eax, dword [0x491c90]
call fcn.004033f8
call fcn.00402f58
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.0040af38
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 0x40e060
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40e04e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x491c2c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x493668]
call fcn.00405d10
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 0x40e904
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 0x40e9da
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004049dc
lea eax, [ebp - 8]
call fcn.00404e54
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404e04
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40e9c4
mov eax, ebx
call fcn.00402d64
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40e9bd
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.00404e04
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40e9a7
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40e9ec
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40e9a7
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 0x40e9c4
mov eax, dword [ebp - 0x10]
call fcn.00402d94
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e9e1
lea eax, [ebp - 8]
call fcn.00404944
ret

Function at 0x40f0ec
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 0x40f150
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.00404bb4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040a324
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f157
lea eax, [ebp - 0xc]
call fcn.00404944
ret
Function at 0x420dfc
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, 0x495a0c
cmp dword [esi], 0
jne 0x420ea2
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 [0x495a08]
mov dword [eax], edx
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, 0x48da0c
mov ecx, 2
call fcn.00403138
mov edx, 0x420dd4
mov eax, dword [ebp - 8]
add eax, 5
call fcn.00420df4
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.00420df4
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 0x420e69
mov eax, dword [ebp - 8]
mov dword [0x495a08], 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 0x422480
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 0x422486
ret

Function at 0x424e70
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 0x424ec1
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x424ea8
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x424e98
jmp 0x424ec1
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 0x424ea9
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42ec84
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404df4
xor eax, eax
push ebp
push 0x42edb4
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x42ed87
xor eax, eax
push ebp
push 0x42ed80
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404c04
inc eax
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x42ed55
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x42ed44
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404c04
inc eax
push eax
mov eax, dword [ebp - 4]
call fcn.00404e04
mov edx, dword [ebp - 0xc]
pop ecx
call fcn.00403138
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 8]
push eax
push 1
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42ed4b
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x491bb0]
mov dl, 1
mov eax, dword [0x40910c]
call fcn.0040e120
call fcn.00404338
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42edbb
lea eax, [ebp - 4]
call fcn.00404944
ret
Function at 0x42edc4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff8c
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x42ef75
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x10]
mov edx, 0x1b
mov al, 0x2d
call fcn.00404ff4
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov ecx, 0x42ef8c
call fcn.00404c50
mov eax, ebx
call fcn.00420378
mov edi, eax
dec edi
test edi, edi
jl 0x42ee7c
inc edi
xor esi, esi
mov edx, esi
mov eax, ebx
call fcn.0042034c
mov edx, dword [0x4374f8]
call fcn.00403d30
test al, al
je 0x42ee78
push dword [ebp - 0xc]
mov edx, esi
mov eax, ebx
call fcn.0042034c
lea edx, [ebp - 0x14]
call fcn.00452054
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
mov edx, 3
mov al, 0x20
call fcn.00404ff4
push dword [ebp - 0x18]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404cc4
inc esi
dec edi
jne 0x42ee2a
mov al, byte [0x42ef90]
push eax
lea eax, [ebp - 0x1c]
push eax
xor ecx, ecx
mov edx, 0x42ef9c
mov eax, dword [ebp - 0xc]
call fcn.0040f6c8
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
call fcn.004049dc
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0xb
lea edx, [ebp - 0x70]
mov eax, ebx
call fcn.00452054
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 0xb
mov eax, 0x42ef8c
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x58], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0xb
lea edx, [ebp - 0x74]
mov eax, dword [ebx + 0x2f8]
call fcn.00452054
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0xb
mov eax, 0x42ef8c
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
mov eax, 0x42ef8c
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea edx, [ebp - 0x6c]
mov ecx, 9
mov eax, 0x42efa8
call fcn.0040b658
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42ef7c
lea eax, [ebp - 0x74]
mov edx, 2
call fcn.00404968
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00404968
lea eax, [ebp - 0x14]
call fcn.00404944
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404968
ret
Function at 0x434b14
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00404e04
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x434b6c
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x492010]
mov dl, 1
mov eax, dword [0x4346cc]
call fcn.0040e15c
call fcn.00404338
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004347d4
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x43ed94
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea ebx, [ebp - 4]
xor eax, eax
push ebp
push 0x43ef54
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 8]
mov eax, dword [ebx]
call fcn.00457858
mov eax, dword [ebx]
cmp byte [eax + 0x210], 0
je 0x43ef39
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebx]
sub eax, dword [edx + 0x220]
cmp eax, 0x1f4
jb 0x43edf7
mov eax, dword [ebx]
add eax, 0x21c
call fcn.00404944
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebx]
mov dword [edx + 0x220], eax
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 8
je 0x43eec8
mov eax, dword [ebp - 8]
mov al, byte [eax]
mov edx, dword [0x491fe4]
and eax, 0xff
bt dword [edx], eax
jae 0x43ee8a
push 1
push 0x102
push 0x102
mov eax, dword [ebx]
call fcn.0045891c
push eax
lea eax, [ebp - 0x24]
push eax
call sub.user32.dll_PeekMessageA
test eax, eax
je 0x43ef08
mov eax, dword [ebx]
push dword [eax + 0x21c]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 8]
mov dl, byte [edx]
call fcn.00404b2c
push dword [ebp - 0x28]
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
call fcn.00404b2c
push dword [ebp - 0x2c]
mov eax, dword [ebx]
add eax, 0x21c
mov edx, 3
call fcn.00404cc4
mov eax, dword [ebp - 8]
mov byte [eax], 0
jmp 0x43ef08
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 8]
mov dl, byte [edx]
call fcn.00404b2c
mov edx, dword [ebp - 0x30]
mov eax, dword [ebx]
add eax, 0x21c
call fcn.00404c0c
jmp 0x43ef08
mov eax, dword [ebx]
mov eax, dword [eax + 0x21c]
call fcn.00404c04
mov edx, eax
mov eax, dword [ebx]
add eax, 0x21c
mov ecx, 1
call fcn.00404ea4
mov eax, dword [ebx]
mov eax, dword [eax + 0x21c]
call fcn.00404c04
mov edx, eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x21c]
call fcn.0040ea70
cmp al, 2
je 0x43eea8
mov eax, dword [ebx]
mov eax, dword [eax + 0x21c]
call fcn.00404c04
mov edx, eax
mov eax, dword [ebx]
add eax, 0x21c
mov ecx, 1
call fcn.00404ea4
mov eax, dword [ebx]
mov eax, dword [eax + 0x21c]
call fcn.00404c04
test eax, eax
jle 0x43ef22
push ebp
call fcn.0043ecb0
pop ecx
jmp 0x43ef39
xor edx, edx
mov eax, dword [ebx]
mov ecx, dword [eax]
call dword [ecx + 0xd0]
mov eax, dword [ebx]
mov si, 0xffeb
call fcn.00403da0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43ef5b
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.00404968
ret

Function at 0x43ff18
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 0x43fe64
call sub.user32.dll_EnumWindows
ret
Function at 0x440038
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 0x4400b5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0043fa98
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 0x44005d
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.0043f698
cmp dword [ebp - 4], 0
je 0x44009f
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.00404e04
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 0x4400bc
lea eax, [ebp - 4]
call fcn.00404944
ret

Function at 0x442344
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x442394]
test si, 4
je 0x442358
or bl, 1
test si, 8
je 0x442362
or bl, 4
test si, 1
je 0x44236c
or bl, 8
test si, 2
je 0x442376
or bl, 0x10
test si, 0x10
je 0x442380
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44238f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x442398
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4423d0]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4423b1
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4423c0
or bl, 4
test esi, 0x20000000
je 0x4423cb
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x448a94
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x448aa6
add esp, 0xfffffff0
call fcn.00403ed0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041fcc8
mov eax, dword [0x491c38]
mov dword [eax + 4], ebx
mov dword [eax], 0x448e38
mov eax, dword [0x491c44]
mov dword [eax + 4], ebx
mov dword [eax], 0x448e44
mov eax, ebx
call fcn.00448e50
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4178ac]
call fcn.00403b68
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4178ac]
call fcn.00403b68
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4178ac]
call fcn.00403b68
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4178ac]
call fcn.00403b68
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4178ac]
call fcn.00403b68
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x445268
push eax
push 0
push 0
mov eax, dword [0x491db8]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x421854]
call fcn.00422fec
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x421854]
call fcn.00422fec
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x421854]
call fcn.00422fec
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.004492a0
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x449168
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x449168
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x449168
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x448be3
call fcn.00403f28
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret