joyce8/EMBER2024-capa huggingface dataset:
Function at 0x547840
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov dword [ebx], fcn.00547908
mov dword [ebx + 4], eax
mov edx, dword [eax + 0x16]
mov dword [ebx + 8], edx
xor edx, edx
mov dword [ebx + 0xc], ecx
xor ecx, ecx
mov dword [ebx + 0x10], edx
xor edx, edx
mov dword [ebx + 0x14], ecx
xor ecx, ecx
mov dword [ebx + 0x18], edx
xor edx, edx
mov dword [ebx + 0x1c], ecx
xor ecx, ecx
mov dword [ebx + 0x20], edx
xor edx, edx
mov dword [ebx + 0x24], ecx
xor ecx, ecx
mov dword [ebx + 0x28], edx
xor edx, edx
mov dword [ebx + 0x2c], ecx
mov dword [ebx + 0x30], edx
xor ecx, ecx
xor edx, edx
mov dword [ebx + 0x34], ecx
mov dword [ebx + 0x38], edx
mov byte [ebx + 0x3c], 0
mov edx, dword [eax + 8]
movzx ecx, word [edx + 0x175]
movzx edx, word [edx + 0x173]
imul ecx, edx
mov dword [ebx + 0x3d], ecx
xor ecx, ecx
mov dword [ebx + 0x41], ecx
xor edx, edx
mov dword [ebx + 0x45], edx
xor ecx, ecx
mov dword [ebx + 0x49], ecx
xor edx, edx
mov dword [ebx + 0x4d], edx
xor ecx, ecx
mov byte [ebx + 0x51], 0
mov dword [ebx + 0x52], ecx
mov dword [ebx + 0x56], 0xffffffff
mov edx, dword [eax + 0x1a]
mov dword [ebx + 0x5a], edx
mov dword [ebx + 0x5e], edx
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0x62], eax
test eax, eax
jne 0x547902
mov esi, 1
mov eax, dword [ebx + 4]
mov edx, dword [eax + 0x16]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x78]
pop ecx
cmp al, 3
je 0x5478ff
inc esi
mov dword [ebx + 0x62], esi
mov eax, ebx
pop esi
pop ebx
pop ebp
ret
Function at 0x55aaac
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call sub.KERNEL32.DLL_GetFileSize
xor edx, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0
jne 0x55aaeb
cmp dword [ebp - 0xc], 0xffffffff
jne 0x55aaeb
call sub.KERNEL32.DLL_GetLastError
test eax, eax
je 0x55aaeb
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
jmp 0x55aafa
mov eax, dword [ebp - 4]
xor edx, edx
mov edx, eax
xor eax, eax
or dword [ebp - 0xc], eax
or dword [ebp - 8], edx
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x55ab04
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0055aa7c
add esp, 0xc
push ebx
call sub.KERNEL32.DLL_SetEndOfFile
pop ebx
pop ebp
ret

Function at 0x55ab24
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor edx, edx
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 4], edx
test eax, eax
mov ebx, 1
je 0x55ab68
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x55ab68
call sub.KERNEL32.DLL_GetLastError
add eax, 0xffffffda
sub eax, 2
jb 0x55ab68
sub eax, 0x48
je 0x55ab68
xor ebx, ebx
test esi, esi
je 0x55ab71
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x55ab78
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor edx, edx
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 4], edx
test eax, eax
mov ebx, 1
je 0x55abbc
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.KERNEL32.DLL_WriteFile
test eax, eax
jne 0x55abbc
call sub.KERNEL32.DLL_GetLastError
add eax, 0xffffffda
sub eax, 2
jb 0x55abbc
sub eax, 0x48
je 0x55abbc
xor ebx, ebx
test esi, esi
je 0x55abc5
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x55ac24
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe58
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
xor esi, esi
lea eax, [ebp - 4]
push eax
push ebx
call fcn.0055a940
add esp, 8
mov ebx, eax
push ebx
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
je 0x55ac62
test edi, edi
je 0x55ac58
mov dword [edi], eax
mov esi, 1
jmp 0x55ad00
test ebx, ebx
je 0x55ac6b
cmp byte [ebx], 0
jne 0x55ac72
mov ebx, 0x6b03f3
jmp 0x55acbf
mov byte [ebp - 7], 0
push 0x64
push ebx
lea eax, [ebp - 0x68]
push eax
call fcn.00614bc4
add esp, 0xc
cmp byte [ebp - 7], 0
jne 0x55acbd
lea edx, [ebp - 0x68]
push edx
call fcn.006148a0
pop ecx
movsx ecx, byte [ebp + eax - 0x69]
cmp ecx, 0x5c
jne 0x55aca6
mov eax, 0x6b03f5
jmp 0x55acab
mov eax, 0x6b03f7
push eax
lea edx, [ebp - 0x68]
push edx
call fcn.00614794
add esp, 8
lea ebx, [ebp - 0x68]
jmp 0x55acbf
xor ebx, ebx
test ebx, ebx
je 0x55ad00
lea eax, [ebp - 0x1a8]
push eax
push ebx
call sub.KERNEL32.DLL_FindFirstFileA
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x55acd9
xor ebx, ebx
test ebx, ebx
jne 0x55ace7
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x12
jne 0x55acf6
test edi, edi
je 0x55acf1
mov dword [edi], 0x10
mov esi, 1
test ebx, ebx
je 0x55ad00
push ebx
call sub.KERNEL32.DLL_FindClose
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x55ad0c
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp - 4]
push edx
push eax
call fcn.0055a940
add esp, 8
push dword [ebp + 0xc]
push eax
call sub.KERNEL32.DLL_SetFileAttributesA
pop ecx
pop ebp
ret

Function at 0x55b150
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp - 4]
push edx
push eax
call fcn.0055a940
add esp, 8
push 0
push eax
call sub.KERNEL32.DLL_CreateDirectoryA
pop ecx
pop ebp
ret

Function at 0x55b170
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp - 4]
push edx
push eax
call fcn.0055a940
add esp, 8
push eax
call sub.KERNEL32.DLL_RemoveDirectoryA
pop ecx
pop ebp
ret

Function at 0x55b20c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
mov al, byte [ebp + 8]
mov byte [ebp - 4], al
lea edx, [ebp - 0x20]
mov byte [ebp - 3], 0x3a
mov byte [ebp - 2], 0x5c
mov byte [ebp - 1], 0
push 0x10
push edx
lea ecx, [ebp - 0x10]
lea eax, [ebp - 0xc]
push ecx
push eax
lea edx, [ebp - 8]
lea ecx, [ebp - 4]
push edx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ecx
call sub.KERNEL32.DLL_GetVolumeInformationA
mov esp, ebp
pop ebp
ret
Function at 0x55b2f4
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
xor esi, esi
cmp dword [0x6b03bc], 0
je 0x55b332
xor eax, eax
mov dword [0x6b03bc], eax
push 0x6b041f
call sub.KERNEL32.DLL_LoadLibraryA
mov edi, eax
test edi, edi
je 0x55b332
push 0x6b042c
push edi
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x6b03c0], eax
movsx edi, byte [ebx]
push edi
call fcn.0061a33c
pop ecx
cmp eax, 0x41
jl 0x55b361
cmp eax, 0x5a
jg 0x55b361
movsx edx, byte [ebx + 1]
cmp edx, 0x3a
jne 0x55b361
mov byte [ebp - 4], al
lea ebx, [ebp - 4]
mov byte [ebp - 3], 0x3a
mov byte [ebp - 2], 0x5c
mov byte [ebp - 1], 0
cmp dword [0x6b03c0], 0
je 0x55b3b4
lea eax, [ebp - 0x1c]
push eax
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp - 0xc]
push ecx
push ebx
call dword [0x6b03c0]
test eax, eax
je 0x55b421
cmp dword [ebp + 0xc], 0
je 0x55b399
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x14]
mov dword [eax], edx
mov edx, dword [ebp - 0x10]
mov dword [eax + 4], edx
cmp dword [ebp + 0x10], 0
je 0x55b3ad
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x1c]
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
mov dword [ecx + 4], eax
mov esi, 1
jmp 0x55b421
lea eax, [ebp - 0x2c]
lea edx, [ebp - 0x28]
push eax
push edx
lea ecx, [ebp - 0x24]
lea eax, [ebp - 0x20]
push ecx
push eax
push ebx
call sub.KERNEL32.DLL_GetDiskFreeSpaceA
test eax, eax
je 0x55b421
mov eax, dword [ebp - 0x20]
imul dword [ebp - 0x24]
xor edx, edx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], edx
cmp dword [ebp + 0xc], 0
je 0x55b3fc
mov eax, dword [ebp - 0x2c]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x30]
call fcn.0061aea8
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov dword [ecx + 4], edx
cmp dword [ebp + 0x10], 0
je 0x55b41c
mov eax, dword [ebp - 0x28]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x30]
call fcn.0061aea8
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov esi, 1
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x55b42c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
xor ebx, ebx
mov eax, edi
mov byte [ebp - 4], al
mov byte [ebp - 3], 0x3a
mov byte [ebp - 2], 0x5c
mov byte [ebp - 1], 0
lea edx, [ebp - 4]
push edx
call sub.KERNEL32.DLL_GetDriveTypeA
cmp eax, 1
je 0x55b499
xor ebx, ebx
sub eax, 2
je 0x55b46d
sub eax, 2
je 0x55b486
dec eax
je 0x55b48b
jmp 0x55b48e
or ebx, 1
mov dword [ebp - 8], edi
push dword [ebp - 8]
call fcn.0061a33c
pop ecx
cmp eax, 0x43
jg 0x55b48e
or ebx, 0x10
jmp 0x55b48e
or ebx, 2
jmp 0x55b48e
or ebx, 0xd
test esi, esi
je 0x55b494
mov dword [esi], ebx
mov ebx, 1
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x55d3b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
add edi, eax
mov ecx, dword [ebp + 0x10]
cmp edi, eax
jbe 0x55d3e1
movzx esi, cx
mov ebx, esi
mov dl, byte [eax]
sar ebx, 8
xor dl, bl
imul ebx, esi, 0x6d
add bx, 0x39
mov byte [eax], dl
inc eax
mov ecx, ebx
cmp edi, eax
ja 0x55d3c5
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x55d5f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
shr edx, 2
xor esi, esi
shl edx, 2
mov ebx, 1
add edx, eax
cmp edx, eax
jbe 0x55d625
mov ecx, dword [eax]
xor ecx, esi
add ebx, ecx
add eax, 4
mov ecx, ebx
shr ecx, 1
add esi, ecx
cmp edx, eax
ja 0x55d612
xor edx, edx
jmp 0x55d633
shl edx, 8
xor ecx, ecx
mov cl, byte [eax]
or edx, ecx
inc eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp + 0xc]
cmp eax, ecx
jb 0x55d629
xor edx, esi
mov ecx, 0xfff1
add ebx, edx
xor edx, edx
mov eax, ebx
add esi, ebx
div ecx
mov ebx, edx
xor edx, edx
mov eax, esi
mov ecx, 0xfff1
div ecx
mov esi, edx
mov eax, esi
shl eax, 0x10
or eax, ebx
pop esi
pop ebx
pop ebp
ret

Function at 0x5650f4
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
xor eax, eax
xor edx, edx
xor ecx, ecx
push ebx
push esi
push edi
mov edi, 0x6b2cc0
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebx + 0x24c], eax
mov dword [ebx + 0x250], edx
mov dword [ebx + 0x254], ecx
xor eax, eax
mov dword [ebx + 0x240], 0
mov dword [ebx + 0x244], 0
mov dword [ebx + 0x258], eax
push ebx
call fcn.0056a340
pop ecx
push 0
push 0
lea edx, [edi + 0x1671]
push edx
push 0
push 7
push ebx
call fcn.00579b74
add esp, 0x18
cmp dword [ebp + 0xc], 0
je 0x5651fa
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.006148a0
pop ecx
test eax, eax
je 0x5651fa
lea eax, [edi + 0x1686]
push eax
mov edx, dword [ebp + 0xc]
push edx
call fcn.00616f58
add esp, 8
mov dword [ebx + 0x1c], eax
test eax, eax
jne 0x5651cb
push 0
push 0
push 0xad
mov edx, dword [0x68bfe8]
push edx
call fcn.004c6c0c
add esp, 8
push eax
push 1
push 3
push ebx
call fcn.00579b74
add esp, 0x18
mov eax, 0x12d
jmp 0x5669c2
push 0
lea edx, [edi + 0x1689]
push 0
push edx
push 0
push 7
push ebx
call fcn.00579b74
add esp, 0x18
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
push 0
push 7
push ebx
call fcn.00579b74
add esp, 0x18
jmp 0x5651ff
xor eax, eax
mov dword [ebx + 0x1c], eax
push 0
lea edx, [edi + 0x169e]
push 0
push edx
push 0
push 7
push ebx
call fcn.00579b74
add esp, 0x18
push 0
push 0
push 0x85
mov ecx, dword [0x68bfe8]
push ecx
call fcn.004c6c0c
add esp, 8
push eax
push 1
push 1
push ebx
call fcn.00579b74
add esp, 0x18
jmp 0x566675
Function at 0x5a94b4
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.005a8ffc
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.006120a4
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.DLL_RegSetValueExA
test eax, eax
je 0x5a9512
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x6be410]
mov dl, 1
mov eax, dword [0x5a8e88]
call fcn.0060cc08
call fcn.00611928
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x5a951c
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.006120a4
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x5a9574
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x6be414]
mov dl, 1
mov eax, dword [0x5a8e88]
call fcn.0060cc08
call fcn.00611928
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.005a902c
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 0x5aa970
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.00611c60
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.USER32.DLL_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x5aa9bf
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.00611e90
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5b17d4
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 0x5b17da
ret

Function at 0x5b3ef0
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 0x5b3f41
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x5b3f28
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x5b3f18
jmp 0x5b3f41
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 0x5b3f29
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5bc9a4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x6c6cb0
cmp dword [edi], 0
jne 0x5bca20
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x6c6cac]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x6b9de0
mov ecx, 2
call fcn.00610c00
mov edx, 0x5bc97c
lea eax, [esi + 5]
call fcn.005bc99c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.005bc99c
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 0x5bc9f5
mov dword [0x6c6cac], 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 0x5bcb3c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x5bcb8c]
test si, 4
je 0x5bcb50
or bl, 1
test si, 8
je 0x5bcb5a
or bl, 4
test si, 1
je 0x5bcb64
or bl, 8
test si, 2
je 0x5bcb6e
or bl, 0x10
test si, 0x10
je 0x5bcb78
or bl, 0x20
push 0x12
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x5bcb87
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x5bcb90
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x5bcbc8]
push 0x10
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x5bcba9
or bl, 1
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x5bcbb8
or bl, 4
test esi, 0x20000000
je 0x5bcbc3
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x5c3158
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x5c316a
add esp, 0xfffffff0
call fcn.006114f0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0060123c
mov eax, ebx
call fcn.005c34a4
push 0
call sub.USER32.DLL_GetKeyboardLayout
mov dword [ebx + 0x30], eax
mov dl, 1
mov eax, dword [0x5f8ccc]
call fcn.00611180
mov dword [ebx + 0x40], eax
mov dl, 1
mov eax, dword [0x5f8ccc]
call fcn.00611180
mov dword [ebx + 0x44], eax
mov dl, 1
mov eax, dword [0x5f8ccc]
call fcn.00611180
mov dword [ebx + 0x48], eax
mov dl, 1
mov eax, dword [0x5f8ccc]
call fcn.00611180
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x5f8ccc]
call fcn.00611180
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, 0x5bfc48
push eax
push 0
push 0
mov eax, dword [0x6be4e8]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x5b0cfc]
call fcn.005b2234
mov dword [ebx + 0x78], eax
mov dl, 1
mov eax, dword [0x5b0cfc]
call fcn.005b2234
mov dword [ebx + 0x7c], eax
mov dl, 1
mov eax, dword [0x5b0cfc]
call fcn.005b2234
mov dword [ebx + 0x74], eax
mov eax, ebx
call fcn.005c3884
mov eax, dword [ebx + 0x78]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x5c37a0
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x5c37a0
mov eax, dword [ebx + 0x74]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x5c37a0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x5c3279
call fcn.00611548
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x5c3584
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 0x5c372f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x28], 0
jne 0x5c3710
mov dl, 1
mov eax, dword [0x5f9180]
call fcn.00611180
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.00611c60
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.USER32.DLL_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x5c36ff
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.005db5e0
test al, al
je 0x5c36f2
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, 0x5c3740
lea eax, [ebp - 0x254]
call fcn.0060a874
push eax
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x5c36f2
xor eax, eax
push ebp
push 0x5c36eb
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x100
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x5c3778
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
jne 0x5c36d4
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.00611e90
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 0x5c36d4
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.00611e90
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5c36f2
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x5c35f5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.005fc9ec
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 0x5c3736
lea eax, [ebp - 0x260]
call fcn.00611c60
ret

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

Disassembly:
push ecx
mov eax, dword [0x6c6ca0]
cmp byte [eax + 0x95], 0
jne 0x5c3fed
cmp dword [0x6c6cbc], 0
jne 0x5c3fae
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, 0x5c3f38
push eax
push 3
call sub.USER32.DLL_SetWindowsHookExA
mov dword [0x6c6cbc], eax
cmp dword [0x6c6cb8], 0
jne 0x5c3fc9
push 0
push 0
push 0
push 0
call sub.KERNEL32.DLL_CreateEventA
mov dword [0x6c6cb8], eax
cmp dword [0x6c6cc0], 0
jne 0x5c3fed
push esp
push 0
push 0
push 0x5c3edc
push 0x3e8
push 0
call sub.KERNEL32.DLL_CreateThread
mov dword [0x6c6cc0], eax
pop edx
ret