joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401350
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x401362
mov eax, dword [0x47708b]
shl eax, 2
mov dword [0x47708f], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.0046b0d8
pop edx
call fcn.0046b03c
call fcn.0046b118
push 0
call fcn.0046c56c
pop ecx
push 0x477034
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x477093], eax
push 0
jmp fcn.00471704

Function at 0x401918
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffee8
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0xc], eax
lea edx, [ebp - 4]
push edx
push 0x1000
lea ecx, [ebp - 0x1014]
push ecx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x401950
xor eax, eax
jmp 0x4019f2
mov edx, dword [ebp - 4]
shr edx, 2
mov dword [ebp - 8], edx
xor esi, esi
lea ebx, [ebp - 0x1014]
cmp esi, dword [ebp - 8]
jae 0x4019ef
cmp dword [ebx], 0
je 0x4019e2
push esi
mov esi, 0x47720e
lea edi, [ebp - 0x1118]
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
pop esi
mov eax, dword [ebx]
push eax
push 0
push 0x410
call sub.KERNEL32.DLL_OpenProcess
mov edi, eax
test edi, edi
je 0x4019c2
lea eax, [ebp - 0x14]
lea edx, [ebp - 0x10]
push eax
push 4
push edx
push edi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x4019c2
push 0x104
lea ecx, [ebp - 0x1118]
push ecx
mov eax, dword [ebp - 0x10]
push eax
push edi
call sub.PSAPI.DLL_GetModuleBaseNameA
lea edx, [ebp - 0x1118]
push edx
mov ecx, dword [ebp + 8]
push ecx
call fcn.0046b7dc
add esp, 8
test eax, eax
jne 0x4019dc
inc dword [ebp - 0xc]
push edi
call sub.KERNEL32.DLL_CloseHandle
inc esi
add ebx, 4
cmp esi, dword [ebp - 8]
jb 0x40196a
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a6e8
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
mov esi, edx
mov ebx, eax
mov eax, 0x47b350
call fcn.0046b8cc
mov word [ebp - 0x2c], 0x14
xor edx, edx
mov dword [ebp - 0xc], edx
lea edx, [ebp - 0xc]
inc dword [ebp - 0x20]
mov eax, dword [ebx + 0x34]
call fcn.00421028
lea ecx, [ebp - 0xc]
push ecx
xor eax, eax
mov dword [ebp - 8], eax
lea ecx, [ebp - 8]
inc dword [ebp - 0x20]
mov edx, esi
mov eax, ebx
call fcn.0040a4bc
lea eax, [ebp - 8]
xor edx, edx
mov dword [ebp - 0x10], edx
lea ecx, [ebp - 0x10]
inc dword [ebp - 0x20]
pop edx
call fcn.004759f8
lea eax, [ebp - 0x10]
push eax
xor ecx, ecx
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x14]
inc dword [ebp - 0x20]
mov edx, esi
mov eax, ebx
call fcn.0040a304
lea edx, [ebp - 0x14]
xor eax, eax
mov dword [ebp - 4], eax
lea ecx, [ebp - 4]
inc dword [ebp - 0x20]
pop eax
call fcn.004759f8
dec dword [ebp - 0x20]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004759a0
dec dword [ebp - 0x20]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004759a0
dec dword [ebp - 0x20]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004759a0
dec dword [ebp - 0x20]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004759a0
mov word [ebp - 0x2c], 8
cmp dword [ebp - 4], 0
je 0x40a7c0
mov ecx, dword [ebp - 4]
jmp 0x40a7c5
mov ecx, 0x478be4
push ecx
lea eax, [ebx + 0x34]
cmp dword [eax], 0
je 0x40a7d2
mov edx, dword [eax]
jmp 0x40a7d7
mov edx, 0x478be3
push edx
call sub.KERNEL32.DLL_MoveFileA
test eax, eax
jne 0x40a83b
mov word [ebp - 0x2c], 0x20
mov edx, str._MOVEFILE_REPLACE_EXISTING
lea eax, [ebp - 0x18]
call fcn.004758e8
inc dword [ebp - 0x20]
lea edx, [ebp - 0x18]
mov eax, ebx
call fcn.00403f5c
dec dword [ebp - 0x20]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004759a0
push 1
cmp dword [ebp - 4], 0
je 0x40a81e
mov ecx, dword [ebp - 4]
jmp 0x40a823
mov ecx, 0x478c02
push ecx
lea eax, [ebx + 0x34]
cmp dword [eax], 0
je 0x40a830
mov edx, dword [eax]
jmp 0x40a835
mov edx, 0x478c01
push edx
call sub.KERNEL32.DLL_MoveFileExA
dec dword [ebp - 0x20]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004759a0
mov eax, dword [ebp - 0x3c]
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40aee0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
test dl, dl
push ebx
push esi
mov byte [ebp - 8], dl
jle 0x40aef4
call fcn.004760cc
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, 0x47b67c
call fcn.0046b8cc
mov word [ebp - 0x18], 8
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0041b7f4
add dword [ebp - 0xc], 2
mov eax, dword [ebp - 4]
mov edx, esi
add eax, 0x30
call fcn.00475920
inc dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [ecx + 0x34], eax
mov edx, dword [ebp - 4]
mov byte [edx + 0xf], 1
mov ecx, dword [ebp - 0x28]
mov dword fs:[0], ecx
mov eax, dword [ebp - 4]
test bl, bl
je 0x40af51
call fcn.004760d9
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40bcc4
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
test dl, dl
push ebx
push esi
mov byte [ebp - 8], dl
jle 0x40bcd8
call fcn.004760cc
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, 0x47bdf4
call fcn.0046b8cc
mov word [ebp - 0x18], 8
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0041b7f4
add dword [ebp - 0xc], 2
mov edx, dword [ebp - 4]
mov dword [edx + 0x30], esi
xor edx, edx
mov ecx, dword [ebp - 4]
mov byte [ecx + 0xf], 1
mov eax, dword [ebp - 4]
call fcn.0041b9f4
mov ecx, dword [ebp - 0x28]
mov dword fs:[0], ecx
mov eax, dword [ebp - 4]
test bl, bl
je 0x40bd2c
call fcn.004760d9
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41bb5c
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0041b9b4
dec esi
jne 0x41bb7e
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x41cca8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x480eec
cmp dword [edi], 0
jne 0x41cd24
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x480ee8]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x47c4c4
mov ecx, 2
call fcn.00430ee4
mov edx, 0x41cc80
lea eax, [esi + 5]
call fcn.0041cca0
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041cca0
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 0x41ccf9
mov dword [0x480ee8], 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 0x420c38
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00432ee4
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
je 0x420c51
test al, 0x10
jne 0x420c55
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x423cec
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 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x423d25
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00432b24
jmp 0x423d2e
mov eax, ebx
mov edx, esi
call fcn.00432a88
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x423d38
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
test eax, eax
jle 0x423d59
mov al, byte [esp]
jmp 0x423d5b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x4243e0
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x424258
mov eax, dword [0x480c18]
cmp byte [eax], 0
je 0x42444d
mov eax, dword [0x480c1c]
call fcn.00431428
call fcn.00430da0
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.004211a4
push eax
lea eax, [esp + 0x50]
push eax
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 0x424494
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0x424483
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x480ad4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x480dd4]
call fcn.00434150
push eax
call sub.USER32.DLL_LoadStringA
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.USER32.DLL_MessageBoxA
add esp, 0x444
ret

Function at 0x4252c4
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 0x425328
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
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00432c9c
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetACP
mov edx, eax
pop eax
call fcn.00420a0c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42532f
lea eax, [ebp - 0xc]
call fcn.00432a34
ret

Function at 0x430e4c
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 0x430e89
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 0x430ea9
lea eax, [esp + 0x109]
push eax
call sub.KERNEL32.DLL_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00432c9c
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x431010
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.00432a34
test esi, esi
jne 0x431046
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.00432b24
jmp 0x431064
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00430f24
mov edi, eax
test esi, esi
je 0x431064
cmp dword [ebx], 0
je 0x431064
dec esi
jmp 0x43104d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x47c9fc], 0x8088405
inc edx
mov dword [ebx + 0x47c9fc], edx
mul edx
mov eax, edx
pop ebx
ret
Function at 0x431b8c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x47ca04]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x431c24
push SysFreeString
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x431c04
xor eax, eax
push ebp
push 0x431bfd
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 0x431c40
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 0x431c04
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov ax, word [0x47ca04]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x47ca04], ax
mov esp, ebp
pop ebp
ret

Function at 0x432834
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x481210], 0
je 0x432895
cmp word [0x4813e4], 0xd7b2
jne 0x43285d
cmp dword [0x4813ec], 0
jbe 0x43285d
mov eax, 0x4813e0
call dword [0x4813fc]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
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 0x4328bc
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x47ca14], 0
jne 0x4328b1
push 0
push 0x47ca6c
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret

Function at 0x4329e8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00430bd0
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x481211], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4329b0
push eax
push esi
push ebx
call sub.KERNEL32.DLL_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x434344
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 0x434574
push SysFreeString
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x4343c7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x434574
push SysFreeString
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x4343c7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x434590
push SysFreeString
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x434450
xor eax, eax
push ebp
push 0x434449
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.0043418c
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 0x43442e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4345b0
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x43442e
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 0x434450
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 0x43456a
cmp byte [ebp - 0xd], 0
jne 0x434497
cmp byte [ebp - 0x12], 0
je 0x43456a
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4344b0
dec ebx
cmp byte [ebx], 0x2e
je 0x4344bf
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4344af
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x43456a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4344fc
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 0x43456a
cmp byte [ebp - 0xd], 0
je 0x43456a
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 0x43456a
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 0x434ce8
Capabilities:
Accept command line arguments

Disassembly:
sub dword [0x481784], 1
jae 0x434d6e
mov byte [0x47ca00], 2
mov dword [0x4811d4], 0x476306
mov dword [0x4811d8], 0x47631e
mov byte [0x481212], 2
mov dword [0x4811c0], 0x433974
call fcn.00431b5c
test al, al
je 0x434d2b
call fcn.00431b8c
call fcn.00431c50
mov word [0x481218], 0xd7b0
mov word [0x4813e4], 0xd7b0
mov word [0x4815b0], 0xd7b0
call fcn.00433854
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [0x481204], eax
call fcn.0042f86c
mov dword [0x481200], eax
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x4811f8], eax
ret

Function at 0x435784
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 0x4356d0
call sub.USER32.DLL_EnumWindows
ret

Function at 0x4358a8
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 0x435925
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004352f4
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 0x4358cd
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.00434f4c
cmp dword [ebp - 4], 0
je 0x43590f
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.00432ee4
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 0x43592c
lea eax, [ebp - 4]
call fcn.00432a34
ret

Function at 0x43ef2c
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00432a34
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.USER32.DLL_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x43ef7b
push 0x100
lea edx, [ebp - 0x102]
push edx
push eax
call sub.USER32.DLL_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, 0x100
call fcn.00432c9c
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x445228
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 0x44522e
ret

Function at 0x4479e8
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 0x447a39
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x447a20
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x447a10
jmp 0x447a39
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 0x447a21
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44ef04
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44ef54]
test si, 4
je 0x44ef18
or bl, 1
test si, 8
je 0x44ef22
or bl, 4
test si, 1
je 0x44ef2c
or bl, 8
test si, 2
je 0x44ef36
or bl, 0x10
test si, 0x10
je 0x44ef40
or bl, 0x20
push 0x12
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x44ef4f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44ef58
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44ef90]
push 0x10
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x44ef71
or bl, 1
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x44ef80
or bl, 4
test esi, 0x20000000
je 0x44ef8b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4558cc
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4558de
add esp, 0xfffffff0
call fcn.00432068
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041bc24
mov eax, dword [0x480c3c]
mov dword [eax + 4], ebx
mov dword [eax], 0x455c70
mov eax, dword [0x480c40]
mov dword [eax + 4], ebx
mov dword [eax], 0x455c7c
mov eax, ebx
call fcn.00455c88
push 0
call sub.USER32.DLL_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x410dec]
call fcn.00431cec
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x410dec]
call fcn.00431cec
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x410dec]
call fcn.00431cec
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x410dec]
call fcn.00431cec
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x410dec]
call fcn.00431cec
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, 0x452150
push eax
push 0
push 0
mov eax, dword [0x480d9c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x44492c]
call fcn.00445d70
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x44492c]
call fcn.00445d70
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x44492c]
call fcn.00445d70
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.004560a8
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x455f84
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x455f84
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x455f84
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x455a1b
call fcn.004320c0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret