joyce8/EMBER2024-capa huggingface dataset:
Function at 0x471a20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov esi, dword [ebx + 0x2c]
mov eax, dword [ebx + 0x3c]
sub eax, dword [ebx + 0x74]
sub eax, dword [ebx + 0x6c]
mov dword [ebp - 8], eax
jmp 0x471a5b
mov edx, dword [ebx + 0x2c]
sub edx, 0x106
add edx, esi
cmp edx, dword [ebx + 0x6c]
ja 0x471adc
push esi
mov eax, dword [ebx + 0x38]
mov edx, eax
mov edi, esi
add edx, edi
push edx
push eax
call fcn.0046f900
add esp, 0xc
sub dword [ebx + 0x70], esi
sub dword [ebx + 0x6c], esi
sub dword [ebx + 0x5c], edi
mov eax, dword [ebx + 0x4c]
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x44]
sub edx, 2
movzx ecx, word [edx]
mov dword [ebp - 4], ecx
cmp esi, dword [ebp - 4]
ja 0x471aa9
mov cx, word [ebp - 4]
sub cx, si
jmp 0x471aab
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x471a92
mov eax, esi
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x40]
sub edx, 2
movzx ecx, word [edx]
mov dword [ebp - 4], ecx
cmp esi, dword [ebp - 4]
ja 0x471ad1
mov cx, word [ebp - 4]
sub cx, si
jmp 0x471ad3
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x471aba
add dword [ebp - 8], esi
mov edi, dword [ebx]
cmp dword [edi + 4], 0
je 0x471b3e
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebx + 0x38]
add edx, dword [ebx + 0x6c]
add edx, dword [ebx + 0x74]
push edx
push edi
call fcn.004716ec
add esp, 0xc
add dword [ebx + 0x74], eax
cmp dword [ebx + 0x74], 3
jb 0x471b29
mov ecx, dword [ebx + 0x38]
mov eax, dword [ebx + 0x6c]
movzx eax, byte [ecx + eax]
mov dword [ebx + 0x48], eax
mov ecx, dword [ebx + 0x58]
shl eax, cl
mov edx, dword [ebx + 0x38]
mov ecx, dword [ebx + 0x6c]
movzx edx, byte [edx + ecx + 1]
xor eax, edx
and eax, dword [ebx + 0x54]
mov dword [ebx + 0x48], eax
cmp dword [ebx + 0x74], 0x106
jae 0x471b3e
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x471a2f
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x478434
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 4
push 0
push 0
dec ecx
jne 0x47843d
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov byte [ebp - 5], cl
mov esi, edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x4785e1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0047877c
xor eax, eax
push ebp
push 0x4785bf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 8
je 0x47848c
call fcn.004045a0
jmp 0x4785c6
mov eax, dword [ebp - 4]
test byte [eax + 0x30], 8
je 0x47854e
mov eax, dword [ebp - 4]
test byte [eax + 0x30], 1
je 0x4784dc
mov eax, dword [ebp - 4]
cmp word [eax + 0x3a], 0
je 0x4784dc
lea eax, [ebp - 0x10]
call fcn.00478204
push dword [ebp - 0x10]
push 0x4785fc
push ebx
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404e60
mov eax, dword [ebp - 0xc]
push eax
mov edi, dword [ebp - 4]
mov cl, byte [ebp - 5]
mov edx, esi
mov eax, dword [edi + 0x3c]
call dword [edi + 0x38]
mov eax, dword [ebp - 4]
test byte [eax + 0x30], 4
je 0x478511
lea eax, [ebp - 0x18]
call fcn.00478204
push dword [ebp - 0x18]
push 0x4785fc
push ebx
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00404e60
mov eax, dword [ebp - 0x14]
call fcn.00404fa0
push eax
call sub.kernel32.dll_OutputDebugStringA
mov eax, dword [ebp - 4]
test byte [eax + 0x30], 2
je 0x4785a9
lea eax, [ebp - 0x20]
call fcn.00478204
push dword [ebp - 0x20]
push 0x4785fc
push ebx
push 0x478608
lea eax, [ebp - 0x1c]
mov edx, 4
call fcn.00404e60
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.00478404
jmp 0x4785a9
mov eax, dword [ebp - 4]
test byte [eax + 0x30], 1
je 0x478570
mov eax, dword [ebp - 4]
cmp word [eax + 0x3a], 0
je 0x478570
push ebx
mov edi, dword [ebp - 4]
mov cl, byte [ebp - 5]
mov edx, esi
mov eax, dword [edi + 0x3c]
call dword [edi + 0x38]
mov eax, dword [ebp - 4]
test byte [eax + 0x30], 4
je 0x478586
mov eax, ebx
call fcn.00404fa0
push eax
call sub.kernel32.dll_OutputDebugStringA
mov eax, dword [ebp - 4]
test byte [eax + 0x30], 2
je 0x4785a9
lea eax, [ebp - 0x24]
mov ecx, 0x478608
mov edx, ebx
call fcn.00404dec
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 4]
call fcn.00478404
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4785c6
mov eax, dword [ebp - 4]
call fcn.00478788
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4785e8
lea eax, [ebp - 0x24]
mov edx, 7
call fcn.00404b04
ret
Function at 0x401630
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43ed53
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [esp + 0xc], esi
mov dword [esi], vtable.CMenu.0
mov dword [esi + 4], edi
lea ebx, [esi + 8]
mov dword [esp + 0x18], edi
mov ecx, ebx
call fcn.0042e32e
mov dword [ebx], method.CPtrArray.virtual_0
lea ebx, [esi + 0x1c]
mov byte [esp + 0x18], 1
mov ecx, ebx
call fcn.0042e32e
or eax, 0xffffffff
push 0x45ea98
mov dword [ebx], method.CPtrArray.virtual_0
push edi
mov dword [esi], 0x4426d4
mov dword [esi + 0x4c], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x30], 0xc0c0c0
mov dword [esi + 0x34], edi
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x50], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x404c50
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x43f1a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
xor eax, eax
push esi
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], vtable.CPen.0
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x28], eax
push ecx
push eax
push eax
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x14]
call fcn.00435c18
mov esi, dword [esp + 0x30]
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call fcn.00435329
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x18]
lea ebp, [edi + 2]
mov ecx, esi
push ebp
push ebx
push eax
call fcn.00435729
lea eax, [edi + 5]
mov ecx, esi
push eax
push ebx
call fcn.00435775
lea eax, [edi + 3]
lea ecx, [ebx + 1]
push eax
push ecx
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call fcn.00435729
lea eax, [edi + 6]
mov ecx, esi
push eax
lea eax, [ebx + 1]
push eax
call fcn.00435775
lea edx, [edi + 4]
lea eax, [ebx + 2]
push edx
push eax
lea eax, [esp + 0x20]
mov ecx, esi
push eax
call fcn.00435729
lea ecx, [edi + 7]
lea eax, [ebx + 2]
push ecx
push eax
mov ecx, esi
call fcn.00435775
lea eax, [edi + 3]
lea ecx, [ebx + 3]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
mov ecx, esi
call fcn.00435729
lea eax, [edi + 6]
mov ecx, esi
push eax
lea eax, [ebx + 3]
push eax
call fcn.00435775
lea eax, [ebx + 4]
push ebp
push eax
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call fcn.00435729
lea eax, [edi + 5]
mov ecx, esi
push eax
lea eax, [ebx + 4]
push eax
call fcn.00435775
lea ecx, [edi + 1]
lea ebp, [ebx + 5]
push ecx
lea edx, [esp + 0x1c]
push ebp
push edx
mov ecx, esi
call fcn.00435729
lea eax, [edi + 4]
mov ecx, esi
push eax
push ebp
call fcn.00435775
add ebx, 6
push edi
lea ecx, [esp + 0x1c]
push ebx
push ecx
mov ecx, esi
call fcn.00435729
add edi, 3
mov ecx, esi
push edi
push ebx
call fcn.00435775
mov edx, dword [esp + 0x3c]
mov ecx, esi
push edx
call fcn.00435329
lea ecx, [esp + 0x10]
call fcn.00435c6f
mov dword [esp + 0x10], vtable.CGdiObject.0
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 1
call fcn.00435c6f
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x14
Function at 0x405eb0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x43f3a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword [esp + 0x38]
mov eax, esi
mov ebp, ecx
push edi
xor edi, edi
mov ecx, dword [eax]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], vtable.CBrush.0
mov edx, dword [eax + 4]
mov dword [esp + 0x1c], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x20], ecx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x24], edx
mov dword [esp + 0x30], edi
call fcn.00401780
test eax, eax
je 0x405f0e
push 0xf
jmp 0x405f10
push 4
mov ebx, dword [sym.imp.USER32.dll_GetSysColor]
call ebx
cmp dword [esp + 0x40], edi
jne 0x405f31
push 0x3fe33333
push 0x33333333
push eax
call fcn.00402600
add esp, 0xc
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [esp + 0x14]
call fcn.00435c18
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x10]
neg eax
sbb eax, eax
and eax, edi
mov edi, dword [esp + 0x38]
push eax
lea eax, [esp + 0x1c]
mov ecx, dword [edi + 4]
push eax
push ecx
call dword [sym.imp.USER32.dll_FillRect]
lea ecx, [esp + 0x10]
call fcn.00435c6f
call fcn.00401770
test eax, eax
je 0x405f89
mov eax, dword [edi + 4]
push 0xf
lea edx, [esp + 0x1c]
push 2
push edx
push eax
call dword [sym.imp.USER32.dll_DrawEdge]
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x405faf
push 0
push 7
call ebx
mov ecx, dword [esi + 4]
mov edx, dword [esi]
add ecx, 4
push eax
add edx, 4
push ecx
push edx
push edi
mov ecx, ebp
call fcn.00404c50
jmp 0x405fc9
push 7
call ebx
mov ecx, dword [esi]
push eax
mov eax, dword [esi + 4]
add ecx, 5
add eax, 4
push eax
push ecx
push edi
mov ecx, ebp
call fcn.00404b10
mov dword [esp + 0x10], vtable.CGdiObject.0
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 1
call fcn.00435c6f
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 0x10

Function at 0x4066f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
call fcn.0043be17
mov edi, dword [esp + 0x14]
mov ebx, dword [eax + 0xc]
mov ebp, dword [sym.imp.KERNEL32.dll_FindResourceW]
and edi, 0xffff
push 2
push edi
push ebx
call ebp
mov esi, eax
test esi, esi
jne 0x40672b
xor ebx, ebx
push 2
push edi
push ebx
call ebp
mov esi, eax
test esi, esi
jne 0x40672b
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40673c
pop edi
pop esi
pop ebp
pop ebx
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x40674c
pop edi
pop esi
pop ebp
pop ebx
ret
push eax
call fcn.004066b0
add esp, 4
cmp ax, 0x10
je 0x406762
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push 0
push esi
push ebx
call fcn.00436559
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x406960
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [0x45eabc]
sub esp, 0x254
test eax, eax
jne 0x406a33
lea eax, [esp]
mov dword [0x45eabc], 1
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftPlus_ThemesCurrent
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406a33
push esi
lea ecx, [esp + 0xc]
push edi
lea edx, [esp + 0x40]
push ecx
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0
push ecx
mov dword [esp + 0x28], 0x104
mov dword [esp + 0x24], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x406a26
mov ecx, 0xb
mov esi, 0x450118
lea edi, [esp + 0x14]
lea edx, [esp + 0x40]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edx
call edi
mov esi, eax
lea eax, [esp + 0x14]
push eax
call edi
cmp esi, eax
jl 0x406a26
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
call edi
sub esi, eax
lea eax, [esp + esi*2 + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x406a26
mov dword [0x45eab8], 1
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, dword [0x45eab8]
add esp, 0x254
ret

Function at 0x409040
Capabilities:
Log keystrokes

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
mov ebx, ecx
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40908b
push 0
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, esi
je 0x40908b
push edi
mov edi, dword [sym.imp.USER32.dll_AttachThreadInput]
push 1
push esi
push eax
call edi
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x409082
push 1
push esi
push eax
call edi
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
push 0x1b
push 0
push 0
push 0
push 0
push 0x460de8
mov ecx, ebx
call fcn.00432b0d
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_LockWindowUpdate]
pop esi
pop ebx
ret 4

Function at 0x40ab50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43f7b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [0x45ab80]
push esi
push edi
mov esi, ecx
mov dword [esp + 8], eax
xor edi, edi
push 1
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], edi
call fcn.004331ad
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 8]
push edi
push edi
lea edx, [esp + 0x14]
push ecx
push edx
push 0x80400000
push eax
push str.HW_CY_LTGRAY_
push 0x88
mov ecx, esi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
call fcn.0042ff06
test eax, eax
je 0x40abf0
lea ecx, [esp + 8]
mov dword [0x45ed4c], esi
mov dword [esp + 0x24], 0xffffffff
call fcn.0042efdb
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret 4
lea ecx, [esp + 8]
mov dword [esp + 0x24], 0xffffffff
call fcn.0042efdb
mov ecx, dword [esp + 0x1c]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 4
Function at 0x40dcc0
Capabilities:
Log keystrokes

Disassembly:
push esi
push edi
call dword [sym.imp.USER32.dll_GetFocus]
mov esi, eax
test esi, esi
je 0x40dce3
push 0
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp edi, eax
jne 0x40dceb
call dword [0x45eecc]
mov esi, eax
test esi, esi
je 0x40dd1c
mov esi, dword [esp + 0xc]
push ebx
push 0
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
mov ebx, dword [sym.imp.USER32.dll_keybd_event]
push 0
mov byte [esp + 0x14], al
push 0
mov edi, dword [esp + 0x18]
push edi
push esi
call ebx
push 0
push 2
push edi
push esi
call ebx
pop ebx
pop edi
pop esi
ret 4

Function at 0x40f5f0
Capabilities:
Check os version
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x43f9eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x130
push esi
push edi
mov ecx, 0x45
xor eax, eax
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x34], 2
jne 0x40f642
cmp dword [esp + 0x28], 5
jb 0x40f642
xor eax, eax
jmp 0x40f6f3
mov esi, dword [esp + 0x148]
push esi
call fcn.004216e5
push str.U.EXE
push esi
call fcn.004216a4
add esp, 0xc
test eax, eax
je 0x40f6f3
push str..EXE
push eax
mov word [eax], 0
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea ecx, [esp + 8]
call fcn.0041956e
push 0
push esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x148], 0
call fcn.00419633
test eax, eax
jne 0x40f6b2
lea ecx, [esp + 8]
mov dword [esp + 0x140], 0xffffffff
call fcn.004195ad
xor eax, eax
jmp 0x40f6f3
call fcn.0043be17
mov edi, dword [eax + 4]
call fcn.0043be17
mov eax, dword [eax + 4]
mov ecx, dword [edi + 0x74]
push ecx
push 0
mov edx, dword [eax + 0x70]
push edx
push esi
push str.Open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [esp + 8]
mov dword [esp + 0x140], 0xffffffff
call fcn.004195ad
mov eax, 1
mov ecx, dword [esp + 0x138]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x13c
ret 4
Function at 0x40f7b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x214
lea eax, [esp]
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
push eax
push str.SystemCurrentControlSetControlNlsCodepage
push reloc.OLEAUT32.dll_SysReAllocString
xor esi, esi
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40f837
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
push edx
push esi
push esi
push 0x455108
push eax
mov dword [esp + 0x2c], 0x208
call ebx
test eax, eax
jne 0x40f830
lea ecx, [esp + 0x1c]
push ecx
call fcn.0042167b
add esp, 4
cmp eax, 0x3b6
jne 0x40f822
mov esi, 1
jmp 0x40f830
sub eax, 0x3a8
neg eax
sbb eax, eax
and eax, 2
mov esi, eax
mov edx, dword [esp + 0x10]
push edx
call ebp
lea eax, [esp + 0x10]
push eax
push str.SoftwareHW99HWPen10
push SysReAllocStringLen
call edi
test eax, eax
jne 0x40f87b
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x20]
push str.Language
push eax
mov dword [esp + 0x2c], 4
call ebx
test eax, eax
jne 0x40f874
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
push ecx
call ebp
cmp esi, 2
jle 0x40f88d
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x214
ret
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x214
ret
Function at 0x410050
Capabilities:
Delete file
Write file on windows

Disassembly:
sub esp, 0x20c
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x30], 1
ja 0x410098
mov eax, dword [esi + 4]
test eax, eax
je 0x410155
mov eax, dword [esi + 0x184]
test eax, eax
je 0x410155
mov ecx, dword [esi + 0x174]
test ecx, ecx
je 0x410155
call eax
call dword [esi + 0x174]
pop edi
pop esi
add esp, 0x20c
ret
mov eax, dword [esi + 0x58]
test eax, eax
je 0x410155
lea edi, [esi + 0x5c]
push ebx
push edi
call dword [esi + 0x40]
mov eax, dword [esi + 0x68]
add esp, 4
test eax, eax
je 0x41012c
lea eax, [esp + 0x10]
push 0x45eee4
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea ecx, [esp + 0x10]
push str.CYEng.DAT
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0
push 0x80
push 2
push 0
push 1
lea edx, [esp + 0x24]
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41012c
mov ecx, dword [esi + 0x6c]
mov edx, dword [esi + 0x68]
lea eax, [esp + 0xc]
push 0
push eax
push ecx
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0xc]
mov ecx, dword [esi + 0x6c]
cmp eax, ecx
je 0x41012c
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esi + 0x58]
pop ebx
test eax, eax
je 0x410155
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [esi + 0x58]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, 0xc
xor eax, eax
mov dword [esi + 0x58], 0
rep stosd dword es:[edi], eax
pop edi
pop esi
add esp, 0x20c
ret

Function at 0x410280
Capabilities:
Delete file
Write file on windows

Disassembly:
mov eax, dword [ecx + 0x30]
test eax, eax
je 0x41028c
jmp fcn.00410050
ret
Function at 0x417d20
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x417d2f
mov eax, 1
pop esi
ret
push str.HWSmoothDrawU.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [esi], eax
je 0x417e42
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.HWDrawInit
push eax
call edi
mov dword [esi + 4], eax
mov eax, dword [esi]
push str.HWDrawUnit
push eax
call edi
mov ecx, dword [esi]
push str.HWSetPenInfo
push ecx
mov dword [esi + 8], eax
call edi
mov edx, dword [esi]
push str.HWSetPenInfo2
push edx
mov dword [esi + 0xc], eax
call edi
mov dword [esi + 0x10], eax
mov eax, dword [esi]
push str.HWSetRange
push eax
call edi
mov ecx, dword [esi]
push str.HWBSplineBegin
push ecx
mov dword [esi + 0x14], eax
call edi
mov edx, dword [esi]
push str.HWBSplineDraw
push edx
mov dword [esi + 0x18], eax
call edi
mov dword [esi + 0x1c], eax
mov eax, dword [esi]
push str.HWBSplineEnd
push eax
call edi
mov ecx, dword [esi]
push str.HWTabletExists
push ecx
mov dword [esi + 0x20], eax
call edi
mov edx, dword [esi]
push str.HWSetSmoothDraw
push edx
mov dword [esi + 0x24], eax
call edi
mov dword [esi + 0x28], eax
mov eax, dword [esi]
push str.HWGetPress
push eax
call edi
mov ecx, dword [esi]
push str.HWTabletEnable
push ecx
mov dword [esi + 0x2c], eax
call edi
mov dword [esi + 0x30], eax
mov eax, dword [esi + 4]
test eax, eax
pop edi
je 0x417e33
mov eax, dword [esi + 8]
test eax, eax
je 0x417e33
mov eax, dword [esi + 0xc]
test eax, eax
je 0x417e33
mov eax, dword [esi + 0x14]
test eax, eax
je 0x417e33
mov eax, dword [esi + 0x18]
test eax, eax
je 0x417e33
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x417e33
mov eax, dword [esi + 0x20]
test eax, eax
je 0x417e33
mov eax, dword [esi + 0x24]
test eax, eax
je 0x417e33
mov eax, dword [esi + 0x28]
test eax, eax
je 0x417e33
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x417e33
mov eax, 1
pop esi
ret
mov edx, dword [esi]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi], 0
xor eax, eax
pop esi
ret

Function at 0x418809
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x418861
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x45eac0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x418854
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x418863
xor eax, eax
pop esi
leave
ret 4
Function at 0x4303bb
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4303f3
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0042f34b
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0042f322
jmp 0x4303ff
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x431b65
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x431ba7
call fcn.0043be17
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, edi
je 0x431ba7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x431b9e
xor eax, eax
jmp 0x431baf
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00431bb5
pop edi
pop esi
pop ebx
ret 4