joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409950
Capabilities:
Access peb ldr_data
Get ntdll base address
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x431ee4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi + 4], 0x437650
xor ebx, ebx
mov dword [esi + 8], 0x437654
mov dword [esp + 0x14], ebx
mov dword [esi + 0xc], 0x437660
mov dword [esi + 0x10], 0x437658
mov eax, dword [esp + 0x1c]
push eax
mov byte [esp + 0x18], 2
mov dword [esi], 0x4376a8
mov dword [esi + 4], 0x4376a4
mov dword [esi + 8], 0x4376a0
mov dword [esi + 0xc], 0x437694
mov dword [esi + 0x10], 0x43768c
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
call fcn.00405292
add esp, 4
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], ebx
mov byte [esi + 0x24], bl
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
push 1
lea ecx, [esi + 0x38]
mov byte [esp + 0x18], 3
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
call fcn.00411aa8
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
lea ecx, [esi + 0x64]
mov byte [esp + 0x14], 4
mov byte [esi + 0x60], bl
call fcn.0040f847
push ebx
push ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
push 1
mov dword [esi + 0x70], ebx
push ebx
mov dword [esi + 0x74], ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x70], eax
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x409a60
Capabilities:
Shutdown system

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x431f00
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push str.stopping
push 0x44435c
mov esi, ecx
call fcn.00402670
mov eax, dword [esi + 0x50]
xor ebx, ebx
add esp, 8
cmp eax, ebx
je 0x409b2c
mov eax, dword [0x444310]
push edi
mov ecx, 0x444310
call dword [eax + 0x10]
mov edi, eax
mov dword [esp + 0xc], edi
push str.Logoff
push edi
mov dword [esp + 0x28], ebx
call fcn.004247ab
add esp, 8
test eax, eax
jne 0x409acf
push ebx
push ebx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x409b1a
push str.Lock
push edi
call fcn.004247ab
add esp, 8
test eax, eax
jne 0x409b1a
push str.LockWorkStation
push str.user32.dll
lea ecx, [esp + 0x18]
call fcn.0040ce30
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov byte [esp + 0x20], 1
je 0x409b05
call eax
jmp 0x409b0d
push ebx
push ebx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], bl
call fcn.0040c600
push edi
mov dword [esp + 0x24], 0xffffffff
call fcn.00424215
add esp, 4
pop edi
mov ecx, dword [esi + 0x50]
cmp ecx, ebx
je 0x409b39
mov edx, dword [ecx]
push 1
call dword [edx]
mov ecx, dword [esi + 0x18]
cmp ecx, ebx
mov dword [esi + 0x50], ebx
je 0x409b4a
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov eax, dword [esi + 0x20]
cmp eax, ebx
mov dword [esi + 0x18], ebx
je 0x409b69
cmp byte [esi + 0x24], bl
push eax
je 0x409b63
push ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
jmp 0x409b69
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [esi + 0x14]
cmp ecx, ebx
mov dword [esi + 0x20], ebx
je 0x409b79
mov edx, dword [ecx]
push ebx
call dword [edx + 0xc]
push str.stopped
push 0x44435c
mov dword [esi + 0x14], ebx
call fcn.00402670
mov esi, dword [esi + 0x74]
add esp, 8
cmp esi, ebx
je 0x409b97
mov byte [esi], bl
mov ecx, dword [esp + 0x14]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x40cf50
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x4324c6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x214
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x14], edi
mov dword [edi], 0
push 0x104
mov dword [esp + 0x230], 0
call fcn.0042479d
add esp, 4
mov ebp, eax
push 0
mov dword [esp + 0x1c], ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x104
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40cfb5
mov byte [ebp], al
mov ebx, dword [esp + 0x234]
test ebx, ebx
mov byte [esp + 0x22c], 1
jne 0x40cfca
mov ebx, ebp
lea eax, [esp + 0x10]
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
jne 0x40cfff
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetVersionInfoSize_failed
lea ecx, [esp + 0x24]
call fcn.004080dc
push 0x43cf90
lea ecx, [esp + 0x20]
push ecx
call fcn.0042409a
push esi
call fcn.0042479d
mov edx, dword [esp + 0x14]
add esp, 4
push eax
push esi
push edx
push ebx
mov dword [edi], eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x40d03f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetVersionInfo_failed
lea ecx, [esp + 0x24]
call fcn.004080dc
push 0x43cf90
lea eax, [esp + 0x20]
push eax
call fcn.0042409a
push ebp
mov byte [esp + 0x230], 0
call fcn.00424033
mov ecx, dword [esp + 0x228]
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x220
ret 4

Function at 0x40d47f
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
push esi
mov esi, ecx
cmp dword [esi + 0x10], 0xffffffff
lea ecx, [ebp - 8]
je 0x40d4ba
mov eax, dword [esi + 0x10]
cdq
mov ebx, 0x3e8
idiv ebx
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
imul edx, edx, 0x3e8
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
jmp 0x40d4bc
xor ecx, ecx
mov eax, dword [esi + 0xc]
push ecx
push 0
lea ecx, [ebp - 0x10c]
push ecx
mov dword [ebp - 0x108], eax
push 0
inc eax
push eax
mov dword [ebp - 0x10c], 1
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jge 0x40d4fa
call ebx
cmp eax, 0x2714
je 0x40d492
call ebx
push eax
push str.select
jmp 0x40d52f
je 0x40d54b
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0xc]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jge 0x40d568
call ebx
cmp eax, 0x2714
je 0x40d4fc
call ebx
cmp eax, 0x2733
je 0x40d492
call ebx
push eax
push str.write
lea ecx, [ebp - 0x210]
call fcn.004080dc
push 0x43cf90
lea eax, [ebp - 0x210]
push eax
call fcn.0042409a
push str.Timed_out
lea ecx, [ebp - 0x20c]
call fcn.0040d3a1
push 0x43e8ac
lea eax, [ebp - 0x20c]
jmp 0x40d545
pop esi
pop ebx
leave
ret 8
Function at 0x40d7d8
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
push esi
push edi
mov edi, ecx
cmp byte [edi + 0x1c], 0
je 0x40d7f4
lea esi, [ebp - 0x10]
call fcn.0040d679
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp byte [ebp + 0x10], 0
lea ecx, [ebp - 8]
jne 0x40d80d
and dword [ebp - 4], 0
and dword [ebp - 8], 0
jmp 0x40d82d
mov eax, dword [edi + 0x14]
cmp eax, 0xffffffff
je 0x40d82b
cdq
mov ebx, 0x3e8
idiv ebx
imul edx, edx, 0x3e8
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
jmp 0x40d82d
xor ecx, ecx
mov eax, dword [edi + 0xc]
push ecx
push 0
push 0
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x110], eax
push ecx
inc eax
push eax
mov dword [ebp - 0x114], 1
call dword [sym.imp.WS2_32.dll_select]
mov ebx, eax
test ebx, ebx
jge 0x40d865
call esi
cmp eax, 0x2714
je 0x40d7fa
test ebx, ebx
jg 0x40d88d
test ebx, ebx
jl 0x40d952
cmp byte [ebp + 0x10], 0
je 0x40d95f
mov ecx, dword [edi + 0x18]
test ecx, ecx
je 0x40d963
mov eax, dword [ecx]
call dword [eax]
jmp 0x40d7fa
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0xc]
call dword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
test ebx, ebx
mov dword [ebp + 0x10], ebx
jge 0x40d8d3
call esi
cmp eax, 0x2714
je 0x40d88d
call esi
push eax
push str.read
lea ecx, [ebp - 0x218]
call fcn.004080dc
push 0x43cf90
lea eax, [ebp - 0x218]
jmp 0x40d97e
jne 0x40d8ef
push str.End_of_stream
lea ecx, [ebp - 0x214]
call fcn.0040d704
push 0x43cda4
jmp 0x40d978
cmp byte [edi + 0x1c], 0
je 0x40d949
lea esi, [ebp - 8]
call fcn.0040d679
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
push 0x64
cdq
pop esi
idiv esi
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x10]
mov esi, 0x3e8
imul ecx, ecx, 0x2710
add ecx, eax
mov eax, ebx
shl eax, 3
cdq
idiv esi
mov esi, eax
imul eax, eax, 0x3e8
cmp ecx, eax
jle 0x40d932
mov ecx, eax
mov eax, esi
push 4
cdq
pop ebx
idiv ebx
cmp ecx, eax
jge 0x40d940
mov ecx, eax
add dword [edi + 0x20], ecx
add dword [edi + 0x24], esi
mov ebx, dword [ebp + 0x10]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0xc
call esi
push eax
push str.select
jmp 0x40d8b8
xor eax, eax
jmp 0x40d94b
push str.Timed_out
lea ecx, [ebp - 0x214]
call fcn.0040d3a1
push 0x43e8ac
lea eax, [ebp - 0x214]
push eax
call fcn.0042409a
int3

Function at 0x40dcb0
Capabilities:
Delete registry key

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [ecx]
sub esp, 0x208
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x40dce6
push eax
push str.RegDeleteKey
lea ecx, [esp + 8]
call fcn.004080dc
push 0x43cf90
lea edx, [esp + 4]
push edx
call fcn.0042409a
add esp, 0x208
ret 4

Function at 0x40dcf0
Capabilities:
Delete registry value

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [ecx]
sub esp, 0x208
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x40dd26
push eax
push str.RegDeleteValue
lea ecx, [esp + 8]
call fcn.004080dc
push 0x43cf90
lea edx, [esp + 4]
push edx
call fcn.0042409a
add esp, 0x208
ret 4
Function at 0x40dd90
Capabilities:
Set registry value

Disassembly:
sub esp, 0x208
push esi
mov esi, dword [esp + 0x214]
mov eax, esi
push edi
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40dda4
mov ecx, dword [ecx]
sub eax, edi
inc eax
push eax
mov eax, dword [esp + 0x218]
push esi
push 2
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
pop edi
pop esi
je 0x40dde9
push eax
push str.setExpandString
lea ecx, [esp + 8]
call fcn.004080dc
push 0x43cf90
lea edx, [esp + 4]
push edx
call fcn.0042409a
add esp, 0x208
ret 8

Function at 0x40de00
Capabilities:
Set registry value

Disassembly:
sub esp, 0x208
push esi
mov esi, dword [esp + 0x214]
mov eax, esi
push edi
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40de14
mov ecx, dword [ecx]
sub eax, edi
inc eax
push eax
mov eax, dword [esp + 0x218]
push esi
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
pop edi
pop esi
je 0x40de59
push eax
push str.setString
lea ecx, [esp + 8]
call fcn.004080dc
push 0x43cf90
lea edx, [esp + 4]
push edx
call fcn.0042409a
add esp, 0x208
ret 8

Function at 0x40de70
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x208
push 4
lea eax, [esp + 0x214]
push eax
mov eax, dword [ecx]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x40deb4
push eax
push str.setInt
lea ecx, [esp + 8]
call fcn.004080dc
push 0x43cf90
lea ecx, [esp + 4]
push ecx
call fcn.0042409a
add esp, 0x208
ret 8

Function at 0x40dec0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push esi
push 0
push 0
push 0
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov esi, ecx
mov ecx, dword [esi]
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x40df0d
push eax
push str.RegQueryInfoKey
lea ecx, [esp + 0x14]
call fcn.004080dc
push 0x43cf90
lea edx, [esp + 0x10]
push edx
call fcn.0042409a
mov eax, dword [esp + 8]
mov ecx, dword [esi + 0xc]
inc eax
cmp ecx, eax
jae 0x40df34
mov dword [esi + 0xc], eax
mov eax, dword [esi + 8]
push eax
call fcn.00424215
mov ecx, dword [esi + 0xc]
push ecx
call fcn.0042421a
add esp, 8
mov dword [esi + 8], eax
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 8]
push 0
push 0
push 0
push 0
lea eax, [esp + 0x14]
push eax
mov eax, dword [esi]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x22c]
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
jne 0x40df70
xor eax, eax
pop esi
add esp, 0x210
ret 4
test eax, eax
je 0x40df92
push eax
push str.RegEnumValue
lea ecx, [esp + 0x14]
call fcn.004080dc
push 0x43cf90
lea ecx, [esp + 0x10]
push ecx
call fcn.0042409a
mov eax, dword [esi + 8]
pop esi
add esp, 0x210
ret 4
Function at 0x40e260
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x43255b
push eax
mov dword fs:[0], esp
sub esp, 0x420
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push esi
push edi
mov edi, dword [esp + 0x43c]
lea eax, [esp + 0xc]
push eax
push 0
mov esi, ecx
mov edx, dword [esi]
lea ecx, [esp + 0x18]
push ecx
push 0
push edi
push edx
call ebp
test eax, eax
je 0x40e2c3
push eax
push str.get_registry_value_length
lea ecx, [esp + 0x28]
call fcn.004080dc
push 0x43cf90
lea eax, [esp + 0x24]
push eax
call fcn.0042409a
mov ecx, dword [esp + 0xc]
push ebx
push ecx
call fcn.0042479d
mov ebx, eax
add esp, 4
mov dword [esp + 0x20], ebx
mov ecx, dword [esi]
lea edx, [esp + 0x10]
push edx
push ebx
lea eax, [esp + 0x1c]
push eax
push 0
push edi
push ecx
mov dword [esp + 0x450], 0
call ebp
test eax, eax
je 0x40e317
push eax
push str.get_registry_value
lea ecx, [esp + 0x2c]
call fcn.004080dc
push 0x43cf90
lea edx, [esp + 0x28]
push edx
call fcn.0042409a
mov eax, dword [esp + 0x14]
dec eax
je 0x40e399
sub eax, 2
je 0x40e37a
dec eax
je 0x40e34e
push str.rdr::Exception
push str.unsupported_registry_type
lea ecx, [esp + 0x234]
call fcn.00401120
push 0x43cf08
lea eax, [esp + 0x230]
push eax
call fcn.0042409a
push 0x10
call fcn.0042479d
mov ecx, dword [ebx]
push ecx
mov esi, eax
push 0x4388d8
push esi
call fcn.00424814
push 0
call fcn.00424033
push ebx
call fcn.00424033
add esp, 0x18
jmp 0x40e3fb
mov edx, dword [esp + 0x10]
push edx
push ebx
call fcn.0040dc05
push 0
mov esi, eax
call fcn.00424033
push ebx
call fcn.00424033
add esp, 0x10
jmp 0x40e3fb
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40e3e6
mov dword [esp + 0x18], eax
inc eax
push eax
lea ecx, [esp + 0x20]
call fcn.00402620
mov ecx, dword [esp + 0x10]
mov ebp, dword [esp + 0x1c]
mov eax, ecx
shr ecx, 2
mov esi, ebx
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x18]
push 0
mov byte [ecx + ebp], 0
call fcn.00424033
push ebx
call fcn.00424033
add esp, 8
mov eax, ebp
jmp 0x40e3fd
push 0x43656b
call fcn.00405292
push ebx
mov esi, eax
call fcn.00424033
add esp, 8
mov eax, esi
mov ecx, dword [esp + 0x430]
pop ebx
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x42c
ret 4

Function at 0x40e8b0
Capabilities:
Log keystrokes

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
mov edi, dword [esp + 0x14]
movzx esi, bl
push edi
push esi
push str.vkCode_0x_x_flags_0x_x
push 0x44466c
call fcn.00402670
add esp, 0x10
push 0
push edi
push 0
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
push eax
push ebx
call dword [sym.imp.USER32.dll_keybd_event]
pop edi
pop esi
pop ebx
ret
Function at 0x40e8f0
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi]
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ah, ah
js 0x40e941
mov al, byte [esi]
push ebx
push edi
mov edi, dword [esi + 4]
movzx ebx, al
push edi
push ebx
push str.vkCode_0x_x_flags_0x_x
push 0x44466c
mov byte [esp + 0x1c], al
call fcn.00402670
add esp, 0x10
push 0
push edi
push 0
push ebx
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov ecx, dword [esp + 0x14]
push eax
push ecx
call dword [sym.imp.USER32.dll_keybd_event]
pop edi
mov byte [esi + 8], 1
pop ebx
pop esi
pop ecx
ret

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

Disassembly:
push ecx
push edi
mov edi, ecx
mov eax, dword [edi]
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ah, ah
jns 0x40e9a4
mov al, byte [edi]
push ebx
push esi
mov esi, dword [edi + 4]
movzx ebx, al
or esi, 2
push esi
push ebx
push str.vkCode_0x_x_flags_0x_x
push 0x44466c
mov byte [esp + 0x1c], al
call fcn.00402670
add esp, 0x10
push 0
push esi
push 0
push ebx
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov ecx, dword [esp + 0x14]
push eax
push ecx
call dword [sym.imp.USER32.dll_keybd_event]
pop esi
mov byte [edi + 9], 1
pop ebx
pop edi
pop ecx
ret

Function at 0x40e9b0
Capabilities:
Log keystrokes

Disassembly:
push ecx
mov al, byte [ecx + 8]
test al, al
je 0x40e9f9
push esi
mov esi, dword [ecx + 4]
mov cl, byte [ecx]
push edi
movzx edi, cl
or esi, 2
push esi
push edi
push str.vkCode_0x_x_flags_0x_x
push 0x44466c
mov byte [esp + 0x18], cl
call fcn.00402670
add esp, 0x10
push 0
push esi
push 0
push edi
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
push eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_keybd_event]
pop edi
pop esi
pop ecx
ret
mov al, byte [ecx + 9]
test al, al
je 0x40ea11
mov edx, dword [ecx + 4]
xor eax, eax
mov al, byte [ecx]
push edx
push eax
call fcn.0040e8b0
add esp, 8
pop ecx
ret
Function at 0x40ea20
Capabilities:
Access peb ldr_data
Log keystrokes

Disassembly:
push 0xffffffffffffffff
push 0x432598
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x24], 0x11
mov dword [esp + 0x28], ebx
mov byte [esp + 0x2c], bl
mov byte [esp + 0x2d], bl
mov dword [esp + 0x38], ebx
mov dword [esp + 0x18], 0x12
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x20], bl
mov byte [esp + 0x21], bl
mov dword [esp + 0xc], 0x10
mov dword [esp + 0x10], ebx
mov byte [esp + 0x14], bl
mov byte [esp + 0x15], bl
cmp byte [esp + 0x48], bl
mov byte [esp + 0x38], 2
je 0x40eabf
test byte [esp + 0x44], 2
je 0x40ea98
lea ecx, [esp + 0x24]
call fcn.0040e8f0
test byte [esp + 0x44], 4
je 0x40eaa8
lea ecx, [esp + 0x18]
call fcn.0040e8f0
test byte [esp + 0x44], 1
lea ecx, [esp + 0xc]
je 0x40eaba
call fcn.0040e8f0
jmp 0x40eabf
call fcn.0040e950
mov cl, byte [esp + 0x48]
movzx edi, byte [esp + 0x40]
xor eax, eax
cmp cl, bl
setne al
dec eax
and eax, 2
mov esi, eax
push esi
push edi
push str.vkCode_0x_x_flags_0x_x
push 0x44466c
call fcn.00402670
add esp, 0x10
push ebx
push esi
push ebx
push edi
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov ecx, dword [esp + 0x48]
push eax
push ecx
call dword [sym.imp.USER32.dll_keybd_event]
lea ecx, [esp + 0xc]
mov byte [esp + 0x38], 1
call fcn.0040e9b0
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], bl
call fcn.0040e9b0
lea ecx, [esp + 0x24]
mov dword [esp + 0x38], 0xffffffff
call fcn.0040e9b0
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret
Function at 0x40f300
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4325f7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov dword [esp + 0x1c], ebp
call fcn.0040eb40
mov dword [ebp + 4], eax
mov byte [eax + 0x15], 1
mov eax, dword [ebp + 4]
mov dword [eax + 4], eax
mov eax, dword [ebp + 4]
mov dword [eax], eax
mov eax, dword [ebp + 4]
xor edi, edi
mov dword [eax + 8], eax
mov dword [ebp + 8], edi
lea esi, [ebp + 0xc]
mov ecx, esi
mov dword [esp + 0x12c], edi
call fcn.0040eb40
mov dword [esi + 4], eax
mov byte [eax + 0x15], 1
mov eax, dword [esi + 4]
mov dword [eax + 4], eax
mov eax, dword [esi + 4]
mov dword [eax], eax
mov eax, dword [esi + 4]
mov dword [eax + 8], eax
mov dword [esi + 8], edi
lea ebx, [ebp + 0x18]
mov dword [ebx + 4], edi
mov dword [ebx + 8], edi
mov dword [ebx + 0xc], edi
mov al, byte [0x4442fd]
mov byte [esp + 0x12c], 2
mov byte [0x444660], al
mov edi, 0x442358
mov dword [esp + 0x14], 0x59
push edi
mov ecx, ebp
call fcn.0040f280
mov cl, byte [edi + 4]
mov byte [eax], cl
push edi
mov ecx, esi
call fcn.0040f280
mov dl, byte [edi + 5]
mov byte [eax], dl
mov eax, dword [esp + 0x14]
add edi, 8
dec eax
mov dword [esp + 0x14], eax
jne 0x40f3a4
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x20]
xor esi, esi
rep stosd dword es:[edi], eax
mov dword [esp + 0x18], esi
nop
xor eax, eax
mov al, byte [esi + 0x442690]
lea esi, [esi + 0x442690]
push eax
call dword [sym.imp.USER32.dll_VkKeyScanA]
cmp ax, 0xffff
je 0x40f4a3
mov ecx, eax
shr ecx, 8
mov dl, cl
shl dl, 7
mov byte [esp + 0x30], dl
mov dl, cl
and cl, 0xfc
push 0
shl cl, 5
movzx edi, al
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x3a], cl
lea ecx, [esp + 0x28]
push ecx
and dl, 0xfe
push 0
shl dl, 6
push edi
mov byte [esp + 0x45], dl
call dword [sym.imp.USER32.dll_ToAscii]
test eax, eax
jge 0x40f4a3
movzx eax, byte [esi]
push eax
push eax
push str.Found_dead_key_0x_x__c
push 0x44466c
call fcn.00402670
mov eax, dword [ebx + 4]
add esp, 0x10
test eax, eax
jne 0x40f461
xor edx, edx
jmp 0x40f466
mov edx, dword [ebx + 8]
sub edx, eax
test eax, eax
je 0x40f480
mov ecx, dword [ebx + 0xc]
sub ecx, eax
cmp edx, ecx
jae 0x40f480
mov eax, dword [ebx + 8]
mov dl, byte [esi]
mov byte [eax], dl
inc eax
mov dword [ebx + 8], eax
jmp 0x40f48e
mov eax, dword [ebx + 8]
push esi
push 1
push eax
mov ecx, ebx
call fcn.0040ef40
push 0
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x28]
push ecx
push 0
push edi
call dword [sym.imp.USER32.dll_ToAscii]
mov esi, dword [esp + 0x18]
inc esi
cmp esi, 7
mov dword [esp + 0x18], esi
jb 0x40f3e0
mov ecx, dword [esp + 0x124]
pop edi
mov eax, ebp
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4105c0
Capabilities:
Enumerate gui resources

Disassembly:
push 0xffffffffffffffff
push 0x432708
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0040f847
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0
call fcn.0040f847
cmp dword [esi], 0
mov dword [esp + 0x14], 1
je 0x41062c
mov ecx, 0x444694
call fcn.004058f3
test al, al
je 0x41062c
lea eax, [esp + 4]
push eax
push 0x4105a0
call dword [sym.imp.USER32.dll_EnumWindows]
mov ecx, dword [esi]
mov edx, dword [ecx]
lea eax, [esp + 4]
push eax
call dword [edx + 4]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 2
call fcn.0040f875
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0040f875
mov ecx, dword [esp + 0xc]
xor al, al
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret