joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408576
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
push edi
xor edi, edi
push 0x206
mov esi, eax
lea eax, [ebp - 0x20e]
push edi
push eax
mov dword [ebp - 4], edi
mov word [ebp - 0x210], di
call fcn.0048c840
add esp, 0xc
push 0x104
lea eax, [ebp - 0x210]
push eax
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x408602
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LoadImageToMem_CreateFile_error:_d__path:_ws
mov esi, 0x4e1030
call fcn.00462aca
add esp, 0xc
jmp 0x40867a
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
push eax
push edi
push 2
push edi
push ebx
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp ebx, edi
mov dword [esi], eax
jne 0x408635
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateFileByMem_CreateFileMapping_error:_d__path:_ws
jmp 0x40865d
push dword [esi + 8]
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
mov dword [esi + 4], eax
jne 0x40866c
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateFileByMem_MapViewOfFile_error:_d__path:_ws
mov esi, 0x4e1030
call fcn.00462aca
add esp, 0xc
jmp 0x408673
mov dword [ebp - 4], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x408d5c
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
push dword [ebp + 8]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x408dcd
xor eax, eax
mov dword [ebp - 0xc], esi
lea edi, [ebp - 8]
stosd dword es:[edi], eax
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x408dcd
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
shrd ecx, eax, 0x14
shr eax, 0x14
mov dword [ebp - 8], eax
and dword [ebp - 8], 0x80000000
and eax, 0x7fffffff
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], esi
fild qword [ebp - 0x14]
fild qword [ebp - 0xc]
fchs
faddp st(1)
fcomp qword [0x4c57c0]
fnstsw ax
test ah, 1
jne 0x408dcd
inc esi
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x408dd3
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.0048c840
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 0x408e2c
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa4], 0x114
call esi
cmp eax, edi
je 0x408eda
mov eax, dword [ebp - 0x94]
dec eax
je 0x408ec6
dec eax
jne 0x408eda
cmp dword [ebp - 0xa0], 6
jne 0x408e77
inc eax
cmp dword [ebp - 0x9c], eax
jne 0x408e5f
xor ecx, ecx
cmp byte [ebp + 0x76], al
setne cl
add ecx, 8
jmp 0x408e73
cmp dword [ebp - 0x9c], edi
jne 0x408eb3
xor ecx, ecx
cmp byte [ebp + 0x76], al
setne cl
lea ecx, [ecx + ecx + 7]
mov edi, ecx
jmp 0x408eda
cmp dword [ebp - 0xa0], 5
jne 0x408ea6
cmp dword [ebp - 0x9c], 2
jne 0x408e8d
push 5
jmp 0x408ec3
cmp dword [ebp - 0x9c], 1
jne 0x408e9a
push 6
jmp 0x408ec3
cmp dword [ebp - 0x9c], edi
jne 0x408eda
push 3
jmp 0x408ec3
cmp dword [ebp - 0xa0], 4
ja 0x408eda
push 4
jmp 0x408ec3
cmp dword [ebp - 0x9c], 2
jne 0x408eda
cmp byte [ebp + 0x76], al
jne 0x408eda
push 0xa
pop edi
jmp 0x408eda
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 0x409602
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
inc edi
cmp dword [ebp + 0xc], 0x4e
jne 0x409637
mov eax, dword [ebp + 0x14]
cmp dword [eax + 4], 0x3e8
jne 0x409637
mov ecx, esi
mov dword [esi + 0x3bc], edi
call fcn.00409570
mov dword [ebx], eax
cmp dword [esi + 0x3bc], 0
je 0x409637
mov eax, edi
jmp 0x40967e
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.0046b055
test eax, eax
jne 0x409633
mov eax, dword [ebp + 0xc]
cmp eax, 0x402
jne 0x409683
push 5
push dword [esi + 4]
lea eax, [esi + 0x3bc]
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 0x409633
xor eax, eax
pop edi
pop ebp
ret 0x10
cmp eax, 0x403
jne 0x4096bd
mov eax, dword [esi + 0x3c4]
mov dword [esi + 0x28], eax
xor eax, eax
push eax
push eax
push eax
mov dword [esi + 0x3bc], edi
mov dword [esi + 0x3ac], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageW]
and dword [ebx], 0
cmp dword [esi + 0x3bc], 0
jmp 0x40967a
cmp eax, 0x465
jne 0x4096ea
lea ecx, [esi + 0x2c]
mov dword [esi + 0x3bc], edi
call fcn.0040a4a6
mov dword [esi + 0x42c], eax
mov eax, dword [esi + 0x30]
push 5
lea ecx, [esi + 0x3f0]
call fcn.0047462c
jmp 0x4096b1
cmp eax, 0x110
jne 0x40967c
lea eax, [esi + 0x3bc]
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.0040914c
mov dword [ebx], eax
jmp 0x409674
Function at 0x409a1d
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x4af945
call fcn.004acfc0
sub esp, 0x204
push esi
xor eax, eax
push edi
mov dword [ebp - 0x10], eax
push 0x1fe
mov dword [ebp - 4], 1
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.0048c840
add esp, 0xc
push dword [ebp + 0xc]
lea eax, [ebp - 0x210]
push 0x100
push eax
push 0x4ba8e4
push dword [ebp + 8]
push 0x4bb184
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00408124
lea edi, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.0040805e
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405148
mov esi, dword [ebp + 0xc]
add esi, 0xfffffff0
mov eax, esi
call fcn.00408006
add eax, 0x10
mov dword [ebx], eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00405148
mov eax, esi
call fcn.00405148
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x409ad8
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4b14b8
call fcn.004acfc0
push ecx
push ebx
push edi
push 0x12c
xor ebx, ebx
push ebx
lea eax, [ebp + 8]
push ebx
push eax
lea edi, [ebp + 0xc]
mov dword [ebp - 4], 1
call fcn.00460baa
mov edi, dword [ebp + 0xc]
add esp, 0x10
test eax, eax
jne 0x409b17
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x409b17
inc ebx
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00405148
lea eax, [edi - 0x10]
call fcn.00405148
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x40a4d3
Capabilities:
Log keystrokes

Disassembly:
sub esp, 0x18
mov eax, dword [0x4e0044]
push ebx
push ebp
push esi
xor esi, esi
cmp eax, esi
mov dword [esp + 0x1c], esi
je 0x40a4ed
mov ebx, dword [eax + 4]
jmp 0x40a4ef
xor ebx, ebx
cmp ebx, esi
jne 0x40a4ff
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov ebx, eax
cmp ebx, esi
je 0x40a524
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp ebx, eax
je 0x40a524
push ebx
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x40a524
push esi
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [esp + 0x1c], 1
push ebx
mov ecx, edi
mov dword [edi + 0x364], esi
call fcn.0040aa25
cmp eax, esi
mov dword [esp + 0x14], eax
jne 0x40a54a
push 1
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
jmp 0x40a66e
mov ecx, dword [0x4e0044]
cmp ecx, esi
mov dword [esp + 0x20], esi
je 0x40a562
mov edx, dword [ecx + 4]
mov dword [esp + 0x20], edx
mov dword [ecx + 4], eax
lea ebp, [edi + 4]
push ebp
mov eax, ebx
call fcn.00407377
cmp dword [edi + 0x354], esi
je 0x40a60a
push esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push esi
push esi
push esi
push 0x2001
mov dword [esp + 0x20], 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]
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x10]
je 0x40a5cb
push 1
push eax
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_AttachThreadInput]
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x10]
je 0x40a5eb
push esi
push eax
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_AttachThreadInput]
push 0xffffffffffffffec
push dword [ebp]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x80000
je 0x40a60a
push esi
push esi
push 0xf
push dword [ebp]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x24]
push 0x97
push esi
push esi
push esi
push esi
push esi
push dword [ebp]
mov dword [edi + 0x364], esi
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp dword [esp + 0x1c], esi
je 0x40a64f
push 1
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
cmp ebx, esi
je 0x40a64f
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [ebp]
jne 0x40a64f
push ebx
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [0x4e0044]
cmp eax, esi
je 0x40a65f
mov ecx, dword [esp + 0x20]
mov dword [eax + 4], ecx
push dword [ebp]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [edi + 0x368]
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x40a73c
Capabilities:
Log keystrokes

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov edi, eax
mov eax, dword [0x4e0044]
xor esi, esi
cmp eax, esi
mov dword [esp + 0x1c], esi
je 0x40a759
mov ebp, dword [eax + 4]
jmp 0x40a75b
xor ebp, ebp
cmp ebp, esi
jne 0x40a76b
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov ebp, eax
cmp ebp, esi
je 0x40a790
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp ebp, eax
je 0x40a790
push ebp
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x40a790
push esi
push ebp
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [esp + 0x1c], 1
push ecx
mov eax, esp
mov dword [edi + 0x3ac], esi
push ebp
mov ebx, edi
mov dword [eax], esi
call fcn.0040abbd
mov ecx, eax
cmp ecx, esi
mov dword [esp + 0x18], ecx
jne 0x40a7bd
push 1
push ebp
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
jmp 0x40a8ae
mov eax, dword [0x4e0044]
cmp eax, esi
mov dword [esp + 0x20], esi
je 0x40a7d4
mov edx, dword [eax + 4]
mov dword [esp + 0x20], edx
mov dword [eax + 4], ecx
lea eax, [edi + 4]
push eax
mov eax, ebp
call fcn.00407377
cmp dword [edi + 0x3a0], esi
je 0x40a84f
push esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push esi
push esi
push esi
push 0x2001
mov dword [esp + 0x24], eax
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0x43
push esi
push esi
push esi
push esi
push esi
push dword [esp + 0x30]
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp ebx, dword [esp + 0x14]
je 0x40a833
push 1
push ebx
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_AttachThreadInput]
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp ebx, dword [esp + 0x14]
je 0x40a84f
push esi
push ebx
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_AttachThreadInput]
call fcn.0046bd0d
push 0x97
push esi
push esi
push esi
push esi
push esi
push dword [edi + 4]
mov dword [edi + 0x3ac], esi
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp dword [esp + 0x1c], esi
je 0x40a892
push 1
push ebp
call dword [sym.imp.USER32.dll_EnableWindow]
cmp ebp, esi
je 0x40a892
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [edi + 4]
jne 0x40a892
push ebp
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [0x4e0044]
cmp eax, esi
je 0x40a8a2
mov ecx, dword [esp + 0x20]
mov dword [eax + 4], ecx
push dword [edi + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [edi + 0x28]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x40da8c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4ae2b5
call fcn.004acfc0
sub esp, 0x418
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
call dword [0x4d90b4]
xor esi, esi
mov dword [ebp - 0x20], esi
mov eax, dword [ebp + 8]
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x424], esi
push 2
push esi
push dword [ebp + 0xc]
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
cmp ebx, esi
mov dword [ebp - 0x14], ebx
jne 0x40dae4
call fcn.004262ad
mov esi, eax
jmp 0x40dbe5
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x40db01
call fcn.004262ad
jmp 0x40dbda
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
mov dword [ebp + 0xc], eax
je 0x40daf7
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
cmp eax, edi
mov dword [ebp + 8], edi
jae 0x40db47
lea eax, [ebp - 0x420]
cmp dword [ebp - 0x424], eax
je 0x40db3d
lea eax, [ebp - 0x424]
call fcn.0040dc1e
mov eax, 0x8007000e
jmp 0x40dc00
push 2
push eax
mov byte [ebp - 4], 2
call fcn.0040dc48
cmp eax, 0x400
pop ecx
pop ecx
jbe 0x40db6b
push eax
lea eax, [ebp - 0x424]
push eax
call fcn.0040dc27
jmp 0x40db77
lea eax, [ebp - 0x420]
mov dword [ebp - 0x424], eax
mov dword [ebp - 4], 1
jmp 0x40db92
mov ebx, dword [ebp - 0x424]
cmp ebx, esi
jne 0x40dba3
mov esi, 0x8007000e
jmp 0x40dbdc
call dword [0x4d90b4]
push edi
push ebx
push edi
push dword [ebp + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x40daf7
mov ecx, dword [ebp - 0x424]
push dword [ebp + 0x18]
mov word [ecx + eax*2], si
mov ecx, dword [ebp - 0x424]
lea edx, [ebp - 0x1c]
call fcn.0040dc6d
mov esi, eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x420]
cmp dword [ebp - 0x424], eax
je 0x40dbfe
lea eax, [ebp - 0x424]
call fcn.0040dc1e
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x14
Function at 0x40eb28
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x40eb3b
push 0x80004005
call fcn.0040810c
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x40eb42
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push 7
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x40ebe7
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [ecx]
push ebx
push esi
push edi
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0xc]
push ecx
push 0x2001f
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 8], esi
push eax
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
cmp edi, esi
jne 0x40ecae
xor eax, eax
cmp dword [ebp - 8], esi
je 0x40ec30
push dword [ebp - 8]
call ebx
cmp eax, esi
mov ecx, dword [ebp - 0xc]
mov edi, eax
mov dword [ebp - 8], ecx
jne 0x40ecae
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [ebp - 0x1c]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x21c]
push eax
push esi
push ecx
jmp 0x40ec84
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 8]
call fcn.0040ebe7
cmp eax, esi
mov dword [ebp - 0xc], eax
jne 0x40ecc1
lea eax, [ebp - 0x1c]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x21c]
push eax
push esi
push dword [ebp - 8]
mov dword [ebp - 0x10], 0x100
call edi
test eax, eax
je 0x40ec58
cmp dword [ebp - 8], esi
je 0x40ec9e
push dword [ebp - 8]
call ebx
mov dword [ebp - 8], esi
push dword [ebp + 8]
mov eax, dword [ebp - 0x14]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
cmp dword [ebp - 8], esi
je 0x40ecb8
push dword [ebp - 8]
call ebx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
cmp dword [ebp - 8], esi
je 0x40eccb
push dword [ebp - 8]
call ebx
mov eax, dword [ebp - 0xc]
jmp 0x40ecba

Function at 0x410ec0
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 0x410f23
cmp dword [ebp + 0xc], 1
je 0x410efc
cmp dword [ebp + 0xc], 2
je 0x410efc
push 0xd
pop eax
jmp 0x410f23
test edi, edi
mov eax, dword [ebp - 4]
je 0x410f1d
test eax, eax
je 0x410f19
test al, 1
jne 0x410ef7
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x410f1d
jmp 0x410ef7
and word [edi], 0
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8
Function at 0x41102b
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4af8c6
call fcn.004acfc0
sub esp, 0x20
push ebx
push esi
push edi
mov esi, ecx
call fcn.00410dff
push dword [esi]
lea eax, [ebp - 0x10]
push eax
push esi
call fcn.00411165
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], edi
je 0x41114e
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41114b
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 0x411138
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 0x411101
mov ecx, dword [ebp - 0x14]
push 0x40665f
push 0x411395
push ecx
lea edi, [eax + 4]
push 8
push edi
mov dword [eax], ecx
call fcn.0048feab
mov eax, edi
jmp 0x411103
xor eax, eax
test eax, eax
mov byte [ebp - 4], 1
mov dword [esi + 4], eax
je 0x411138
push eax
push dword [ebp - 0x14]
lea edi, [ebp - 0x18]
lea eax, [ebp - 0x28]
call fcn.0041139f
test eax, eax
jne 0x411133
mov eax, dword [ebp - 0x18]
test eax, eax
jle 0x411133
mov ecx, dword [ebp - 0x14]
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
jmp 0x411138
call fcn.00410dff
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.00405148
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x4112d9
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.0048c840
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.00408124
mov eax, dword [ebp + 8]
leave
ret 4
Function at 0x41154e
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
test byte [esi + 0x14], 2
je 0x4115a7
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
sub eax, ecx
je 0x411598
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
sub edx, eax
je 0x411598
mov edx, dword [esi + 0x10]
push 0x11
push 0
push 0
sub ecx, edx
push ecx
sub eax, edx
push eax
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x4115a7
push 0
push dword [esi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
and byte [esi + 0x14], 0xfd
leave
ret 4

Function at 0x4115ab
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 0xc], 1
push edi
mov edi, eax
jne 0x4115cb
push 0
push dword [edi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
and byte [edi + 0x14], 0xfd
jmp 0x411628
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
je 0x41162d
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
je 0x41162d
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x411628
or byte [edi + 0x14], 4
mov al, byte [edi + 0x14]
test al, 2
jne 0x41161f
push dword [ebp + 8]
or al, 2
mov byte [edi + 0x14], al
call fcn.0040f774
push 8
push dword [edi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x411628
cmp dword [edi + 0x18], esi
je 0x411628
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], esi
jmp 0x41163c
push 0
push dword [edi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
and byte [edi + 0x14], 0xfd
pop edi
leave
ret 8
Function at 0x412e17
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
xor ebx, ebx
lea edi, [esi + 0x2f4]
cmp dword [edi], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x412e42
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov dword [edi], ebx
mov eax, dword [esi + 0x2e8]
cmp eax, ebx
je 0x412f21
push eax
call fcn.00407abb
mov edi, eax
cmp edi, ebx
pop ecx
je 0x412ed6
mov eax, dword [edi]
push 2
push ebx
mov ecx, edi
call dword [eax + 0x28]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x34]
test eax, eax
je 0x412e7b
push 1
push edi
push esi
call fcn.004117e0
mov eax, dword [esi + 0x2e8]
cmp eax, dword [esi + 0x2e4]
jne 0x412ed6
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.00407b4c
mov eax, dword [edi + 0x40]
cmp eax, ebx
je 0x412ec5
cmp word [eax], bx
je 0x412ec5
push 1
push ebx
push ebx
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x412ed6
mov eax, dword [edi + 0x10]
cmp eax, ebx
je 0x412ed6
mov dword [ebp - 4], 1
mov dword [ebp - 8], eax
cmp dword [ebp - 4], ebx
mov dword [esi + 0x2e8], ebx
je 0x412f21
mov eax, dword [esi + 4]
push eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x1c], eax
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
push dword [esi + 4]
mov dword [ebp - 0xc], eax
call dword [sym.imp.USER32.dll_GetParent]
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp - 0x18]
push 0x4e
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop ebx
leave
ret 0xc