joyce8/EMBER2024-capa huggingface dataset:
Function at 0x494c90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x527038
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceW]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push 0xe
push esi
push edi
mov dword [ebp - 0x10], ecx
call ebx
test eax, eax
je 0x494d35
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x494d35
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
movzx ebx, word [eax + 4]
dec ebx
js 0x494e29
mov ecx, ebx
imul ecx, ecx, 0xe
lea esi, [ecx + eax + 7]
movzx edx, byte [esi - 1]
mov ecx, dword [ebp + 0x10]
cmp edx, ecx
jne 0x494d1c
movzx edx, byte [esi]
mov eax, dword [ebp + 0x14]
cmp edx, eax
jne 0x494d1c
push 0
push eax
movzx eax, word [esi + 0xb]
push ecx
mov ecx, dword [ebp - 0x10]
push eax
push edi
call fcn.00494c90
test eax, eax
jne 0x494d2b
dec ebx
sub esi, 0xe
test ebx, ebx
jge 0x494cf1
xor eax, eax
jmp 0x494e6f
mov eax, 1
jmp 0x494e6f
push 3
push esi
push edi
call ebx
mov ebx, eax
test ebx, ebx
je 0x494e29
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
mov dword [ebp + 8], esi
je 0x494e29
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp word [esi + 0xe], 0x20
jne 0x494e2d
lea ecx, [ebp - 0x20]
call fcn.00505517
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [ebp - 0x20]
call fcn.005059ff
mov eax, 0x34
call fcn.0042c7e0
mov ebx, esp
mov ecx, 0xa
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 4]
cdq
sub eax, edx
sar eax, 1
imul ecx, eax
push 0
push 0
lea edx, [ebp + 0xc]
push edx
shl ecx, 2
push 0
mov dword [ebx + 8], eax
mov dword [ebx + 0x14], ecx
mov eax, dword [ebp - 0x1c]
push ebx
push eax
mov dword [ebp + 0xc], 0
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov esi, eax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x494e1a
test esi, esi
je 0x494e1a
mov ecx, dword [ebx + 0x14]
mov edx, dword [ebp + 8]
push ecx
add edx, 0x28
push edx
push eax
call fcn.0045a400
mov ecx, dword [ebp - 0x10]
add esp, 0xc
push esi
call fcn.00494bc0
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
call fcn.00505a7d
mov esi, dword [ebp - 0x10]
jmp 0x494e51
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
call fcn.00505a7d
xor eax, eax
jmp 0x494e6f
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push 0
push ecx
push edx
push 0x30000
push 1
push eax
push esi
call dword [sym.imp.USER32.dll_CreateIconFromResourceEx]
mov esi, dword [ebp - 0x10]
push eax
mov ecx, esi
call fcn.00494b60
cmp dword [esi], 0
jne 0x494e64
mov eax, dword [esi + 4]
test eax, eax
jne 0x494e64
mov eax, 1
jmp 0x494e66
xor eax, eax
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
lea esp, [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x494fd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x527098
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
lea ecx, [esp + 0x14]
call fcn.00505517
xor esi, esi
push esi
mov dword [esp + 0x30], esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x18]
call fcn.005059ff
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0xc]
push edx
push eax
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], esi
call fcn.00494e90
add esp, 0x14
test eax, eax
jne 0x495059
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0xffffffff
call fcn.00505a7d
xor eax, eax
pop esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
mov eax, dword [esp + 0x18]
push ebx
mov ebx, dword [esp + 8]
push ebp
push edi
push esi
push esi
lea edx, [esp + 0x1c]
push edx
push esi
push ebx
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov edi, dword [esp + 0x14]
cmp edi, esi
mov ebp, eax
mov eax, dword [esp + 0x18]
je 0x4950a0
cmp ebp, esi
je 0x4950a0
mov ecx, dword [esp + 0x1c]
mov edx, ecx
shr ecx, 2
mov esi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor esi, esi
cmp eax, esi
je 0x4950ad
push eax
call fcn.0042c81d
add esp, 4
cmp ebx, esi
je 0x4950ba
push ebx
call fcn.0042c81d
add esp, 4
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], 0xffffffff
call fcn.00505a7d
mov ecx, dword [esp + 0x30]
pop edi
mov eax, ebp
pop ebp
pop ebx
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret

Function at 0x495e00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
call fcn.00517ba7
mov esi, dword [eax + 0xc]
movzx eax, word [esp + 8]
push 0xf1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x495e38
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x495e38
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x495e3e
xor eax, eax
pop esi
ret 0x10
movzx ecx, word [esi + 6]
shl ecx, 2
push ecx
call fcn.00500fce
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [edx], eax
xor edx, edx
add esp, 4
mov dword [ecx], 0
cmp word [esi + 6], dx
jbe 0x495e99
push ebx
push ebp
push edi
lea edi, [esi + 8]
lea esp, [esp]
mov ax, word [edi]
test ax, ax
je 0x495e8a
mov ebp, dword [esp + 0x18]
mov ebx, dword [ecx]
mov ebp, dword [ebp]
movzx eax, ax
mov dword [ebp + ebx*4], eax
inc dword [ecx]
movzx eax, word [esi + 6]
inc edx
add edi, 2
cmp edx, eax
jl 0x495e70
pop edi
pop ebp
pop ebx
movzx eax, word [esi + 2]
movzx ecx, word [esi + 4]
mov edx, dword [esp + 0x14]
mov dword [edx], eax
mov dword [edx + 4], ecx
mov eax, 1
pop esi
ret 0x10
Function at 0x4962d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x527180
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
push edi
call fcn.00517ba7
mov edi, dword [esp + 0x2c]
mov esi, dword [eax + 0xc]
push edi
push esi
call fcn.00494350
add esp, 8
test eax, eax
je 0x496389
lea ecx, [esp + 0x10]
call fcn.004db5d0
push 0x553ed4
push edi
push esi
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
lea ecx, [esp + 0x18]
call fcn.004dbae0
test eax, eax
jne 0x496361
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x10], vtable.CGdiObject.0
call fcn.00505d53
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
mov eax, dword [esp + 0x30]
test eax, eax
je 0x49636f
mov ecx, dword [esp + 0x18]
mov dword [eax], ecx
lea ecx, [esp + 0x10]
call fcn.00505d29
mov dword [esp + 0x10], vtable.CGdiObject.0
lea ecx, [esp + 0x10]
jmp 0x496410
call fcn.00517ba7
mov esi, dword [eax + 0xc]
mov dword [esp + 0xc], 0
mov dword [esp + 8], vtable.CBitmap.0
push 2
push edi
push esi
mov dword [esp + 0x30], 1
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4963da
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4963da
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4963da
xor edx, edx
cmp word [eax + 0xe], 0x20
sete dl
mov eax, edx
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x4963e4
mov dword [ecx], eax
test eax, eax
je 0x4963f4
push edi
push esi
call fcn.00494a00
add esp, 8
jmp 0x496404
push 0x40
push 0
push 0
push 0
push edi
push esi
call dword [sym.imp.USER32.dll_LoadImageW]
mov dword [esp + 8], vtable.CGdiObject.0
lea ecx, [esp + 8]
mov dword [esp + 0x24], 0xffffffff
mov esi, eax
call fcn.00505d53
mov ecx, dword [esp + 0x1c]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x496440
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x527180
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
mov esi, dword [esp + 0x28]
push edi
mov edi, dword [esp + 0x30]
push edi
push esi
call fcn.00494350
add esp, 8
test eax, eax
je 0x4964ee
lea ecx, [esp + 0x10]
call fcn.004db5d0
push 0x553ed4
push edi
push esi
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
lea ecx, [esp + 0x18]
call fcn.004dbae0
test eax, eax
jne 0x4964c9
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x10], vtable.CGdiObject.0
call fcn.00505d53
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4964d7
mov ecx, dword [esp + 0x18]
mov dword [eax], ecx
lea ecx, [esp + 0x10]
call fcn.00505d29
mov dword [esp + 0x10], vtable.CGdiObject.0
lea ecx, [esp + 0x10]
jmp 0x49656d
mov dword [esp + 0xc], 0
mov dword [esp + 8], vtable.CBitmap.0
push 2
push edi
push esi
mov dword [esp + 0x30], 1
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x496537
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x496537
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x496537
xor edx, edx
cmp word [eax + 0xe], 0x20
sete dl
mov eax, edx
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x496541
mov dword [ecx], eax
test eax, eax
je 0x496551
push edi
push esi
call fcn.00494a00
add esp, 8
jmp 0x496561
push 0x40
push 0
push 0
push 0
push edi
push esi
call dword [sym.imp.USER32.dll_LoadImageW]
mov dword [esp + 8], vtable.CGdiObject.0
lea ecx, [esp + 8]
mov dword [esp + 0x24], 0xffffffff
mov esi, eax
call fcn.00505d53
mov ecx, dword [esp + 0x1c]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x499aa0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x527428
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x30]
mov eax, dword [edi]
mov ebp, ecx
push str.IconSet
mov ecx, edi
lea ebx, [ebp + 0x20]
call dword [eax + 0x8c]
mov esi, eax
mov dword [esp + 0x18], esi
mov eax, dword [ebx + 0xc]
mov edx, dword [esi]
push 1
push eax
mov ecx, esi
mov dword [esp + 0x30], 0
call dword [edx + 4]
mov dword [esp + 0x30], eax
mov eax, dword [edi + 0x20]
test eax, eax
jne 0x499b77
mov eax, dword [ebx + 0xc]
neg eax
sbb eax, eax
mov dword [esp + 0x14], eax
je 0x499bde
jmp 0x499b10
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
mov ecx, ebx
call fcn.004a81e0
mov eax, dword [esi]
lea ecx, [esp + 0x30]
push ecx
mov ecx, esi
call dword [eax + 8]
mov edi, eax
mov dword [esp + 0x1c], edi
lea edx, [esp + 0x10]
push edx
push 0x5540bc
push edi
mov byte [esp + 0x34], 1
call fcn.004b75f0
mov eax, dword [esp + 0x1c]
add esp, 0xc
push edi
push eax
mov ecx, ebp
call fcn.00499730
test edi, edi
mov byte [esp + 0x28], 0
je 0x499b6d
mov ecx, edi
call fcn.0051af31
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x499b10
jmp 0x499bde
mov ecx, ebp
call fcn.00497dc0
mov eax, dword [esp + 0x30]
test eax, eax
je 0x499bde
mov bl, 2
mov edx, dword [esi]
lea eax, [esp + 0x30]
push eax
mov ecx, esi
call dword [edx + 8]
mov edi, eax
mov dword [esp + 0x1c], edi
lea ecx, [esp + 0x14]
push ecx
push 0x5540bc
push edi
mov byte [esp + 0x34], bl
mov dword [esp + 0x20], 0
call fcn.004b75f0
mov edx, dword [esp + 0x20]
add esp, 0xc
push edi
push edx
mov ecx, ebp
call fcn.00499730
test edi, edi
mov byte [esp + 0x28], 0
je 0x499bd6
mov ecx, edi
call fcn.0051af31
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x499b88
mov eax, dword [esi]
push 1
mov ecx, esi
mov dword [esp + 0x2c], 0xffffffff
call dword [eax]
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
Function at 0x4a2300
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5279b3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.00500a9a
xor edi, edi
mov dword [esi], 0x554ac0
mov dword [esp + 0x14], edi
mov dword [esi + 0x20], 0x551640
mov dword [esi + 0x24], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x28], edi
mov ecx, esi
mov byte [esp + 0x14], 1
call fcn.0051cd7c
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x1c], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4a5c70
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x18
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
push 1
mov edi, ecx
call esi
test ax, ax
jl 0x4a5d86
push 2
call esi
test ax, ax
jl 0x4a5d86
push 4
call esi
test ax, ax
jl 0x4a5d86
push ebx
push ebp
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [edi + 0x58]
xor ebp, ebp
test eax, eax
jle 0x4a5d6d
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
test ebp, ebp
jl 0x4a5d81
cmp ebp, dword [edi + 0x58]
jge 0x4a5d81
mov ecx, dword [edi + 0x54]
mov esi, dword [ecx + ebp*4]
mov edx, dword [esi + 0x20]
push edx
call ebx
test eax, eax
je 0x4a5d61
mov eax, dword [esi + 0x20]
push eax
call fcn.004fdb2c
lea ecx, [esi + 0xc]
mov edx, dword [ecx]
mov dword [esp + 0x18], edx
mov edx, dword [ecx + 4]
mov dword [esp + 0x1c], edx
mov edx, dword [ecx + 8]
mov dword [esp + 0x20], edx
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x24], ecx
test byte [esi + 8], 1
je 0x4a5d23
mov eax, dword [eax + 0x1c]
lea edx, [esp + 0x18]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
jmp 0x4a5d2f
lea ecx, [esp + 0x18]
push ecx
mov ecx, eax
call fcn.0050581f
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
push eax
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x4a5d61
test byte [esi + 8], 1
jne 0x4a5d77
lea edx, [esp + 0x10]
push edx
push 0
mov ecx, edi
call fcn.004a5370
cmp eax, dword [esi + 0x20]
je 0x4a5d77
mov eax, dword [edi + 0x58]
inc ebp
cmp ebp, eax
jl 0x4a5cc4
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0x18
ret
pop ebp
pop ebx
pop edi
mov eax, esi
pop esi
add esp, 0x18
ret
jmp fcn.004f96a8
pop edi
xor eax, eax
pop esi
add esp, 0x18
ret
Function at 0x4a8bb0
Capabilities:
Log keystrokes via application hook

Disassembly:
push ebx
mov ebx, dword [sym.imp.USER32.dll_SetWindowsHookExW]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
push edi
jne 0x4a8be1
call fcn.00517ba7
mov edi, dword [eax + 8]
call ebp
push eax
push edi
push 0x4a8860
push 2
call ebx
mov dword [esi + 4], eax
mov eax, dword [esi + 8]
test eax, eax
jne 0x4a8c00
call fcn.00517ba7
mov edi, dword [eax + 8]
call ebp
push eax
push edi
push 0x4a8800
push 4
call ebx
mov dword [esi + 8], eax
mov eax, dword [esi + 0x14]
test eax, eax
mov edi, dword [esp + 0x14]
je 0x4a8c1b
jmp 0x4a8c10
cmp dword [eax + 8], edi
je 0x4a8c47
mov eax, dword [eax]
test eax, eax
jne 0x4a8c10
mov eax, dword [esi + 0x18]
add esi, 0x10
push 0
push eax
mov ecx, esi
call fcn.004dccb0
mov dword [eax + 8], edi
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4a8c41
pop edi
mov dword [ecx], eax
mov dword [esi + 8], eax
pop esi
pop ebp
pop ebx
ret 4
mov dword [esi + 4], eax
mov dword [esi + 8], eax
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x4a96e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x527cbb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [esp + 8], esi
mov dword [esi + 0x20], 0x54a690
mov dword [esi + 0x24], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x28], edi
mov dword [esp + 0x14], edi
call fcn.00468c00
mov edx, dword [eax]
push 0x2393
mov ecx, eax
call dword [edx + 0x18]
mov dword [esi + 0x38], eax
call fcn.00468c00
mov edx, dword [eax]
push 0x2392
mov ecx, eax
call dword [edx + 0x18]
mov dword [esi + 0x3c], eax
call fcn.00468c00
mov edx, dword [eax]
push 0x2391
mov ecx, eax
call dword [edx + 0x18]
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x40], eax
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x14], edi
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x34], eax
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x4af8d0
Capabilities:
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 2
push edi
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
test ax, ax
je 0x4afa0e
mov si, word [ebp + 8]
lea eax, [ebp - 4]
push eax
mov word [ebp - 4], si
mov word [ebp - 2], 0
call dword [sym.imp.USER32.dll_CharUpperW]
cmp si, di
je 0x4afa1d
cmp word [ebp - 4], di
je 0x4afa1d
mov esi, dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
push 0
push 0
call esi
mov ebx, eax
cmp ebx, 1
mov dword [ebp - 0xc], ebx
jbe 0x4afa0e
lea eax, [ebx*4]
add eax, 3
and eax, 0xfffffffc
call fcn.0042c7e0
mov edi, esp
push edi
push ebx
call esi
lea ecx, [ebp - 0x10c]
push ecx
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x4afa0e
xor esi, esi
test ebx, ebx
jbe 0x4afa0e
lea ecx, [ecx]
mov edx, dword [edi + esi*4]
push edx
mov edx, dword [ebp + 0xc]
push 0
push 1
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x10c]
push ecx
push 0
push edx
mov dword [ebp - 8], 0
call dword [sym.imp.USER32.dll_ToUnicodeEx]
cmp eax, 1
jne 0x4af9b3
mov eax, dword [ebp - 8]
cmp word [ebp + 8], ax
je 0x4afa1d
push eax
call fcn.004af620
add esp, 4
cmp word [ebp - 4], ax
je 0x4afa1d
mov bl, byte [ebp - 0xfc]
mov byte [ebp - 0xfc], 0x81
mov eax, dword [edi + esi*4]
push eax
mov eax, dword [ebp + 0xc]
push 0
push 1
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x10c]
push edx
push 0
push eax
call dword [sym.imp.USER32.dll_ToUnicodeEx]
cmp eax, 1
jne 0x4af9fc
mov eax, dword [ebp - 8]
cmp word [ebp + 8], ax
je 0x4afa1d
push eax
call fcn.004af620
add esp, 4
cmp word [ebp - 4], ax
je 0x4afa1d
mov eax, dword [ebp - 0xc]
inc esi
cmp esi, eax
mov byte [ebp - 0xfc], bl
jb 0x4af970
xor eax, eax
lea esp, [ebp - 0x118]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 1
lea esp, [ebp - 0x118]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b5210
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
cmp ebx, 0x112
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
mov esi, ecx
ja 0x4b5300
je 0x4b525f
cmp ebx, 5
je 0x4b523a
cmp ebx, 0x47
jne 0x4b53fb
mov eax, dword [esp + 0x14]
cmp eax, dword [esi + 0x158]
jne 0x4b53fb
mov ecx, dword [esi - 0x34]
push 0
push 0x2fbf
push 0x113
push ecx
jmp 0x4b53f5
lea edi, [esi - 0x50]
mov ecx, edi
call fcn.00454d00
test eax, eax
je 0x4b53fb
push 0x44ee50
mov ecx, 0x582d9c
call fcn.00519ae8
mov ecx, dword [eax + 4]
test ecx, ecx
jg 0x4b53fb
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x4b53fb
mov ecx, edi
call fcn.0044e930
test eax, eax
jne 0x4b53fb
mov edx, dword [esp + 0x1c]
mov eax, dword [edx]
and eax, 0xfff0
cmp eax, 0xf100
jne 0x4b53fb
cmp dword [ebp], 0
jne 0x4b53fb
mov edx, dword [edi]
push 0x12
mov ecx, edi
call dword [edx + 0x1d8]
test eax, eax
jne 0x4b53d9
mov ecx, edi
call fcn.0044e910
test eax, eax
je 0x4b52f4
push 0
push edi
mov ecx, eax
call fcn.00457e10
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0x14
cmp ebx, 0x220
jb 0x4b53fb
cmp ebx, 0x222
jbe 0x4b53e5
cmp ebx, 0x230
jne 0x4b53fb
mov eax, dword [esi - 0x50]
lea edi, [esi - 0x50]
mov ecx, edi
call dword [eax + 0x154]
test eax, eax
mov ecx, edi
je 0x4b53c3
call fcn.0044e930
test eax, eax
je 0x4b536e
mov ecx, edi
call fcn.00450e10
mov ecx, dword [eax + 0x1c]
push 0
push ecx
call dword [sym.imp.USER32.dll_SetMenu]
mov edx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov dword [edx], 0
mov eax, 1
pop ebx
ret 0x14
mov eax, dword [esi + 0x90]
test ah, 4
mov ebx, dword [esp + 0x1c]
jne 0x4b5397
mov eax, dword [ebx]
test eax, eax
jne 0x4b538f
mov esi, dword [esi + 0x15c]
test esi, esi
je 0x4b5397
mov eax, esi
push eax
mov ecx, edi
call fcn.004b47c0
mov ecx, edi
call fcn.00450e10
mov eax, dword [eax + 0x1c]
push 0
push eax
call dword [sym.imp.USER32.dll_SetMenu]
mov ecx, edi
call fcn.004b51f0
pop edi
pop esi
pop ebp
mov dword [ebx], 0
mov eax, 1
pop ebx
ret 0x14
call fcn.00450e10
mov ecx, eax
call fcn.00421722
test eax, eax
jne 0x4b53fb
mov ecx, dword [esp + 0x1c]
mov dword [ecx], eax
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0x14
mov edx, dword [esi - 0x34]
push 0
push 0x2fbf
push 0x113
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
push eax
push ebp
push ecx
push ebx
push edx
mov ecx, esi
call fcn.00450b10
pop edi
pop esi
pop ebp
pop ebx
ret 0x14
Function at 0x4ba6a0
Capabilities:
Terminate thread

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 8]
xor ebx, ebx
cmp eax, ebx
je 0x4ba718
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
lea ecx, [esp + 0xc]
push ecx
push eax
mov dword [esi + 0xc], 1
mov dword [esp + 0x14], ebx
call edi
test eax, eax
je 0x4ba706
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [esp + 0x10], 0x103
jne 0x4ba705
mov edx, dword [esi + 8]
inc ebx
cmp ebx, 0xa
ja 0x4ba6fc
push 0x64
push edx
call ebp
mov ecx, dword [esi + 8]
lea eax, [esp + 0x10]
push eax
push ecx
call edi
test eax, eax
jne 0x4ba6d3
jmp 0x4ba705
push 0
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop ebp
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4ba7e0
Capabilities:
Create thread
Resume thread

Disassembly:
push ecx
push esi
lea eax, [esp + 4]
push eax
push 4
push 0
push 0x4ba770
mov esi, ecx
push 0
push 0
mov dword [esi], 0
mov dword [esi + 0xc], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 8], eax
je 0x4ba823
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov ecx, dword [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop esi
pop ecx
ret

Function at 0x4bc6a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x528860
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push ebp
push esi
mov esi, ecx
push edi
push esi
lea ecx, [esp + 0x2c]
call fcn.00505a96
xor edi, edi
mov ecx, esi
mov dword [esp + 0x44], edi
call fcn.0044ea00
mov edx, dword [eax]
push edi
push esi
mov ecx, eax
call dword [edx + 0xd0]
push eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x20]
call fcn.00467540
mov edx, dword [esi]
lea eax, [esp + 0x10]
push eax
mov ecx, esi
mov byte [esp + 0x48], 1
call dword [edx + 0x148]
mov ebx, dword [eax + 4]
mov eax, dword [esi + 0x25c]
mov ecx, dword [eax + 0x28]
add ebx, 4
cmp ecx, edi
jle 0x4bc770
test edi, edi
jl 0x4bc731
mov ecx, dword [eax + 0x28]
cmp edi, ecx
jge 0x4bc731
cmp edi, ecx
jge 0x4bc7a4
mov ecx, dword [eax + 0x24]
mov ebp, dword [ecx + edi*4]
lea eax, [ecx + edi*4]
jmp 0x4bc733
xor ebp, ebp
mov edx, dword [ebp]
push 0
mov ecx, ebp
call dword [edx + 0x78]
test eax, eax
je 0x4bc762
mov eax, dword [ebp]
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x14]
push edx
mov ecx, ebp
call dword [eax + 0x94]
mov eax, dword [eax + 4]
add eax, 4
cmp eax, ebx
jle 0x4bc762
mov ebx, eax
mov eax, dword [esi + 0x25c]
mov ecx, dword [eax + 0x28]
inc edi
cmp edi, ecx
jl 0x4bc717
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], 0
call fcn.00467590
lea ecx, [esp + 0x28]
mov dword [esp + 0x44], 0xffffffff
call fcn.00505af1
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret
jmp fcn.004f96a8