joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40656c
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.00495180
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 0x4065c5
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa4], 0x114
call esi
cmp eax, edi
je 0x406673
mov eax, dword [ebp - 0x94]
dec eax
je 0x40665f
dec eax
jne 0x406673
cmp dword [ebp - 0xa0], 6
jne 0x406610
inc eax
cmp dword [ebp - 0x9c], eax
jne 0x4065f8
xor ecx, ecx
cmp byte [ebp + 0x76], al
setne cl
add ecx, 8
jmp 0x40660c
cmp dword [ebp - 0x9c], edi
jne 0x40664c
xor ecx, ecx
cmp byte [ebp + 0x76], al
setne cl
lea ecx, [ecx + ecx + 7]
mov edi, ecx
jmp 0x406673
cmp dword [ebp - 0xa0], 5
jne 0x40663f
cmp dword [ebp - 0x9c], 2
jne 0x406626
push 5
jmp 0x40665c
cmp dword [ebp - 0x9c], 1
jne 0x406633
push 6
jmp 0x40665c
cmp dword [ebp - 0x9c], edi
jne 0x406673
push 3
jmp 0x40665c
cmp dword [ebp - 0xa0], 4
ja 0x406673
push 4
jmp 0x40665c
cmp dword [ebp - 0x9c], 2
jne 0x406673
cmp byte [ebp + 0x76], al
jne 0x406673
push 0xa
pop edi
jmp 0x406673
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 0x409647
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4ce12d
call fcn.004cc470
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.0047b68c
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 0x40a85b
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d0375
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.0041c8d8
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.00430579
push ecx
mov byte [esp + 0x1a0], 1
mov eax, esp
mov dword [esp + 0x18], esp
push 0x4e35ec
push eax
call fcn.00430579
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1a0], bl
call fcn.0041c70c
lea eax, [esp + 0x14]
push eax
push ebx
push 0x47
lea ecx, [esp + 0x3c]
call fcn.00432532
push edi
push ecx
mov eax, esp
mov dword [esp + 0x14], esp
mov esi, 0x4e1ab4
push esi
push eax
call fcn.00430579
push ecx
mov byte [esp + 0x1a0], 2
mov eax, esp
mov dword [esp + 0x1c], esp
push str.margin_left
push eax
call fcn.00430579
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1a0], bl
call fcn.0041c70c
push edi
push ecx
mov eax, esp
mov dword [esp + 0x14], esp
push esi
push eax
call fcn.00430579
push ecx
mov byte [esp + 0x1a0], 3
mov eax, esp
mov dword [esp + 0x1c], esp
push str.margin_right
push eax
call fcn.00430579
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1a0], bl
call fcn.0041c70c
push edi
push ecx
mov eax, esp
mov dword [esp + 0x14], esp
push esi
push eax
call fcn.00430579
push ecx
mov byte [esp + 0x1a0], 4
mov eax, esp
mov dword [esp + 0x1c], esp
push str.margin_top
push eax
call fcn.00430579
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1a0], bl
call fcn.0041c70c
push edi
push ecx
mov eax, esp
mov dword [esp + 0x14], esp
push esi
push eax
call fcn.00430579
push ecx
mov byte [esp + 0x1a0], 5
mov eax, esp
mov dword [esp + 0x1c], esp
push str.margin_bottom
push eax
call fcn.00430579
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1a0], bl
call fcn.0041c70c
push edi
push ecx
mov eax, esp
mov dword [esp + 0x14], esp
push str.cnm_showdow
push eax
call fcn.00430579
push ecx
mov byte [esp + 0x1a0], 6
mov eax, esp
mov dword [esp + 0x1c], esp
push str.skin
push eax
call fcn.00430579
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1a0], bl
call fcn.0041c70c
push ebx
push dword [ebp + 8]
lea ecx, [esp + 0x38]
push 0xf
call fcn.00432532
or dword [esp + 0x194], 0xffffffff
mov eax, dword [esp + 0x184]
add eax, 0xfffffff0
call fcn.004011c0
lea ecx, [esp + 0x30]
call fcn.004311d9
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 0x40ab84
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
inc edi
cmp dword [ebp + 0xc], 0x4e
jne 0x40abb9
mov eax, dword [ebp + 0x14]
cmp dword [eax + 4], 0x3e8
jne 0x40abb9
mov ecx, esi
mov dword [esi + 0x52c], edi
call fcn.0040aaf2
mov dword [ebx], eax
cmp dword [esi + 0x52c], 0
je 0x40abb9
mov eax, edi
jmp 0x40ac00
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.0040d33d
test eax, eax
jne 0x40abb5
mov eax, dword [ebp + 0xc]
cmp eax, 0x402
jne 0x40ac05
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 0x40abb5
xor eax, eax
pop edi
pop ebp
ret 0x10
cmp eax, 0x403
jne 0x40ac3f
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 0x40abfc
cmp eax, 0x465
jne 0x40ac6c
lea ecx, [esi + 0x2c]
mov dword [esi + 0x52c], edi
call fcn.0040bd40
mov dword [esi + 0x5a4], eax
mov eax, dword [esi + 0x30]
push 5
lea ecx, [esi + 0x568]
call fcn.00488dcd
jmp 0x40ac33
cmp eax, 0x110
jne 0x40abfe
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.0040a328
mov dword [ebx], eax
jmp 0x40abf6
Function at 0x40b309
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 0x40b341
mov eax, dword [ebp + 0x14]
cmp dword [eax + 4], 0x3e8
jne 0x40b341
mov ecx, edi
mov dword [edi + 0x528], esi
call fcn.0040b27f
mov dword [ebx], eax
cmp dword [edi + 0x528], 0
je 0x40b341
mov eax, esi
jmp 0x40b388
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.0040d33d
test eax, eax
jne 0x40b33d
mov eax, dword [ebp + 0xc]
cmp eax, 0x402
jne 0x40b38e
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 0x40b33d
xor eax, eax
pop edi
pop esi
pop ebp
ret 0x10
cmp eax, 0x403
jne 0x40b3c8
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 0x40b384
cmp eax, 0x465
jne 0x40b3f5
lea ecx, [edi + 0x2c]
mov dword [edi + 0x528], esi
call fcn.0040bd40
mov dword [edi + 0x590], eax
mov eax, dword [edi + 0x30]
push 5
lea ecx, [edi + 0x560]
call fcn.0044872a
jmp 0x40b3bc
cmp eax, 0x110
jne 0x40b386
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.0040af49
mov dword [ebx], eax
jmp 0x40b37e
Function at 0x40ba22
Capabilities:
Get file size

Disassembly:
mov eax, 0x4cf214
call fcn.004cc470
sub esp, 0x20
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.0047c21d
pop ecx
pop ecx
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x10]
mov eax, dword [eax - 0xc]
cmp eax, ebx
jle 0x40ba9e
lea esi, [ebp - 0x10]
call fcn.0040bbb0
push eax
call fcn.004918cb
mov edi, eax
cmp edi, ebx
pop ecx
je 0x40ba9e
mov eax, dword [edi]
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, edi
call dword [eax + 0x18]
mov byte [ebp - 4], 1
cmp dword [eax + 0x18], 8
jb 0x40ba7c
mov eax, dword [eax + 4]
jmp 0x40ba7f
add eax, 4
push eax
push dword [ebp + 8]
call fcn.00432935
push ebx
push 1
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.0041a431
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40bafc
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, ebx
jbe 0x40baf5
test eax, eax
mov dword [ebp + 8], eax
fild dword [ebp + 8]
jge 0x40bada
fadd dword [0x4ef688]
fmul qword [0x4ef810]
mov eax, dword [ebp + 0xc]
push ecx
push ecx
fstp qword [esp]
push 0x4e1d10
call fcn.004328d6
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004011c0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8
Function at 0x40d1d2
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 0x40d209
mov eax, dword [0x50e9a4]
cmp eax, esi
je 0x40d1f7
mov ebp, dword [eax + 4]
jmp 0x40d1f9
xor ebp, ebp
cmp ebp, esi
jne 0x40d209
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov ebp, eax
cmp ebp, esi
je 0x40d22e
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp ebp, eax
je 0x40d22e
push ebp
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x40d22e
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.0040e769
cmp eax, esi
mov dword [esp + 0x14], eax
jne 0x40d257
push 1
push ebp
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
jmp 0x40d333
mov edx, eax
call fcn.0041a56c
mov dword [esp + 0x1c], eax
mov eax, ebp
call fcn.0043d293
cmp dword [ebx + 0x510], esi
je 0x40d2d9
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 0x40d2bd
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 0x40d2d9
push esi
push edi
push dword [esp + 0x2c]
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov edi, ebx
call fcn.004384a1
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 0x40d31e
push 1
push ebp
call dword [sym.imp.USER32.dll_EnableWindow]
cmp ebp, esi
je 0x40d31e
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [ebx + 4]
jne 0x40d31e
push ebp
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov edx, dword [esp + 0x1c]
call fcn.0041a56c
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 0x40d3f6
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 0x40d42d
mov eax, dword [0x50e9a4]
cmp eax, esi
je 0x40d41b
mov ebp, dword [eax + 4]
jmp 0x40d41d
xor ebp, ebp
cmp ebp, esi
jne 0x40d42d
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov ebp, eax
cmp ebp, esi
je 0x40d452
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp ebp, eax
je 0x40d452
push ebp
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x40d452
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.0040ebc8
cmp eax, esi
mov dword [esp + 0x14], eax
jne 0x40d47b
push 1
push ebp
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
jmp 0x40d557
mov edx, eax
call fcn.0041a56c
mov dword [esp + 0x1c], eax
mov eax, ebp
call fcn.0043d293
cmp dword [ebx + 0x510], esi
je 0x40d4fd
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 0x40d4e1
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 0x40d4fd
push esi
push edi
push dword [esp + 0x2c]
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov edi, ebx
call fcn.004384a1
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 0x40d542
push 1
push ebp
call dword [sym.imp.USER32.dll_EnableWindow]
cmp ebp, esi
je 0x40d542
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [ebx + 4]
jne 0x40d542
push ebp
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov edx, dword [esp + 0x1c]
call fcn.0041a56c
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 0x411207
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 0x411253
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 0x411253
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 0x4112cb
lea ebx, [esi + 0x46c]
cmp dword [ebx], 0
je 0x411270
call dword [sym.imp.USER32.dll_ReleaseCapture]
and dword [ebx], 0
cmp dword [esi + 0x45c], edi
jne 0x4112c4
push edi
call fcn.004322a4
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.00432532
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 0x411591
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 0x4115bf
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 0x411603
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 0x411603
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 0x41175f
push eax
call fcn.004322a4
mov edi, eax
test edi, edi
pop ecx
je 0x4116de
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 0x41164a
push 1
push edi
push esi
call fcn.0040dddd
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.00432532
cmp dword [esi + 0x458], ebx
jne 0x41169e
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp ecx, eax
je 0x411690
cmp word [ecx], ax
je 0x411690
push 1
push eax
push eax
push ecx
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x4116de
cmp dword [edi + 0xc], eax
je 0x4116de
mov dword [ebp - 8], 1
jmp 0x4116de
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 0x4116be
push ebx
push edi
push esi
call fcn.0040dddd
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.00432532
mov dword [ebp - 0xc], ebx
xor eax, eax
cmp dword [ebp - 8], eax
mov dword [esi + 0x458], eax
je 0x411720
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 0x41175f
cmp dword [ebp - 0xc], eax
je 0x41175f
mov ecx, dword [ebp - 4]
cmp ecx, eax
je 0x41175f
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 0x41175f
and dword [eax], 0
pop edi
pop ebx
leave
ret 0xc
Function at 0x418707
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 0x41876a
cmp dword [ebp + 0xc], 1
je 0x418743
cmp dword [ebp + 0xc], 2
je 0x418743
push 0xd
pop eax
jmp 0x41876a
test edi, edi
mov eax, dword [ebp - 4]
je 0x418764
test eax, eax
je 0x418760
test al, 1
jne 0x41873e
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x418764
jmp 0x41873e
and word [edi], 0
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8

Function at 0x418878
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4cf08d
call fcn.004cc470
sub esp, 0x1c
push ebx
push esi
push edi
mov esi, ecx
call fcn.0041861c
push dword [esi]
lea eax, [ebp - 0x10]
push eax
push esi
call fcn.004189b2
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], edi
je 0x41899b
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x418998
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 0x418985
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 0x41894e
mov ecx, dword [ebp - 0x14]
push 0x418654
push 0x418be2
push ecx
lea edi, [eax + 4]
push 8
push edi
mov dword [eax], ecx
call fcn.0049708d
mov eax, edi
jmp 0x418950
xor eax, eax
test eax, eax
mov byte [ebp - 4], 1
mov dword [esi + 4], eax
je 0x418985
push eax
push dword [ebp - 0x14]
lea edi, [ebp - 0x18]
lea eax, [ebp - 0x28]
call fcn.00418bec
test eax, eax
jne 0x418980
mov eax, dword [ebp - 0x18]
test eax, eax
jle 0x418980
mov ecx, dword [ebp - 0x14]
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
jmp 0x418985
call fcn.0041861c
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 0x418b26
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.00495180
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.0043295b
mov eax, dword [ebp + 8]
leave
ret 4

Function at 0x4195f8
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 0x419617
xor eax, eax
jmp 0x419667
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 8], eax
je 0x419613
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x419613
push ebx
lea ebx, [edi + 1]
push ebx
call fcn.0041c2de
test eax, eax
je 0x419653
push edi
push dword [ebp - 4]
push eax
call fcn.004979b0
add esp, 0xc
mov eax, ebx
call fcn.0041943c
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
inc eax
pop ebx
pop edi
pop esi
leave
ret