joyce8/EMBER2024-capa huggingface dataset:
Function at 0x472db0
Capabilities:
Get geographical location

Disassembly:
mov edx, dword [ecx]
sub esp, 8
lea eax, [esp]
push 4
push eax
push 0xd
call dword [edx + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea eax, [esp]
push eax
call fcn.0053f606
neg eax
sbb eax, eax
neg eax
add esp, 0xc
ret

Function at 0x473f70
Capabilities:
Enumerate gui resources

Disassembly:
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp]
push eax
push 0x473fa0
push ecx
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesA]
mov ax, word [esp]
pop ecx
ret

Function at 0x4748c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebx
push ebp
mov dword [esp + 8], ecx
push esi
mov ecx, dword [esp + 0x1c]
push edi
call fcn.00559a78
mov edi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
mov eax, edi
push 6
shr eax, 4
inc eax
and eax, 0xffff
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
jne 0x4748fd
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x474911
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x474926
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x474945
cmp esi, eax
jae 0x474949
xor ecx, ecx
dec edi
mov cx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x474935
cmp esi, eax
jb 0x474953
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 0xc
xor ebx, ebx
mov bx, word [esi]
test ebx, ebx
jne 0x474966
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 0xc
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0xc]
test eax, eax
je 0x474976
mov ebp, dword [eax + 4]
jmp 0x474978
xor ebp, ebp
push 0
push 0
push 0
lea edi, [esi + 2]
push 0
push ebx
push edi
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, dword [esp + 0x20]
mov esi, eax
push esi
call fcn.00559f94
push 0
push 0
push esi
push eax
push ebx
push edi
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, dword [esp + 0x20]
push esi
call fcn.00559f6c
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc

Function at 0x47f960
Capabilities:
Create thread
Resume thread

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x14]
mov dword [esi], 0
push eax
mov dword [esi + 0x10], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea ecx, [esp + 4]
push ecx
push 4
push esi
push 0x47f8e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 0xc], eax
je 0x47f9ac
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov edx, dword [esi + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop esi
pop ecx
ret
Function at 0x47f9b0
Capabilities:
Terminate thread

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0xc], ebx
je 0x47fa36
mov eax, dword [esi + 0x14]
push ebp
push edi
push eax
mov dword [esi + 0x10], 1
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [esi + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], ebx
push ecx
push edx
call edi
test eax, eax
je 0x47fa23
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [esp + 0x10], 0x103
jne 0x47fa23
inc ebx
cmp ebx, 0xa
ja 0x47fa17
mov eax, dword [esi + 0xc]
push 0x64
push eax
call ebp
mov edx, dword [esi + 0xc]
lea ecx, [esp + 0x10]
push ecx
push edx
call edi
test eax, eax
jne 0x47f9ee
jmp 0x47fa23
mov eax, dword [esi + 0xc]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov dword [esi + 0xc], 0
pop ebp
pop esi
pop ebx
pop ecx
ret
Function at 0x488730
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x3c
mov eax, dword [esp + 0x40]
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor edi, edi
xor ebp, ebp
mov dword [esi + 0x58], eax
mov eax, dword [esi + 0x38]
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], ebp
mov ecx, dword [eax + 0x2c]
mov dword [esp + 0x10], edi
cmp ecx, edi
jle 0x488898
test edi, edi
jl 0x48876f
cmp edi, dword [eax + 0x2c]
jge 0x48876f
mov ecx, dword [eax + 0x28]
mov ebx, dword [ecx + edi*4]
jmp 0x488771
xor ebx, ebx
mov ecx, ebx
call fcn.00440a80
test eax, eax
je 0x488887
mov eax, dword [esp + 0x18]
test eax, eax
jle 0x488792
add ebp, dword [ebx + 0xb8]
mov dword [esp + 0x14], ebp
cmp dword [esp + 0x50], ebx
jne 0x48884c
mov ecx, ebx
call fcn.00440950
mov edi, dword [esp + 0x54]
mov edx, dword [esp + 0x10]
mov ebp, eax
mov ecx, ebx
sub ebp, edi
inc edx
mov dword [esp + 0x18], edx
call fcn.00440950
sub eax, edi
mov dword [ebx + 0xb8], edi
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0xac]
test eax, eax
je 0x488848
mov eax, dword [esp + 0x10]
push 1
push eax
mov ecx, esi
call fcn.0048a6f0
mov edi, eax
test edi, edi
je 0x488848
mov eax, dword [edi + 0xbc]
test eax, eax
jne 0x488848
mov ecx, dword [esi + 0x3c]
mov edx, dword [ecx + 0x11c]
mov eax, dword [edx + 0x358]
test eax, eax
jne 0x488848
mov eax, dword [edi + 0x78]
test eax, eax
je 0x488848
push edi
mov ecx, esi
call fcn.0048a680
test eax, eax
je 0x488848
mov eax, dword [edi + 0xb8]
mov ecx, dword [edi + 0xb4]
add eax, ebp
cmp eax, ecx
mov dword [edi + 0xb8], eax
je 0x488848
mov dword [esp + 0x30], eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esi + 0x3c]
push eax
push 0xffffffffffffffbc
mov dword [esp + 0x30], edi
call fcn.0043acc0
mov edi, dword [esp + 0x10]
mov eax, dword [ebx + 0xb8]
mov ecx, dword [ebx + 0xb4]
cmp eax, ecx
je 0x488877
mov dword [esp + 0x44], ecx
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [esi + 0x3c]
push 0xffffffffffffffbc
mov dword [esp + 0x48], ebx
mov dword [esp + 0x50], eax
call fcn.0043acc0
mov edx, dword [ebx + 0xb8]
mov ebp, dword [esp + 0x14]
mov dword [ebx + 0xb4], edx
mov eax, dword [esi + 0x38]
inc edi
mov dword [esp + 0x10], edi
cmp edi, dword [eax + 0x2c]
jl 0x48875e
mov eax, dword [esp + 0x18]
mov ecx, esi
push eax
push ebp
call fcn.00488440
mov eax, dword [esi + 0x38]
xor edi, edi
xor ecx, ecx
cmp dword [eax + 0x2c], edi
jle 0x4888d9
cmp ecx, edi
jl 0x4888c2
cmp ecx, dword [eax + 0x2c]
jge 0x4888c2
mov edx, dword [eax + 0x28]
mov eax, dword [edx + ecx*4]
jmp 0x4888c4
xor eax, eax
mov edx, dword [eax + 0xb8]
inc ecx
mov dword [eax + 0xb4], edx
mov eax, dword [esi + 0x38]
cmp ecx, dword [eax + 0x2c]
jl 0x4888b1
mov eax, dword [esi + 0x88]
mov ebx, dword [esi + 0x80]
sub eax, ebx
push edi
push eax
mov ecx, esi
call fcn.00488440
mov ecx, esi
call fcn.004875f0
cmp dword [eax + 0x34c], edi
jne 0x48890a
mov ecx, dword [esi + 0x3c]
mov edx, dword [ecx]
call dword [edx + 0xe0]
mov dword [esi + 0x58], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret 8
Function at 0x488fe0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x20
mov eax, dword [esp + 0x28]
push ebx
push ebp
push esi
push edi
mov edi, ecx
cmp eax, dword [edi + 0x8c]
jge 0x4890ea
cmp eax, dword [edi + 0x84]
jle 0x4890ea
mov ecx, dword [edi + 0x38]
call fcn.0048b540
mov ebx, dword [edi + 0xac]
mov edx, dword [edi + 0x3c]
mov ecx, eax
xor ebp, ebp
xor eax, eax
cmp ebx, ebp
setne al
sub ecx, eax
mov eax, dword [edx + 0x12c]
cmp eax, ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], eax
jl 0x489039
mov dword [esp + 0x10], ecx
cmp ecx, ebp
mov dword [esp + 0x14], ebp
jle 0x4890ea
mov eax, dword [esp + 0x10]
lea ecx, [eax + ecx - 1]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x10]
xor ebx, ebx
cmp ebp, ecx
mov eax, ebp
setl bl
test ebx, ebx
jne 0x489066
mov eax, dword [esp + 0x18]
mov ecx, dword [edi + 0x38]
push eax
call fcn.0048b6c0
mov esi, eax
mov eax, dword [esi + 0x78]
test eax, eax
je 0x4890d4
lea edx, [esp + 0x20]
mov ecx, esi
push edx
call fcn.00440980
mov ecx, dword [eax + 8]
mov eax, dword [esp + 0x14]
test ebx, ebx
je 0x489099
cmp eax, ecx
jg 0x48909d
mov dword [esp + 0x14], ecx
jmp 0x48909d
cmp ecx, eax
jle 0x4890ea
mov eax, dword [esp + 0x34]
sub eax, ecx
mov ecx, dword [edi + 0xb0]
cdq
xor eax, edx
sub eax, edx
cmp eax, ecx
jg 0x4890d4
mov eax, dword [edi + 0xac]
test eax, eax
je 0x4890f6
push esi
mov ecx, edi
call fcn.0048a680
test eax, eax
jne 0x4890d4
push esi
mov ecx, edi
call fcn.0048a620
test eax, eax
je 0x4890f6
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
inc ebp
dec ecx
cmp ebp, eax
mov dword [esp + 0x18], ecx
jl 0x489051
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 8
Function at 0x493930
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x57ea47
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [0x5c9d6c]
push ebx
push esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov esi, dword [esp + 0x34]
mov ebx, 1
mov dword [esp + 0x28], ebx
fld qword [esi]
call fcn.0053dca0
test eax, eax
jne 0x4939a0
lea ecx, [esp + 0x34]
push str._H:_M:_S
push ecx
mov ecx, esi
call fcn.00423f5a
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 2
call fcn.00559c26
mov byte [esp + 0x28], bl
lea ecx, [esp + 0x34]
jmp 0x493a21
mov edx, dword [esi]
mov eax, dword [esi + 4]
fld qword [esi]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
call fcn.0053dca0
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0
fild qword [esp + 0x10]
fcomp qword [esp + 0x18]
fnstsw ax
test ah, 0x40
je 0x4939f9
lea ecx, [esp + 0x34]
push str._Y__d__m
push ecx
mov ecx, esi
call fcn.00423f5a
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 3
call fcn.00559c26
mov byte [esp + 0x28], bl
lea ecx, [esp + 0x34]
jmp 0x493a21
lea edx, [esp + 0x34]
push str._Y__d__mT_H:_M:_S
push edx
mov ecx, esi
call fcn.00423f5a
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 4
call fcn.00559c26
mov byte [esp + 0x28], bl
lea ecx, [esp + 0x34]
call fcn.00559aed
mov esi, dword [esp + 0x30]
lea eax, [esp + 8]
push eax
mov ecx, esi
call fcn.00559862
mov dword [esp + 0xc], ebx
lea ecx, [esp + 8]
mov byte [esp + 0x28], 0
call fcn.00559aed
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x496570
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x57ece3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esi], 0x5965f4
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x10], 1
test eax, eax
jne 0x4965ba
mov eax, dword [esi + 0x44]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4965ba
mov ecx, dword [esi + 0x48]
test ecx, ecx
je 0x4965ba
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esi + 0x44]
call fcn.00559aed
lea ecx, [esi + 0x40]
mov byte [esp + 0x10], 0
call fcn.00559aed
mov ecx, esi
mov dword [esp + 0x10], 0xffffffff
call fcn.00493ca0
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x496fb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x57edc9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0055934f
mov eax, dword [esp + 0x5c]
xor edi, edi
push eax
lea ecx, [esi + 0x24]
mov dword [esp + 0x58], edi
call fcn.00559b5b
mov dword [esi + 0x2c], edi
mov dword [esi + 0x28], vtable.CFont.0
mov dword [esi + 0x60], 0x596770
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], 0x11
mov dword [esi + 0x6c], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x74], edi
mov dword [esi + 0x78], 0xa
lea ecx, [esp + 0x10]
mov byte [esp + 0x54], 3
push ecx
mov dword [esi], 0x596708
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
call fcn.00471d50
add esp, 4
push 0x12
call fcn.004b9cf0
mov ecx, eax
call fcn.004ba580
mov dword [esi + 0x30], eax
lea ebx, [esi + 0x3c]
xor eax, eax
xor ecx, ecx
mov dword [ebx], eax
xor edx, edx
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], ecx
mov dword [ebx + 4], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [ebx + 8], edx
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x54], 1
mov dword [ebx + 0xc], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x4c
ret 4
Function at 0x496fc9
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x57edc9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0055934f
mov eax, dword [esp + 0x5c]
xor edi, edi
push eax
lea ecx, [esi + 0x24]
mov dword [esp + 0x58], edi
call fcn.00559b5b
mov dword [esi + 0x2c], edi
mov dword [esi + 0x28], vtable.CFont.0
mov dword [esi + 0x60], 0x596770
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], 0x11
mov dword [esi + 0x6c], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x74], edi
mov dword [esi + 0x78], 0xa
lea ecx, [esp + 0x10]
mov byte [esp + 0x54], 3
push ecx
mov dword [esi], 0x596708
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
call fcn.00471d50
add esp, 4
push 0x12
call fcn.004b9cf0
mov ecx, eax
call fcn.004ba580
mov dword [esi + 0x30], eax
lea ebx, [esi + 0x3c]
xor eax, eax
xor ecx, ecx
mov dword [ebx], eax
xor edx, edx
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], ecx
mov dword [ebx + 4], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [ebx + 8], edx
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x54], 1
mov dword [ebx + 0xc], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x4c
ret 4

Function at 0x49cd90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x57f4a3
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.0055934f
xor edi, edi
mov dword [esi + 0x20], 0x596be0
mov dword [esp + 0x14], edi
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
mov dword [esi], 0x596fd8
call fcn.005725e4
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x1c], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4a3e96
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x57f6de
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
xor eax, eax
mov dword [esi + 8], 0x597738
mov dword [esp + 0x10], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x2c], 0x59772c
push 1
mov byte [esp + 0x14], 2
mov dword [esi], 0x597728
mov dword [esi + 0x1c], eax
mov dword [esi + 4], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x40], eax
call fcn.004a4580
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4a50f0
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
push esi
mov esi, dword [ecx + 0x60]
test esi, esi
push edi
mov dword [esp + 8], ecx
je 0x4a519f
mov eax, dword [esp + 0x10]
mov edi, dword [esi + 0x34]
shr eax, 8
cmp al, 2
jne 0x4a519f
test edi, edi
je 0x4a519f
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x1c]
push ebx
lea ecx, [esi + 4]
push ebp
push ecx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x4a514b
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
call dword [edx + 0x24]
mov ecx, dword [eax + 0x14]
test ecx, ecx
jne 0x4a514b
mov eax, dword [edi + 0x2c]
jmp 0x4a5170
mov eax, dword [esi + 0x34]
mov ecx, dword [eax + 0x58]
test ecx, ecx
mov ecx, ebx
jne 0x4a5159
mov ecx, ebp
mov eax, dword [esi + 0x1c]
add eax, ecx
mov ecx, dword [edi + 0x40]
cmp eax, ecx
jl 0x4a516e
mov edx, dword [edi + 0x3c]
add ecx, edx
cmp eax, ecx
jl 0x4a5170
mov eax, ecx
mov esi, dword [esp + 0x10]
push eax
mov ecx, esi
call fcn.004a5020
mov eax, dword [esp + 0x18]
pop ebp
cmp eax, 0x202
pop ebx
je 0x4a5196
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x4a519f
push 0
mov ecx, esi
call fcn.004a4fa0
pop edi
pop esi
pop ecx
ret 0xc
Function at 0x4ab3c0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0xc]
push esi
cmp ebx, 0x112
push edi
mov esi, ecx
ja 0x4ab50f
cmp ebx, 0x112
je 0x4ab46b
mov eax, ebx
sub eax, 2
je 0x4ab434
sub eax, 3
je 0x4ab3f7
sub eax, 0x42
jne 0x4ab415
cmp ebp, dword [esi + 0x124]
jne 0x4ab415
mov eax, dword [esi - 0x20]
push 0
push 0x2fbf
push 0x113
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push ecx
push edx
push eax
push ebx
push ebp
mov ecx, esi
call fcn.004654c0
pop edi
pop esi
pop ebp
pop ebx
ret 0x14
mov eax, dword [esi + 0x128]
test eax, eax
je 0x4ab415
lea ecx, [esi - 0x3c]
call fcn.004661c0
test eax, eax
je 0x4ab44d
mov eax, dword [eax + 0x1c]
cmp ebp, eax
jne 0x4ab415
mov ecx, dword [esi + 0x128]
push ecx
push ebp
call dword [sym.imp.USER32.dll_SetMenu]
mov dword [esi + 0x128], 0
jmp 0x4ab415
lea edi, [esi - 0x3c]
mov ecx, edi
call fcn.004adab0
test eax, eax
je 0x4ab415
push 0x44b1c0
mov ecx, 0x5dfe4c
call fcn.0056dfa8
mov ecx, dword [eax + 4]
test ecx, ecx
jg 0x4ab415
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x4ab415
mov ecx, edi
call fcn.004662e0
test eax, eax
jne 0x4ab415
mov edx, dword [esp + 0x1c]
mov eax, dword [edx]
and eax, 0xfff0
cmp eax, 0xf100
jne 0x4ab415
mov ecx, dword [esp + 0x20]
cmp dword [ecx], 0
jne 0x4ab415
mov edx, dword [edi]
push 0x12
mov ecx, edi
call dword [edx + 0x170]
test eax, eax
je 0x4ab4ee
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0x14
mov ecx, edi
call fcn.004662b0
test eax, eax
je 0x4ab503
push 0
push edi
mov ecx, eax
call fcn.00452bc0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0x14
cmp ebx, 0x220
jb 0x4ab415
cmp ebx, 0x222
jbe 0x4ab3ff
cmp ebx, 0x230
jne 0x4ab415
mov eax, dword [esi - 0x3c]
lea edi, [esi - 0x3c]
mov ecx, edi
call dword [eax + 0xdc]
test eax, eax
mov ecx, edi
je 0x4ab5d3
call fcn.004662e0
test eax, eax
je 0x4ab57d
mov ecx, edi
call fcn.004661c0
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 + 0x58]
mov ebx, dword [esp + 0x1c]
test ah, 4
jne 0x4ab5a7
mov eax, dword [ebx]
test eax, eax
jne 0x4ab59f
mov ecx, dword [esi + 0x128]
test ecx, ecx
je 0x4ab5a7
test eax, eax
jne 0x4ab59f
mov eax, ecx
push eax
mov ecx, edi
call fcn.004ab360
mov ecx, edi
call fcn.004661c0
mov eax, dword [eax + 0x1c]
push 0
push eax
call dword [sym.imp.USER32.dll_SetMenu]
mov ecx, edi
call fcn.004aa490
pop edi
pop esi
mov dword [ebx], 0
pop ebp
mov eax, 1
pop ebx
ret 0x14
call fcn.004661c0
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_GetMenu]
push eax
call fcn.0055add5
test eax, eax
jne 0x4ab415
mov edx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov dword [edx], eax
mov eax, 1
pop ebx
ret 0x14
Function at 0x4ac450
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebx
mov ebx, ecx
push esi
mov esi, dword [esp + 0x10]
mov ecx, dword [ebx + 0xa4]
push edi
and esi, 0xffff
call fcn.0049de10
test esi, esi
jne 0x4ac478
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret 8
call fcn.0056bf2f
mov edi, dword [eax + 0xc]
test edi, edi
jne 0x4ac48d
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret 8
push 0xf1
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x4ac4a5
pop edi
pop esi
pop ebx
pop ecx
ret 8
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4ac4b8
pop edi
pop esi
pop ebx
pop ecx
ret 8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4ac4cc
pop edi
pop esi
pop ebx
pop ecx
ret 8
xor eax, eax
push ebp
mov ax, word [esi + 6]
shl eax, 2
push eax
call fcn.00555203
xor edi, edi
add esp, 4
cmp word [esi + 6], di
mov dword [esp + 0x10], eax
jbe 0x4ac50f
mov ebp, eax
mov ecx, esi
call fcn.00460d00
xor ecx, ecx
xor edx, edx
mov cx, word [eax + edi*2]
inc edi
mov dword [ebp], ecx
mov dx, word [esi + 6]
add ebp, 4
cmp edi, edx
jl 0x4ac4ed
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov cx, word [esi + 6]
push ecx
push eax
mov ecx, ebx
call fcn.004ac200
mov ebp, eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4ac580
mov ecx, ebx
call fcn.00466cd0
xor edi, edi
xor edx, edx
mov di, word [esi + 4]
mov dx, word [esi + 2]
mov ecx, dword [esp + 0x10]
push 0
push edi
push edx
xor edx, edx
mov dx, word [esi + 6]
push edx
mov edx, dword [esp + 0x28]
push ecx
push edx
mov ecx, eax
call fcn.00461c50
test eax, eax
jne 0x4ac55d
xor ebp, ebp
mov ax, word [esi + 2]
cmp ax, 0x10
je 0x4ac580
and eax, 0xffff
mov ecx, eax
xor eax, eax
mov ax, word [esi + 4]
mov dword [ebx + 0xb4], ecx
mov dword [ebx + 0xb8], eax
mov eax, dword [esp + 0x10]
push eax
call fcn.0055522c
add esp, 4
mov eax, ebp
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret 8
Function at 0x4aea20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x57fd8b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [esp + 8], esi
mov dword [esi + 0x20], 0x592c98
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.00473c90
mov edx, dword [eax]
push 0x2393
mov ecx, eax
call dword [edx + 0x18]
mov dword [esi + 0x38], eax
call fcn.00473c90
mov edx, dword [eax]
push 0x2392
mov ecx, eax
call dword [edx + 0x18]
mov dword [esi + 0x3c], eax
call fcn.00473c90
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 + 0x34], eax
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 eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

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

Disassembly:
push 0xffffffffffffffff
push 0x57fe30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x5c9d6c]
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], eax
xor esi, esi
mov dword [esp + 0x24], esi
call fcn.00473c90
mov edx, dword [eax]
lea ecx, [esp + 0x10]
push 0x23cb
push ecx
mov ecx, eax
call dword [edx + 8]
mov edx, dword [0x5c9d6c]
mov ebp, 1
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0x10]
push ebp
lea ecx, [esp + 0x10]
push eax
push ecx
mov byte [esp + 0x30], 1
call fcn.00552423
mov edx, dword [edi + 0x68]
add esp, 0xc
mov eax, dword [edx + 0x80]
cmp eax, esi
mov dword [esp + 0x18], eax
jle 0x4af448
push ebx
mov ecx, dword [edi + 0x68]
push esi
call fcn.00448ca0
test eax, eax
je 0x4af440
lea ecx, [esp + 0x18]
push ecx
mov ecx, eax
call fcn.00450300
mov eax, dword [eax]
mov edx, dword [esp + 0x10]
push eax
push edx
call fcn.0053e557
add esp, 8
lea ecx, [esp + 0x18]
test eax, eax
sete bl
call fcn.00559aed
test bl, bl
je 0x4af440
mov eax, ebp
lea ecx, [esp + 0x10]
push eax
mov eax, dword [esp + 0x18]
push eax
push ecx
inc ebp
call fcn.00552423
add esp, 0xc
xor esi, esi
jmp 0x4af441
inc esi
cmp esi, dword [esp + 0x1c]
jl 0x4af3eb
pop ebx
lea edx, [esp + 0xc]
lea ecx, [edi + 0x60]
push edx
call fcn.00559c26
push 0
mov ecx, edi
call fcn.005584a6
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 0
call fcn.00559aed
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.00559aed
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x1c
ret