joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420426
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4d0ee0], ebx
push esi
push edi
jne 0x4204a6
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4204e1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4af9f8
push edi
call esi
test eax, eax
mov dword [0x4d0ee0], eax
je 0x4204e1
push 0x4af9e8
push edi
call esi
push 0x4af9d4
push edi
mov dword [0x4d0ee4], eax
call esi
cmp dword [0x4d0a6c], 2
mov dword [0x4d0ee8], eax
jne 0x4204a6
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4d0ef0], eax
je 0x4204a6
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4d0eec], eax
mov eax, dword [0x4d0eec]
test eax, eax
je 0x4204eb
call eax
test eax, eax
je 0x4204d2
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4d0ef0]
test eax, eax
je 0x4204d2
test byte [ebp - 8], 1
jne 0x4204eb
cmp dword [0x4d0a78], 4
jb 0x4204e5
or byte [ebp + 0x12], 0x20
jmp 0x42050a
xor eax, eax
jmp 0x42051a
or byte [ebp + 0x12], 4
jmp 0x42050a
mov eax, dword [0x4d0ee4]
test eax, eax
je 0x42050a
call eax
mov ebx, eax
test ebx, ebx
je 0x42050a
mov eax, dword [0x4d0ee8]
test eax, eax
je 0x42050a
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4d0ee0]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42064c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.0040f3e0
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4206e1
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x4d0a6c]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x4206e1
cmp eax, 1
je 0x4206f9
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4206e1
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x4206b6
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x4206dd
xor eax, eax
inc eax
jmp 0x420715
cmp esi, ebx
jae 0x4206e5
xor eax, eax
jmp 0x420715
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4d0a6c]
jmp 0x4206fb
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x421a3c
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x4afa48
call fcn.0040f5d0
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x4d0f10], edi
jne 0x421a80
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x421a6b
mov dword [0x4d0f10], ebx
jmp 0x421a80
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x421a80
mov dword [0x4d0f10], 2
mov eax, dword [0x4d0f10]
cmp eax, ebx
jne 0x421aa0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x421b63
cmp eax, 2
je 0x421aa9
cmp eax, edi
jne 0x421ad1
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edi
cmp dword [ebp + 0x18], edi
jne 0x421abc
mov eax, dword [0x4d0e70]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x24], eax
cmp eax, edi
jne 0x421ad8
xor eax, eax
jmp 0x421b63
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.0040f3e0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x421b0b
cmp esi, edi
jne 0x421b21
push dword [ebp - 0x24]
call fcn.0040f54b
pop ecx
mov esi, eax
cmp esi, edi
je 0x421ad1
mov dword [ebp - 0x20], ebx
push dword [ebp - 0x24]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x421b54
cmp dword [ebp + 0x14], edi
jne 0x421b3e
push edi
push edi
jmp 0x421b44
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], edi
je 0x421b60
push esi
call fcn.0040f55d
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.0040f60b
ret
Function at 0x421b6c
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x4afa58
call fcn.0040f5d0
xor esi, esi
cmp dword [0x4d0f14], esi
jne 0x421bb0
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x421b9b
mov dword [0x4d0f14], edi
jmp 0x421bb0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x421bb0
mov dword [0x4d0f14], 2
mov eax, dword [0x4d0f14]
cmp eax, 2
je 0x421c91
cmp eax, esi
je 0x421c91
cmp eax, 1
jne 0x421bf5
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x421bde
mov eax, dword [0x4d0e70]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x421bfc
xor eax, eax
jmp 0x421ca3
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.0040f3e0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x421c32
cmp edi, esi
jne 0x421c4d
lea eax, [ebx + ebx]
push eax
call fcn.0040f54b
pop ecx
mov edi, eax
cmp edi, esi
je 0x421bf5
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x421c80
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x421c6a
push esi
push esi
jmp 0x421c70
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x421c8c
push edi
call fcn.0040f55d
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x421ca3
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.0040f60b
ret
Function at 0x422165
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 8], ebx
je 0x4221d0
push 0x3d
push dword [ebp + 8]
call fcn.00410521
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], esi
je 0x4221d0
cmp dword [ebp + 8], esi
je 0x4221d0
xor eax, eax
cmp byte [esi + 1], al
sete al
mov dword [ebp - 4], eax
mov eax, dword [0x4d0a8c]
cmp eax, dword [0x4d0a90]
jne 0x4221b6
mov edi, eax
call fcn.00422104
mov dword [0x4d0a8c], eax
cmp eax, ebx
jne 0x42220f
cmp dword [ebp + 0xc], ebx
je 0x4221d8
cmp dword [0x4d0a94], ebx
je 0x4221d8
call fcn.0042170d
test eax, eax
je 0x42220f
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x422313
push 4
call fcn.0040f54b
cmp eax, ebx
pop ecx
mov dword [0x4d0a8c], eax
je 0x4221d0
mov dword [eax], ebx
cmp dword [0x4d0a94], ebx
jne 0x42220f
push 4
call fcn.0040f54b
cmp eax, ebx
pop ecx
mov dword [0x4d0a94], eax
je 0x4221d0
mov dword [eax], ebx
mov ebx, dword [0x4d0a8c]
mov edi, esi
mov esi, dword [ebp + 8]
sub edi, esi
push esi
call fcn.004220b7
mov edi, eax
test edi, edi
pop ecx
jl 0x422268
cmp dword [ebx], 0
je 0x422268
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.0040f55d
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x422250
mov eax, dword [ebp + 8]
mov dword [esi], eax
jmp 0x42229e
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x422247
mov eax, edi
shl eax, 2
push eax
push ebx
call fcn.00410b25
test eax, eax
pop ecx
pop ecx
je 0x42229e
jmp 0x422299
cmp dword [ebp - 4], 0
jne 0x42230c
test edi, edi
jge 0x422278
neg edi
lea eax, [edi*4 + 8]
push eax
push ebx
call fcn.00410b25
test eax, eax
pop ecx
pop ecx
je 0x4221d0
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x4d0a8c], eax
cmp dword [ebp + 0xc], 0
je 0x4222f5
push dword [ebp + 8]
call fcn.0040e9a0
inc eax
inc eax
push eax
call fcn.0040f54b
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4222f5
push dword [ebp + 8]
push esi
call fcn.0040f630
mov eax, esi
sub eax, dword [ebp + 8]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
and byte [eax], 0
mov ecx, dword [ebp - 4]
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x4222ee
or dword [ebp - 8], 0xffffffff
push esi
call fcn.0040f55d
pop ecx
cmp dword [ebp - 4], 0
je 0x422304
push dword [ebp + 8]
call fcn.0040f55d
pop ecx
mov eax, dword [ebp - 8]
jmp 0x4221d3
push esi
call fcn.0040f55d
pop ecx
xor eax, eax
jmp 0x4221d3
Function at 0x422420
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4a16a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
push 0xf
mov esi, ecx
call edi
push 0x10
mov dword [esi + 8], eax
call edi
push 0x15
mov dword [esi + 0xc], eax
call edi
push 0x16
mov dword [esi + 0x1c], eax
call edi
push 0x14
mov dword [esi + 0x20], eax
call edi
push 0x12
mov dword [esi + 0x10], eax
call edi
push 0x11
mov dword [esi + 0x14], eax
call edi
push 6
mov dword [esi + 0x24], eax
call edi
push 0xd
mov dword [esi + 0x18], eax
call edi
push 0xe
mov dword [esi + 0x28], eax
call edi
mov edi, dword [sym.imp.USER32.dll_GetSysColorBrush]
push 0x10
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], 0xff0000
call edi
push 0x14
mov dword [esi + 4], eax
call edi
lea ebx, [esi + 0x34]
mov ecx, ebx
mov dword [esi], eax
call fcn.0047d132
push 0xf
call edi
push eax
mov ecx, ebx
call fcn.0047d105
lea ebx, [esi + 0x3c]
mov ecx, ebx
call fcn.0047d132
push 0xd
call edi
push eax
mov ecx, ebx
call fcn.0047d105
lea ebx, [esi + 0x4c]
mov ecx, ebx
call fcn.0047d132
push 0x15
call edi
push eax
mov ecx, ebx
call fcn.0047d105
xor ebx, ebx
push ebx
lea ecx, [esp + 0x18]
call fcn.0047cf3c
mov eax, dword [esp + 0x1c]
push 0xc
push eax
mov dword [esp + 0x38], ebx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
lea edi, [esi + 0x44]
cmp edi, ebx
mov dword [esi + 0xa0], eax
je 0x42251b
cmp dword [edi + 4], ebx
je 0x42251b
mov ecx, edi
call fcn.0047d15c
cmp dword [esi + 0xa0], 8
jle 0x422587
movzx ecx, word [esi + 0xa]
movzx eax, byte [esi + 0x12]
movzx bx, byte [esi + 9]
movzx edx, cl
sub eax, edx
cdq
sub eax, edx
sar eax, 1
add al, cl
xor ecx, ecx
mov ch, al
movzx eax, byte [esi + 0x11]
movzx edx, bl
sub eax, edx
cdq
sub eax, edx
sar eax, 1
add al, bl
mov cl, al
movzx eax, byte [esi + 0x10]
shl ecx, 8
mov dword [esp + 0xc], ecx
mov cl, byte [esi + 8]
movzx edx, cl
sub eax, edx
cdq
sub eax, edx
sar eax, 1
add al, cl
mov ecx, dword [esp + 0xc]
movzx eax, al
or eax, ecx
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0047d105
jmp 0x4225d6
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, esi
call fcn.00422350
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], vtable.CBitmap.0
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], 1
call fcn.0047d105
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.GDI32.dll_CreatePatternBrush]
push eax
mov ecx, edi
call fcn.0047d105
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], bl
mov dword [esp + 0xc], vtable.CGdiObject.0
call fcn.0047d15c
call fcn.00437080
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0xffffffff
call fcn.0047cf97
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x422600
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4a16b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push esi
push edi
mov esi, ecx
push 0
lea ecx, [esp + 0x10]
call fcn.0047cf3c
lea eax, [esi + 0x64]
push eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x64], 0
call fcn.0047d1e1
mov edx, dword [esp + 0x14]
mov ebx, dword [sym.imp.GDI32.dll_GetTextMetricsA]
lea ecx, [esp + 0x20]
push ecx
push edx
mov edi, eax
call ebx
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
add ecx, eax
add ecx, edx
lea edx, [esi + 0x84]
mov dword [esi + 0xa4], ecx
push edx
lea ecx, [esp + 0x10]
call fcn.0047d1e1
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push eax
push ecx
call ebx
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
add eax, edx
add eax, ecx
push edi
lea ecx, [esp + 0x10]
mov dword [esi + 0xa8], eax
call fcn.0047d1e1
lea ecx, [esp + 0xc]
mov dword [esp + 0x60], 0xffffffff
call fcn.0047cf97
mov ecx, dword [esp + 0x58]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x58
ret

Function at 0x422cfb
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x4a1823
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, vtable.CBrush.0
mov dword [esp + 8], esi
mov dword [esi + 0x38], edi
mov dword [esi + 0x34], eax
mov dword [esp + 0xa8], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x3c], eax
mov dword [esi + 0x48], edi
mov dword [esi + 0x44], eax
mov dword [esi + 0x50], edi
mov dword [esi + 0x4c], eax
mov eax, vtable.CFont.0
mov dword [esi + 0x68], edi
mov dword [esi + 0x64], eax
mov dword [esi + 0x70], edi
mov dword [esi + 0x6c], eax
mov dword [esi + 0x78], edi
mov dword [esi + 0x74], eax
mov dword [esi + 0x80], edi
mov dword [esi + 0x7c], eax
mov dword [esi + 0x88], edi
mov dword [esi + 0x84], eax
mov dword [esi + 0x90], edi
mov dword [esi + 0x8c], eax
mov dword [esi + 0x98], edi
mov dword [esi + 0x94], eax
mov byte [esp + 0xa8], 0xa
mov dword [esi + 4], edi
mov dword [esi], edi
call fcn.00422420
mov ecx, esi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], edi
call fcn.00422910
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x10], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x1c], 2
jne 0x422dc0
cmp dword [esp + 0x10], 5
jae 0x422dc0
mov eax, 1
mov dword [esi + 0x9c], eax
jmp 0x422dc6
mov dword [esi + 0x9c], edi
mov ecx, dword [esp + 0xa0]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0xa4
ret
Function at 0x42ca76
Capabilities:
Hide graphical window

Disassembly:
push 0xffffffffffffffff
push 0x4a1eb6
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
mov dword [esi], 0x4b111c
mov eax, dword [esi + 0x10]
lea edi, [esi + 0x10]
mov ecx, edi
mov dword [esp + 0x14], 1
call dword [eax + 0x60]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x42caa7
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, edi
mov byte [esp + 0x14], 0
call fcn.00423d70
mov eax, dword [esi + 8]
sub eax, 0x10
mov dword [esp + 0x14], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
pop esi
jg 0x42cada
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x434c40
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4a2968
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [esp + 0x20]
push ebx
push esi
push edi
mov esi, ecx
push eax
lea ecx, [esp + 0x10]
call fcn.00443670
mov edi, dword [esp + 0x30]
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x28], 0
dec edi
call fcn.00491f60
mov edx, dword [esi]
add esp, 4
mov ecx, esi
mov ebx, eax
call dword [edx + 0x80]
mov ecx, dword [ebx]
push 0xffffffffffffffff
push 0x5e
lea eax, [ecx + eax*2 + 2]
mov ecx, dword [esp + 0x3c]
sub esp, 0x10
mov edx, esp
mov dword [edx], edi
mov dword [edx + 4], ecx
add eax, edi
mov dword [edx + 8], eax
mov eax, dword [esp + 0x54]
lea ecx, [esp + 0x24]
mov dword [edx + 0xc], eax
call fcn.004436a0
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.00443690
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x1c
ret 0x14

Function at 0x4364fa
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4a2adb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push esi
mov esi, ecx
push eax
mov dword [esp + 8], esi
call fcn.004333f0
xor eax, eax
mov dword [esi], 0x4b22a0
mov ecx, vtable.CBrush.0
mov dword [esp + 0x10], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x24], ecx
mov dword [esi + 0x30], eax
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x3c], eax
mov dword [esi + 0x38], ecx
mov dword [esi + 0x48], eax
mov dword [esi + 0x44], ecx
mov dword [esi + 0x54], eax
mov dword [esi + 0x50], ecx
mov dword [esi + 0x60], eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x6c], eax
mov dword [esi + 0x68], ecx
mov dword [esi + 0x74], eax
mov dword [esi + 0x70], ecx
mov dword [esi + 0x7c], eax
mov dword [esi + 0x78], vtable.CPen.0
mov ecx, 1
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], ecx
mov dword [esi + 0x18], ecx
mov dword [esi + 4], ecx
mov ecx, esi
mov byte [esp + 0x10], 9
mov dword [esi + 0x14], eax
mov dword [esi + 8], 4
call fcn.00434f50
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x4373f0
Capabilities:
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
sub esp, 0x108
push esi
mov esi, dword [esp + 0x110]
cmp esi, 0x60
push edi
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
jb 0x437417
cmp esi, 0x69
ja 0x437417
push 0x12
call edi
test ah, ah
jns 0x43742a
mov eax, dword [0x4d1008]
test eax, eax
je 0x437488
cmp esi, 0x41
jb 0x437488
cmp esi, 0x5a
ja 0x437488
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
call fcn.00474440
mov ecx, dword [eax + 0x2c]
push ecx
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 1
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
push eax
push 0
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
push eax
push esi
call dword [sym.imp.USER32.dll_ToAsciiEx]
mov cl, byte [esp + 0xc]
lea edx, [esp + 8]
push edx
mov byte [esp + 0xc], cl
mov byte [esp + 0xd], 0
call dword [sym.imp.USER32.dll_CharUpperA]
movsx eax, byte [esp + 8]
pop edi
pop esi
add esp, 0x108
ret
push 0x12
call edi
test ah, ah
jns 0x43749b
pop edi
mov eax, esi
pop esi
add esp, 0x108
ret
push esi
call fcn.0046f12e
add esp, 4
pop edi
pop esi
add esp, 0x108
ret
Function at 0x439f00
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4a2de7
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
mov dword [esi], method.CCommandLineInfo.virtual_0
call fcn.004787a0
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x24], eax
xor edi, edi
push 0xa
lea ecx, [esi + 0x30]
mov dword [esp + 0x18], edi
call fcn.00492650
push 0xa
lea ecx, [esi + 0x4c]
call fcn.004926c0
lea ecx, [esi + 0x6c]
mov byte [esp + 0x14], 2
call fcn.0047c961
mov dword [esi + 0x80], edi
mov dword [esi + 0x7c], vtable.CBitmap.0
cmp dword [0x4d1800], edi
mov byte [esp + 0x14], 4
mov dword [esi + 0x28], edi
mov dword [esi + 0x8c], edi
mov dword [esi + 0x90], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
jne 0x439fc8
push ebx
mov ebx, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push edi
call ebx
push edi
mov dword [0x4d17f4], eax
call ebx
cmp dword [0x4d17f4], edi
mov dword [0x4d17f8], eax
pop ebx
je 0x439fb9
cmp eax, edi
jne 0x439fbe
call fcn.0047c92d
mov dword [0x4d1800], 1
mov ecx, 0xf
mov dword [esi + 8], ecx
mov eax, 0x10
xor ecx, ecx
mov dword [esi + 4], eax
xor eax, eax
mov dword [esi + 0x10], ecx
mov ecx, esi
mov dword [esi + 0x88], 0xffffffff
mov dword [esi + 0xc], eax
mov dword [esi + 0x68], edi
mov dword [esi + 0x84], edi
mov dword [esi + 0x98], edi
mov dword [esi + 0x9c], edi
call fcn.00439e40
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x445d30
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 8]
sub esp, 8
test eax, eax
push ebp
mov ebp, ecx
je 0x445d44
mov dword [eax], 1
mov eax, dword [0x4d0fe4]
test eax, eax
je 0x445d83
mov eax, dword [eax + 0x1c]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x445d83
mov ecx, dword [esp + 0x10]
mov edx, dword [0x4d0fe4]
mov eax, dword [edx + 0x1c]
push 0
push ecx
push pe_nt_image_headers32
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, 1
pop ebp
add esp, 8
ret 8
mov eax, dword [ebp + 0x50]
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x445d77
mov eax, dword [0x4d0ff8]
test eax, eax
je 0x445da6
xor eax, eax
pop ebp
add esp, 8
ret 8
push ebx
mov ebx, dword [0x4d104c]
push esi
push edi
mov dword [esp + 0x14], 0
test ebx, ebx
je 0x445e0c
mov eax, ebx
mov esi, dword [eax + 8]
mov edx, dword [esi + 0x1c]
mov ebx, dword [ebx]
push edx
call fcn.004763ec
test eax, eax
je 0x445db7
mov ecx, esi
xor edi, edi
call fcn.00491e30
test eax, eax
jle 0x445db7
lea esp, [esp]
push edi
mov ecx, esi
call fcn.00484dc0
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x98]
test eax, eax
jne 0x445e04
mov ecx, esi
inc edi
call fcn.00491e30
cmp edi, eax
jl 0x445de0
jmp 0x445db7
mov dword [esp + 0x14], 1
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x11
mov byte [esp + 0x17], 0
call esi
test ah, ah
jns 0x445e24
mov byte [esp + 0x13], 8
push 0x12
call esi
test ah, ah
jns 0x445e31
or byte [esp + 0x13], 0x10
push 0x10
call esi
test ah, ah
jns 0x445e3e
or byte [esp + 0x13], 4
mov edi, dword [esp + 0x14]
test edi, edi
mov esi, dword [esp + 0x1c]
jne 0x445e82
mov eax, dword [ebp + 0x50]
xor ebx, ebx
mov bl, byte [esp + 0x13]
push 1
push eax
or ebx, 1
push ebx
push esi
call fcn.004374f0
add esp, 0x10
test eax, eax
jne 0x445eb6
mov ecx, dword [ebp + 0x50]
mov edx, dword [ecx]
push eax
call dword [edx + 0x13c]
push eax
push ebx
push esi
call fcn.004374f0
add esp, 0x10
test eax, eax
jne 0x445eb6
cmp byte [esp + 0x13], 0x10
jne 0x445ea4
push esi
mov ecx, ebp
call fcn.00445c90
test eax, eax
je 0x445ea4
pop edi
pop esi
pop ebx
mov eax, 1
pop ebp
add esp, 8
ret 8
test edi, edi
je 0x445eb6
mov eax, dword [esp + 0x20]
test eax, eax
je 0x445eb6
mov dword [eax], 0
pop edi
pop esi
pop ebx
xor eax, eax
pop ebp
add esp, 8
ret 8