joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44899c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405270
mov eax, dword [ebp - 8]
call fcn.00405270
mov eax, dword [ebp - 0xc]
call fcn.00405270
xor eax, eax
push ebp
push 0x448b96
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
push eax
xor ecx, ecx
mov edx, 0x448bb0
mov eax, 0x80000000
call fcn.00422bb4
lea eax, [ebp - 0x14]
call fcn.00446be4
lea eax, [ebp - 0x64]
xor ecx, ecx
mov edx, 0x44
call fcn.00403690
lea eax, [ebp - 0x74]
xor ecx, ecx
mov edx, 0x10
call fcn.00403690
mov dword [ebp - 0x64], 0x44
mov dword [ebp - 0x38], 1
mov word [ebp - 0x34], 3
lea eax, [ebp - 0x1c]
mov ecx, dword [0x4ac704]
mov edx, 0x448bd4
call fcn.004050cc
push 0x448be4
push dword [ebp - 4]
push 0x448bf4
lea edx, [ebp - 0x78]
mov eax, dword [ebp - 8]
call fcn.004488b8
push dword [ebp - 0x78]
push 0x448c08
lea eax, [ebp - 0x80]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
call fcn.004050cc
mov eax, dword [ebp - 0x80]
lea edx, [ebp - 0x7c]
call fcn.004488b8
push dword [ebp - 0x7c]
lea eax, [ebp - 0x10]
mov edx, 6
call fcn.00405140
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, 0x448c18
mov eax, dword [ebp - 0x14]
call fcn.00422970
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x64]
push eax
push 0
push 0
push 0x4000020
push 0
push 0
push 0
mov eax, dword [ebp - 0x18]
call fcn.00405280
push eax
push 0
call sub.kernel32.dll_CreateProcessA
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
je 0x448b4e
xor ebx, ebx
mov eax, dword [ebp - 0x74]
mov esi, eax
push 0x2710
push eax
call sub.user32.dll_WaitForInputIdle
push 0x7d0
call sub.kernel32.dll_Sleep_1
mov eax, dword [ebp - 0x6c]
call fcn.004398c4
test eax, eax
je 0x448b1d
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
call sub.user32.dll_SetWindowPos
push 0xffffffffffffffff
push esi
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0xffffffff
je 0x448b3a
lea eax, [ebp - 0x20]
push eax
push esi
call sub.kernel32.dll_GetExitCodeProcess
cmp eax, 1
sbb ebx, ebx
inc ebx
mov eax, dword [ebp - 0x70]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x74]
push eax
call sub.kernel32.dll_CloseHandle_1
jmp 0x448b6b
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x84]
call fcn.0040d208
mov edx, dword [ebp - 0x84]
mov al, 4
call fcn.004395c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x448b9d
lea eax, [ebp - 0x84]
mov edx, 4
call fcn.00404dc8
lea eax, [ebp - 0x1c]
mov edx, 7
call fcn.00404dc8
ret
Function at 0x4497e4
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x4497ec
push ebx
push esi
mov esi, 0x4ac644
xor eax, eax
push ebp
push 0x449a8c
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [0x4ac8b5], 1
mov eax, dword [0x4ac904]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [0x4ac908]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [0x4ac90c]
mov edx, dword [eax]
call dword [edx + 0x44]
call fcn.00439700
call fcn.00448754
xor eax, eax
push ebp
push 0x449a6a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4acb84]
call fcn.0043d080
xor eax, eax
push ebp
push 0x449a45
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.0043d14c
xor eax, eax
push ebp
push 0x449a17
push dword fs:[eax]
mov dword fs:[eax], esp
mov bl, 1
mov eax, dword [esi]
cmp byte [eax + 0x1e0], 0
je 0x449898
mov al, 1
call fcn.0044971c
mov eax, dword [esi]
cmp byte [eax + 0x1e0], 0
je 0x449898
push ebp
call fcn.00448ff4
pop ecx
and bl, al
mov eax, dword [esi]
cmp byte [eax + 0x1e1], 0
je 0x4498d4
mov eax, dword [esi]
cmp byte [eax + 0x1e0], 0
je 0x4498b9
mov eax, dword [esi]
cmp byte [eax + 0x1be], 0
je 0x4498c0
xor eax, eax
call fcn.0044971c
mov eax, dword [esi]
cmp byte [eax + 0x1e1], 0
je 0x4498d4
push ebp
call fcn.00449604
pop ecx
and bl, al
test bl, bl
jne 0x4498ed
mov eax, dword [esi]
test byte [eax + 0x205], 0x20
je 0x4498ed
mov eax, dword [0x4ac704]
call fcn.00439960
mov eax, dword [esi]
test byte [eax + 0x1c2], 2
je 0x44996a
test bl, bl
je 0x449934
push 0x242040
lea ecx, [ebp - 0x10]
xor edx, edx
mov eax, dword [esi]
call fcn.004238f4
mov eax, dword [ebp - 0x10]
call fcn.00405280
push eax
lea ecx, [ebp - 0x14]
mov dl, 0x5e
mov eax, dword [esi]
call fcn.004238f4
mov eax, dword [ebp - 0x14]
call fcn.00405280
push eax
push 0
call sub.user32.dll_MessageBoxA_1
jmp 0x44996a
push 0x242010
lea ecx, [ebp - 0x18]
xor edx, edx
mov eax, dword [esi]
call fcn.004238f4
mov eax, dword [ebp - 0x18]
call fcn.00405280
push eax
lea ecx, [ebp - 0x1c]
mov dl, 0x5f
mov eax, dword [esi]
call fcn.004238f4
mov eax, dword [ebp - 0x1c]
call fcn.00405280
push eax
push 0
call sub.user32.dll_MessageBoxA_1
mov eax, dword [esi]
test byte [eax + 0x205], 0x40
je 0x4499de
test bl, bl
jne 0x4499de
mov eax, dword [esi]
test byte [eax + 0x1c3], 2
je 0x4499ad
lea eax, [ebp - 0x20]
call fcn.00448de4
mov eax, dword [ebp - 0x20]
call fcn.00405280
push eax
lea eax, [ebp - 0x24]
call fcn.0043cec4
mov eax, dword [ebp - 0x24]
call fcn.00405280
push eax
call sub.kernel32.dll_MoveFileA
jmp 0x4499c3
lea eax, [ebp - 0x28]
call fcn.00448de4
mov eax, dword [ebp - 0x28]
mov edx, dword [0x4ac904]
call fcn.00448cf4
lea eax, [ebp - 0x30]
call fcn.00448de4
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
call fcn.00409ef0
mov eax, dword [ebp - 0x2c]
call fcn.00448e70
mov eax, dword [esi]
test byte [eax + 0x1c3], 2
je 0x4499f9
lea eax, [ebp - 0x34]
call fcn.0043cec4
mov eax, dword [ebp - 0x34]
call fcn.00409dbc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x449a1e
lea eax, [ebp - 0x38]
call fcn.0043cfd4
mov eax, dword [ebp - 0x38]
call fcn.00409dbc
ret
Function at 0x449d2c
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, eax
mov dword [ebp - 4], pe_nt_image_headers32
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x104]
push eax
call sub.advapi32.dll_GetUserNameA
mov eax, ebx
lea edx, [ebp - 0x104]
mov ecx, pe_nt_image_headers32
call fcn.00405014
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44a668
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
xor edx, edx
mov dword [ebp - 0x24], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x44a6dc
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x20], 0x20
lea eax, [ebp - 0x20]
push eax
call sub.kernel32.dll_GlobalMemoryStatus
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x28], eax
fild qword [ebp - 0x2c]
fdiv dword [0x44a6e8]
call fcn.004031b4
push edx
push eax
lea eax, [ebp - 0x24]
call fcn.00409758
mov edx, dword [ebp - 0x24]
mov eax, ebx
mov ecx, 0x44a6f4
call fcn.004050cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44a6e3
lea eax, [ebp - 0x24]
call fcn.00404da4
ret

Function at 0x44a6f8
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
xor edx, edx
mov dword [ebp - 0x24], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x44a76c
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x20], 0x20
lea eax, [ebp - 0x20]
push eax
call sub.kernel32.dll_GlobalMemoryStatus
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x28], eax
fild qword [ebp - 0x2c]
fdiv dword [0x44a778]
call fcn.004031b4
push edx
push eax
lea eax, [ebp - 0x24]
call fcn.00409758
mov edx, dword [ebp - 0x24]
mov eax, ebx
mov ecx, 0x44a784
call fcn.004050cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44a773
lea eax, [ebp - 0x24]
call fcn.00404da4
ret
Function at 0x44f338
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x108], edx
mov dword [ebp - 0x10c], edx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x44f434
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, pe_nt_image_headers32
push ebx
lea eax, [ebp - 0x104]
push eax
call sub.user32.dll_GetFocus
push eax
call sub.user32.dll_GetWindowTextA
test eax, eax
jle 0x44f407
mov eax, esi
lea edx, [ebp - 0x104]
mov ecx, pe_nt_image_headers32
call fcn.00405014
lea eax, [ebp - 0x10c]
call fcn.0044f2e0
mov eax, dword [ebp - 0x10c]
lea edx, [ebp - 0x108]
call fcn.004092f4
mov eax, dword [ebp - 0x108]
lea edx, [ebp - 4]
call fcn.0040956c
mov edx, dword [ebp - 4]
mov eax, 0x44f44c
call fcn.004053c4
test eax, eax
jle 0x44f40e
push 0xfffffffffffffff0
call sub.user32.dll_GetFocus
push eax
call sub.user32.dll_GetWindowLongA
test al, 0x20
je 0x44f40e
mov eax, dword [esi]
call fcn.00405080
mov edi, eax
test edi, edi
jbe 0x44f40e
mov ebx, 1
mov eax, esi
call fcn.004052d8
mov byte [eax + ebx - 1], 0x2a
inc ebx
dec edi
jne 0x44f3f5
jmp 0x44f40e
mov eax, esi
call fcn.00404da4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44f43b
lea eax, [ebp - 0x10c]
mov edx, 2
call fcn.00404dc8
lea eax, [ebp - 4]
call fcn.00404da4
ret

Function at 0x452200
Capabilities:
Terminate thread

Disassembly:
call fcn.00422d08
test al, al
jne 0x45225d
cmp dword [0x4ac6d8], 0
je 0x45225d
mov eax, dword [0x4ac6d8]
call fcn.0041facc
mov eax, dword [0x4ab668]
call fcn.00439c3c
test al, al
jne 0x45223c
push 0xffffffffffffffff
mov eax, dword [0x4ac6d8]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_WaitForSingleObject
jmp 0x45224c
push 1
mov eax, dword [0x4ac6d8]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_TerminateThread
mov eax, dword [0x4ac6d8]
call fcn.00403e0c
xor eax, eax
mov dword [0x4ac6d8], eax
ret
Function at 0x452528
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
lea esi, [ebp - 8]
call fcn.0043a608
mov dword [esi], eax
mov eax, dword [esi]
mov ebx, dword [eax]
dec ebx
jmp 0x452542
dec ebx
test ebx, ebx
jl 0x452551
mov eax, dword [esi]
mov eax, dword [eax + 4]
cmp dword [eax + ebx*8], 0
je 0x452541
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov eax, dword [eax + ebx*8]
test eax, eax
je 0x45259c
mov dword [0x4ac664], eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
mov eax, dword [esi]
mov eax, dword [eax + 4]
lea eax, [eax + ebx*8]
call fcn.004523bc
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
mov eax, dword [eax + 4]
lea eax, [eax + ebx*8]
call fcn.004523bc
mov dword [0x4ac6ac], eax
mov eax, 0x4524e0
mov edx, dword [0x4ac6ac]
mov dword [edx], eax
mov eax, dword [esi]
mov ebx, dword [eax]
dec ebx
jmp 0x4525a4
dec ebx
test ebx, ebx
jl 0x4525b4
mov eax, dword [esi]
mov eax, dword [eax + 4]
cmp dword [eax + ebx*8 + 4], 0
je 0x4525a3
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov eax, dword [eax + ebx*8 + 4]
test eax, eax
je 0x4525f0
mov dword [0x4ac668], eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
mov eax, dword [esi]
mov eax, dword [eax + 4]
lea eax, [eax + ebx*8 + 4]
call fcn.004523bc
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, 0x452518
mov edx, dword [esi]
mov edx, dword [edx + 4]
mov dword [edx + ebx*8 + 4], eax
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x455b14
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0x2001f
push 0
push 0x455ba8
push 0
mov eax, ebx
call fcn.00405280
push eax
mov eax, dword [ebp + 8]
push eax
call sub.advapi32.dll_RegCreateKeyExA
mov ebx, eax
test ebx, ebx
jne 0x455b83
mov eax, esi
call fcn.00405080
inc eax
push eax
mov eax, esi
call fcn.00405280
push eax
push 1
push 0
mov eax, edi
call fcn.00405280
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExA
mov ebx, eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
test ebx, ebx
je 0x455b9e
mov ecx, dword [0x4a9ee4]
mov dl, 1
mov eax, dword [0x453ee8]
call fcn.0040db00
call fcn.00404670
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4

Function at 0x458634
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 0x45863a
ret
Function at 0x45aab8
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 0x45ab09
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x45aaf0
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x45aae0
jmp 0x45ab09
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 0x45aaf1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4668fc
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 0x466848
call sub.user32.dll_EnumWindows
ret

Function at 0x466a1c
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 0x466a99
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0046647c
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 0x466a41
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.0046607c
cmp dword [ebp - 4], 0
je 0x466a83
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.00405280
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 0x466aa0
lea eax, [ebp - 4]
call fcn.00404da4
ret

Function at 0x469f8c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x469fdc]
test si, 4
je 0x469fa0
or bl, 1
test si, 8
je 0x469faa
or bl, 4
test si, 1
je 0x469fb4
or bl, 8
test si, 2
je 0x469fbe
or bl, 0x10
test si, 0x10
je 0x469fc8
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x469fd7
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x469fe0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x46a018]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x469ff9
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x46a008
or bl, 4
test esi, 0x20000000
je 0x46a013
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x4706dc
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4706ee
add esp, 0xfffffff0
call fcn.00404144
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041fb78
mov eax, dword [0x4a9e60]
mov dword [eax + 4], ebx
mov dword [eax], 0x470a80
mov eax, dword [0x4a9e6c]
mov dword [eax + 4], ebx
mov dword [eax], 0x470a8c
mov eax, ebx
call fcn.00470a98
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4176a0]
call fcn.00403ddc
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4176a0]
call fcn.00403ddc
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4176a0]
call fcn.00403ddc
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4176a0]
call fcn.00403ddc
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4176a0]
call fcn.00403ddc
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, 0x46ceb0
push eax
push 0
push 0
mov eax, dword [0x4a9ffc]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x457ae0]
call fcn.004591a0
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x457ae0]
call fcn.004591a0
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x457ae0]
call fcn.004591a0
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00470ee8
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x470db0
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x470db0
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x470db0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x47082b
call fcn.0040419c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x470b94
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x470d3f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x470d20
mov dl, 1
mov eax, dword [0x417abc]
call fcn.00403ddc
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404da4
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x470d0f
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0048c0ec
test al, al
je 0x470d02
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x470d50
lea eax, [ebp - 0x254]
call fcn.0040aaec
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x470d02
xor eax, eax
push ebp
push 0x470cfb
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x470d88
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x470ce4
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00405014
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x470ce4
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00405014
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x470d02
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x470c05
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041b698
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x470d46
lea eax, [ebp - 0x260]
call fcn.00404da4
ret

Function at 0x471688
Capabilities:
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x4ad290]
cmp byte [eax + 0xa5], 0
jne 0x4716f9
cmp dword [0x4ad2a8], 0
jne 0x4716ba
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x471644
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4ad2a8], eax
cmp dword [0x4ad2a4], 0
jne 0x4716d5
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4ad2a4], eax
cmp dword [0x4ad2ac], 0
jne 0x4716f9
push esp
push 0
push 0
push 0x4715e8
push 0x3e8
push 0
call fcn.004074c8
mov dword [0x4ad2ac], eax
pop edx
ret
Function at 0x471d8c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4ad290]
cmp dword [eax + 0x30], 0
je 0x471e36
cmp dword [ebx + 0x94], 0
jne 0x471e30
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x471d1c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x471e30
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x471df6
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x471e30
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00419a64
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x471e05
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x472994
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x4729c9
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404e94
jmp 0x4729d6
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404df8
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x473974
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4739b5
mov eax, esi
call fcn.004878f4
test al, al
je 0x4739b5
mov eax, dword [ebx + 0x84]
call fcn.00487694
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4739b5
push 0
mov eax, dword [ebx + 0x84]
call fcn.00487694
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x4768f4
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.00404da4
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x476943
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00405014
pop ebx
mov esp, ebp
pop ebp
ret