joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406585
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x11c
push esi
push edi
mov esi, 0x11c
push esi
xor edi, edi
lea eax, [ebp - 0xa4]
push edi
push eax
call fcn.0049bf00
add esp, 0xc
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xa4], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
cmp eax, edi
jne 0x4065de
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa4], 0x114
call esi
cmp eax, edi
je 0x40668c
mov eax, dword [ebp - 0x94]
dec eax
je 0x406678
dec eax
jne 0x40668c
cmp dword [ebp - 0xa0], 6
jne 0x406629
inc eax
cmp dword [ebp - 0x9c], eax
jne 0x406611
xor ecx, ecx
cmp byte [ebp + 0x76], al
setne cl
add ecx, 8
jmp 0x406625
cmp dword [ebp - 0x9c], edi
jne 0x406665
xor ecx, ecx
cmp byte [ebp + 0x76], al
setne cl
lea ecx, [ecx + ecx + 7]
mov edi, ecx
jmp 0x40668c
cmp dword [ebp - 0xa0], 5
jne 0x406658
cmp dword [ebp - 0x9c], 2
jne 0x40663f
push 5
jmp 0x406675
cmp dword [ebp - 0x9c], 1
jne 0x40664c
push 6
jmp 0x406675
cmp dword [ebp - 0x9c], edi
jne 0x40668c
push 3
jmp 0x406675
cmp dword [ebp - 0xa0], 4
ja 0x40668c
push 4
jmp 0x406675
cmp dword [ebp - 0x9c], 2
jne 0x40668c
cmp byte [ebp + 0x76], al
jne 0x40668c
push 0xa
pop edi
jmp 0x40668c
mov eax, dword [ebp - 0x98]
and eax, 0xffff0000
cmp eax, 0x45a0000
sbb edi, edi
inc edi
inc edi
mov eax, edi
pop edi
pop esi
add ebp, 0x78
leave
ret
Function at 0x409660
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x596e9b
call fcn.00595190
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [esi], edi
mov dword [ebp - 4], edi
mov eax, vtable.KEvent.0
mov dword [esi + 4], eax
mov dword [esi + 8], edi
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov byte [ebp - 4], 3
call fcn.004472c2
lea ecx, [esi + 0x3c]
mov dword [ecx], eax
mov byte [eax + 0x15], 1
mov eax, dword [ecx]
mov dword [eax + 4], eax
mov eax, dword [ecx]
mov dword [eax], eax
mov ecx, dword [ecx]
mov dword [ecx + 8], ecx
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x40a9db
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
inc edi
cmp dword [ebp + 0xc], 0x4e
jne 0x40aa10
mov eax, dword [ebp + 0x14]
cmp dword [eax + 4], 0x3e8
jne 0x40aa10
mov ecx, esi
mov dword [esi + 0x52c], edi
call fcn.0040a949
mov dword [ebx], eax
cmp dword [esi + 0x52c], 0
je 0x40aa10
mov eax, edi
jmp 0x40aa57
push 0
push ebx
push dword [ebp + 0x14]
mov ecx, esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040d260
test eax, eax
jne 0x40aa0c
mov eax, dword [ebp + 0xc]
cmp eax, 0x402
jne 0x40aa5c
push 5
push dword [esi + 4]
lea eax, [esi + 0x52c]
mov dword [ebp + 0xc], eax
mov dword [eax], edi
call dword [sym.imp.USER32.dll_ShowWindow]
and dword [ebx], 0
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
jne 0x40aa0c
xor eax, eax
pop edi
pop ebp
ret 0x10
cmp eax, 0x403
jne 0x40aa96
mov eax, dword [esi + 0x530]
mov dword [esi + 0x28], eax
xor eax, eax
push eax
push eax
push eax
mov dword [esi + 0x52c], edi
mov dword [esi + 0x51c], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageW]
and dword [ebx], 0
cmp dword [esi + 0x52c], 0
jmp 0x40aa53
cmp eax, 0x465
jne 0x40aac3
lea ecx, [esi + 0x2c]
mov dword [esi + 0x52c], edi
call fcn.0040bc69
mov dword [esi + 0x5a4], eax
mov eax, dword [esi + 0x30]
push 5
lea ecx, [esi + 0x568]
call fcn.0048d024
jmp 0x40aa8a
cmp eax, 0x110
jne 0x40aa55
lea eax, [esi + 0x52c]
push ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax], edi
mov dword [ebp + 0xc], eax
mov eax, esp
mov dword [eax], ecx
mov ecx, esi
call fcn.0040a3a5
mov dword [ebx], eax
jmp 0x40aa4d
Function at 0x40b0d6
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x599190
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push esi
push edi
push 6
xor ebx, ebx
pop ecx
xor eax, eax
mov dword [esp + 0x14], ebx
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
lea edi, [esp + 0x30]
call fcn.0041c706
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x194], ebx
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov esi, dword [eax + 8]
mov eax, dword [eax + 0xc]
xor edi, edi
inc edi
push edi
push ecx
sub eax, edx
mov dword [esp + 0x30], eax
mov eax, esp
mov dword [esp + 0x18], esp
push str.0_0__0__0
sub esi, ecx
push eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], esi
call fcn.004306d2
push ecx
mov byte [esp + 0x1a0], 1
mov eax, esp
mov dword [esp + 0x18], esp
push 0x5e67e8
push eax
call fcn.004306d2
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1a0], bl
call fcn.0041c53a
lea eax, [esp + 0x14]
push eax
push ebx
push 0x47
lea ecx, [esp + 0x3c]
call fcn.0043263b
push edi
push ecx
mov eax, esp
mov dword [esp + 0x14], esp
mov esi, 0x5e4b34
push esi
push eax
call fcn.004306d2
push ecx
mov byte [esp + 0x1a0], 2
mov eax, esp
mov dword [esp + 0x1c], esp
push str.margin_left
push eax
call fcn.004306d2
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1a0], bl
call fcn.0041c53a
push edi
push ecx
mov eax, esp
mov dword [esp + 0x14], esp
push esi
push eax
call fcn.004306d2
push ecx
mov byte [esp + 0x1a0], 3
mov eax, esp
mov dword [esp + 0x1c], esp
push str.margin_right
push eax
call fcn.004306d2
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1a0], bl
call fcn.0041c53a
push edi
push ecx
mov eax, esp
mov dword [esp + 0x14], esp
push esi
push eax
call fcn.004306d2
push ecx
mov byte [esp + 0x1a0], 4
mov eax, esp
mov dword [esp + 0x1c], esp
push str.margin_top
push eax
call fcn.004306d2
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1a0], bl
call fcn.0041c53a
push edi
push ecx
mov eax, esp
mov dword [esp + 0x14], esp
push esi
push eax
call fcn.004306d2
push ecx
mov byte [esp + 0x1a0], 5
mov eax, esp
mov dword [esp + 0x1c], esp
push str.margin_bottom
push eax
call fcn.004306d2
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1a0], bl
call fcn.0041c53a
push edi
push ecx
mov eax, esp
mov dword [esp + 0x14], esp
push str.cnm_showdow
push eax
call fcn.004306d2
push ecx
mov byte [esp + 0x1a0], 6
mov eax, esp
mov dword [esp + 0x1c], esp
push str.skin
push eax
call fcn.004306d2
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1a0], bl
call fcn.0041c53a
push ebx
push dword [ebp + 8]
lea ecx, [esp + 0x38]
push 0xf
call fcn.0043263b
or dword [esp + 0x194], 0xffffffff
mov eax, dword [esp + 0x184]
add eax, 0xfffffff0
call fcn.004011c0
lea ecx, [esp + 0x30]
call fcn.00431300
mov ecx, dword [esp + 0x18c]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40b386
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [ebp + 0xc], 0x4e
push edi
mov edi, eax
jne 0x40b3be
mov eax, dword [ebp + 0x14]
cmp dword [eax + 4], 0x3e8
jne 0x40b3be
mov ecx, edi
mov dword [edi + 0x528], esi
call fcn.0040b2fc
mov dword [ebx], eax
cmp dword [edi + 0x528], 0
je 0x40b3be
mov eax, esi
jmp 0x40b405
push 0
push ebx
push dword [ebp + 0x14]
mov ecx, edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040d260
test eax, eax
jne 0x40b3ba
mov eax, dword [ebp + 0xc]
cmp eax, 0x402
jne 0x40b40b
push 5
push dword [edi + 4]
lea eax, [edi + 0x528]
mov dword [ebp + 0xc], eax
mov dword [eax], esi
call dword [sym.imp.USER32.dll_ShowWindow]
and dword [ebx], 0
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
jne 0x40b3ba
xor eax, eax
pop edi
pop esi
pop ebp
ret 0x10
cmp eax, 0x403
jne 0x40b445
mov eax, dword [edi + 0x530]
mov dword [edi + 0x28], eax
xor eax, eax
push eax
push eax
push eax
mov dword [edi + 0x528], esi
mov dword [edi + 0x51c], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageW]
and dword [ebx], 0
cmp dword [edi + 0x528], 0
jmp 0x40b401
cmp eax, 0x465
jne 0x40b472
lea ecx, [edi + 0x2c]
mov dword [edi + 0x528], esi
call fcn.0040bc69
mov dword [edi + 0x590], eax
mov eax, dword [edi + 0x30]
push 5
lea ecx, [edi + 0x560]
call fcn.004497ca
jmp 0x40b439
cmp eax, 0x110
jne 0x40b403
lea eax, [edi + 0x528]
push ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax], esi
mov dword [ebp + 0xc], eax
mov eax, esp
mov dword [eax], ecx
call fcn.0040ada0
mov dword [ebx], eax
jmp 0x40b3fb
Function at 0x40d0f5
Capabilities:
Log keystrokes

Disassembly:
sub esp, 0x10
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
xor esi, esi
cmp ebp, esi
push edi
mov ebx, eax
mov dword [esp + 0x18], esi
jne 0x40d12c
mov eax, dword [0x61e5bc]
cmp eax, esi
je 0x40d11a
mov ebp, dword [eax + 4]
jmp 0x40d11c
xor ebp, ebp
cmp ebp, esi
jne 0x40d12c
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov ebp, eax
cmp ebp, esi
je 0x40d151
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp ebp, eax
je 0x40d151
push ebp
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x40d151
push esi
push ebp
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [esp + 0x18], 1
push ecx
mov eax, esp
mov dword [ebx + 0x51c], esi
push ebp
mov dword [eax], esi
call fcn.0040e68c
cmp eax, esi
mov dword [esp + 0x14], eax
jne 0x40d17a
push 1
push ebp
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
jmp 0x40d256
mov edx, eax
call fcn.0041a61d
mov dword [esp + 0x1c], eax
mov eax, ebp
call fcn.0040eca1
cmp dword [ebx + 0x510], esi
je 0x40d1fc
push esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push esi
push esi
push esi
push 0x2001
mov dword [esp + 0x34], eax
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0x43
push esi
push esi
push esi
push esi
push esi
push dword [esp + 0x2c]
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp edi, dword [esp + 0x24]
je 0x40d1e0
push 1
push edi
push dword [esp + 0x2c]
call dword [sym.imp.USER32.dll_AttachThreadInput]
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp edi, dword [esp + 0x24]
je 0x40d1fc
push esi
push edi
push dword [esp + 0x2c]
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov edi, ebx
call fcn.0043e347
push 0x97
push esi
push esi
push esi
push esi
push esi
push dword [ebx + 4]
mov dword [ebx + 0x51c], esi
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp dword [esp + 0x18], esi
je 0x40d241
push 1
push ebp
call dword [sym.imp.USER32.dll_EnableWindow]
cmp ebp, esi
je 0x40d241
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [ebx + 4]
jne 0x40d241
push ebp
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov edx, dword [esp + 0x1c]
call fcn.0041a61d
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebx + 0x28]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
Function at 0x40d319
Capabilities:
Log keystrokes

Disassembly:
sub esp, 0x10
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
xor esi, esi
cmp ebp, esi
push edi
mov ebx, eax
mov dword [esp + 0x18], esi
jne 0x40d350
mov eax, dword [0x61e5bc]
cmp eax, esi
je 0x40d33e
mov ebp, dword [eax + 4]
jmp 0x40d340
xor ebp, ebp
cmp ebp, esi
jne 0x40d350
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov ebp, eax
cmp ebp, esi
je 0x40d375
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp ebp, eax
je 0x40d375
push ebp
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x40d375
push esi
push ebp
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [esp + 0x18], 1
push ecx
mov eax, esp
mov dword [ebx + 0x51c], esi
push ebp
mov dword [eax], esi
call fcn.0040eaeb
cmp eax, esi
mov dword [esp + 0x14], eax
jne 0x40d39e
push 1
push ebp
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
jmp 0x40d47a
mov edx, eax
call fcn.0041a61d
mov dword [esp + 0x1c], eax
mov eax, ebp
call fcn.0040eca1
cmp dword [ebx + 0x510], esi
je 0x40d420
push esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push esi
push esi
push esi
push 0x2001
mov dword [esp + 0x34], eax
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0x43
push esi
push esi
push esi
push esi
push esi
push dword [esp + 0x2c]
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp edi, dword [esp + 0x24]
je 0x40d404
push 1
push edi
push dword [esp + 0x2c]
call dword [sym.imp.USER32.dll_AttachThreadInput]
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp edi, dword [esp + 0x24]
je 0x40d420
push esi
push edi
push dword [esp + 0x2c]
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov edi, ebx
call fcn.0043e347
push 0x97
push esi
push esi
push esi
push esi
push esi
push dword [ebx + 4]
mov dword [ebx + 0x51c], esi
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp dword [esp + 0x18], esi
je 0x40d465
push 1
push ebp
call dword [sym.imp.USER32.dll_EnableWindow]
cmp ebp, esi
je 0x40d465
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [ebx + 4]
jne 0x40d465
push ebp
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov edx, dword [esp + 0x1c]
call fcn.0041a61d
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebx + 0x28]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
Function at 0x41109d
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
push 1
push dword [ebp + 0x10]
lea ecx, [esi + 0x2c]
push dword [ebp + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x44]
mov edi, eax
test edi, edi
jne 0x4110e9
push 1
push dword [ebp + 0x10]
lea ecx, [esi + 0x188]
push dword [ebp + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x44]
mov edi, eax
test edi, edi
jne 0x4110e9
push 1
push dword [ebp + 0x10]
lea ecx, [esi + 0x2e4]
push dword [ebp + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x44]
mov edi, eax
cmp dword [esi + 0x45c], 0
je 0x411161
lea ebx, [esi + 0x46c]
cmp dword [ebx], 0
je 0x411106
call dword [sym.imp.USER32.dll_ReleaseCapture]
and dword [ebx], 0
cmp dword [esi + 0x45c], edi
jne 0x41115a
push edi
call fcn.004323ad
mov edi, eax
movzx eax, word [ebp + 0x10]
pop ecx
movzx ecx, word [ebp + 0xc]
shl eax, 0x10
or eax, ecx
push eax
push dword [ebp + 8]
mov ecx, edi
push 0x205
call fcn.0043263b
mov eax, dword [esi + 4]
or dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0xc], 0xd
mov dword [ebp - 0x14], eax
mov ecx, dword [edi + 0xc]
mov dword [ebp - 8], ecx
lea ecx, [ebp - 0x14]
push ecx
push 0xffffffffffffffff
push 0x4e
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
and dword [esi + 0x45c], 0
pop edi
pop ebx
leave
ret 0xc
Function at 0x411427
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
xor ebx, ebx
lea edi, [esi + 0x46c]
cmp dword [edi], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
je 0x411455
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov dword [edi], ebx
push 1
push dword [ebp + 0x10]
lea ecx, [esi + 0x2c]
push dword [ebp + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x44]
mov ebx, eax
test ebx, ebx
jne 0x411499
push 1
push dword [ebp + 0x10]
lea ecx, [esi + 0x188]
push dword [ebp + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x44]
mov ebx, eax
test ebx, ebx
jne 0x411499
push 1
push dword [ebp + 0x10]
lea ecx, [esi + 0x2e4]
push dword [ebp + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x44]
mov ebx, eax
mov eax, dword [esi + 0x458]
test eax, eax
mov dword [ebp - 0x10], eax
je 0x4115f5
push eax
call fcn.004323ad
mov edi, eax
test edi, edi
pop ecx
je 0x411574
mov eax, dword [edi + 0xc]
push 2
mov dword [ebp - 4], eax
mov eax, dword [edi]
push 0
mov ecx, edi
call dword [eax + 0x38]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x48]
test eax, eax
je 0x4114e0
push 1
push edi
push esi
call fcn.0040dd00
movzx eax, word [ebp + 0x10]
movzx ecx, word [ebp + 0xc]
shl eax, 0x10
or eax, ecx
push eax
push dword [ebp + 8]
mov ecx, edi
push 0x202
call fcn.0043263b
cmp dword [esi + 0x458], ebx
jne 0x411534
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp ecx, eax
je 0x411526
cmp word [ecx], ax
je 0x411526
push 1
push eax
push eax
push ecx
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x411574
cmp dword [edi + 0xc], eax
je 0x411574
mov dword [ebp - 8], 1
jmp 0x411574
mov eax, dword [edi]
xor ebx, ebx
inc ebx
push ebx
push 0
mov ecx, edi
call dword [eax + 0x38]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x48]
test eax, eax
je 0x411554
push ebx
push edi
push esi
call fcn.0040dd00
movzx eax, word [ebp + 0x10]
movzx ecx, word [ebp + 0xc]
shl eax, 0x10
or eax, ecx
push eax
push dword [ebp + 8]
mov ecx, edi
push 0x2a3
call fcn.0043263b
mov dword [ebp - 0xc], ebx
xor eax, eax
cmp dword [ebp - 8], eax
mov dword [esi + 0x458], eax
je 0x4115b6
mov eax, dword [esi + 4]
or dword [ebp - 0x20], 0xffffffff
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
mov eax, dword [edi]
mov ecx, edi
mov dword [ebp - 0x1c], 1
call dword [eax + 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x20]
push 0x4e
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4115f5
cmp dword [ebp - 0xc], eax
je 0x4115f5
mov ecx, dword [ebp - 4]
cmp ecx, eax
je 0x4115f5
mov eax, dword [esi + 4]
or dword [ebp - 0x20], 0xffffffff
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x24]
push ecx
push 0xffffffffffffffff
push 0x4e
push eax
mov dword [ebp - 0x1c], 4
mov dword [ebp - 0x24], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 0x10]
lea eax, [esi + 0x454]
cmp ecx, dword [eax]
jne 0x4115f5
and dword [eax], 0
pop edi
pop ebx
leave
ret 0xc
Function at 0x411ac3
Capabilities:
Log keystrokes via polling

Disassembly:
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x411b0a
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x411b03
cmp dword [esp + 4], 0x1b
jne 0x411aea
push 0
push 2
jmp 0x411af5
cmp dword [esp + 4], 0xd
jne 0x411b03
push 0
push 1
push 0x111
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
and dword [esi + 0x520], 0
ret 4

Function at 0x4187c6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x418829
cmp dword [ebp + 0xc], 1
je 0x418802
cmp dword [ebp + 0xc], 2
je 0x418802
push 0xd
pop eax
jmp 0x418829
test edi, edi
mov eax, dword [ebp - 4]
je 0x418823
test eax, eax
je 0x41881f
test al, 1
jne 0x4187fd
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x418823
jmp 0x4187fd
and word [edi], 0
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8
Function at 0x418937
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x597e28
call fcn.00595190
sub esp, 0x1c
push ebx
push esi
push edi
mov esi, ecx
call fcn.004186db
push dword [esi]
lea eax, [ebp - 0x10]
push eax
push esi
call fcn.00418a71
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], edi
je 0x418a5a
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x418a57
lea eax, [ebp - 0x24]
mov ebx, vtable.Gdiplus::PrivateFontCollection.0
push eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], edi
call sub.gdiplus.dll_GdipNewPrivateFontCollection
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 1
push dword [ebp - 0x10]
push dword [ebp - 0x24]
call sub.gdiplus.dll_GdipPrivateAddFontFile
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x24]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
call sub.gdiplus.dll_GdipGetFontCollectionFamilyCount
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
cmp eax, edi
jle 0x418a44
xor ecx, ecx
push 8
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call sub.gdiplus.dll_GdipAlloc
mov dword [ebp - 0x1c], eax
test eax, eax
mov byte [ebp - 4], 2
je 0x418a0d
mov ecx, dword [ebp - 0x14]
push 0x418713
push 0x418ca1
push ecx
lea edi, [eax + 4]
push 8
push edi
mov dword [eax], ecx
call fcn.0049de1d
mov eax, edi
jmp 0x418a0f
xor eax, eax
test eax, eax
mov byte [ebp - 4], 1
mov dword [esi + 4], eax
je 0x418a44
push eax
push dword [ebp - 0x14]
lea edi, [ebp - 0x18]
lea eax, [ebp - 0x28]
call fcn.00418cab
test eax, eax
jne 0x418a3f
mov eax, dword [ebp - 0x18]
test eax, eax
jle 0x418a3f
mov ecx, dword [ebp - 0x14]
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
jmp 0x418a44
call fcn.004186db
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x28], ebx
call sub.gdiplus.dll_GdipDeletePrivateFontCollection
mov dword [ebp - 0x28], vtable.Gdiplus::FontCollection.0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004011c0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x418be5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
xor eax, eax
push 0x20e
push eax
mov dword [ebp - 4], eax
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push eax
call fcn.0049bf00
add esp, 0xc
push 0x104
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x214]
push eax
push dword [ebp + 8]
call fcn.00432a8a
mov eax, dword [ebp + 8]
leave
ret 4
Function at 0x41963b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push dword [ebp + 0xc]
mov esi, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
jne 0x41965a
xor eax, eax
jmp 0x4196aa
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 8], eax
je 0x419656
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x419656
push ebx
lea ebx, [edi + 1]
push ebx
call fcn.0041c38e
test eax, eax
je 0x419696
push edi
push dword [ebp - 4]
push eax
call fcn.0049e740
add esp, 0xc
mov eax, ebx
call fcn.0041947f
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
inc eax
pop ebx
pop edi
pop esi
leave
ret

Function at 0x419731
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, 0x5966da
call fcn.00595190
push ecx
push ecx
push ebx
push esi
mov esi, ecx
mov eax, dword [esi]
push edi
xor edi, edi
cmp dword [eax - 0xc], edi
mov dword [ebp - 0x14], edi
je 0x419817
mov eax, dword [0x61b884]
mov ecx, 0x61b884
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push dword [ebp + 0x10]
mov dword [ebp - 4], edi
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push dword [esi]
push str._s_d._s
call fcn.00432a05
add esp, 0x10
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocStringLen
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp + 0x10], eax
je 0x41980c
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, edi
je 0x419803
mov esi, dword [ebp + 0xc]
push edi
lea eax, [ebp + 8]
push eax
push ebx
lea eax, [ebx + 0xa]
push eax
mov dword [ebp + 8], edi
call fcn.0041c38e
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, edi
mov dword [ebp - 0x14], eax
je 0x4197fa
cmp dword [ebp + 8], ebx
jne 0x4197fa
mov eax, ebx
call fcn.0041947f
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004011c0
xor eax, eax
inc eax
jmp 0x41981a
xor eax, eax
mov edx, esi
call fcn.00419498
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004011c0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc