joyce8/EMBER2024-capa huggingface dataset:
Function at 0x38c48
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff5c
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x38e6b
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xa0], eax
push ebp
call fcn.00038c28
pop ecx
xor eax, eax
push ebp
push 0x38e3c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xa0]
push eax
push 0xffffffffffffffff
push 8
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.advapi32.dll_OpenThreadToken
mov ebx, eax
test ebx, ebx
je 0x38ca4
cmp dword [ebp - 0xa0], 0
jne 0x38ccf
cmp dword [ebp - 0xa0], 0
je 0x38cb9
mov eax, dword [ebp - 0xa0]
push eax
call sub.kernel32.dll_CloseHandle_1
lea eax, [ebp - 0xa0]
push eax
push 8
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
mov ebx, eax
test ebx, ebx
je 0x38df5
mov dword [ebp - 0x9c], 0xa
xor eax, eax
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x9c]
call fcn.000126e0
mov esi, eax
lea eax, [ebp - 0x98]
push eax
mov eax, dword [ebp - 0x9c]
push eax
push esi
push 2
mov eax, dword [ebp - 0xa0]
push eax
call fcn.00038b24
mov ebx, eax
test ebx, ebx
jne 0x38d78
cmp dword [ebp - 0x98], 1
jbe 0x38d78
cmp dword [ebp - 0x98], 0x9c4000
ja 0x38d78
mov edx, dword [ebp - 0x9c]
mov eax, esi
call fcn.000126f8
mov eax, dword [ebp - 0x98]
add eax, 0x400
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x9c]
call fcn.000126e0
mov esi, eax
lea eax, [ebp - 0x98]
push eax
mov eax, dword [ebp - 0x9c]
push eax
push esi
push 2
mov eax, dword [ebp - 0xa0]
push eax
call fcn.00038b24
mov ebx, eax
test ebx, ebx
je 0x38de8
lea eax, [ebp - 0xa4]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
push 0x6faa4
call sub.advapi32.dll_AllocateAndInitializeSid
xor ebx, ebx
xor edi, edi
jmp 0x38dbc
mov eax, dword [esi + edi*8 + 4]
push eax
mov eax, dword [ebp - 0xa4]
push eax
call sub.advapi32.dll_EqualSid
mov ebx, eax
inc edi
test ebx, ebx
jne 0x38ddc
mov eax, edi
cdq
push edx
push eax
mov eax, dword [esi]
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x38dd8
cmp eax, dword [esp]
pop edx
pop eax
ja 0x38da8
jmp 0x38ddc
pop edx
pop eax
jg 0x38da8
mov eax, dword [ebp - 0xa4]
push eax
call sub.advapi32.dll_FreeSid
mov edx, dword [ebp - 0x9c]
mov eax, esi
call fcn.000126f8
test ebx, ebx
je 0x38e2a
cmp dword [ebp - 0x90], 6
jb 0x38e2a
xor eax, eax
mov dword [0x6fab8], eax
call fcn.00038b98
cmp dword [0x6fab8], 1
je 0x38e24
cmp dword [0x6fab8], 2
je 0x38e24
xor eax, eax
jmp 0x38e26
mov al, 1
neg al
sbb ebx, ebx
neg ebx
sbb eax, eax
neg eax
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x38e48
cmp dword [ebp - 0xa0], 0
je 0x38e5d
mov eax, dword [ebp - 0xa0]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x38e72
ret
Function at 0x395bc
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x39725
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00013aec
mov eax, dword [ebp - 0x10]
call fcn.00039354
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
jne 0x3960e
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, 1
call fcn.00013f1c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00039aa4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x396e3
xor eax, eax
push ebp
push 0x396dc
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.00039494
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.00039754
test al, al
je 0x396ba
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.00013b3c
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x396ba
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00013e98
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x396b4
mov eax, dword [ebp - 0x14]
call fcn.00013e98
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00013c0c
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.000395bc
dec ebx
cmp ebx, 0xffffffff
jne 0x3966d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x396e3
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00039494
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 0x10]
call fcn.00013e98
push eax
mov dl, byte [ebp - 9]
mov eax, dword [ebp - 4]
call fcn.00039480
push eax
call sub.advapi32.dll_RegDeleteKeyA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x3972c
lea eax, [ebp - 0x3c]
call fcn.00013a54
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00013a78
ret

Function at 0x39754
Capabilities:
Query or enumerate registry key

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
mov eax, edi
xor ecx, ecx
mov edx, 0x1c
call fcn.000129f0
lea eax, [edi + 0x14]
push eax
push 0
lea eax, [edi + 0x10]
push eax
lea eax, [edi + 0xc]
push eax
lea eax, [edi + 8]
push eax
push 0
lea eax, [edi + 4]
push eax
push edi
push 0
push 0
push 0
mov eax, dword [esi + 4]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
test eax, eax
sete bl
push 0x2a
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x397ad
mov eax, dword [edi + 4]
add dword [edi + 4], eax
mov eax, dword [edi + 0xc]
add dword [edi + 0xc], eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x397b4
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x3986c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x40]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.00039754
test al, al
je 0x3984e
mov ecx, dword [ebp - 0x24]
inc ecx
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.00013b3c
mov ebx, dword [ebp - 0x28]
dec ebx
test ebx, ebx
jl 0x3984e
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00013e98
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumKeyExA
mov eax, dword [ebp - 0xc]
call fcn.00013e98
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.00013c0c
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x34]
inc esi
dec ebx
jne 0x39807
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x39873
lea eax, [ebp - 0x2c]
call fcn.00013a54
lea eax, [ebp - 0xc]
call fcn.00013a54
ret

Function at 0x3987c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x39934
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x40]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.00039754
test al, al
je 0x39916
mov ecx, dword [ebp - 0x1c]
inc ecx
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.00013b3c
mov ebx, dword [ebp - 0x20]
dec ebx
test ebx, ebx
jl 0x39916
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00013e98
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumValueA
mov eax, dword [ebp - 0xc]
call fcn.00013e98
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.00013c0c
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x34]
inc esi
dec ebx
jne 0x398cf
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x3993b
lea eax, [ebp - 0x2c]
call fcn.00013a54
lea eax, [ebp - 0xc]
call fcn.00013a54
ret

Function at 0x3b960
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 0x3b966
ret
Function at 0x3dcc4
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 0x3dd15
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x3dcfc
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x3dcec
jmp 0x3dd15
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 0x3dcfd
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x459b4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x72ef0
cmp dword [edi], 0
jne 0x45a30
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x72eec]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x6fdac
mov ecx, 2
call fcn.000127f8
mov edx, 0x4598c
lea eax, [esi + 5]
call fcn.000459ac
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.000459ac
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 0x45a05
mov dword [0x72eec], 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 0x45b4c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x45b9c]
test si, 4
je 0x45b60
or bl, 1
test si, 8
je 0x45b6a
or bl, 4
test si, 1
je 0x45b74
or bl, 8
test si, 2
je 0x45b7e
or bl, 0x10
test si, 0x10
je 0x45b88
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45b97
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x45ba0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x45bd8]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45bb9
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45bc8
or bl, 4
test esi, 0x20000000
je 0x45bd3
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x4be08
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4be1a
add esp, 0xfffffff0
call fcn.0001302c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00030850
mov eax, ebx
call fcn.0004c154
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x30], eax
mov dl, 1
mov eax, dword [0x2a4b0]
call fcn.00012d14
mov dword [ebx + 0x40], eax
mov dl, 1
mov eax, dword [0x2a4b0]
call fcn.00012d14
mov dword [ebx + 0x44], eax
mov dl, 1
mov eax, dword [0x2a4b0]
call fcn.00012d14
mov dword [ebx + 0x48], eax
mov dl, 1
mov eax, dword [0x2a4b0]
call fcn.00012d14
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x2a4b0]
call fcn.00012d14
mov dword [ebx + 0x70], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x34], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x4c]
push eax
mov eax, 0x488f8
push eax
push 0
push 0
mov eax, dword [0x704e8]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x3b0e4]
call fcn.0003c3c0
mov dword [ebx + 0x78], eax
mov dl, 1
mov eax, dword [0x3b0e4]
call fcn.0003c3c0
mov dword [ebx + 0x7c], eax
mov dl, 1
mov eax, dword [0x3b0e4]
call fcn.0003c3c0
mov dword [ebx + 0x74], eax
mov eax, ebx
call fcn.0004c534
mov eax, dword [ebx + 0x78]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4c450
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4c450
mov eax, dword [ebx + 0x74]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4c450
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4bf29
call fcn.00013084
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4c234
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 0x4c3df
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x28], 0
jne 0x4c3c0
mov dl, 1
mov eax, dword [0x2a7b0]
call fcn.00012d14
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.00013a54
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4c3af
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.000654bc
test al, al
je 0x4c3a2
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, 0x4c3f0
lea eax, [ebp - 0x254]
call fcn.00026cb4
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4c3a2
xor eax, eax
push ebp
push 0x4c39b
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 0x4c428
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4c384
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00013c84
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x38]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x30]
jne 0x4c384
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00013c84
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c3a2
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4c2a5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.0002d490
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x28]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c3e6
lea eax, [ebp - 0x260]
call fcn.00013a54
ret

Function at 0x4cc2c
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x72ee0]
cmp byte [eax + 0x95], 0
jne 0x4cc9d
cmp dword [0x72efc], 0
jne 0x4cc5e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4cbe8
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x72efc], eax
cmp dword [0x72ef8], 0
jne 0x4cc79
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x72ef8], eax
cmp dword [0x72f00], 0
jne 0x4cc9d
push esp
push 0
push 0
push 0x4cb8c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x72f00], eax
pop edx
ret
Function at 0x4d27c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x72ee0]
cmp dword [eax + 0x24], 0
je 0x4d31f
cmp dword [ebx + 0x84], 0
jne 0x4d319
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4d20c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x80]
cmp dword [eax + 8], 0
je 0x4d319
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 0x4d2e2
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x80]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4d319
push 0x13
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x80]
call fcn.0002bbd0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4d2f1
inc dword [ebx + 0x84]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4dd2c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x94], 0
je 0x4dd61
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x24]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00013b3c
jmp 0x4dd6b
mov eax, esi
mov edx, dword [ebx + 0x7c]
call fcn.00013aa8
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4eabc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x74]
test esi, esi
je 0x4eaf4
mov eax, esi
call fcn.000613bc
test al, al
je 0x4eaf4
mov eax, dword [ebx + 0x74]
call fcn.000610c0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4eaf4
push 0
mov eax, dword [ebx + 0x74]
call fcn.000610c0
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x51594
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.00013a54
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x515e3
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.00013c84
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x58e94
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 - 0xc]
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
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
cmp dword [0x72f50], 0
sete dl
or al, dl
jne 0x58fd4
mov eax, dword [0x72f54]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x72f50]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x58fa3
inc esi
xor edi, edi
mov edx, edi
mov eax, dword [0x72f50]
call fcn.0002bbd0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x58f9b
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x168], 0
je 0x58f9b
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x4c]
test al, al
je 0x58f9b
mov eax, dword [ebp - 0x14]
call fcn.000610c0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x58f9b
push ebp
call fcn.00058e50
pop ecx
test al, al
jne 0x58f9b
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x90]
cmp eax, dword [ebp - 0x14]
jne 0x58f57
mov eax, dword [ebp - 0x14]
call fcn.0005fa4c
dec eax
jle 0x58f9b
mov byte [ebp - 1], 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov bx, 0xffc1
call fcn.00012f20
cmp byte [ebp - 1], 0
je 0x58f9b
push dword [ebp - 8]
push dword [ebp - 0xc]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x58f9b
mov edx, dword [ebp - 0x14]
mov eax, dword [0x72f54]
call fcn.0005869c
inc edi
dec esi
jne 0x58eea
mov eax, dword [0x72f54]
cmp dword [eax + 8], 0
jle 0x58fbb
mov eax, dword [0x72f54]
call fcn.0005872c
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x58fd4
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00058cb8
pop ecx
test al, al
jne 0x58fd4
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
Function at 0x5ea58
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
mov eax, dword [esi]
cmp eax, 0x84
jg 0x5ea89
je 0x5eae3
sub eax, 7
je 0x5eaaa
dec eax
je 0x5ead4
sub eax, 0x17
je 0x5eb88
jmp 0x5ebc6
add eax, 0xffffff00
sub eax, 9
jb 0x5eb74
add eax, 0xffffff09
sub eax, 0xb
jb 0x5eb3c
jmp 0x5ebc6
mov eax, ebx
call fcn.00045c98
mov edi, eax
test edi, edi
je 0x5ec26
mov edx, ebx
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0xd4]
test al, al
je 0x5ec2f
jmp 0x5ec26
test byte [ebx + 0x44], 0x20
jne 0x5ec2f
jmp 0x5ec26
mov edx, esi
mov eax, ebx
call fcn.0005c124
cmp dword [esi + 0xc], 0xffffffff
jne 0x5ec2f
push 0
lea edx, [ebp - 0x120]
mov eax, dword [esi + 8]
call fcn.000175fc
lea edx, [ebp - 0x120]
lea ecx, [ebp - 0x118]
mov eax, ebx
call fcn.0005ac70
lea edx, [ebp - 0x118]
xor ecx, ecx
mov eax, ebx
call fcn.0005e930
test eax, eax
je 0x5ec2f
mov dword [esi + 0xc], 1
jmp 0x5ec2f
mov edx, esi
mov eax, ebx
call fcn.0005e9c4
test al, al
je 0x5ec26
cmp dword [esi + 0xc], 0
jne 0x5ec2f
mov eax, dword [esi + 8]
push eax
mov eax, dword [esi + 4]
push eax
mov eax, dword [esi]
push eax
mov eax, ebx
call fcn.000610c0
push eax
call sub.user32.dll_DefWindowProcA
jmp 0x5ec2f
mov eax, ebx
call fcn.0005b7c0
test al, al
jne 0x5ec2f
jmp 0x5ec26
mov eax, ebx
call fcn.000610c0
mov edi, eax
call sub.user32.dll_GetCapture
cmp edi, eax
jne 0x5ec26
cmp dword [0x70098], 0
je 0x5ec26
mov eax, dword [0x70098]
cmp ebx, dword [eax + 0x24]
jne 0x5ec26
push 0
xor ecx, ecx
mov edx, 0x1f
mov eax, dword [0x70098]
call fcn.0005c058
jmp 0x5ec26
mov eax, dword [0x72f18]
cmp byte [eax + 0x20], 0
je 0x5ec26
mov eax, dword [0x72f18]
cmp dword [eax + 0x1c], 0
je 0x5ec26
mov eax, dword [esi]
mov edx, dword [0x72f18]
cmp eax, dword [edx + 0x1c]
jne 0x5ec26
lea eax, [ebp - 0x110]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x110]
call fcn.00045bdc
mov byte [ebp - 0xc], al
mov ax, word [esi + 4]
mov word [ebp - 0xa], ax
mov eax, dword [esi + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, ebx
mov bx, 0xffb7
call fcn.00012f20
jmp 0x5ec2f
mov edx, esi
mov eax, ebx
call fcn.0005c124
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret