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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x461008]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0
push eax
push ecx
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
jne 0x40fa10
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x455ff4
jmp 0x40fa94
push 0x114
lea eax, [ebp - 0x11c]
push 0
push eax
call fcn.0043cf50
add esp, 0xc
mov dword [ebp - 0x11c], 0x114
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x40fa4f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetVersionEx
jmp 0x40fa94
cmp dword [ebp - 0x118], 6
jb 0x40fae2
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0x124]
push eax
push 0x13
push dword [ebp - 0x120]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x40fac2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x520
je 0x40fae2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x456018
push 0x4566ac
call fcn.00416f00
mov eax, dword [ebp - 0x120]
add esp, 0xc
test eax, eax
je 0x40fab2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043183b
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x120]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x124]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043183b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x120]
xor ecx, ebp
call fcn.0043183b
mov esp, ebp
pop ebp
ret
Function at 0x40fb00
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x461008]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], ecx
mov eax, 0x100
xor ecx, ecx
mov dword [ebp - 0xc], 0x100
mov edx, 4
mul edx
push ebx
push esi
seto cl
neg ecx
or ecx, eax
push edi
push ecx
call fcn.004317de
add esp, 4
mov dword [ebp - 8], 0
mov ebx, eax
mov edi, 0x400
lea eax, [ebp - 8]
mov dword [ebp - 0x10], ebx
push eax
push edi
push ebx
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
je 0x40fbb3
lea esp, [esp]
mov esi, dword [ebp - 8]
cmp esi, edi
jb 0x40fbcf
push ebx
call fcn.00432c0d
mov esi, dword [ebp - 0xc]
xor ecx, ecx
add esi, esi
mov edx, 4
mov eax, esi
mov dword [ebp - 0xc], esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004317de
add esp, 8
mov dword [ebp - 8], 0
mov ebx, eax
lea edi, [esi*4]
lea eax, [ebp - 8]
mov dword [ebp - 0x10], ebx
push eax
push edi
push ebx
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
jne 0x40fb60
push ebx
call fcn.00432c0d
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043183b
mov esp, ebp
pop ebp
ret
shr esi, 2
test esi, esi
je 0x40fbfe
mov edi, ebx
mov ebx, dword [ebp - 0x14]
jmp 0x40fbe0
movzx eax, byte [0x4637ce]
push eax
push edi
push ecx
lea eax, [ebp - 0x18]
mov ecx, ebx
push eax
call fcn.0040a920
add edi, 4
dec esi
jne 0x40fbe0
mov ebx, dword [ebp - 0x10]
push ebx
call fcn.00432c0d
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
mov al, 1
pop edi
pop esi
pop ebx
call fcn.0043183b
mov esp, ebp
pop ebp
ret

Function at 0x40fc20
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x461008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 8], 0
push eax
push 0
push 0xf013f
push 0
push 0
push 0
push 0x456494
push 0x80000002
mov dword [ebp - 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x40fd07
push edi
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 4
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push str.AlerterCount
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
inc dword [ebp - 8]
lea eax, [ebp - 8]
push 4
push eax
push 4
push 0
push str.AlerterCount
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x1a]
push eax
movzx eax, word [ebp - 0x1e]
push eax
movzx eax, word [ebp - 0x20]
push eax
push str._4d__02d__02d
call fcn.00414e90
mov edi, eax
add esp, 0x10
mov ecx, edi
lea eax, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x40fcd3
sub ecx, eax
sar ecx, 1
add ecx, ecx
push ecx
push edi
push 1
push 0
push str.LastAlerter
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
call fcn.004323fa
add esp, 4
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
xor ecx, ebp
pop esi
call fcn.0043183b
mov esp, ebp
pop ebp
ret
Function at 0x412400
Capabilities:
Hash data using sha256
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x109c
call fcn.0043f530
mov eax, dword [0x461008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x463be8]
push ebx
push esi
push edi
test eax, eax
jne 0x41255d
cmp word [0x4639d8], ax
jne 0x412441
push 0x104
push 0x4639d8
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0x80
push 3
push 0
push 1
push 1
push 0x4639d8
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x41248c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateFile
push 0x4566ac
call fcn.00416f00
push 0x4639d8
push str._ws_r_n
call fcn.00416f00
jmp 0x412555
push 0
lea eax, [ebp - 0x102c]
mov dword [ebp - 0x1094], 0
push eax
push 0x1000
lea eax, [ebp - 0x1028]
mov dword [ebp - 0x1098], 0
mov ecx, 8
lea edi, [ebp - 0x1090]
mov esi, 0x44bf04
push eax
rep movsd dword es:[edi], dword [esi]
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call esi
test eax, eax
je 0x41250f
mov edx, dword [ebp - 0x102c]
test edx, edx
je 0x41250f
lea eax, [ebp - 0x1098]
push eax
lea ecx, [ebp - 0x1028]
call fcn.0041bc40
add esp, 4
lea eax, [ebp - 0x102c]
push 0
push eax
push 0x1000
lea eax, [ebp - 0x1028]
push eax
push ebx
call esi
test eax, eax
jne 0x4124d4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
lea edx, [ebp - 0x1098]
lea ecx, [ebp - 0x24]
call fcn.0041bcf0
lea ecx, [ebp - 0x24]
call fcn.004157d0
mov esi, eax
mov edx, 0x456250
push esi
mov ecx, str.http:__updates.hitmanpro.com_hmpalert26.exe
call fcn.00414dc0
push eax
push str._ws_r_n
mov dword [0x463be8], eax
call fcn.00416f00
push esi
call fcn.004323fa
mov eax, dword [0x463be8]
add esp, 0x14
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043183b
mov esp, ebp
pop ebp
ret
Function at 0x413c10
Capabilities:
Hide graphical window
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x461008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
push edi
push 5
mov dword [ebp - 0x2c], ebx
push dword [ebx + 0x18]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebx + 0x18]
call dword [sym.imp.USER32.dll_BringWindowToTop]
push dword [ebx + 0x18]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov esi, dword [sym.imp.USER32.dll_SetWindowPos]
push 3
push 0
push 0
push 0
push 0
push 0xfffffffffffffffe
push dword [ebx + 0x18]
call esi
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push dword [ebx + 0x18]
call esi
push 0x43
push 0
push 0
push 0
push 0
push 0xfffffffffffffffe
push dword [ebx + 0x18]
call esi
mov eax, dword [0x4636f4]
mov dword [ebp - 0x28], eax
jmp 0x413c90
mov ebx, dword [ebp - 0x2c]
jmp 0x413c90
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x413cd7
cmp dword [ebp - 0x1c], 0x12
je 0x413d8d
lea eax, [ebp - 0x20]
push eax
push dword [ebx + 0x18]
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x413c90
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x413c90
push 6
push 0x4ff
push 0xffffffffffffffff
lea eax, [ebp - 0x28]
push eax
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjectsEx]
test eax, eax
jne 0x413c90
mov ebx, dword [ebx + 0x18]
push ebx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x413c88
mov dword [ebp - 0x24], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
push esi
mov edi, eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov esi, eax
cmp edi, esi
je 0x413d5a
push 1
push esi
push edi
call dword [sym.imp.USER32.dll_AttachThreadInput]
push 0
lea eax, [ebp - 0x24]
push eax
push 0
push 0x2000
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 3
push 0
push 0
push 0x2001
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov ebx, dword [ebp - 0x2c]
cmp edi, esi
je 0x413c90
push 3
push dword [ebp - 0x24]
push 0
push 0x2001
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0
push esi
push edi
call dword [sym.imp.USER32.dll_AttachThreadInput]
jmp 0x413c90
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043183b
mov esp, ebp
pop ebp
ret
Function at 0x415260
Capabilities:
Get installed programs
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x461008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x218]
push eax
push 0x20119
push 0
push 0x454fe8
push 0x80000002
mov ebx, ecx
call edi
test eax, eax
je 0x4152ad
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043183b
mov esp, ebp
pop ebp
ret
push esi
mov dword [ebp - 0x214], 0
xor esi, esi
mov dword [ebp - 0x224], 0x456434
mov dword [ebp - 0x220], 0x456448
mov dword [ebp - 0x21c], 0x456460
jmp 0x4152e0
lea eax, [ebp - 0x214]
push eax
push 0x20019
push 0
push dword [ebp + esi*4 - 0x224]
push dword [ebp - 0x218]
call edi
test eax, eax
je 0x415307
inc esi
cmp esi, 3
jb 0x4152e0
push dword [ebp - 0x218]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x415355
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x210], 0x208
push ecx
lea ecx, [ebp - 0x20c]
push ecx
push 0
push 0
push 0x4550e8
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x214]
mov esi, eax
call edi
test esi, esi
je 0x415368
pop esi
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043183b
mov esp, ebp
pop ebp
ret
cmp word [ebp - 0x20c], 0x22
lea esi, [ebp - 0x20c]
jne 0x415394
lea esi, [ebp - 0x20a]
mov eax, esi
push 0x22
push eax
call fcn.0043269a
add esp, 8
test eax, eax
je 0x415394
xor ecx, ecx
mov word [eax], cx
push esi
call fcn.004319e0
mov ecx, dword [ebp - 4]
add esp, 4
mov dword [ebx], eax
xor ecx, ebp
mov al, 1
pop esi
pop edi
pop ebx
call fcn.0043183b
mov esp, ebp
pop ebp
ret

Function at 0x4153c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x461008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x214]
push eax
push 0x20119
xor esi, esi
push esi
push 0x454fe8
push 0x80000002
call edi
test eax, eax
jne 0x415498
lea eax, [ebp - 0x218]
push eax
push 0x20019
push esi
push 0x44bdb8
push dword [ebp - 0x214]
call edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x415490
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0x208
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push esi
push 0x4550e8
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x415488
cmp word [ebp - 0x20c], 0x22
lea esi, [ebp - 0x20c]
jne 0x41547d
lea esi, [ebp - 0x20a]
mov eax, esi
push 0x22
push eax
call fcn.0043269a
add esp, 8
test eax, eax
je 0x41547d
xor ecx, ecx
mov word [eax], cx
push esi
call fcn.004319e0
add esp, 4
mov esi, eax
push dword [ebp - 0x218]
call edi
push dword [ebp - 0x214]
call edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0043183b
mov esp, ebp
pop ebp
ret
Function at 0x4154b0
Capabilities:
Create process on windows

Disassembly:
push ebx
push esi
push 6
push 0
mov esi, ecx
call dword [sym.imp.ole32.dll_CoInitializeEx]
push 0xa
push 0
push 0
push esi
test eax, eax
push str.OPEN
push 0
sete bl
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov esi, eax
test bl, bl
je 0x4154e3
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
cmp esi, 0x20
pop esi
setg al
pop ebx
ret

Function at 0x415570
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x461008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
lea eax, [ebp - 8]
mov byte [ebp - 9], 0
push eax
push 0
push 0xf013f
push 0
push 0
push 0
push 0x456494
push 0x80000002
mov ebx, edx
mov dword [ebp - 8], 0
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, dword [ebp - 8]
test edi, edi
je 0x415682
test ebx, ebx
jne 0x4155c8
xor ecx, ecx
jmp 0x4155e1
mov ecx, ebx
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4155d0
sub ecx, edx
sar ecx, 1
add ecx, ecx
test esi, esi
jne 0x4155ec
mov eax, str.FlyoutNotify
jmp 0x41560e
cmp esi, 1
jne 0x4155f8
mov eax, str.Hardening
jmp 0x41560e
cmp esi, 2
jne 0x415604
mov eax, 0x4564f8
jmp 0x41560e
cmp esi, 3
jne 0x415666
mov eax, str.BrandingURL
test ecx, ecx
jne 0x415639
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
push edi
sete bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043183b
mov esp, ebp
pop ebp
ret
push ecx
push ebx
push 1
push 0
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
push edi
sete bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043183b
mov esp, ebp
pop ebp
ret
push edi
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043183b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 9]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0043183b
mov esp, ebp
pop ebp
ret

Function at 0x415980
Capabilities:
Get common file path

Disassembly:
push esi
push 0x208
call fcn.00432432
mov esi, eax
add esp, 4
test esi, esi
je 0x4159c6
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x4159b1
push esi
call fcn.004323fa
add esp, 4
xor eax, eax
pop esi
ret
push 0x456580
push 0x104
push esi
call fcn.004325c6
add esp, 0xc
mov eax, esi
pop esi
ret
Function at 0x415a20
Capabilities:
Get common file path
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x461008]
xor eax, ebp
mov dword [ebp - 4], eax
cmp word [0x464418], 0
jne 0x415a92
mov eax, dword [0x4622b4]
cmp eax, 0xffffffff
jne 0x415aa5
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ax, word [ebp - 0x28]
cmp ax, 9
jne 0x415a6f
push 0x464418
push 0
push 0
mov dword [0x4622b4], 1
push 0x2a
jmp 0x415a8a
cmp ax, 6
je 0x415a58
mov dword [0x4622b4], 0
push 0x464418
push 0
push 0
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ecx, dword [ebp - 4]
mov eax, 0x464418
xor ecx, ebp
call fcn.0043183b
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x415a7f
push 0x464418
push 0
push 0
push 0x2a
jmp 0x415a8a

Function at 0x415b30
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x461008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
mov esi, ecx
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov dword [ebp - 0x418], esi
call fcn.0043cf50
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
dec eax
cmp eax, 0x103
ja 0x415cad
cmp word [ebp - 0x20c], 0
push edi
lea edi, [ebp - 0x20c]
je 0x415c9b
push ebx
mov edi, edi
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x415ba5
sub eax, edx
sar eax, 1
push 0x104
lea ebx, [edi + eax*2]
xor eax, eax
mov word [edi + 4], ax
lea eax, [ebp - 0x414]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x415c1e
lea esi, [ebp - 0x414]
lea ecx, [esi + 2]
lea ecx, [ecx]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x415be0
lea eax, [ebp - 0x414]
sub esi, ecx
push 0x3b
push eax
sar esi, 1
call fcn.0043269a
add esp, 8
test eax, eax
jne 0x415c1e
push esi
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x418]
call fcn.00432e2b
add esp, 0xc
test eax, eax
je 0x415c43
cmp word [ebx + 2], 0
lea edi, [ebx + 2]
jne 0x415ba0
mov eax, dword [ebp - 0x418]
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043183b
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x418]
mov ecx, ebx
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415c50
sub ecx, edx
sar ecx, 1
sub ecx, esi
lea eax, [ecx*2 + 2]
push eax
lea ecx, [ebx + esi*2]
push ecx
lea ecx, [ebx + 4]
push ecx
call fcn.00431bc0
mov cx, word [edi]
add esp, 0xc
mov eax, 0x3a
mov word [ebx], cx
mov word [ebx + 2], ax
mov eax, ebx
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043183b
mov esp, ebp
pop ebp
ret
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043183b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0043183b
mov esp, ebp
pop ebp
ret
Function at 0x416920
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x461008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x400
call dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov esi, eax
mov edi, 0x4565f8
lea eax, [ebp - 0x22c]
push eax
push 1
push 0
push 0x456658
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x416a34
mov eax, dword [0x456684]
mov dword [ebp - 0x10], eax
mov eax, dword [0x456688]
mov dword [ebp - 0xc], eax
mov ax, word [0x45668c]
push 0x10
mov word [ebp - 8], ax
lea eax, [ebp - 0x24]
push 9
push eax
push esi
call fcn.00432a9f
lea ecx, [ebp - 0x24]
add esp, 0x10
lea edx, [ecx + 2]
jmp 0x4169a0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4169a0
sub ecx, edx
sar ecx, 1
cmp ecx, 4
jle 0x4169b9
mov ecx, 4
add ecx, ecx
lea eax, [ebp - 0x24]
push ecx
push eax
lea eax, [ebp - 8]
sub eax, ecx
push eax
call fcn.00433580
add esp, 0xc
mov dword [ebp - 0x228], 0x200
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x224]
push eax
push 0
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x22c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x416a28
mov word [ebp - 0x220], ax
lea eax, [ebp - 0x224]
push 0x100
push eax
call fcn.00433388
add esp, 8
lea edi, [ebp - 0x224]
xor eax, eax
mov word [ebp - 0x220], ax
push dword [ebp - 0x22c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
jmp 0x416a40
push dword [esi*4 + 0x44bee0]
push edi
call fcn.0043228c
add esp, 8
test eax, eax
je 0x416a6f
inc esi
cmp esi, 9
jb 0x416a40
pop edi
mov eax, 0x4565f8
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043183b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, dword [esi*4 + 0x44bee0]
xor ecx, ebp
pop edi
pop esi
call fcn.0043183b
mov esp, ebp
pop ebp
ret

Function at 0x416e10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x461008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x104
lea eax, [ebp - 0x414]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x61c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x414]
push 0x5c
push eax
call fcn.004324c4
push 0x2e
lea esi, [eax + 2]
push esi
call fcn.004324c4
add esp, 0x10
test eax, eax
je 0x416e6f
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0043256a
push 0x456690
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004325c6
push esi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004325c6
push 0x4566a0
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004325c6
lea eax, [ebp - 0x20c]
push eax
call fcn.004319e0
add esp, 0x34
mov dword [0x46370c], eax
push 0x463710
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0043183b
mov esp, ebp
pop ebp
ret
Function at 0x416f00
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x416f5b
push esi
lea ecx, [ebp + 0xc]
push ecx
push eax
call fcn.004333d1
mov esi, eax
add esp, 8
test esi, esi
jle 0x416f56
push edi
inc esi
push esi
call fcn.00432432
mov edi, eax
add esp, 4
test edi, edi
je 0x416f50
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
push esi
push edi
call fcn.0043352a
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push edi
call fcn.004323fa
add esp, 4
pop edi
xor al, al
pop esi
pop ebp
ret
xor al, al
pop esi
pop ebp
ret
xor al, al
pop ebp
ret