joyce8/EMBER2024-capa huggingface dataset:
Function at 0x52eabc
Capabilities:
Access peb ldr_data

Disassembly:
add byte [esi], ch
add byte [eax], bh
add byte [eax], bh
sub dword [eax], eax
add byte [eax], al
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x52ec83
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebx + 0x38]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov edx, dword [ebp - 0x10]
xor ecx, ecx
mov dword [edx], ecx
call fcn.0040c190
lea eax, [ebx + 0x44]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 0x14]
xor ecx, ecx
mov dword [edx], ecx
call fcn.0040c190
mov eax, dword [ebx + 0x3c]
call fcn.004bfc9c
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0xc]
push edx
push eax
mov eax, esi
call fcn.004bd86c
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
push edx
push eax
mov eax, dword [ebx + 0x3c]
mov ecx, 0x100000
mov edx, esi
call fcn.004bef3c
push 0
push 0
mov eax, dword [ebx + 0x3c]
call fcn.004bd88c
push 0
mov ecx, dword [ebx + 0x3c]
mov dl, 1
mov eax, dword [0x496308]
call fcn.004cff7c
mov edx, eax
test edx, edx
je 0x52eb67
sub edx, 0xffffffec
lea eax, [ebp - 4]
call fcn.00412c3c
lea eax, [ebp - 8]
call fcn.00412c24
push eax
push 0
mov eax, dword [0x68d62c]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [0x694720]
push eax
mov eax, dword [eax]
call dword [eax + 0x10]
call fcn.0052ea18
lea eax, [ebx + 0x48]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x30]
call fcn.0052ea18
mov eax, ebx
call fcn.0052e9ec
cmp eax, dword [ebx + 0x4c]
ja 0x52ebeb
mov eax, dword [ebx + 0x4c]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0
mov esi, dword [ebx + 0x48]
mov dword [ebp - 0x34], esi
mov byte [ebp - 0x30], 0
dec esi
mov dword [ebp - 0x2c], esi
mov byte [ebp - 0x28], 0
lea eax, [ebp - 0x3c]
push eax
push 2
mov ecx, dword [0x68d630]
mov dl, 1
mov eax, dword [0x48e278]
call fcn.0042fc04
call fcn.0040d650
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
call fcn.0052ea18
lea edx, [ebp - 0x24]
mov eax, ebx
call fcn.0052ef88
lea eax, [ebp - 0xc]
call fcn.00412c24
push eax
mov eax, dword [ebx + 0x4c]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x34]
call fcn.0052ea18
lea eax, [ebx + 0x40]
call fcn.00412c24
push eax
push 2
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [0x694720]
push eax
mov eax, dword [eax]
call dword [eax + 0x48]
call fcn.0052ea18
lea eax, [ebx + 0x34]
push eax
lea eax, [ebx + 0x30]
push eax
mov eax, dword [ebx + 0x40]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
call fcn.0052ea18
mov byte [ebx + 0x64], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52ec8a
lea eax, [ebp - 0xc]
call fcn.00412c24
lea eax, [ebp - 8]
call fcn.00412c24
lea eax, [ebp - 4]
call fcn.00412c24
pop eax
jmp eax
Function at 0x5447ec
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
cmp dword [0x694800], 0
je 0x544930
push 0x11
call fcn.00682708
test ax, 0x8000
setne al
mov edx, dword [0x68d070]
mov edx, dword [edx]
xor al, byte [edx + 0xd4]
je 0x544930
mov eax, dword [0x694804]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x694800]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x5448ff
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x694800]
call fcn.004b830c
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x5448f7
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x225], 0
je 0x5448f7
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x80]
test al, al
je 0x5448f7
mov eax, dword [ebp - 0x14]
call fcn.00551a44
push eax
call fcn.00682828
test eax, eax
je 0x5448f7
push ebp
call fcn.005447a8
pop ecx
test al, al
jne 0x5448f7
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffb9
call fcn.0040c564
test al, al
je 0x5448f7
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 si, 0xffba
call fcn.0040c564
cmp byte [ebp - 1], 0
je 0x5448f7
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x28]
call fcn.00416990
test al, al
je 0x5448f7
mov edx, dword [ebp - 0x14]
mov eax, dword [0x694804]
call fcn.00543f24
inc edi
dec ebx
jne 0x544851
mov eax, dword [0x694804]
cmp dword [eax + 8], 0
jle 0x544917
mov eax, dword [0x694804]
call fcn.00543fd8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x544930
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00544610
pop ecx
test al, al
jne 0x544930
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 0x54dedc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffed8
mov ebx, ecx
mov edi, edx
mov esi, eax
call fcn.00682756
call fcn.00416eec
mov dword [esp + 8], eax
movsx eax, word [esp + 8]
mov dword [esp + 0xc], eax
movsx eax, word [esp + 0xa]
mov dword [esp + 0x10], eax
mov ecx, esp
lea edx, [esp + 0xc]
mov eax, esi
call fcn.00546f34
test ebx, ebx
jne 0x54df2f
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.0054dd8c
mov ebx, eax
test ebx, ebx
je 0x54e025
cmp esi, ebx
je 0x54df58
mov eax, dword [esp]
sub eax, dword [ebx + 0x50]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
sub eax, dword [ebx + 0x54]
mov dword [esp + 0x118], eax
jmp 0x54df6d
mov eax, dword [esp]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x118], eax
movzx eax, word [edi + 8]
mov dword [esp + 0x11c], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x124], eax
movzx eax, word [edi + 0xa]
cmp eax, 0x201
jge 0x54dfa5
add eax, 0xffffff5f
sub eax, 2
jb 0x54dfbd
dec eax
sub eax, 2
jb 0x54dfd1
dec eax
sub eax, 2
jb 0x54dfc7
jmp 0x54dfdb
add eax, 0xfffffdff
sub eax, 2
jb 0x54dfbd
dec eax
sub eax, 2
jb 0x54dfd1
dec eax
sub eax, 2
jb 0x54dfc7
jmp 0x54dfdb
mov byte [esp + 0x120], 0
jmp 0x54dfe3
mov byte [esp + 0x120], 2
jmp 0x54dfe3
mov byte [esp + 0x120], 1
jmp 0x54dfe3
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call fcn.00682720
lea eax, [esp + 0x14]
call fcn.006400fc
mov esi, eax
call fcn.005435f0
or si, ax
mov word [esp + 0x121], si
lea eax, [esp + 0x114]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.00548ca8
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x54e027
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret
Function at 0x5c937c
Capabilities:
Set global application hook

Disassembly:
cmp dword [0x694924], 0
jne 0x5c939f
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, 0x5c92f0
push eax
push 3
call fcn.0068299c
mov dword [0x694924], eax
ret

Function at 0x5e32ac
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.0040df88
xor eax, eax
push ebp
push 0x5e33eb
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call fcn.006828a0
test eax, eax
je 0x5e33bc
xor edx, edx
push ebp
push 0x5e33b5
push dword fs:[edx]
mov dword fs:[edx], esp
mov ebx, dword [ebp - 4]
mov eax, ebx
test eax, eax
je 0x5e32f7
mov eax, dword [eax - 4]
add eax, eax
add eax, 2
push eax
push 0x2002
call sub.KERNEL32.DLL_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x5e3388
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 0x5e3377
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
je 0x5e3338
mov ebx, dword [ebx - 4]
mov eax, dword [ebp - 4]
call fcn.0040eb00
mov ecx, ebx
add ecx, ecx
add ecx, 2
mov edx, esi
call fcn.0040addc
call fcn.0068263c
mov eax, dword [ebp - 8]
push eax
push 0xd
call fcn.0068291e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5e337e
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalUnlock
pop eax
jmp eax
mov ecx, dword [0x68d6b0]
mov dl, 1
mov eax, dword [0x420530]
call fcn.0042fb30
call fcn.0040d650
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5e33f2
lea eax, [ebp - 4]
call fcn.0040de94
pop eax
jmp eax

Function at 0x5ed920
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
xor eax, eax
mov bx, ax
push 0x10
call fcn.00682708
test ax, ax
jge 0x5ed936
or bx, 1
push 0x11
call fcn.00682708
test ax, ax
jge 0x5ed946
or bx, 4
push 0x12
call fcn.00682708
test ax, ax
jge 0x5ed956
or bx, 2
mov eax, ebx
pop ebx
ret

Function at 0x5ee378
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2e9], 0
jne 0x5ee44a
mov eax, dword [ebp - 4]
mov byte [eax + 0x2e8], 1
xor eax, eax
push ebp
push 0x5ee424
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x360]
call fcn.00551a44
push eax
call fcn.006829b4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x360]
xor edx, edx
call fcn.00546708
mov eax, dword [ebp - 4]
mov byte [eax + 0x2e9], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5c]
mov edx, dword [ebp - 4]
mov dword [edx + 0x304], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x190]
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.00546b04
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x334]
call fcn.0054c540
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5ee42b
mov eax, dword [ebp - 4]
mov byte [eax + 0x2e8], 0
pop eax
jmp eax
pop ebx
pop ecx
pop ebp
ret
Function at 0x5eeec8
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2e9], 0
je 0x5eefb0
mov eax, dword [ebp - 4]
mov byte [eax + 0x2e8], 1
xor eax, eax
push ebp
push 0x5eef8a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x360]
mov dl, 5
call fcn.00546708
push 5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x360]
call fcn.00551a44
push eax
call fcn.006829b4
mov eax, dword [ebp - 4]
mov byte [eax + 0x2e9], 0
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x304]
mov eax, dword [ebp - 4]
call fcn.00546b04
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x334]
mov eax, dword [eax + 0x2e0]
call fcn.006404fc
test al, al
je 0x5eef70
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x334]
mov edx, dword [ebp - 4]
call fcn.006413d0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x334]
call fcn.0054c540
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5eef91
mov eax, dword [ebp - 4]
mov byte [eax + 0x2e8], 0
pop eax
jmp eax
pop ebx
pop ecx
pop ebp
ret

Function at 0x60e6bc
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
push edi
mov esi, edx
mov edi, eax
push 0
push 0
push 0xe
push edi
call fcn.00682906
mov ebx, eax
mov eax, esi
mov ecx, ebx
xor edx, edx
call fcn.0040e02c
test ebx, ebx
je 0x60e70e
mov eax, dword [esi]
call fcn.0040eb00
push eax
lea eax, [ebx + 1]
push eax
push 0xd
push edi
call fcn.00682906
sub ebx, eax
test ebx, ebx
jle 0x60e70e
mov eax, dword [esi]
test eax, eax
je 0x60e703
mov eax, dword [eax - 4]
mov edx, eax
sub edx, ebx
mov eax, esi
call fcn.0040ec74
pop edi
pop esi
pop ebx
ret

Function at 0x61840c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffe00
mov esi, edx
mov ebx, eax
mov eax, ebx
call fcn.006184d4
test eax, eax
je 0x61845e
mov edi, dword [ebx + 8]
test edi, edi
je 0x61843a
test edi, edi
je 0x61843a
mov edx, esi
mov eax, edi
call fcn.005477c4
jmp 0x61846c
push 0x100
lea eax, [esp + 4]
push eax
mov eax, ebx
call fcn.006184d4
push eax
call fcn.006827da
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040e02c
jmp 0x61846c
mov ecx, esi
mov edx, 0x61848c
mov eax, ebx
call fcn.00618394
lea eax, [ebx + 0x1c]
mov edx, dword [esi]
call fcn.0040e284
add esp, 0x200
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov esi, edx
mov ebx, eax
mov eax, esi
call fcn.0040de94
push 0
movzx eax, bl
push eax
call fcn.0068285e
shl eax, 0x10
mov ebx, eax
test ebx, ebx
je 0x62cc3e
push 0x100
lea eax, [esp + 4]
push eax
push ebx
call fcn.00682702
test eax, eax
je 0x62cc37
mov eax, esi
mov edx, esp
mov ecx, 0x100
call fcn.0040eb9c
jmp 0x62cc3e
mov eax, esi
call fcn.0040de94
add esp, 0x200
pop esi
pop ebx
ret
Function at 0x632a98
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x632bfd
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [0x688ad8], 0
mov word [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
call fcn.0068271a
mov dl, 1
mov eax, dword [0x510af4]
call fcn.00511e40
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x632bd1
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.00511f98
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x20]
mov ecx, 0xa
call fcn.0040eb9c
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x632c18
call fcn.0040ed4c
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.00512228
test al, al
je 0x632bb9
lea ecx, [ebp - 4]
mov edx, 0x632c8c
mov eax, dword [ebp - 0xc]
call fcn.00512ba4
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.00433134
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x632bb9
xor edx, edx
push ebp
push 0x632bb2
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x632ca4
mov eax, dword [ebp - 8]
push eax
call fcn.0041908c
test eax, eax
je 0x632b99
mov ebx, eax
call ebx
mov ebx, eax
test ebx, ebx
je 0x632b99
call fcn.00632a24
test eax, eax
je 0x632b89
mov eax, dword [ebx + 0x50]
jmp 0x632b8c
mov eax, dword [ebx + 0x28]
and eax, 1
cmp eax, 1
sete byte [0x688ad8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x632bb9
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_FreeLibrary
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x632bd8
mov eax, dword [ebp - 0xc]
call fcn.0040c190
pop eax
jmp eax

Function at 0x632d08
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 0x632d4f
push 0x10
call fcn.00682708
test ax, ax
jge 0x632d32
add bx, 0x2000
push 0x11
call fcn.00682708
test ax, ax
jge 0x632d43
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x632d4f
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x63fc18
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ecx
mov byte [esp], cl
mov ebx, edx
mov esi, eax
push 0xffffffffffffffec
push esi
call fcn.006827c8
mov edi, eax
test bl, bl
je 0x63fc39
test edi, 0x40000
je 0x63fc53
test bl, bl
jne 0x63fcd4
mov eax, 0x40000
and eax, edi
cmp eax, 0x40000
jne 0x63fcd4
push esi
call fcn.00682810
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 2], al
push esi
call fcn.00682828
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 1], al
movzx eax, byte [esp + 1]
or al, byte [esp + 2]
je 0x63fc86
push 0
push esi
call fcn.006829b4
test bl, bl
je 0x63fc9b
or edi, 0x40000
push edi
push 0xffffffffffffffec
push esi
call fcn.0068297e
jmp 0x63fcaa
and edi, 0xfffbffff
push edi
push 0xffffffffffffffec
push esi
call fcn.0068297e
movzx eax, byte [esp]
and al, byte [esp + 1]
jne 0x63fcbb
cmp byte [esp + 2], 0
je 0x63fcd4
cmp byte [esp + 2], 0
je 0x63fccc
push 6
push esi
call fcn.006829b4
jmp 0x63fcd4
push 5
push esi
call fcn.006829b4
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x63ff78
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
call fcn.00682690
mov dword [esp], eax
mov byte [esp + 4], 0
test bl, bl
je 0x63ff9e
mov eax, esp
push eax
push 0x63ff40
call fcn.00682672
jmp 0x63ffb1
mov eax, esp
push eax
push 0x63ff20
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
call fcn.0068266c
movzx eax, byte [esp + 4]
pop ecx
pop edx
pop ebx
ret

Function at 0x640074
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov ebx, eax
xor eax, eax
mov si, ax
test bl, 4
je 0x640086
or si, 1
test bl, 8
je 0x64008f
or si, 4
test bl, 1
je 0x640098
or si, 8
test bl, 2
je 0x6400a1
or si, 0x10
test bl, 0x10
je 0x6400aa
or si, 0x20
push 0x12
call fcn.00682708
test ax, ax
jge 0x6400ba
or si, 2
mov eax, esi
pop esi
pop ebx
ret

Function at 0x6400c0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
xor eax, eax
mov bx, ax
push 0x10
call fcn.00682708
test ax, ax
jge 0x6400d9
or bx, 1
push 0x11
call fcn.00682708
test ax, ax
jge 0x6400e9
or bx, 4
test esi, 0x20000000
je 0x6400f5
or bx, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x640148
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
add esp, 0xffffff00
push esp
call fcn.00682720
mov eax, esp
call fcn.006400fc
mov ebx, eax
mov eax, ebx
add esp, 0x100
pop ebx
ret
Function at 0x64e9cc
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x64e9de
add esp, 0xfffffff0
call fcn.0040c780
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004ce0d4
mov eax, dword [0x68d08c]
mov dword [eax + 4], ebx
mov dword [eax], 0x64eebc
mov eax, dword [0x68d090]
mov dword [eax + 4], ebx
mov dword [eax], 0x64eec8
mov eax, ebx
call fcn.0064eed4
push 0
call fcn.0068270e
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x48e5e0]
call fcn.0040c160
mov dword [ebx + 0x5c], eax
mov dl, 1
mov eax, dword [0x48e5e0]
call fcn.0040c160
mov dword [ebx + 0x60], eax
mov dl, 1
mov eax, dword [0x48e5e0]
call fcn.0040c160
mov dword [ebx + 0x64], eax
mov dl, 1
mov eax, dword [0x48e5e0]
call fcn.0040c160
mov dword [ebx + 0x68], eax
mov dl, 1
mov eax, dword [0x48e5e0]
call fcn.0040c160
mov dword [ebx + 0x84], eax
push 0
call fcn.006826cc
mov esi, eax
push 0x5a
push esi
call fcn.006823be
mov dword [ebx + 0x50], eax
push esi
push 0
call fcn.006828e2
mov eax, dword [ebx + 0x68]
push eax
mov eax, 0x6480a8
push eax
push 0
push 0
call fcn.00682666
mov dl, 1
mov eax, dword [0x51abac]
call fcn.00523154
mov esi, eax
mov dword [ebx + 0x8c], esi
mov byte [esi + 0x25], 1
mov dl, 1
mov eax, dword [0x51abac]
call fcn.00523154
mov esi, eax
mov dword [ebx + 0x90], esi
mov byte [esi + 0x25], 1
mov dl, 1
mov eax, dword [0x51abac]
call fcn.00523154
mov esi, eax
mov dword [ebx + 0x88], esi
mov byte [esi + 0x25], 1
mov dl, 1
mov eax, dword [0x51abac]
call fcn.00523154
mov esi, eax
mov dword [ebx + 0x94], esi
mov byte [esi + 0x25], 1
mov dl, 1
mov eax, dword [0x51abac]
call fcn.00523154
mov esi, eax
mov dword [ebx + 0x98], esi
mov byte [esi + 0x25], 1
mov eax, ebx
call fcn.0064f634
mov eax, dword [ebx + 0x8c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x64f2e4
mov eax, dword [ebx + 0x90]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x64f2e4
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x64f2e4
mov eax, dword [ebx + 0x94]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x64f2e4
mov eax, dword [ebx + 0x98]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x64f2e4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x64eb7c
call fcn.0040c7d8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x64f080
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc60
push ebx
xor edx, edx
mov dword [ebp - 0x3a0], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x64f230
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x44], 0
jne 0x64f20f
mov dl, 1
mov eax, dword [0x4924a0]
call fcn.004bd4c8
mov edx, dword [ebp - 4]
mov dword [edx + 0x44], eax
mov eax, dword [ebp - 4]
add eax, 0x48
call fcn.0040de94
lea eax, [ebp - 0x114]
push eax
push 0x40
call fcn.00682714
dec eax
test eax, eax
jl 0x64f1fe
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.005584b0
test al, al
je 0x64f1f1
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
movzx eax, word [eax]
mov dword [ebp - 0x39c], eax
mov byte [ebp - 0x398], 0
lea ecx, [ebp - 0x39c]
mov edx, 0x64f240
lea eax, [ebp - 0x394]
call fcn.004290e8
push eax
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
jne 0x64f1f1
xor eax, eax
push ebp
push 0x64f1ea
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 - 0x314]
push eax
push 0
push 0
push 0x64f2b0
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
test eax, eax
jne 0x64f1d1
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, 0x100
call fcn.0040eb9c
mov edx, dword [ebp - 0x3a0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
mov ebx, dword [eax]
call dword [ebx + 0x40]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x4c]
jne 0x64f1d1
mov eax, dword [ebp - 4]
add eax, 0x48
lea edx, [ebp - 0x314]
mov ecx, 0x100
call fcn.0040eb9c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x64f1f1
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
pop eax
jmp eax
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x64f0f1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
mov byte [eax + 0x2d], 0
mov dl, 1
call fcn.004bd3f0
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x44]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x64f237
lea eax, [ebp - 0x3a0]
call fcn.0040de94
pop eax
jmp eax

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

Disassembly:
push ecx
mov eax, dword [0x6949e4]
cmp byte [eax + 0xc5], 0
jne 0x65003a
cmp dword [0x694a08], 0
jne 0x64fffa
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, dword [0x688afc]
push eax
push 3
call fcn.0068299c
mov dword [0x694a08], eax
cmp dword [0x694a04], 0
jne 0x650015
push 0
push 0
push 0
push 0
call sub.KERNEL32.DLL_CreateEventW
mov dword [0x694a04], eax
cmp dword [0x694a0c], 0
jne 0x65003a
push esp
push 0
push 0
mov eax, dword [0x688cb4]
push eax
push 0x3e8
push 0
call sub.KERNEL32.DLL_CreateThread
mov dword [0x694a0c], eax
pop edx
ret