joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c6f54
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
cmp dword [ebp - 8], 0
jne 0x4c6f7f
mov ecx, 0x321
mov edx, 0x4c7160
mov eax, 0x4c7188
call fcn.00404f58
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.004c6edc
mov dword [ebp - 0x10], 0xa
lea edi, [ebp - 0x1c]
mov eax, pe_nt_image_headers32
call fcn.00403608
mov byte [ebp - 9], al
movzx esi, word [ebx + 0xc]
and si, 0xffff
or si, 2
movzx eax, si
xor si, 1
movzx edx, si
imul edx
shr eax, 8
mov esi, eax
movzx edx, byte [ebp - 9]
mov eax, dword [ebx + 4]
call fcn.00449e4c
mov dword [ebx + 4], eax
mov eax, dword [ebx + 4]
and eax, 0xff
add dword [ebx + 8], eax
imul eax, dword [ebx + 8], 0x8088405
inc eax
mov dword [ebx + 8], eax
mov edx, dword [ebx + 8]
shr edx, 0x18
mov eax, dword [ebx + 0xc]
call fcn.00449e4c
mov dword [ebx + 0xc], eax
mov eax, esi
xor al, byte [ebp - 9]
mov byte [edi], al
inc edi
dec dword [ebp - 0x10]
jne 0x4c6f93
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.004c6edc
mov dword [ebp - 0x10], 0xa
lea edi, [ebp - 0x1c]
movzx esi, word [ebx + 0xc]
and si, 0xffff
or si, 2
movzx eax, si
xor si, 1
movzx edx, si
imul edx
shr eax, 8
mov esi, eax
movzx edx, byte [edi]
mov eax, dword [ebx + 4]
call fcn.00449e4c
mov dword [ebx + 4], eax
mov eax, dword [ebx + 4]
and eax, 0xff
add dword [ebx + 8], eax
imul eax, dword [ebx + 8], 0x8088405
inc eax
mov dword [ebx + 8], eax
mov edx, dword [ebx + 8]
shr edx, 0x18
mov eax, dword [ebx + 0xc]
call fcn.00449e4c
mov dword [ebx + 0xc], eax
mov eax, esi
xor byte [edi], al
inc edi
dec dword [ebp - 0x10]
jne 0x4c7015
movzx eax, byte [ebp + 0xa]
mov byte [ebp - 9], al
movzx esi, word [ebx + 0xc]
and si, 0xffff
or si, 2
movzx eax, si
xor si, 1
movzx edx, si
imul edx
shr eax, 8
mov esi, eax
movzx edx, byte [ebp - 9]
mov eax, dword [ebx + 4]
call fcn.00449e4c
mov edi, eax
mov dword [ebx + 4], edi
and edi, 0xff
add dword [ebx + 8], edi
imul edi, dword [ebx + 8], 0x8088405
inc edi
mov dword [ebx + 8], edi
mov edx, edi
shr edx, 0x18
mov eax, dword [ebx + 0xc]
call fcn.00449e4c
mov dword [ebx + 0xc], eax
mov eax, esi
xor al, byte [ebp - 9]
mov byte [ebp - 0x12], al
movzx eax, byte [ebp + 0xb]
mov byte [ebp - 9], al
movzx esi, word [ebx + 0xc]
and si, 0xffff
or si, 2
movzx eax, si
xor si, 1
movzx edx, si
imul edx
shr eax, 8
mov esi, eax
movzx edx, byte [ebp - 9]
mov eax, dword [ebx + 4]
call fcn.00449e4c
mov edi, eax
mov dword [ebx + 4], edi
and edi, 0xff
add dword [ebx + 8], edi
imul edi, dword [ebx + 8], 0x8088405
inc edi
mov dword [ebx + 8], edi
mov edx, edi
shr edx, 0x18
mov eax, dword [ebx + 0xc]
call fcn.00449e4c
mov dword [ebx + 0xc], eax
mov eax, esi
xor al, byte [ebp - 9]
mov byte [ebp - 0x11], al
mov byte [ebx + 0x10], 1
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
mov dword [eax], edx
mov edx, dword [ebp - 0x18]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x14]
mov dword [eax + 8], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4c71c4
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0xc], eax
mov esi, edx
mov edi, ecx
dec edi
test edi, edi
jl 0x4c7256
inc edi
movzx eax, word [ebp - 0xc]
and ax, 0xffff
or ax, 2
movzx ebx, byte [esi]
movzx edx, ax
xor ax, 1
movzx eax, ax
imul edx, eax
shr edx, 8
xor dl, bl
mov byte [ebp - 5], dl
mov edx, ebx
mov eax, dword [ebp - 0x14]
call fcn.00449e4c
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
and eax, 0xff
add dword [ebp - 0x10], eax
imul ebx, dword [ebp - 0x10], 0x8088405
inc ebx
mov dword [ebp - 0x10], ebx
mov edx, ebx
shr edx, 0x18
mov eax, dword [ebp - 0xc]
call fcn.00449e4c
mov dword [ebp - 0xc], eax
movzx eax, byte [ebp - 5]
mov byte [esi], al
inc esi
dec edi
jne 0x4c71f5
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov dword [eax + 4], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
mov dword [eax + 8], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov dword [eax + 0xc], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c9bac
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004ba724
mov ebx, eax
mov eax, ebx
call fcn.00488610
mov byte [ebp - 0x11], al
mov eax, ebx
call fcn.004885e0
mov byte [ebp - 0x12], al
mov eax, ebx
call fcn.004885b0
mov byte [ebp - 0x13], al
cmp byte [ebp - 0x11], 0
jne 0x4c9bfc
cmp byte [ebp - 0x12], 0
jne 0x4c9bfc
cmp byte [ebp - 0x13], 0
jne 0x4c9bfc
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x4c9d05
mov eax, ebx
call fcn.00488544
mov byte [ebp - 0x14], al
mov eax, ebx
call fcn.0048850c
mov ebx, eax
mov dl, 1
mov eax, dword [0x438ac4]
call fcn.00403fdc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4c9cfe
push dword fs:[eax]
mov dword fs:[eax], esp
mov al, 1
call fcn.004a7340
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4c9cc5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
call fcn.004a9f68
mov esi, eax
dec esi
test esi, esi
jl 0x4c9caf
inc esi
xor edi, edi
push ebp
movzx eax, byte [ebp - 0x13]
push eax
movzx eax, byte [ebp - 0x14]
push eax
push ebx
mov edx, edi
mov eax, dword [ebp - 0xc]
call fcn.004a9f70
movzx ecx, byte [ebp - 0x12]
movzx edx, byte [ebp - 0x11]
call fcn.004c9b14
pop ecx
test al, al
je 0x4c9cab
mov edx, edi
mov eax, dword [ebp - 0xc]
call fcn.004a9f70
mov eax, dword [eax + 0xc]
push eax
call sub.kernel32.dll_SuspendThread
cmp eax, 0xffffffff
je 0x4c9cab
mov edx, edi
mov eax, dword [ebp - 0xc]
call fcn.004a9f70
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 0x10]
call fcn.0043b25c
inc edi
dec esi
jne 0x4c9c56
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c9ccc
lea eax, [ebp - 0xc]
call fcn.0040f788
ret
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4c9d10
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test eax, eax
je 0x4c9d6a
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4c9d63
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x4c9d4d
inc ebx
xor esi, esi
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.0043b3bc
push eax
call sub.kernel32.dll_ResumeThread
inc esi
dec ebx
jne 0x4c9d39
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c9d6a
lea eax, [ebp - 4]
call fcn.0040f788
ret
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4d2ee8
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
push 0
push 0
push 0xe
mov eax, dword [ebp - 4]
push eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 4]
push eax
call sub.user32.dll_GetDlgItem
push eax
call sub.user32.dll_SendMessageA
mov edi, eax
inc edi
mov eax, esi
mov edx, edi
call fcn.00405794
mov eax, esi
call fcn.00405564
mov edx, 1
dec edx
test eax, eax
je 0x4d2f35
cmp edx, dword [eax - 4]
jb 0x4d2f3a
call fcn.00403edc
inc edx
lea eax, [eax + edx - 1]
push eax
push edi
push 0xd
mov eax, dword [ebp - 4]
push eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 4]
push eax
call sub.user32.dll_GetDlgItem
push eax
call sub.user32.dll_SendMessageA
mov edx, eax
mov eax, esi
call fcn.00405794
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x4d3510
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
lea eax, [ebp - 0x100]
push eax
call sub.user32.dll_GetKeyboardState
movzx eax, byte [ebp - 0xe5]
and al, 0x80
cmp al, 0x80
sete al
mov esp, ebp
pop ebp
ret
Function at 0x4dd2c4
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp eax, ebx
jne 0x4dd2e2
mov byte [ebp - 5], 1
jmp 0x4dd3ba
mov byte [ebp - 5], 0
mov esi, dword [ebp - 4]
cmp esi, 0x10000
jb 0x4dd3ba
cmp esi, ebx
jb 0x4dd3ba
mov eax, esi
sub eax, ebx
cmp eax, 0x7ffffffe
jge 0x4dd3ba
mov edx, esi
sub edx, ebx
inc edx
mov eax, ebx
call fcn.0040e99c
test al, al
je 0x4dd3ba
xor eax, eax
push ebp
push 0x4dd3b0
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x4dd39a
lea ecx, [ebp - 0x58]
xor edx, edx
mov eax, ebx
call fcn.00414104
cmp byte [ebp - 0x4f], 0
je 0x4dd347
cmp ebx, dword [ebp - 0x54]
jne 0x4dd351
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4dd3ba
mov ebx, dword [ebp - 0x54]
mov esi, dword [ebp - 0x48]
cmp esi, 0xcc
je 0x4dd390
cmp esi, 0xc2
je 0x4dd390
cmp esi, 0xc3
je 0x4dd390
cmp byte [ebp - 0x35], 0
je 0x4dd39a
mov edi, dword [ebp - 0x48]
cmp edi, 0xe9
je 0x4dd390
cmp edi, 0xe8
je 0x4dd390
cmp edi, 0xff
jne 0x4dd39a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4dd3ba
mov eax, dword [ebp - 4]
dec eax
cmp eax, ebx
ja 0x4dd330
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4dd3ba
movzx eax, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4ef640
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.004054fc
xor eax, eax
push ebp
push 0x4ef775
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x4ef748
xor edx, edx
push ebp
push 0x4ef741
push dword fs:[edx]
mov dword fs:[edx], esp
mov ebx, dword [ebp - 4]
mov eax, ebx
test eax, eax
je 0x4ef68d
sub eax, 4
mov eax, dword [eax]
inc eax
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4ef716
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov esi, eax
xor eax, eax
push ebp
push 0x4ef705
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
je 0x4ef6cc
sub ebx, 4
mov ebx, dword [ebx]
mov eax, dword [ebp - 4]
call fcn.0040550c
lea ecx, [ebx + 1]
mov edx, esi
call fcn.00403348
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 8]
push eax
push 1
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ef70c
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x55c5cc]
mov dl, 1
mov eax, dword [0x426d90]
call fcn.0042c5a4
call fcn.00404984
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ef77c
lea eax, [ebp - 4]
call fcn.0040502c
ret
Function at 0x4ef784
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff8c
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4ef93f
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x10]
mov edx, 0x1b
mov al, 0x2d
call fcn.004057f8
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 4]
mov ecx, 0x4ef958
call fcn.00405358
mov eax, ebx
call fcn.00445264
mov edi, eax
dec edi
test edi, edi
jl 0x4ef83c
inc edi
xor esi, esi
mov edx, esi
mov eax, ebx
call fcn.00445238
mov edx, dword [0x4e7148]
call fcn.00404198
test al, al
je 0x4ef838
push dword [ebp - 8]
mov edx, esi
mov eax, ebx
call fcn.00445238
lea edx, [ebp - 0x14]
call fcn.0050f314
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
mov edx, 3
mov al, 0x20
call fcn.004057f8
push dword [ebp - 0x18]
lea eax, [ebp - 8]
mov edx, 3
call fcn.004053cc
inc esi
dec edi
jne 0x4ef7ea
movzx eax, byte [0x4ef95c]
push eax
lea eax, [ebp - 0x1c]
push eax
xor ecx, ecx
mov edx, 0x4ef968
mov eax, dword [ebp - 8]
call fcn.0042da30
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 8]
call fcn.004050c4
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0xb
lea edx, [ebp - 0x70]
mov eax, ebx
call fcn.0050f314
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 0xb
mov eax, 0x4ef958
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x58], 0xb
mov eax, dword [ebp - 4]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0xb
lea edx, [ebp - 0x74]
mov eax, dword [ebx + 0x360]
call fcn.0050f314
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0xb
mov eax, 0x4ef958
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0xb
mov eax, dword [ebp - 4]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
mov eax, 0x4ef958
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
mov eax, dword [ebp - 4]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea edx, [ebp - 0x6c]
mov ecx, 9
mov eax, 0x4ef974
call fcn.0042984c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ef946
lea eax, [ebp - 0x74]
mov edx, 2
call fcn.00405050
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00405050
lea eax, [ebp - 0x14]
call fcn.0040502c
lea eax, [ebp - 0x10]
call fcn.0040502c
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405050
ret
Function at 0x4f24ec
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.0040502c
push 0
movzx eax, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x4f253a
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.0040529c
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4f65bc
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4f66ef
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x16], 0
lea eax, [ebp - 0x16]
push eax
call sub.user32.dll_GetKeyboardLayoutNameA
mov dl, 1
mov eax, dword [0x45af4c]
call fcn.0045b01c
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x4f66c5
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.0045b0bc
lea eax, [ebp - 0x20]
lea edx, [ebp - 0x16]
mov ecx, 0xa
call fcn.0040529c
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, 0x4f6704
call fcn.00405358
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.0045b120
lea ecx, [ebp - 4]
mov edx, 0x4f6740
mov eax, dword [ebp - 0xc]
call fcn.0045b350
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0042e41c
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x4f66a8
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x4f674c
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x55b87c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f66af
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret

Function at 0x4f679c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov esi, eax
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movzx ebx, byte [esp + 4]
test bx, bx
je 0x4f67e3
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4f67c6
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4f67d7
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x4f67e3
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret

Function at 0x4fa39c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x4fa3f0]
test si, 4
je 0x4fa3b1
or bl, 1
test si, 8
je 0x4fa3bb
or bl, 4
test si, 1
je 0x4fa3c5
or bl, 8
test si, 2
je 0x4fa3cf
or bl, 0x10
test si, 0x10
je 0x4fa3d9
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4fa3e8
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x4fa3f4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x4fa430]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4fa40e
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4fa41d
or bl, 4
test esi, 0x20000000
je 0x4fa428
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x501b04
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x501b16
add esp, 0xfffffff0
call fcn.00404370
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00444c24
mov eax, dword [0x55c6b4]
mov dword [eax + 4], ebx
mov dword [eax], 0x501ea8
mov eax, dword [0x55c6c4]
mov dword [eax + 4], ebx
mov dword [eax], 0x501eb4
mov eax, ebx
call fcn.00501ec0
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x438ac4]
call fcn.00403fdc
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x438ac4]
call fcn.00403fdc
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x438ac4]
call fcn.00403fdc
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x438ac4]
call fcn.00403fdc
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x438ac4]
call fcn.00403fdc
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, 0x4fd958
push eax
push 0
push 0
mov eax, dword [0x55c92c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x490d98]
call fcn.004925ec
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x490d98]
call fcn.004925ec
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x490d98]
call fcn.004925ec
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.005022f0
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x5021c0
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x5021c0
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x5021c0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x501c53
call fcn.004043c8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x501fa4
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 0x50214f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x502130
mov dl, 1
mov eax, dword [0x439130]
call fcn.00403fdc
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.0040502c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x50211f
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.0051c580
test al, al
je 0x502112
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, 0x502160
lea eax, [ebp - 0x254]
call fcn.004297cc
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x502112
xor eax, eax
push ebp
push 0x50210b
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 0x502198
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x5020f4
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040529c
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 0x5020f4
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040529c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x502112
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x502015
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.0043e0a4
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 0x502156
lea eax, [ebp - 0x260]
call fcn.0040502c
ret

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

Disassembly:
push ecx
mov eax, dword [0x661a34]
cmp byte [eax + 0xad], 0
jne 0x502b39
cmp dword [0x661a4c], 0
jne 0x502afa
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x502a84
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x661a4c], eax
cmp dword [0x661a48], 0
jne 0x502b15
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x661a48], eax
cmp dword [0x661a50], 0
jne 0x502b39
push esp
push 0
push 0
push 0x502a28
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x661a50], eax
pop edx
ret