joyce8/EMBER2024-capa huggingface dataset:
Function at 0x484b50
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5db552
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x65eb68]
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 esi, dword [ebp + 8]
xor ecx, ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x22c], esi
mov dword [ebp - 0x218], 0
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov dword [ebp - 0x214], eax
mov word [esi], cx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x21c], ecx
lea ecx, [ebp - 0x21c]
push ecx
push eax
mov dword [ebp - 0x218], 1
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x484ce1
push ebx
call fcn.005649e3
mov edi, eax
add esp, 4
test edi, edi
je 0x484bfa
push ebx
push 0
push edi
call fcn.0059dbb0
add esp, 0xc
jmp 0x484bfc
xor edi, edi
mov dword [ebp - 0x230], edi
mov dword [ebp - 0x218], 3
mov dword [ebp - 4], 1
test edi, edi
je 0x484ce1
push edi
push ebx
push dword [ebp - 0x21c]
mov dword [ebp - 0x220], 0
push dword [ebp - 0x214]
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 0
call sub.VERSION.dll_GetFileVersionInfoW
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x214]
push eax
push 0x5f7190
push edi
call sub.VERSION.dll_VerQueryValueW
mov ecx, dword [ebp - 0x214]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
lea eax, [ebp - 0x210]
push 0x5f8630
push eax
call fcn.00484b20
add esp, 0x10
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x210]
push eax
push edi
call sub.VERSION.dll_VerQueryValueW
cmp dword [ebp - 0x220], 0
je 0x484cd8
mov edx, dword [ebp - 0x224]
test edx, edx
je 0x484cd8
mov ecx, edx
lea ebx, [ecx + 2]
jmp 0x484cc0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x484cc0
sub ecx, ebx
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.004049aa
push edi
call fcn.005649de
add esp, 4
mov eax, esi
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.00599f9c
mov esp, ebp
pop ebp
ret
Function at 0x486740
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x4868ce
cmp dword [edi + 0x20], 0
je 0x4868ce
cmp dword [edi + 0x24], 0
je 0x4868ce
mov esi, dword [edi + 0x1c]
test esi, esi
je 0x4868ce
cmp dword [esi], edi
jne 0x4868ce
mov eax, dword [esi + 4]
cmp eax, 0x2a
je 0x4867a8
cmp eax, 0x39
je 0x4867a8
cmp eax, 0x45
je 0x4867a8
cmp eax, 0x49
je 0x4867a8
cmp eax, 0x5b
je 0x4867a8
cmp eax, 0x67
je 0x4867a8
cmp eax, 0x71
je 0x4867a8
cmp eax, 0x29a
jne 0x4868ce
mov dword [edi + 0x14], 0
mov dword [edi + 8], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x2c], 2
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 8]
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], eax
test ecx, ecx
jns 0x4867dd
neg ecx
mov dword [esi + 0x18], ecx
push 0
push 0
push 0
cmp ecx, 2
jne 0x4867f6
mov dword [esi + 4], 0x39
call fcn.0048ab90
jmp 0x48680d
test ecx, ecx
mov edx, 0x2a
mov eax, 0x71
cmovne eax, edx
mov dword [esi + 4], eax
call fcn.0048a900
add esp, 0xc
mov dword [edi + 0x30], eax
mov dword [esi + 0x28], 0
push esi
call fcn.00489420
mov esi, dword [edi + 0x1c]
xor edx, edx
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x4c]
add eax, eax
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x44]
mov word [eax + ecx*2 - 2], dx
mov eax, dword [esi + 0x4c]
lea eax, [eax*2 - 2]
push eax
push edx
push dword [esi + 0x44]
call fcn.0059dbb0
mov eax, dword [esi + 0x84]
add esp, 0x10
lea ecx, [eax + eax*2]
movzx eax, word [ecx*4 + 0x5f86da]
mov dword [esi + 0x80], eax
movzx eax, word [ecx*4 + 0x5f86d8]
mov dword [esi + 0x8c], eax
movzx eax, word [ecx*4 + 0x5f86dc]
mov dword [esi + 0x90], eax
xor eax, eax
movzx ecx, word [ecx*4 + 0x5f86de]
pop edi
mov dword [esi + 0x7c], ecx
mov dword [esi + 0x6c], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x16b4], 0
mov dword [esi + 0x78], 2
mov dword [esi + 0x60], 2
mov dword [esi + 0x68], 0
mov dword [esi + 0x48], 0
pop esi
pop ebp
ret
pop edi
mov eax, 0xfffffffe
pop esi
pop ebp
ret
Function at 0x48a900
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0048a910

Function at 0x48ab90
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x48ab9c
pop ebp
ret
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.0048abb0

Function at 0x4967e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
mov esi, ecx
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x628]
test eax, eax
jne 0x49681c
push 0x32
call fcn.005a199c
push 0x32
push 0
push eax
mov dword [esi + 0x628], eax
call fcn.0059dbb0
mov eax, dword [esi + 0x628]
add esp, 0x10
test eax, eax
jne 0x49681c
or eax, 0xffffffff
pop esi
ret
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1d4]
mov ecx, dword [esi + 0x628]
mov dword [ecx], eax
mov eax, dword [esi + 0x26c]
mov ecx, dword [eax + 0xc]
mov eax, dword [esi + 0x628]
and ecx, 0x2000
shl ecx, 9
mov dword [eax + 4], ecx
cmp dword [esi + 0x8c], 0
jne 0x496863
push 0
push 0
push dword [esi + 0x628]
mov ecx, esi
call fcn.0056d83d
mov ecx, esi
pop esi
jmp fcn.0056d55d
Function at 0x49bfb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x65eb68]
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 SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x49c049
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 0x49c042
cmp dword [ebp - 0x40], 0xe
jne 0x49c042
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 0x49c042
cmp dword [ebp - 0x40], 0x28
jne 0x49c042
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.00599f9c
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.00599f9c
mov esp, ebp
pop ebp
ret

Function at 0x49c060
Capabilities:
Extract resource via kernel32 functions

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

Function at 0x49c130
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 SysReAllocStringLen
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x49c1e0
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 0x49c1d9
cmp dword [ebp - 8], 4
jne 0x49c1d9
lea ecx, [ebp - 0xc]
mov eax, dword [ecx]
lea edx, [ebp - 4]
push esi
cmp eax, dword [edx]
je 0x49c1aa
cmp al, byte [edx]
jne 0x49c1c0
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x49c1c0
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x49c1c0
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x49c1c0
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 0x49c390
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5dc3ad
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x65eb68]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
push 2
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x49c44a
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x49c44a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov dword [ebp - 0x18], esi
test esi, esi
je 0x49c44a
mov ebx, dword [esi + 8]
xor eax, eax
imul ebx, dword [esi + 4]
mov dword [ebp - 0x14], eax
shl ebx, 2
cmp word [esi + 0xe], 0x20
jne 0x49c44c
push dword [ebp - 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [ebx + 0x28]
cmp eax, ecx
jb 0x49c44a
lea ecx, [ebp - 0x2c]
call fcn.0057124f
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00571b58
push 0x34
call fcn.005a199c
add esp, 4
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x49c45e
lea ecx, [ebp - 0x2c]
call fcn.00571361
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 0
mov edi, eax
mov dword [ebp - 0x10], 0
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
push 0
lea ecx, [ebp - 0x10]
mov dword [eax + 0x14], ebx
push ecx
push 0
push eax
push dword [ebp - 0x28]
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov esi, eax
test esi, esi
je 0x49c4cb
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x49c4cb
mov eax, dword [ebp - 0x18]
add eax, 0x28
test ebx, ebx
je 0x49c4c8
push ebx
test eax, eax
je 0x49c4ad
push eax
push ecx
call fcn.0059d630
add esp, 0xc
jmp 0x49c4c8
push 0
push ecx
call fcn.0059dbb0
add esp, 0xc
call fcn.005a1c31
mov dword [eax], 0x16
call fcn.005a1920
mov dword [ebp - 0x14], esi
push dword [ebp - 0x1c]
call fcn.005a1981
add esp, 4
lea ecx, [ebp - 0x2c]
call fcn.00571361
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 0x49e4a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5dca65
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x65eb68]
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 0x49e5de
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x49e5c8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x49e5c8
xor eax, eax
xor esi, esi
cmp ax, word [ebx + 4]
jae 0x49e5a7
lea ecx, [ebp - 0x38]
call fcn.004978a0
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 0x49e550
cmp eax, edi
je 0x49e558
test edx, edx
jne 0x49e58d
test eax, eax
jne 0x49e58d
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.00499b40
test eax, eax
je 0x49e5c0
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.0049de70
test eax, eax
je 0x49e5c0
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
call fcn.00497cb0
inc esi
cmp si, word [ebx + 4]
jb 0x49e514
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.00497cb0
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.004978a0
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.00499b40
test eax, eax
jne 0x49e607
xor esi, esi
jmp 0x49e620
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.0049de70
mov esi, eax
lea ecx, [ebp - 0x38]
call fcn.00497cb0
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 0x49f1d0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5dcbc0
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x65eb68]
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 0x5ecc50
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
call fcn.00404b48
lea ecx, [esi + 0x38]
mov dword [ebp - 4], 0
call fcn.0049f2e0
lea ecx, [esi + 0xc0]
call fcn.0049f1a0
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 0x4a5b40
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 0x4a5c85
mov edx, dword [ebp + 8]
lea eax, [edx - 0x60]
cmp eax, 9
ja 0x4a5b6e
cmp dword [ecx + 0x80], 0
je 0x4a5c85
push 2
push edx
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
test eax, eax
je 0x4a5c85
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x50]
mov esi, eax
push esi
call fcn.004a5a70
add esp, 4
neg eax
sbb edi, edi
and edi, esi
xor esi, esi
cmp dword [ebx + 0x84], esi
jle 0x4a5bde
push esi
mov ecx, ebx
call fcn.004a5320
mov dword [ebp - 4], eax
cmp dword [eax + 0xc8], 0
jne 0x4a5bdc
mov ecx, dword [ebx + 0x74]
test byte [ecx + 0x60], 1
je 0x4a5bd1
test edi, edi
jne 0x4a5bd1
push eax
call fcn.004a5a70
add esp, 4
test eax, eax
cmovne edi, dword [ebp - 4]
inc esi
cmp esi, dword [ebx + 0x84]
jl 0x4a5ba1
jmp 0x4a5bde
mov edi, eax
test edi, edi
je 0x4a5c85
push edi
call fcn.004a5a70
add esp, 4
test eax, eax
je 0x4a5c85
mov eax, dword [edi]
mov ecx, edi
mov esi, dword [ebp + 8]
push esi
call dword [eax + 0x220]
test eax, eax
jne 0x4a5c77
lea eax, [ebp - 4]
mov ecx, ebx
push eax
push esi
push edi
call fcn.004a4d80
mov esi, eax
test esi, esi
je 0x4a5c85
mov edi, dword [esi + 0xc0]
mov eax, dword [esi + 0x40]
mov dword [ebp + 8], eax
cmp dword [edi + 0xc8], 0
jne 0x4a5c38
mov ecx, ebx
call fcn.004a4430
push 1
mov ecx, ebx
call fcn.004a6e20
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 0x4a5c77
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 0x4a6240
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 0x4a62e9
mov eax, 0x2000
test word [edi + 0xe], ax
je 0x4a62e9
call fcn.004a5620
cmp dword [eax + 4], 0
jg 0x4a62e9
push 0
mov ecx, esi
call fcn.004a5620
mov ecx, eax
call fcn.00504c70
test eax, eax
jne 0x4a62e9
mov ecx, esi
call fcn.004a5620
mov eax, dword [esi + 0xa0]
test eax, eax
je 0x4a6299
mov eax, dword [eax + 0x20]
push eax
call fcn.00504c60
add esp, 4
test eax, eax
je 0x4a62e9
cmp dword [edi + 8], 0x12
jne 0x4a62bd
push 1
mov ecx, esi
call fcn.004a6e20
pop edi
xor eax, eax
pop esi
pop ebp
ret 4
cmp dword [esi + 0x24], 0
je 0x4a62d2
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
bt ax, 0xf
jb 0x4a62e9
mov eax, dword [edi + 8]
test eax, eax
je 0x4a62e9
push eax
mov ecx, esi
call fcn.004a5b40
test eax, eax
jne 0x4a6371
mov eax, dword [edi + 4]
cmp eax, 0x105
je 0x4a62fa
cmp eax, 0x101
jne 0x4a6328
cmp dword [esi + 0xc8], 0
je 0x4a6328
cmp dword [esi + 0xb0], 0
je 0x4a6328
push 0
mov ecx, esi
call fcn.004a5620
mov ecx, eax
call fcn.00504c70
test eax, eax
jne 0x4a6328
push eax
mov ecx, esi
call fcn.004a6e20
mov eax, dword [edi + 4]
cmp eax, 0x7b
je 0x4a6337
cmp eax, 0x105
jne 0x4a637c
push 0
mov ecx, esi
call fcn.004a5620
mov ecx, eax
call fcn.00504c70
test eax, eax
je 0x4a637c
push 0x4a4870
mov ecx, 0x669f2c
call fcn.0057c2be
test eax, eax
je 0x4a6429
push dword [edi + 0xc]
mov ecx, eax
push dword [edi + 8]
push 0x7b
call fcn.00504750
pop edi
mov eax, 1
pop esi
pop ebp
ret 4
cmp dword [edi + 4], 0x20a
jne 0x4a63fd
push 0x4a4870
mov ecx, 0x669f2c
call fcn.0057c2be
test eax, eax
je 0x4a6429
cmp dword [eax + 0x1c], 0
jle 0x4a63cd
push 0x4a4870
mov ecx, 0x669f2c
call fcn.0057c2be
test eax, eax
je 0x4a6429
push dword [edi + 0xc]
mov ecx, eax
push dword [edi + 8]
push 0x20a
call fcn.00504750
pop edi
pop esi
pop ebp
ret 4
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x50]
test eax, eax
je 0x4a63fd
cmp dword [eax + 0xe0], 3
jne 0x4a63fd
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 0x4a6371
mov eax, dword [edi + 4]
sub eax, 0x100
cmp eax, 9
ja 0x4a6421
push edi
mov ecx, esi
call fcn.004a5740
mov ecx, eax
call fcn.004b8c70
test eax, eax
jne 0x4a6371
pop edi
xor eax, eax
pop esi
pop ebp
ret 4
call fcn.00564a96
int3
Function at 0x4acf10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
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.004b0a10
test edi, edi
je 0x4ad03b
call fcn.005710c5
mov esi, dword [eax + 0xc]
test esi, esi
je 0x4ad03b
push 0xf1
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4ad03b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4ad03b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4ad03b
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.005649e3
movzx edx, word [edi + 6]
xor esi, esi
add esp, 4
xor ecx, ecx
mov ebx, eax
mov eax, edx
cmp si, dx
jae 0x4acfc4
lea edx, [edi + 8]
mov edi, edi
movzx eax, word [edx]
lea edx, [edx + 2]
mov dword [ebx + ecx*4], eax
inc ecx
movzx esi, word [edi + 6]
cmp ecx, esi
jl 0x4acfb0
mov eax, esi
mov esi, dword [ebp - 8]
mov ecx, esi
movzx eax, ax
push eax
push ebx
call fcn.004ae550
cmp dword [ebp + 0xc], 0
mov dword [ebp - 4], eax
je 0x4ad026
mov ecx, esi
call fcn.004caca0
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.0049eb10
neg eax
sbb eax, eax
and dword [ebp - 4], eax
movzx eax, word [edi + 2]
cmp eax, 0x10
je 0x4ad026
mov edx, dword [ebp - 8]
mov ecx, eax
movzx eax, word [edi + 4]
mov dword [edx + 0xf4], ecx
mov dword [edx + 0xf8], eax
push ebx
call fcn.005649de
mov eax, dword [ebp - 4]
add esp, 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 0x4b66a0
Capabilities:
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5de180
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x65eb68]
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 0x4b66ee
cmp edi, 0x69
ja 0x4b66ee
movzx ecx, word [ebp + 8]
lea edx, [edi - 0x30]
xor eax, eax
cmp ecx, edx
sete al
jmp 0x4b6897
push 2
push edi
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
movzx eax, ax
test ax, ax
jne 0x4b6706
xor eax, eax
jmp 0x4b6897
mov ebx, dword [ebp + 8]
push ebx
call fcn.004b8b20
movzx ecx, ax
add esp, 4
movzx eax, di
mov dword [ebp - 0x120], ecx
cmp bx, ax
je 0x4b6892
cmp cx, ax
je 0x4b6892
mov esi, dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
push 0
push 0
call esi
mov dword [ebp - 0x11c], eax
cmp eax, 1
jl 0x4b66ff
lea ecx, [ebp - 0x134]
call fcn.004b5ab0
push 0xffffffffffffffff
push dword [ebp - 0x11c]
lea ecx, [ebp - 0x134]
mov dword [ebp - 4], 0
call fcn.004960a0
push dword [ebp - 0x130]
push dword [ebp - 0x11c]
call esi
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
xor esi, esi
test eax, eax
je 0x4b6883
mov dword [ebp - 0x118], 0
test esi, esi
js 0x4b68b3
cmp esi, dword [ebp - 0x12c]
jge 0x4b68b3
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 0x4b67fd
mov eax, dword [ebp - 0x118]
cmp bx, ax
je 0x4b687e
push eax
call fcn.004b8b20
add esp, 4
cmp word [ebp - 0x120], ax
je 0x4b687e
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 0x4b6856
mov eax, dword [ebp - 0x118]
cmp bx, ax
je 0x4b687e
push eax
call fcn.004b8b20
add esp, 4
cmp word [ebp - 0x120], ax
je 0x4b687e
mov al, byte [ebp - 0x111]
inc esi
mov byte [ebp - 0x100], al
cmp esi, dword [ebp - 0x11c]
jl 0x4b6791
lea ecx, [ebp - 0x134]
call fcn.004b5df0
xor eax, eax
jmp 0x4b6897
mov esi, 1
lea ecx, [ebp - 0x134]
call fcn.004b5df0
mov eax, esi
jmp 0x4b6897
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.00599f9c
mov esp, ebp
pop ebp
ret
call fcn.00564a96
int3