joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47e390
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x60b4e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x47e429
push 0
lea eax, [ebp - 0x40]
push eax
push 0xe
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x47e422
cmp dword [ebp - 0x40], 0xe
jne 0x47e422
push 0
lea eax, [ebp - 0x40]
push eax
push 0x28
lea eax, [ebp - 0x3c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x47e422
cmp dword [ebp - 0x40], 0x28
jne 0x47e422
push ebx
xor ebx, ebx
cmp word [ebp - 0x2e], 0x20
push esi
sete bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055a658
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.0055a658
mov esp, ebp
pop ebp
ret

Function at 0x47e440
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 2
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x47e488
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x47e488
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x47e488
push ebx
xor ebx, ebx
cmp word [eax + 0xe], 0x20
push esi
sete bl
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret

Function at 0x47e520
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x47e5d0
push 0
lea eax, [ebp - 8]
mov dword [ebp - 4], 0x474e5089
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x47e5c9
cmp dword [ebp - 8], 4
jne 0x47e5c9
lea ecx, [ebp - 0xc]
mov eax, dword [ecx]
lea edx, [ebp - 4]
push esi
cmp eax, dword [edx]
je 0x47e59a
cmp al, byte [edx]
jne 0x47e5b0
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x47e5b0
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x47e5b0
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x47e5b0
push edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
test esi, esi
pop esi
sete al
pop edi
mov esp, ebp
pop ebp
ret
sbb esi, esi
push edi
or esi, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
test esi, esi
pop esi
sete al
pop edi
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x47e7d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x594e18
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x60b4e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
push 2
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x47e897
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x47e897
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x47e897
mov esi, dword [edi + 8]
imul esi, dword [edi + 4]
mov dword [ebp - 0x14], 0
shl esi, 2
cmp word [edi + 0xe], 0x20
jne 0x47e90b
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + 0x28]
cmp eax, ecx
jb 0x47e90b
lea ecx, [ebp - 0x2c]
call fcn.00532434
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00532c91
push 0x34
call fcn.0056181a
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x47e8ab
lea ecx, [ebp - 0x2c]
call fcn.00532541
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x28
push edi
push 0x28
push ebx
call fcn.004815e0
add esp, 0x10
mov dword [ebx + 0x14], esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push 0
push 0
push eax
push 0
push ebx
push dword [ebp - 0x28]
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x47e8fa
mov edx, dword [ebp - 0x10]
test edx, edx
je 0x47e8fa
push esi
lea ecx, [edi + 0x28]
push ecx
push esi
push edx
call fcn.004815e0
mov eax, dword [ebp - 0x18]
add esp, 0x10
mov dword [ebp - 0x14], eax
push ebx
call fcn.00561815
add esp, 4
lea ecx, [ebp - 0x2c]
call fcn.00532541
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x480920
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x595400
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x60b4e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push 0xe
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x480a5e
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x480a48
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x480aaa
xor esi, esi
cmp ax, word [ebx + 4]
jae 0x480a27
lea ecx, [ebp - 0x38]
call fcn.00479c70
mov edx, dword [ebp + 0x14]
movzx ecx, si
mov dword [ebp - 4], 0
lea eax, [ecx*8]
sub eax, ecx
movzx ecx, byte [ebx + eax*2 + 6]
movzx edi, byte [ebx + eax*2 + 7]
lea eax, [ebx + eax*2]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x10], ecx
cmp edx, ecx
jne 0x4809d0
cmp eax, edi
je 0x4809d8
test edx, edx
jne 0x480a0d
test eax, eax
jne 0x480a0d
mov eax, dword [ebp + 0xc]
push 0
push edi
push ecx
movzx eax, word [eax + 0x12]
lea ecx, [ebp - 0x38]
push eax
push dword [ebp + 8]
call fcn.0047bf80
test eax, eax
je 0x480a40
push dword [ebp + 0x1c]
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x38]
push edi
push dword [ebp - 0x10]
push dword [ebp + 0x10]
push eax
call fcn.00480310
test eax, eax
je 0x480a40
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
call fcn.0047a050
inc esi
cmp si, word [ebx + 4]
jb 0x480994
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
lea ecx, [ebp - 0x38]
call fcn.0047a050
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
lea ecx, [ebp - 0x38]
call fcn.00479c70
push 0
push dword [ebp + 0x18]
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 1
push dword [ebp + 0x14]
push esi
push ebx
call fcn.0047bf80
test eax, eax
jne 0x480a87
xor esi, esi
jmp 0x480aa0
push dword [ebp + 0x1c]
lea eax, [ebp - 0x38]
mov ecx, edi
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call fcn.00480310
mov esi, eax
lea ecx, [ebp - 0x38]
call fcn.0047a050
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x483220
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59576b
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x60b4e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0xc]
lea ecx, [esi + 0x30]
mov dword [esi + 8], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CXTPResize.0
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
push 0x5a13b8
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
call fcn.00404a0e
lea ecx, [esi + 0x38]
mov dword [ebp - 4], 0
call fcn.00483330
lea ecx, [esi + 0xc0]
call fcn.004831f0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x48bde0
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
push esi
push edi
mov ecx, dword [ebx + 0x74]
cmp dword [ecx + 0x60], 2
je 0x48bf27
mov edx, dword [ebp + 8]
lea eax, [edx - 0x60]
cmp eax, 9
ja 0x48be0e
cmp dword [ecx + 0x80], 0
je 0x48bf27
push 2
push edx
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
test eax, eax
je 0x48bf27
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x50]
mov esi, eax
push esi
call fcn.0048bd10
add esp, 4
mov edi, eax
neg edi
sbb edi, edi
and edi, esi
xor esi, esi
cmp dword [ebx + 0x84], esi
jle 0x48be80
push esi
mov ecx, ebx
call fcn.0048b5c0
mov dword [ebp - 4], eax
cmp dword [eax + 0xc8], 0
jne 0x48be7e
mov ecx, dword [ebx + 0x74]
test byte [ecx + 0x60], 1
je 0x48be73
test edi, edi
jne 0x48be73
push eax
call fcn.0048bd10
add esp, 4
test eax, eax
cmovne edi, dword [ebp - 4]
inc esi
cmp esi, dword [ebx + 0x84]
jl 0x48be43
jmp 0x48be80
mov edi, eax
test edi, edi
je 0x48bf27
push edi
call fcn.0048bd10
add esp, 4
test eax, eax
je 0x48bf27
mov eax, dword [edi]
mov ecx, edi
mov esi, dword [ebp + 8]
push esi
call dword [eax + 0x220]
test eax, eax
jne 0x48bf19
lea eax, [ebp - 4]
mov ecx, ebx
push eax
push esi
push edi
call fcn.0048af40
mov esi, eax
test esi, esi
je 0x48bf27
mov edi, dword [esi + 0xc0]
mov eax, dword [esi + 0x40]
mov dword [ebp + 8], eax
cmp dword [edi + 0xc8], 0
jne 0x48beda
mov ecx, ebx
call fcn.0048a600
push 1
mov ecx, ebx
call fcn.0048d0e0
push 1
mov dword [ebx + 0x44], 1
mov ecx, edi
mov eax, dword [edi]
push 0
push 1
call dword [eax + 0x168]
mov eax, dword [edi]
mov ecx, edi
push 1
push dword [ebp + 8]
call dword [eax + 0x170]
cmp dword [ebp - 4], 0
jne 0x48bf19
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xb0]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x48c4f0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
cmp dword [edi + 4], 0x104
jne 0x48c59c
mov eax, 0x2000
test word [edi + 0xe], ax
je 0x48c59c
call fcn.0048b8c0
cmp dword [eax + 4], 0
jg 0x48c59c
push 0
mov ecx, esi
call fcn.0048b8c0
mov ecx, eax
call fcn.004e9c80
test eax, eax
jne 0x48c59c
mov ecx, esi
call fcn.0048b8c0
mov eax, dword [esi + 0xa0]
test eax, eax
je 0x48c549
mov eax, dword [eax + 0x20]
push eax
call fcn.004e9c70
add esp, 4
test eax, eax
je 0x48c59c
cmp dword [edi + 8], 0x12
jne 0x48c56d
push 1
mov ecx, esi
call fcn.0048d0e0
pop edi
xor eax, eax
pop esi
pop ebp
ret 4
cmp dword [esi + 0x24], 0
je 0x48c585
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x48c59c
mov eax, dword [edi + 8]
test eax, eax
je 0x48c59c
push eax
mov ecx, esi
call fcn.0048bde0
test eax, eax
jne 0x48c624
mov eax, dword [edi + 4]
cmp eax, 0x105
je 0x48c5ad
cmp eax, 0x101
jne 0x48c5db
cmp dword [esi + 0xc8], 0
je 0x48c5db
cmp dword [esi + 0xb0], 0
je 0x48c5db
push 0
mov ecx, esi
call fcn.0048b8c0
mov ecx, eax
call fcn.004e9c80
test eax, eax
jne 0x48c5db
push eax
mov ecx, esi
call fcn.0048d0e0
mov eax, dword [edi + 4]
cmp eax, 0x7b
je 0x48c5ea
cmp eax, 0x105
jne 0x48c62f
push 0
mov ecx, esi
call fcn.0048b8c0
mov ecx, eax
call fcn.004e9c80
test eax, eax
je 0x48c62f
push 0x48aa30
mov ecx, 0x613dd0
call fcn.0053f091
test eax, eax
je 0x48c6dc
push dword [edi + 0xc]
mov ecx, eax
push dword [edi + 8]
push 0x7b
call fcn.004e9760
pop edi
mov eax, 1
pop esi
pop ebp
ret 4
cmp dword [edi + 4], 0x20a
jne 0x48c6b0
push 0x48aa30
mov ecx, 0x613dd0
call fcn.0053f091
test eax, eax
je 0x48c6dc
cmp dword [eax + 0x1c], 0
jle 0x48c680
push 0x48aa30
mov ecx, 0x613dd0
call fcn.0053f091
test eax, eax
je 0x48c6dc
push dword [edi + 0xc]
mov ecx, eax
push dword [edi + 8]
push 0x20a
call fcn.004e9760
pop edi
pop esi
pop ebp
ret 4
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x50]
test eax, eax
je 0x48c6b0
cmp dword [eax + 0xe0], 3
jne 0x48c6b0
mov edx, dword [eax]
xor ecx, ecx
cmp word [edi + 0xa], cx
setle cl
push ecx
mov ecx, eax
call dword [edx + 0x254]
test eax, eax
jne 0x48c624
mov eax, dword [edi + 4]
sub eax, 0x100
cmp eax, 9
ja 0x48c6d4
push edi
mov ecx, esi
call fcn.0048b9e0
mov ecx, eax
call fcn.0049ee70
test eax, eax
jne 0x48c624
pop edi
xor eax, eax
pop esi
pop ebp
ret 4
call fcn.00525b88
int3
Function at 0x4932b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, ecx
mov ecx, dword [ebp + 8]
push esi
push edi
movzx edi, cx
mov ecx, dword [eax + 0xe4]
mov dword [ebp - 8], eax
call fcn.00496e30
test edi, edi
je 0x4933e3
call fcn.005322aa
mov esi, dword [eax + 0xc]
test esi, esi
je 0x4933e3
push 0xf1
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4933e3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x4933e3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4933e3
movzx eax, word [edi + 6]
xor ecx, ecx
mov edx, 4
mul edx
push ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00525ad5
movzx ecx, word [edi + 6]
xor esi, esi
add esp, 4
xor edx, edx
mov ebx, eax
mov eax, ecx
cmp si, cx
jae 0x493365
lea ecx, [edi + 8]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov dword [ebx + edx*4], eax
inc edx
movzx esi, word [edi + 6]
cmp edx, esi
jl 0x493351
mov eax, esi
mov esi, dword [ebp - 8]
mov ecx, esi
movzx eax, ax
push eax
push ebx
call fcn.004948d0
cmp dword [ebp + 0xc], 0
mov dword [ebp - 4], eax
je 0x4933c5
mov ecx, esi
call fcn.004b0c90
movzx ecx, word [edi + 4]
mov esi, eax
movzx edx, word [edi + 2]
movzx eax, word [edi + 6]
push 0
push ecx
push edx
push eax
push ebx
push dword [ebp + 8]
mov ecx, esi
call fcn.00480f60
neg eax
sbb eax, eax
and dword [ebp - 4], eax
movzx eax, word [edi + 2]
cmp eax, 0x10
je 0x4933c5
mov edx, dword [ebp - 8]
movzx ecx, word [edi + 4]
mov dword [edx + 0xf4], eax
mov dword [edx + 0xf8], ecx
push ebx
call fcn.00525ad0
add esp, 4
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 4]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x49cab0
Capabilities:
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x596c0b
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x60b4e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
cmp edi, 0x60
jb 0x49cafe
cmp edi, 0x69
ja 0x49cafe
movzx ecx, word [ebp + 8]
lea edx, [edi - 0x30]
xor eax, eax
cmp ecx, edx
sete al
jmp 0x49ccb6
push 2
push edi
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
movzx eax, ax
test ax, ax
je 0x49cc99
mov ebx, dword [ebp + 8]
push ebx
call fcn.0049ed80
movzx ecx, ax
add esp, 4
movzx eax, di
mov dword [ebp - 0x11c], ecx
cmp bx, ax
je 0x49ccb1
cmp cx, ax
je 0x49ccb1
push 0
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
mov esi, eax
mov dword [ebp - 0x120], esi
cmp esi, 1
jl 0x49cc99
lea ecx, [ebp - 0x134]
call fcn.0049bf60
push 0xffffffffffffffff
push esi
lea ecx, [ebp - 0x134]
mov dword [ebp - 4], 0
call fcn.004784d0
push dword [ebp - 0x130]
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
xor esi, esi
test eax, eax
je 0x49cca2
cmp dword [ebp - 0x120], esi
jle 0x49cc8e
jmp 0x49cbb0
mov dword [ebp - 0x118], 0
test esi, esi
js 0x49ccd2
cmp esi, dword [ebp - 0x12c]
jge 0x49ccd2
mov eax, dword [ebp - 0x130]
push dword [eax + esi*4]
lea eax, [ebp - 0x118]
push 0
push 1
push eax
lea eax, [ebp - 0x110]
push eax
push 0
push edi
call dword [sym.imp.USER32.dll_ToUnicodeEx]
cmp eax, 1
jne 0x49cc1c
mov eax, dword [ebp - 0x118]
cmp bx, ax
je 0x49cc9d
push eax
call fcn.0049ed80
add esp, 4
cmp word [ebp - 0x11c], ax
je 0x49cc9d
mov al, byte [ebp - 0x100]
mov byte [ebp - 0x111], al
mov eax, dword [ebp - 0x130]
mov byte [ebp - 0x100], 0x81
push dword [eax + esi*4]
lea eax, [ebp - 0x118]
push 0
push 1
push eax
lea eax, [ebp - 0x110]
push eax
push 0
push edi
call dword [sym.imp.USER32.dll_ToUnicodeEx]
cmp eax, 1
jne 0x49cc75
mov eax, dword [ebp - 0x118]
cmp bx, ax
je 0x49cc9d
push eax
call fcn.0049ed80
add esp, 4
cmp word [ebp - 0x11c], ax
je 0x49cc9d
mov al, byte [ebp - 0x111]
inc esi
mov byte [ebp - 0x100], al
cmp esi, dword [ebp - 0x120]
jl 0x49cbb0
lea ecx, [ebp - 0x134]
call fcn.0049c2a0
xor eax, eax
jmp 0x49ccb6
mov esi, 1
lea ecx, [ebp - 0x134]
call fcn.0049c2a0
mov eax, esi
jmp 0x49ccb6
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055a658
mov esp, ebp
pop ebp
ret
call fcn.00525b88
int3
Function at 0x49dd80
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x596e58
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x60b4e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x78]
push 0x32
push 0
push eax
mov dword [ebp - 0x80], ebx
call fcn.0055dac0
mov esi, dword [ebp + 0xc]
add esp, 0xc
cmp esi, 3
jne 0x49ddda
push 0x5a13b8
mov ecx, ebx
call fcn.00404a0e
jmp 0x49df36
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 0
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyExW]
shl eax, 0x10
lea ecx, [esi - 0x21]
mov edx, eax
or edx, 1
cmp ecx, 0xe
ja 0x49de04
mov edx, eax
or edx, 0x1000001
push 0x32
lea eax, [ebp - 0x78]
push eax
push edx
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x7c]
call fcn.00404a0e
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 4], 0
mov esi, dword [eax - 0xc]
test esi, esi
je 0x49df03
js 0x49df54
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x49de55
push esi
lea ecx, [ebp - 0x7c]
call fcn.00405195
mov eax, dword [ebp - 0x7c]
lea ecx, [esi + 1]
push ecx
push eax
call fcn.00567445
mov eax, dword [ebp - 0x7c]
add esp, 8
cmp esi, dword [eax - 8]
jg 0x49df54
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [ebp - 0x7c]
mov word [eax + esi*2], cx
xor esi, esi
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jle 0x49df03
test esi, esi
js 0x49df54
cmp esi, ecx
jg 0x49df54
movzx edi, word [eax + esi*2]
push edi
call dword [sym.imp.USER32.dll_IsCharLowerW]
test eax, eax
jne 0x49deb2
mov eax, dword [ebp - 0x7c]
inc esi
mov ecx, dword [eax - 0xc]
cmp esi, ecx
jl 0x49de86
jmp 0x49df03
push edi
call fcn.0049ed80
movzx eax, ax
add esp, 4
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x7c]
mov edi, dword [eax - 0xc]
cmp esi, edi
jge 0x49df54
cmp dword [eax - 4], 1
jle 0x49dee1
push edi
lea ecx, [ebp - 0x7c]
call fcn.00404d94
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x80]
mov word [eax + esi*2], cx
test edi, edi
js 0x49df54
mov eax, dword [ebp - 0x7c]
cmp edi, dword [eax - 8]
jg 0x49df54
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [ebp - 0x7c]
mov word [eax + edi*2], cx
mov eax, dword [ebp - 0x7c]
add eax, 0xfffffff0
push eax
call fcn.00405aab
mov edx, dword [ebp - 0x7c]
add eax, 0x10
mov dword [ebx], eax
add esp, 4
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x49df36
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055a658
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00404c28
int3
Function at 0x4a4a10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5974a0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x60b4e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], vtable.CFont.0
push 0x58
push dword [esi + 8]
mov dword [ebp - 4], 0
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0
push 0x5b79b4
push eax
push 0x60
push 0x50
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea ecx, [ebp - 0x2c]
call fcn.005353b0
mov eax, dword [esi]
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, esi
call dword [eax + 0x28]
mov edx, dword [edi]
mov ecx, edi
push ebx
push esi
mov dword [ebp - 0x30], eax
call dword [edx + 0x70]
mov eax, dword [edi]
mov ecx, edi
mov esi, dword [esi]
push ebx
call dword [eax + 0x74]
mov edi, dword [ebp - 0x24]
mov ecx, edi
push eax
call dword [esi + 0x30]
mov eax, dword [ebx + 0xb0]
sub eax, 0x10
push eax
call fcn.00405aab
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x24], esi
mov eax, dword [ebx + 0x80]
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], eax
mov eax, dword [ebx + 0x84]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0x88]
push 0x25
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 0x8c]
push ecx
mov dword [ebp - 0x14], eax
mov ecx, edi
push dword [esi - 0xc]
mov eax, dword [edi]
push esi
mov byte [ebp - 4], 1
call dword [eax + 0x68]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4a4b18
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [edi]
mov ecx, edi
push dword [ebp - 0x30]
call dword [eax + 0x28]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], vtable.CFont.0
call fcn.0040cc0b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055a658
mov esp, ebp
pop ebp
ret 8

Function at 0x4acea0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
cmp esi, 8
je 0x4acedd
cmp esi, 0x21
jb 0x4acebc
cmp esi, 0x2e
jbe 0x4acedd
cmp esi, 0x43
je 0x4aced0
cmp esi, 0x56
je 0x4aced0
cmp esi, 0x58
je 0x4aced0
cmp esi, 0x5a
jne 0x4acf0f
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4acf0f
mov eax, dword [edi + 0x20]
mov ecx, edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x18], 0x100
mov dword [ebp - 0x14], esi
call fcn.0052dbc8
test eax, eax
je 0x4acf0f
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 8
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8