joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4121f0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5285a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x10]
call fcn.004070d0
mov dword [ebp - 4], 0
cmp dword [ebp + 0x14], 0
je 0x41223b
mov eax, dword [ebp - 0x30]
add eax, 0xc
push eax
lea ecx, [ebp - 0x10]
call fcn.00404380
jmp 0x412247
mov ecx, dword [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00404380
lea ecx, [ebp - 0x10]
call fcn.0040b3b0
movzx edx, al
test edx, edx
jne 0x412363
lea ecx, [ebp - 0x1c]
call fcn.004070d0
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x10]
push edx
push str._s_d._s
lea eax, [ebp - 0x1c]
push eax
call fcn.00407e40
add esp, 0x14
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp - 0x1c]
call fcn.00477060
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
je 0x412357
push 0
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x41234d
mov dword [ebp - 0x24], 0
push 0
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x20]
add ecx, 0xa
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.0040a400
push eax
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x412343
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x20]
jne 0x412343
mov ecx, dword [ebp - 0x20]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.0040b3d0
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x28], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.004070b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004070b0
mov eax, dword [ebp - 0x28]
jmp 0x41237b
push 0
mov ecx, dword [ebp + 0xc]
call fcn.0040b3d0
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.004070b0
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004070b0
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4129d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x528aeb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov dword [ebp - 0x38], ecx
mov ecx, dword [ebp - 0x38]
call fcn.00412970
mov ecx, dword [ebp - 0x38]
call fcn.00477060
push eax
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x38]
call fcn.00412be0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.0040b3b0
movzx ecx, al
test ecx, ecx
jne 0x412a34
lea ecx, [ebp - 0x1c]
call fcn.00477060
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x412a48
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004070b0
jmp 0x412bc6
lea ecx, [ebp - 0x28]
call fcn.004103f0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.00477060
push eax
lea ecx, [ebp - 0x28]
call fcn.00410490
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x28]
call fcn.004102b0
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jg 0x412aa4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00410460
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004070b0
jmp 0x412bc6
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x2c], edx
xor ecx, ecx
mov eax, dword [ebp - 0x2c]
mov edx, 8
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 fcn.0040edb0
add esp, 4
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 2
cmp dword [ebp - 0x34], 0
je 0x412b0e
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x2c]
mov dword [ecx], edx
push fcn.004104c0
push fcn.0045b770
mov eax, dword [ebp - 0x2c]
push eax
push 8
mov ecx, dword [ebp - 0x34]
add ecx, 4
push ecx
call fcn.004a29b1
mov edx, dword [ebp - 0x34]
add edx, 4
mov dword [ebp - 0x3c], edx
jmp 0x412b15
mov dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x30]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 0x38]
cmp dword [eax + 4], 0
jne 0x412b4e
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00410460
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004070b0
jmp 0x412bc6
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x28]
call fcn.004102e0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x412b74
cmp dword [ebp - 0x18], 0
jg 0x412b99
mov ecx, dword [ebp - 0x38]
call fcn.00412970
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00410460
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004070b0
jmp 0x412bc6
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x10]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x18]
mov dword [ecx + 0xc], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00410460
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004070b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x412d40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], 0
mov word [ebp - 0x210], 0
push 0x20e
push 0
lea eax, [ebp - 0x20e]
push eax
call fcn.0049e730
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x210]
push eax
mov ecx, dword [ebp + 8]
call fcn.00406b50
mov ecx, dword [ebp - 0x214]
or ecx, 1
mov dword [ebp - 0x214], ecx
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret 4

Function at 0x4161a0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x528073
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
call fcn.00413c40
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
mov dword [eax], vtable.BkWin::BkLayoutParam.0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
mov dword [ecx + 4], edx
mov ecx, dword [ebp - 0x10]
add ecx, 8
call fcn.004070d0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x34], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x38], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x18], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x14], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0xc], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x24], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x2c], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x28], SysReAllocString
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x30], SysReAllocString
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x1c], 0xffffffff
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x20], 0xffffffff
push str.layout_
mov ecx, dword [ebp - 0x10]
add ecx, 8
call fcn.00408790
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x417010
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get ntdll base address
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x528a94
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
call fcn.00413c40
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.0041ae70
mov eax, dword [ebp - 0x10]
mov dword [eax], vtable.CBkWindow.0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], vtable.CBkWindow.1.0
mov edx, dword [ebp - 0x10]
push edx
call fcn.00416e40
add esp, 4
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0x10]
mov dword [edx + 0xc], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x10], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x14], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call fcn.0045b970
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x28], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x2c
call fcn.004070d0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x30], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x34], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x38], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x3c], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x40], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x44
call fcn.004070d0
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x48], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x4c
call fcn.004070d0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
add ecx, 0x50
call fcn.004070d0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x54], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x58], 0xffffffff
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x5c], 0
mov eax, dword [ebp - 0x10]
mov word [eax + 0x60], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x64], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x68], 0xffffffff
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x6c], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x70
call fcn.00467c60
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0xa4], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0xa8], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0xac], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0xb0], 1
mov edx, dword [ebp - 0x10]
mov dword [edx + 0xb4], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0xb8], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0xbc], 0
cmp dword [ebp - 0x10], 0
je 0x4171d4
mov edx, dword [ebp - 0x10]
add edx, 4
mov dword [ebp - 0x14], edx
jmp 0x4171db
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xc4
call fcn.004161a0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x100], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x104], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0xc0], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call fcn.0045b880
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4209b0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 8]
call fcn.00420a10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4209e4
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4209e4
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov esp, ebp
pop ebp
ret

Function at 0x4308d0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
call fcn.00430be0
test eax, eax
jne 0x4308ef
push 0
mov ecx, dword [ebp - 4]
call fcn.0041a340
jmp 0x430932
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x108]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x430932
push 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x108]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x108]
push edx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebp - 4]
mov dword [eax + 0x108], 0
mov esp, ebp
pop ebp
ret

Function at 0x430af0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 8]
call fcn.00430be0
test eax, eax
jne 0x430b14
push 0
mov ecx, dword [ebp - 8]
call fcn.0041a340
jmp 0x430b9d
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 8]
call fcn.00419cb0
cmp dword [ebp + 8], 0
je 0x430b67
mov edx, dword [ebp - 8]
mov dword [ebp - 4], edx
mov eax, 1
test eax, eax
je 0x430b67
mov ecx, dword [ebp - 4]
call fcn.00491bd0
push eax
call fcn.00416df0
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x430b55
jmp 0x430b67
push 0
mov ecx, dword [ebp - 4]
call fcn.00417830
test eax, eax
jne 0x430b65
jmp 0x430b9d
jmp 0x430b30
cmp dword [ebp + 8], 0
je 0x430b8b
push 0x67
push 0
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x108]
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x430b9d
push 0
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x108]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov esp, ebp
pop ebp
ret 8
Function at 0x4392a0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x2c], ecx
lea eax, [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x2c]
call fcn.00438e60
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x24], edx
push 1
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [eax + 0x74]
call edx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x144]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x2c]
cmp dword [edx + 0x144], 0
je 0x439428
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x144]
push ecx
call fcn.00416df0
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x43941b
mov ecx, dword [ebp - 0x18]
call fcn.00402b20
mov dword [ebp - 4], eax
push 2
push 0
mov edx, dword [ebp - 0x18]
push edx
mov ecx, dword [ebp - 0x2c]
call fcn.00438c70
mov eax, dword [ebp + 0xc]
and eax, 0xffff
movzx ecx, ax
mov edx, dword [ebp + 0x10]
and edx, 0xffff
movzx eax, dx
shl eax, 0x10
or ecx, eax
push ecx
mov ecx, dword [ebp + 8]
push ecx
push 0x202
mov ecx, dword [ebp - 0x18]
call fcn.00417630
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x144]
cmp eax, dword [ebp - 0xc]
jne 0x4393d5
mov ecx, dword [ebp - 0x18]
call fcn.00417900
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4393c0
mov ecx, dword [ebp - 0x1c]
movzx edx, word [ecx]
test edx, edx
je 0x4393c0
push 1
push 0
push 0
mov eax, dword [ebp - 0x1c]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 0x20], eax
jmp 0x4393d3
mov ecx, dword [ebp - 0x18]
call fcn.00402b20
test eax, eax
je 0x4393d3
mov dword [ebp - 0x14], 1
jmp 0x43941b
push 1
push 0
mov ecx, dword [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x2c]
call fcn.00438c70
mov edx, dword [ebp + 0xc]
and edx, 0xffff
movzx eax, dx
mov ecx, dword [ebp + 0x10]
and ecx, 0xffff
movzx edx, cx
shl edx, 0x10
or eax, edx
push eax
mov eax, dword [ebp + 8]
push eax
push 0x2a3
mov ecx, dword [ebp - 0x18]
call fcn.00417630
mov dword [ebp - 0x10], 1
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0x144], 0
cmp dword [ebp - 0x14], 0
je 0x43943e
push 0x67
mov edx, dword [ebp - 0x18]
push edx
mov ecx, dword [ebp - 0x2c]
call fcn.00438cb0
jmp 0x439473
cmp dword [ebp - 0x10], 0
je 0x439473
cmp dword [ebp - 4], 0
je 0x439473
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 8]
cmp ecx, dword [eax + 0x140]
jne 0x439465
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x140], 0
push 0x6a
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x2c]
call fcn.00438cb0
mov esp, ebp
pop ebp
ret 0xc
Function at 0x43c510
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x528578
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.00406b50
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [ebp - 0xe]
push edx
movzx eax, word [ebp - 0x10]
push eax
movzx ecx, word [ebp - 0x12]
push ecx
movzx edx, word [ebp - 0x14]
push edx
push str.__02d__02d__02d__03d__n
lea eax, [ebp - 0x20]
push eax
call fcn.0040d910
add esp, 0x18
lea ecx, [ebp - 0x20]
call fcn.00477060
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.004070b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x43f350
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov dword [ebp - 0x12c], 0
mov dword [ebp - 4], 0
push 0x11c
push 0
lea eax, [ebp - 0x128]
push eax
call fcn.0049e730
add esp, 0xc
mov dword [ebp - 0x128], 0x11c
lea ecx, [ebp - 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 0
jne 0x43f3c3
mov dword [ebp - 0x128], 0x114
lea edx, [ebp - 0x128]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 0
jne 0x43f3d6
jmp 0x43f509
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 1
je 0x43f4d9
cmp dword [ebp - 0x130], 2
je 0x43f3fd
jmp 0x43f502
cmp dword [ebp - 0x124], 6
jne 0x43f427
cmp dword [ebp - 0x120], 1
jne 0x43f427
movzx ecx, byte [ebp - 0xe]
sub ecx, 1
neg ecx
sbb ecx, ecx
neg ecx
add ecx, 8
mov dword [ebp - 4], ecx
jmp 0x43f4d7
cmp dword [ebp - 0x124], 6
jne 0x43f452
cmp dword [ebp - 0x120], 0
jne 0x43f452
movzx edx, byte [ebp - 0xe]
sub edx, 1
neg edx
sbb edx, edx
and edx, 2
add edx, 7
mov dword [ebp - 4], edx
jmp 0x43f4d7
cmp dword [ebp - 0x124], 5
jne 0x43f46d
cmp dword [ebp - 0x120], 2
jne 0x43f46d
mov dword [ebp - 4], 5
jmp 0x43f4d7
cmp dword [ebp - 0x124], 5
jne 0x43f488
cmp dword [ebp - 0x120], 1
jne 0x43f488
mov dword [ebp - 4], 6
jmp 0x43f4d7
cmp dword [ebp - 0x124], 5
jne 0x43f4a3
cmp dword [ebp - 0x120], 0
jne 0x43f4a3
mov dword [ebp - 4], 3
jmp 0x43f4d7
cmp dword [ebp - 0x124], 4
ja 0x43f4b5
mov dword [ebp - 4], 4
jmp 0x43f4d7
cmp dword [ebp - 0x124], 6
jne 0x43f4d7
cmp dword [ebp - 0x120], 2
jne 0x43f4d7
movzx eax, byte [ebp - 0xe]
cmp eax, 1
jne 0x43f4d7
mov dword [ebp - 4], 0xa
jmp 0x43f509
mov ecx, dword [ebp - 0x11c]
shr ecx, 0x10
and ecx, 0xffff
cmp ecx, 0x45a
jae 0x43f4f9
mov dword [ebp - 4], 1
jmp 0x43f500
mov dword [ebp - 4], 2
jmp 0x43f509
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x453bd0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52a026
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8c
mov dword [ebp - 0x98], ecx
lea ecx, [ebp - 0x84]
call fcn.00512200
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x98]
mov dword [eax + 0x408], 0
mov ecx, dword [ebp - 0x98]
mov dword [ecx + 0x3fc], 0
mov edx, dword [ebp - 0x98]
mov dword [edx + 0x3e8], 0x80090000
mov eax, dword [ebp - 0x98]
mov dword [eax + 0x3ec], 0x10000
mov ecx, dword [ebp - 0x98]
call fcn.0044f400
mov ecx, dword [ebp - 0x98]
mov dword [ecx + 0x3f0], 0
mov edx, dword [ebp - 0x98]
mov dword [edx + 0x3f4], 0
mov eax, dword [ebp - 0x98]
mov dword [eax + 0x3f8], 0
push 1
push 0
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x84]
call fcn.0050f400
lea ecx, [ebp - 0x84]
call fcn.004025f0
movzx edx, al
test edx, edx
je 0x453d4d
lea ecx, [ebp - 0x84]
call fcn.0045a2f0
push eax
lea ecx, [ebp - 0x8c]
call fcn.0040b340
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x84]
call fcn.0045a2d0
push eax
lea ecx, [ebp - 0x84]
call fcn.0045a2b0
push eax
lea ecx, [ebp - 0x84]
call fcn.0045a290
push eax
push str.__errorid_d__errorrow_d__errorcolom_d_n
lea eax, [ebp - 0x8c]
push eax
call fcn.00455ed0
add esp, 0x14
lea ecx, [ebp - 0x8c]
call fcn.00477060
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 0x98]
call fcn.004555c0
mov dword [ebp - 0x90], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x8c]
call fcn.004070b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x84]
call fcn.004025c0
mov eax, dword [ebp - 0x90]
jmp 0x453d8e
lea ecx, [ebp - 0x84]
call fcn.0040bc70
mov dword [ebp - 0x88], eax
mov ecx, dword [ebp - 0x88]
push ecx
mov ecx, dword [ebp - 0x98]
call fcn.00454cb0
mov dword [ebp - 0x94], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x84]
call fcn.004025c0
mov eax, dword [ebp - 0x94]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x45ba90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
xor eax, eax
jne 0x45ba99
xor ecx, ecx
jne 0x45ba99
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
shl eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x45bae0
mov eax, dword [ebp - 0xc]
jmp 0x45bb3d
cmp dword [ebp - 4], 1
je 0x45baf3
cmp dword [ebp - 4], 2
je 0x45baf3
mov eax, 0xd
jmp 0x45bb3d
cmp dword [ebp + 0xc], 0
je 0x45bb31
cmp dword [ebp - 8], 0
je 0x45bb29
mov eax, dword [ebp - 8]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
jne 0x45bb20
mov edx, dword [ebp - 8]
shr edx, 1
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + edx*2 - 2]
test ecx, ecx
je 0x45bb27
mov eax, 0xd
jmp 0x45bb3d
jmp 0x45bb31
mov edx, dword [ebp + 0xc]
mov word [edx], 0
mov eax, dword [ebp - 8]
shr eax, 1
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc

Function at 0x45bcc0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
jne 0x45bcdc
jmp 0x45bd19
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0049f3cb
add esp, 4
lea edx, [eax + eax + 2]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 1
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x45bd12
jmp 0x45bd19
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8
Function at 0x46e6d0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5293b6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x308
mov dword [ebp - 0x314], ecx
mov word [ebp - 0x304], 0
push 0xd2
push 0
lea eax, [ebp - 0x302]
push eax
call fcn.0049e730
add esp, 0xc
lea ecx, [ebp - 0x304]
push ecx
push 0x69
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0
jne 0x46e738
xor eax, eax
jmp 0x46e863
mov eax, dword [ebp - 0x228]
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [ebp - 0x14], eax
mov word [ebp - 0x224], 0
push 0x208
push 0
lea edx, [ebp - 0x222]
push edx
call fcn.0049e730
add esp, 0xc
lea eax, [ebp - 0x304]
mov dword [ebp - 0x10], eax
mov word [ebp - 0x1c], 0
mov ecx, dword [ebp - 0x314]
add ecx, 4
call fcn.0046f180
mov dword [ebp - 0x308], 0
jmp 0x46e7a1
mov ecx, dword [ebp - 0x308]
add ecx, 1
mov dword [ebp - 0x308], ecx
mov edx, dword [ebp - 0x308]
cmp edx, dword [ebp - 0x14]
jge 0x46e85e
mov eax, dword [ebp - 0x10]
mov word [eax + 4], 0
push 0x104
lea ecx, [ebp - 0x224]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x46e850
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x30c]
call fcn.00406b50
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x30c]
push ecx
mov ecx, dword [ebp - 0x314]
add ecx, 4
call fcn.00467bf0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30c]
call fcn.004070b0
mov edx, dword [ebp - 0x10]
push edx
lea ecx, [ebp - 0x310]
call fcn.00406b50
mov dword [ebp - 4], 1
lea eax, [ebp - 0x310]
push eax
mov ecx, dword [ebp - 0x314]
add ecx, 4
call fcn.00467bf0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x310]
call fcn.004070b0
mov ecx, dword [ebp - 0x10]
add ecx, 8
mov dword [ebp - 0x10], ecx
jmp 0x46e792
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret