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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5270f8
push eax
mov eax, dword [esp + 0x14]
mov dword fs:[0], esp
sub esp, 0x1c
push esi
push edi
mov edi, dword [esp + 0x34]
push 2
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x494a9e
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x494ab1
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
jne 0x494ad1
pop ebp
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
push ebx
mov ebx, dword [ebp + 8]
imul ebx, dword [ebp + 4]
shl ebx, 2
cmp word [ebp + 0xe], 0x20
mov dword [esp + 0x14], 0
jne 0x494b9e
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [ebx + 0x28]
cmp eax, ecx
jb 0x494b9e
lea ecx, [esp + 0x1c]
call fcn.00505577
push 0
mov dword [esp + 0x38], 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x20]
call fcn.00505a5f
push 0x34
call fcn.0042ca33
add esp, 4
push 0
push 0
lea edx, [esp + 0x18]
push edx
mov edi, eax
push 0
mov ecx, 0xa
mov esi, ebp
rep movsd dword es:[edi], dword [esi]
mov dword [eax + 0x14], ebx
push eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x34]
push eax
mov dword [esp + 0x28], 0
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov esi, eax
test esi, esi
je 0x494b80
mov eax, dword [esp + 0x10]
test eax, eax
je 0x494b80
push ebx
add ebp, 0x28
push ebp
push eax
call fcn.0045a460
add esp, 0xc
mov dword [esp + 0x14], esi
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0042c87d
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 0xffffffff
call fcn.00505add
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
pop ebx
pop ebp
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x494cf0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x527098
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 0x494d95
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x494d95
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 0x494e89
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 0x494d7c
movzx edx, byte [esi]
mov eax, dword [ebp + 0x14]
cmp edx, eax
jne 0x494d7c
push 0
push eax
movzx eax, word [esi + 0xb]
push ecx
mov ecx, dword [ebp - 0x10]
push eax
push edi
call fcn.00494cf0
test eax, eax
jne 0x494d8b
dec ebx
sub esi, 0xe
test ebx, ebx
jge 0x494d51
xor eax, eax
jmp 0x494ecf
mov eax, 1
jmp 0x494ecf
push 3
push esi
push edi
call ebx
mov ebx, eax
test ebx, ebx
je 0x494e89
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 0x494e89
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp word [esi + 0xe], 0x20
jne 0x494e8d
lea ecx, [ebp - 0x20]
call fcn.00505577
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [ebp - 0x20]
call fcn.00505a5f
mov eax, 0x34
call fcn.0042c840
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 0x494e7a
test esi, esi
je 0x494e7a
mov ecx, dword [ebx + 0x14]
mov edx, dword [ebp + 8]
push ecx
add edx, 0x28
push edx
push eax
call fcn.0045a460
mov ecx, dword [ebp - 0x10]
add esp, 0xc
push esi
call fcn.00494c20
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
call fcn.00505add
mov esi, dword [ebp - 0x10]
jmp 0x494eb1
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
call fcn.00505add
xor eax, eax
jmp 0x494ecf
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.00494bc0
cmp dword [esi], 0
jne 0x494ec4
mov eax, dword [esi + 4]
test eax, eax
jne 0x494ec4
mov eax, 1
jmp 0x494ec6
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 0x495030
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5270f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
lea ecx, [esp + 0x14]
call fcn.00505577
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.00505a5f
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.00494ef0
add esp, 0x14
test eax, eax
jne 0x4950b9
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0xffffffff
call fcn.00505add
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 0x495100
cmp ebp, esi
je 0x495100
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 0x49510d
push eax
call fcn.0042c87d
add esp, 4
cmp ebx, esi
je 0x49511a
push ebx
call fcn.0042c87d
add esp, 4
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], 0xffffffff
call fcn.00505add
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 0x495e60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
call fcn.00517c07
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 0x495e98
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x495e98
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x495e9e
xor eax, eax
pop esi
ret 0x10
movzx ecx, word [esi + 6]
shl ecx, 2
push ecx
call fcn.0050102e
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 0x495ef9
push ebx
push ebp
push edi
lea edi, [esi + 8]
lea esp, [esp]
mov ax, word [edi]
test ax, ax
je 0x495eea
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 0x495ed0
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 0x496330
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5271e0
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
push edi
call fcn.00517c07
mov edi, dword [esp + 0x2c]
mov esi, dword [eax + 0xc]
push edi
push esi
call fcn.004943b0
add esp, 8
test eax, eax
je 0x4963e9
lea ecx, [esp + 0x10]
call fcn.004db630
push 0x553f04
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.004dbb40
test eax, eax
jne 0x4963c1
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x10], vtable.CGdiObject.0
call fcn.00505db3
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 0x4963cf
mov ecx, dword [esp + 0x18]
mov dword [eax], ecx
lea ecx, [esp + 0x10]
call fcn.00505d89
mov dword [esp + 0x10], vtable.CGdiObject.0
lea ecx, [esp + 0x10]
jmp 0x496470
call fcn.00517c07
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 0x49643a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x49643a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x49643a
xor edx, edx
cmp word [eax + 0xe], 0x20
sete dl
mov eax, edx
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x496444
mov dword [ecx], eax
test eax, eax
je 0x496454
push edi
push esi
call fcn.00494a60
add esp, 8
jmp 0x496464
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.00505db3
mov ecx, dword [esp + 0x1c]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x4964a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5271e0
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.004943b0
add esp, 8
test eax, eax
je 0x49654e
lea ecx, [esp + 0x10]
call fcn.004db630
push 0x553f04
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.004dbb40
test eax, eax
jne 0x496529
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x10], vtable.CGdiObject.0
call fcn.00505db3
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 0x496537
mov ecx, dword [esp + 0x18]
mov dword [eax], ecx
lea ecx, [esp + 0x10]
call fcn.00505d89
mov dword [esp + 0x10], vtable.CGdiObject.0
lea ecx, [esp + 0x10]
jmp 0x4965cd
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 0x496597
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x496597
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x496597
xor edx, edx
cmp word [eax + 0xe], 0x20
sete dl
mov eax, edx
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x4965a1
mov dword [ecx], eax
test eax, eax
je 0x4965b1
push edi
push esi
call fcn.00494a60
add esp, 8
jmp 0x4965c1
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.00505db3
mov ecx, dword [esp + 0x1c]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x499b00
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x527488
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 0x499bd7
mov eax, dword [ebx + 0xc]
neg eax
sbb eax, eax
mov dword [esp + 0x14], eax
je 0x499c3e
jmp 0x499b70
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
mov ecx, ebx
call fcn.004a8240
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 0x5540ec
push edi
mov byte [esp + 0x34], 1
call fcn.004b7650
mov eax, dword [esp + 0x1c]
add esp, 0xc
push edi
push eax
mov ecx, ebp
call fcn.00499790
test edi, edi
mov byte [esp + 0x28], 0
je 0x499bcd
mov ecx, edi
call fcn.0051af91
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x499b70
jmp 0x499c3e
mov ecx, ebp
call fcn.00497e20
mov eax, dword [esp + 0x30]
test eax, eax
je 0x499c3e
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 0x5540ec
push edi
mov byte [esp + 0x34], bl
mov dword [esp + 0x20], 0
call fcn.004b7650
mov edx, dword [esp + 0x20]
add esp, 0xc
push edi
push edx
mov ecx, ebp
call fcn.00499790
test edi, edi
mov byte [esp + 0x28], 0
je 0x499c36
mov ecx, edi
call fcn.0051af91
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x499be8
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 0x4a2360
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x527a13
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.00500afa
xor edi, edi
mov dword [esi], 0x554af0
mov dword [esp + 0x14], edi
mov dword [esi + 0x20], 0x551670
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.0051cddc
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 0x4a5cd0
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 0x4a5de6
push 2
call esi
test ax, ax
jl 0x4a5de6
push 4
call esi
test ax, ax
jl 0x4a5de6
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 0x4a5dcd
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
test ebp, ebp
jl 0x4a5de1
cmp ebp, dword [edi + 0x58]
jge 0x4a5de1
mov ecx, dword [edi + 0x54]
mov esi, dword [ecx + ebp*4]
mov edx, dword [esi + 0x20]
push edx
call ebx
test eax, eax
je 0x4a5dc1
mov eax, dword [esi + 0x20]
push eax
call fcn.004fdb8c
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 0x4a5d83
mov eax, dword [eax + 0x1c]
lea edx, [esp + 0x18]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
jmp 0x4a5d8f
lea ecx, [esp + 0x18]
push ecx
mov ecx, eax
call fcn.0050587f
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 0x4a5dc1
test byte [esi + 8], 1
jne 0x4a5dd7
lea edx, [esp + 0x10]
push edx
push 0
mov ecx, edi
call fcn.004a53d0
cmp eax, dword [esi + 0x20]
je 0x4a5dd7
mov eax, dword [edi + 0x58]
inc ebp
cmp ebp, eax
jl 0x4a5d24
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.004f9708
pop edi
xor eax, eax
pop esi
add esp, 0x18
ret
Function at 0x4a8c10
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 0x4a8c41
call fcn.00517c07
mov edi, dword [eax + 8]
call ebp
push eax
push edi
push 0x4a88c0
push 2
call ebx
mov dword [esi + 4], eax
mov eax, dword [esi + 8]
test eax, eax
jne 0x4a8c60
call fcn.00517c07
mov edi, dword [eax + 8]
call ebp
push eax
push edi
push 0x4a8860
push 4
call ebx
mov dword [esi + 8], eax
mov eax, dword [esi + 0x14]
test eax, eax
mov edi, dword [esp + 0x14]
je 0x4a8c7b
jmp 0x4a8c70
cmp dword [eax + 8], edi
je 0x4a8ca7
mov eax, dword [eax]
test eax, eax
jne 0x4a8c70
mov eax, dword [esi + 0x18]
add esi, 0x10
push 0
push eax
mov ecx, esi
call fcn.004dcd10
mov dword [eax + 8], edi
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4a8ca1
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 0x4a9740
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x527d1b
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], 0x54a6c0
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.00468c60
mov edx, dword [eax]
push 0x2393
mov ecx, eax
call dword [edx + 0x18]
mov dword [esi + 0x38], eax
call fcn.00468c60
mov edx, dword [eax]
push 0x2392
mov ecx, eax
call dword [edx + 0x18]
mov dword [esi + 0x3c], eax
call fcn.00468c60
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 0x4af930
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 0x4afa6e
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 0x4afa7d
cmp word [ebp - 4], di
je 0x4afa7d
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 0x4afa6e
lea eax, [ebx*4]
add eax, 3
and eax, 0xfffffffc
call fcn.0042c840
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 0x4afa6e
xor esi, esi
test ebx, ebx
jbe 0x4afa6e
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 0x4afa13
mov eax, dword [ebp - 8]
cmp word [ebp + 8], ax
je 0x4afa7d
push eax
call fcn.004af680
add esp, 4
cmp word [ebp - 4], ax
je 0x4afa7d
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 0x4afa5c
mov eax, dword [ebp - 8]
cmp word [ebp + 8], ax
je 0x4afa7d
push eax
call fcn.004af680
add esp, 4
cmp word [ebp - 4], ax
je 0x4afa7d
mov eax, dword [ebp - 0xc]
inc esi
cmp esi, eax
mov byte [ebp - 0xfc], bl
jb 0x4af9d0
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 0x4b5270
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 0x4b5360
je 0x4b52bf
cmp ebx, 5
je 0x4b529a
cmp ebx, 0x47
jne 0x4b545b
mov eax, dword [esp + 0x14]
cmp eax, dword [esi + 0x158]
jne 0x4b545b
mov ecx, dword [esi - 0x34]
push 0
push 0x2fbf
push 0x113
push ecx
jmp 0x4b5455
lea edi, [esi - 0x50]
mov ecx, edi
call fcn.00454d60
test eax, eax
je 0x4b545b
push 0x44eeb0
mov ecx, 0x582d9c
call fcn.00519b48
mov ecx, dword [eax + 4]
test ecx, ecx
jg 0x4b545b
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x4b545b
mov ecx, edi
call fcn.0044e990
test eax, eax
jne 0x4b545b
mov edx, dword [esp + 0x1c]
mov eax, dword [edx]
and eax, 0xfff0
cmp eax, 0xf100
jne 0x4b545b
cmp dword [ebp], 0
jne 0x4b545b
mov edx, dword [edi]
push 0x12
mov ecx, edi
call dword [edx + 0x1d8]
test eax, eax
jne 0x4b5439
mov ecx, edi
call fcn.0044e970
test eax, eax
je 0x4b5354
push 0
push edi
mov ecx, eax
call fcn.00457e70
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0x14
cmp ebx, 0x220
jb 0x4b545b
cmp ebx, 0x222
jbe 0x4b5445
cmp ebx, 0x230
jne 0x4b545b
mov eax, dword [esi - 0x50]
lea edi, [esi - 0x50]
mov ecx, edi
call dword [eax + 0x154]
test eax, eax
mov ecx, edi
je 0x4b5423
call fcn.0044e990
test eax, eax
je 0x4b53ce
mov ecx, edi
call fcn.00450e70
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 0x4b53f7
mov eax, dword [ebx]
test eax, eax
jne 0x4b53ef
mov esi, dword [esi + 0x15c]
test esi, esi
je 0x4b53f7
mov eax, esi
push eax
mov ecx, edi
call fcn.004b4820
mov ecx, edi
call fcn.00450e70
mov eax, dword [eax + 0x1c]
push 0
push eax
call dword [sym.imp.USER32.dll_SetMenu]
mov ecx, edi
call fcn.004b5250
pop edi
pop esi
pop ebp
mov dword [ebx], 0
mov eax, 1
pop ebx
ret 0x14
call fcn.00450e70
mov ecx, eax
call fcn.00421782
test eax, eax
jne 0x4b545b
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.00450b70
pop edi
pop esi
pop ebp
pop ebx
ret 0x14