joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401360
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41cd3e
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x42701c]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push esi
push edi
mov eax, dword [0x42701c]
xor eax, esp
push eax
lea eax, [esp + 0x228]
mov dword fs:[0], eax
mov edi, ecx
push 0x400
mov dword [esp + 0x1c], edi
call fcn.0040fa6a
mov ecx, dword [edi + 0x40]
mov edx, dword [ecx]
mov esi, eax
mov eax, dword [edi + 8]
mov eax, dword [eax + 0x20]
add esp, 4
add eax, 0x264
push eax
mov eax, dword [edx + 0x24]
push 0x200
push esi
call eax
mov eax, dword [edi + 8]
mov eax, dword [eax + 4]
push esi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
push esi
call fcn.0040fa9f
mov eax, dword [edi + 0x14]
mov ecx, dword [eax + 0xc]
mov ebx, dword [eax + 8]
add esp, 4
push 0x18
mov dword [esp + 0x18], ecx
call fcn.0040fafb
mov esi, eax
add esp, 4
test esi, esi
je 0x40146c
mov edx, dword [edi + 8]
mov eax, dword [edi + 0x14]
mov ecx, dword [edx + 0x20]
mov edx, dword [eax]
mov eax, dword [esp + 0x14]
push 0
push 0
push 0
push edx
push 0xa
push ebx
add eax, 0xfffffff6
push eax
push 0
push 0x50000001
push 0x42066c
push str.msctls_progress32
add ecx, 8
push 0
mov dword [esi + 4], ecx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], 0xa
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], eax
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0x640000
push 0
push 0x401
push eax
mov dword [esi], eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40146e
xor esi, esi
mov eax, dword [edi + 8]
mov dword [edi + 0x58], esi
mov ebx, dword [eax + 0x10]
push 0x424
call fcn.0040fafb
add esp, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x230], 0
test eax, eax
je 0x4014e3
mov eax, dword [edi + 8]
mov eax, dword [eax + 0x20]
add eax, 0x264
push eax
mov esi, str.INFORMATION
call fcn.00404060
mov ecx, dword [edi + 8]
mov edx, dword [ecx + 0x20]
mov edi, dword [edx + 4]
mov ecx, dword [ecx + 4]
push eax
push 0x64
lea esi, [ebx - 0x1e]
push esi
mov esi, dword [esp + 0x1c]
push 0x14
add edx, 8
push edx
push ecx
mov ebx, 0x14
call fcn.00402340
mov edi, dword [esp + 0x18]
mov eax, esi
mov dword [eax], vtable.UrlLinkLabel.0
jmp 0x4014e5
xor eax, eax
mov dword [esp + 0x230], 0xffffffff
mov edx, dword [edi]
mov dword [edi + 0x5c], eax
mov eax, dword [edx + 0x2c]
mov ecx, edi
call eax
mov edx, dword [eax]
mov edx, dword [edx + 0x30]
push 0x100
lea ecx, [esp + 0x20]
push ecx
mov ecx, eax
call edx
mov ecx, dword [edi + 0x5c]
lea eax, [esp + 0x1c]
push eax
add ecx, 0x224
push 0x100
push ecx
call fcn.0040fe56
add esp, 0xc
mov ecx, dword [esp + 0x228]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0040fa5b
mov esp, ebp
pop ebp
ret
Function at 0x4023d0
Capabilities:
Create process on windows

Disassembly:
push 1
push 0
push 0
add ecx, 0x224
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
ret

Function at 0x402640
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [eax]
mov dword [ebp - 4], ecx
cmp ecx, eax
je 0x402698
push ebx
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push esi
push edi
jmp 0x402660
mov ecx, dword [ebp - 4]
mov edi, dword [ecx + 8]
xor esi, esi
add edi, 4
jmp 0x402670
mov eax, dword [edi]
test eax, eax
je 0x402686
mov edx, dword [eax]
push 0
push edx
call ebx
inc esi
add edi, 4
cmp esi, 0x20
jl 0x402670
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp eax, dword [ecx]
jne 0x402660
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x402c30
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
mov ecx, dword [eax + 4]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [esi + 8]
mov eax, dword [edx + 4]
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop esi
ret
Function at 0x403000
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41cfdb
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x42701c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x14
call fcn.0040fafb
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
xor edi, edi
mov dword [ebp - 4], edi
cmp esi, edi
je 0x4030a1
push 0x18
mov dword [esi + 8], edi
call fcn.0040fafb
add esp, 4
cmp eax, edi
je 0x40307d
mov dword [esi + 4], eax
mov dword [eax], eax
mov eax, dword [esi + 4]
mov dword [eax + 4], eax
mov eax, dword [esi + 4]
mov dword [eax + 8], eax
mov ecx, dword [esi + 4]
mov al, 1
mov byte [ecx + 0x14], al
mov edx, dword [esi + 4]
mov byte [edx + 0x15], al
mov ax, word [ebp + 0xc]
mov word [esi + 0x10], ax
mov dword [ebp - 0x10], esi
jmp 0x4030a4
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x18], edi
call fcn.0040fda3
push 0x424a58
lea edx, [ebp - 0x24]
push edx
mov dword [ebp - 0x24], vtable.std::bad_alloc.0
call fcn.00410c3d
mov dword [ebp - 0x10], edi
movzx eax, word [ebp + 8]
push 0x4206c8
push eax
push edi
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov esi, eax
cmp esi, edi
je 0x403170
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov dword [ebp - 0x14], eax
cmp eax, edi
je 0x403170
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov edi, eax
xor ecx, ecx
lea ebx, [edi + edi]
mov eax, ebx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040fa6a
add esp, 4
push ebx
mov esi, eax
mov eax, dword [ebp - 0x14]
push esi
push edi
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
mov ebx, dword [ebp - 0x10]
mov edi, eax
xor ecx, ecx
mov word [esi + edi*2], cx
call fcn.00403fa0
push 0x18
call fcn.0040fafb
xor ecx, ecx
add esp, 4
cmp eax, ecx
je 0x40314c
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax], ebx
mov dword [eax + 4], ecx
mov ebx, eax
jmp 0x40314e
xor ebx, ebx
push edi
push esi
mov eax, ebx
call fcn.00406100
push ebx
call fcn.0040fa9f
push esi
call fcn.0040fa9f
mov edx, dword [ebp - 0x14]
add esp, 8
push edx
call dword [sym.imp.KERNEL32.DLL_FreeResource]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403410
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x5410
call fcn.004175d0
mov eax, dword [0x42701c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push str..pipe_cmd_pipe
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x403643
push 0
lea ecx, [ebp - 0x540c]
push ecx
push 0x5000
lea edx, [ebp - 0x5408]
push edx
push eax
mov dword [ebp - 0x540c], 0
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push 0x42076c
mov edi, eax
lea ecx, [ebp - 0x208]
xor eax, eax
push 0x100
push ecx
mov word [ebp - 0x208], ax
call fcn.0040fffd
add esp, 0xc
test edi, edi
je 0x40363a
mov ebx, dword [sym.imp.SHLWAPI.dll_wnsprintfW]
mov edx, dword [ebp - 0x540c]
lea ecx, [ebp - 0x5408]
push ecx
shr edx, 1
xor eax, eax
push 0x420770
mov word [ebp + edx*2 - 0x5408], ax
lea edx, [ebp - 0x408]
push 0x100
push edx
call ebx
mov ecx, dword [esi + 4]
add esp, 0x10
lea eax, [ebp - 0x408]
push eax
push 0x4208f8
call fcn.004038b0
mov eax, dword [ebp - 0x540c]
mov ecx, dword [esi + 8]
mov edx, dword [ecx]
mov edx, dword [edx]
push eax
lea eax, [ebp - 0x5408]
push eax
call edx
mov edi, eax
test edi, edi
je 0x403555
lea eax, [ebp - 0x5408]
push eax
push str.execute_commend:__s
lea ecx, [ebp - 0x408]
push 0x100
push ecx
call ebx
mov ecx, dword [esi + 4]
add esp, 0x10
lea edx, [ebp - 0x408]
push edx
push 0x4208f8
call fcn.004038b0
mov ecx, dword [esi + 4]
mov eax, dword [edi]
mov eax, dword [eax + 4]
push ecx
push 0x100
lea edx, [ebp - 0x208]
push edx
mov ecx, edi
call eax
jmp 0x403577
push str._9999
lea edx, [ebp - 0x208]
xor ecx, ecx
push 0x100
push edx
mov word [ebp - 0x208], cx
call fcn.0040fffd
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
push str.commend_result:__s
lea ecx, [ebp - 0x408]
push 0x100
push ecx
call ebx
mov ecx, dword [esi + 4]
add esp, 0x10
lea edx, [ebp - 0x408]
push edx
push 0x4208f8
call fcn.004038b0
lea eax, [ebp - 0x208]
mov dword [ebp - 0x5410], 0
lea edx, [eax + 2]
jmp 0x4035c0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4035c0
sub eax, edx
push 0
sar eax, 1
lea ecx, [ebp - 0x5410]
push ecx
mov ecx, dword [esi]
lea edx, [eax + eax]
push edx
lea eax, [ebp - 0x208]
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x40363a
mov ecx, dword [esi]
push 0
lea edx, [ebp - 0x540c]
push edx
push 0x5000
lea eax, [ebp - 0x5408]
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push 0x42076c
mov edi, eax
lea eax, [ebp - 0x208]
xor edx, edx
push 0x100
push eax
mov word [ebp - 0x208], dx
call fcn.0040fffd
add esp, 0xc
test edi, edi
jne 0x4034a9
mov ecx, dword [esi]
push ecx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0040fa5b
mov esp, ebp
pop ebp
ret
Function at 0x4036c0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x724
mov eax, dword [0x42701c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
test ecx, ecx
je 0x40377b
mov eax, dword [ecx]
mov eax, dword [eax + 8]
lea edx, [ebp - 0x71c]
push edx
push 0x208
lea edx, [ebp - 0x718]
push edx
mov dword [ebp - 0x71c], 0
call eax
mov ebx, dword [sym.imp.SHLWAPI.dll_wnsprintfW]
lea ecx, [ebp - 0x718]
push ecx
push str.send_command_:__s
lea edx, [ebp - 0x308]
push 0x100
push edx
call ebx
mov ecx, dword [esi + 4]
add esp, 0x10
lea eax, [ebp - 0x308]
push eax
push 0x4208f8
call fcn.004038b0
mov edx, dword [ebp - 0x71c]
push 0
lea ecx, [ebp - 0x724]
push ecx
lea eax, [edx + edx]
mov edx, dword [esi]
push eax
lea ecx, [ebp - 0x718]
push ecx
push edx
mov dword [ebp - 0x724], 0
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push 0
test eax, eax
jne 0x40378c
push 0x4207f4
push str.Failed_to_send_data
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040fa5b
mov esp, ebp
pop ebp
ret
mov edx, dword [esi]
lea eax, [ebp - 0x720]
push eax
push 0xfe
lea ecx, [ebp - 0x108]
push ecx
push edx
mov dword [ebp - 0x720], 0
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov eax, dword [ebp - 0x720]
shr eax, 1
xor ecx, ecx
mov word [ebp + eax*2 - 0x108], cx
test edi, edi
je 0x4037dd
lea edx, [ebp - 0x108]
push edx
push 0x100
push edi
call fcn.0040fe56
add esp, 0xc
push edi
push str.command_result:__s
lea eax, [ebp - 0x308]
push 0x100
push eax
call ebx
add esp, 0x10
lea ecx, [ebp - 0x308]
push ecx
mov ecx, dword [esi + 4]
push 0x4208f8
call fcn.004038b0
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
pop ebx
call fcn.0040fa5b
mov esp, ebp
pop ebp
ret
Function at 0x4038b0
Capabilities:
Delete file
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4002c
call fcn.004175d0
mov eax, dword [0x42701c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x40020], eax
mov eax, dword [ebp + 0xc]
mov esi, ecx
push edi
mov dword [ebp - 0x4001c], esi
mov dword [ebp - 0x40024], eax
test eax, eax
je 0x403ab2
mov ebx, dword [sym.imp.KERNEL32.DLL_CreateFileW]
push 0
push 0
push 4
push 0
push 0
push 0x40000000
add esi, 4
push esi
call ebx
mov edi, eax
cmp edi, 0xffffffff
je 0x403ab2
push 0
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
cmp eax, 0xffffffff
je 0x40394e
and eax, 0xfffffc00
cmp eax, 0x32000
jbe 0x40394e
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
push 0
push 0
push 4
push 0
push 0
push 0x40000000
push esi
call ebx
mov edi, eax
cmp edi, 0xffffffff
je 0x403ab2
lea ecx, [ebp - 0x40018]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetSystemTime]
mov eax, dword [ebp - 0x40020]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403970
mov ebx, dword [ebp - 0x40024]
sub eax, edx
sar eax, 1
mov edx, eax
mov eax, ebx
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403990
sub eax, esi
sar eax, 1
lea eax, [eax + edx + 0x400]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040fafb
mov ecx, dword [ebp - 0x4001c]
mov edx, dword [ebp - 0x40020]
push ebx
mov esi, eax
xor eax, eax
mov word [esi], ax
movzx eax, word [ebp - 0x4000a]
add ecx, 0x20c
push ecx
movzx ecx, word [ebp - 0x4000c]
push edx
movzx edx, word [ebp - 0x4000e]
push eax
movzx eax, word [ebp - 0x40010]
push ecx
movzx ecx, word [ebp - 0x40012]
push edx
movzx edx, word [ebp - 0x40016]
push eax
movzx eax, word [ebp - 0x40018]
push ecx
push edx
push eax
push str.__d__d__d__d:_d:_d:_d___s_:___s__:__s_r_n
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x34
lea ecx, [ebp - 0x4001c]
push ecx
push 0
push 0x40000
lea edx, [ebp - 0x40008]
push edx
push 0xffffffffffffffff
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
cmp eax, 0x40000
jae 0x403a52
mov byte [ebp + eax - 0x40008], 0
jmp 0x403a5f
cmp byte [ebp - 9], 0
je 0x403a5f
mov byte [ebp - 0x40008], 0
lea eax, [ebp - 0x40008]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403a68
push 2
push 0
push 0
sub eax, edx
push edi
mov ebx, eax
mov dword [ebp - 0x40028], 0
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push 0
lea eax, [ebp - 0x40028]
push eax
push ebx
lea ecx, [ebp - 0x40008]
push ecx
push edi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push esi
call fcn.0040fa9f
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040fa5b
mov esp, ebp
pop ebp
ret 8
Function at 0x403d30
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x42701c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov ecx, dword [esi + 0x10]
mov ebx, 1
mov eax, 0x10
test bl, cl
je 0x403d61
mov eax, 0x210
test cl, 4
je 0x403d70
or eax, 0x100
mov ebx, 0x21
mov ecx, dword [esi + 0x18]
push eax
push 4
lea eax, [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_DrawFrameControl]
mov eax, dword [edi + 4]
push 0x100
lea edx, [ebp - 0x204]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x204]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403da0
sub eax, edx
lea ecx, [ebp - 0x20c]
push ecx
sar eax, 1
push eax
mov eax, dword [esi + 0x18]
lea edx, [ebp - 0x204]
push edx
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
lea eax, [ebp - 0x204]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403dd1
sub eax, edx
sar eax, 1
mov ecx, dword [esi + 0x24]
mov edi, eax
mov eax, dword [esi + 0x28]
push ebx
push eax
cdq
sub eax, edx
mov ebx, eax
mov eax, dword [ebp - 0x208]
cdq
sub eax, edx
sar eax, 1
push ecx
sar ebx, 1
sub ebx, eax
mov eax, ecx
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 0x20c]
cdq
sub eax, edx
push ebx
sar eax, 1
sar ecx, 1
sub ecx, eax
mov eax, dword [esi + 0x18]
push ecx
push edi
lea edx, [ebp - 0x204]
push edx
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_DrawStateW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040fa5b
mov esp, ebp
pop ebp
ret 4
Function at 0x403e40
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x42701c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x10]
push edi
mov edi, ecx
mov ecx, 0x10
lea ebx, [ecx - 0xf]
test bl, al
je 0x403e6f
mov ecx, 0x210
test al, 4
je 0x403e7e
or ecx, 0x100
mov ebx, 0x21
push ecx
mov ecx, dword [esi + 0x18]
push 4
lea eax, [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_DrawFrameControl]
mov edx, dword [esi + 0x18]
push edx
call dword [sym.imp.GDI32.dll_GetTextColor]
test byte [esi + 0x10], 4
mov dword [ebp - 0x208], eax
je 0x403eac
mov eax, 0x828282
jmp 0x403ebc
movzx eax, byte [edi + 0x28]
neg eax
sbb eax, eax
and eax, 0xfefff8
add eax, 8
push eax
mov eax, dword [esi + 0x18]
push eax
call dword [sym.imp.GDI32.dll_SetTextColor]
mov edx, dword [edi + 4]
push 0x100
lea ecx, [ebp - 0x204]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x204]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403ee6
sub eax, edx
lea ecx, [ebp - 0x210]
push ecx
sar eax, 1
push eax
mov eax, dword [esi + 0x18]
lea edx, [ebp - 0x204]
push edx
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
lea eax, [ebp - 0x204]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403f17
sub eax, edx
sar eax, 1
mov ecx, dword [esi + 0x24]
mov edi, eax
mov eax, dword [esi + 0x28]
push ebx
push eax
cdq
sub eax, edx
mov ebx, eax
mov eax, dword [ebp - 0x20c]
cdq
sub eax, edx
sar eax, 1
push ecx
sar ebx, 1
sub ebx, eax
mov eax, ecx
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 0x210]
cdq
sub eax, edx
push ebx
sar eax, 1
sar ecx, 1
sub ecx, eax
mov eax, dword [esi + 0x18]
push ecx
push edi
lea edx, [ebp - 0x204]
push edx
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_DrawStateW]
mov ecx, dword [ebp - 0x208]
mov edx, dword [esi + 0x18]
push ecx
push edx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040fa5b
mov esp, ebp
pop ebp
ret 4

Function at 0x404440
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x140c
call fcn.004175d0
mov eax, dword [0x42701c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ecx]
lea ecx, [ebp - 0x140c]
push ecx
lea edx, [ebp - 0x404]
push edx
lea ecx, [ebp - 0x1408]
push ecx
push 0
push eax
push esi
mov dword [ebp - 0x140c], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4044dc
mov eax, dword [ebp - 0x1408]
cmp eax, 1
je 0x4044a4
cmp eax, 2
je 0x4044a9
cmp eax, 7
je 0x4044a4
cmp eax, 3
jne 0x4044dc
cmp eax, 2
jne 0x4044cb
push 0x1000
lea edx, [ebp - 0x1404]
push edx
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
lea ecx, [ebp - 0x1404]
push ecx
jmp 0x4044d2
lea edx, [ebp - 0x404]
push edx
push ebx
push edi
call fcn.0040fe56
add esp, 0xc
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040fa5b
mov esp, ebp
pop ebp
ret
Function at 0x404500
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1414
call fcn.004175d0
mov eax, dword [0x42701c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
xor ecx, ecx
push edi
mov dword [ebp - 0x1410], eax
mov word [esi], cx
xor edi, edi
nop
mov edx, dword [ebp - 0x1410]
mov eax, dword [edx + edi*4]
lea edx, [ebp - 0x1408]
push edx
push eax
xor ecx, ecx
push SysReAllocString
mov word [esi], cx
call ebx
test eax, eax
jne 0x4045ef
lea eax, [ebp - 0x140c]
push eax
mov eax, dword [ebp - 0x1408]
lea ecx, [ebp - 0x404]
push ecx
lea edx, [ebp - 0x1414]
push edx
push 0
push str.pinstall
push eax
mov dword [ebp - 0x140c], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4045e2
mov eax, dword [ebp - 0x1414]
cmp eax, 1
je 0x4045a6
cmp eax, 2
je 0x4045ab
cmp eax, 7
je 0x4045a6
cmp eax, 3
jne 0x4045e2
cmp eax, 2
jne 0x4045cd
push 0x1000
lea ecx, [ebp - 0x1404]
push ecx
lea edx, [ebp - 0x404]
push edx
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x1404]
push eax
jmp 0x4045d4
lea ecx, [ebp - 0x404]
push ecx
push 0x100
push esi
call fcn.0040fe56
add esp, 0xc
mov edx, dword [ebp - 0x1408]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [esi], 0
jne 0x4045ff
inc edi
cmp edi, 2
jl 0x404530
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0040fa5b
mov esp, ebp
pop ebp
ret

Function at 0x404610
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x404671
mov eax, esi
lea edx, [eax + 2]
jmp 0x404640
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404640
mov ecx, dword [ebp + 8]
sub eax, edx
mov edx, dword [ebp - 4]
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push esi
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x404680
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x830
mov eax, dword [0x42701c]
xor eax, esp
mov dword [esp + 0x82c], eax
mov eax, dword [ebp + 8]
push esi
push edi
lea edx, [esp + 0x30]
push edx
xor ecx, ecx
push 0x400
mov dword [esp + 0x14], eax
mov word [ebx], cx
call dword [sym.imp.KERNEL32.DLL_GetLogicalDriveStringsW]
cmp word [esp + 0x32], 0
lea esi, [esp + 0x30]
mov dword [esp + 8], 0
je 0x40475e
push esi
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
cmp eax, 3
jne 0x404740
mov ax, word [esi]
mov word [esp + 0x28], ax
xor eax, eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
mov word [esp + 0x32], ax
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x3a], 0x5c003a
call dword [sym.imp.KERNEL32.DLL_GetDiskFreeSpaceExW]
test eax, eax
je 0x404740
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
shrd edi, edx, 0x14
shr edx, 0x14
cmp edi, dword [esp + 8]
jbe 0x404740
push esi
push 8
push ebx
mov dword [esp + 0x14], edi
call fcn.0040fe56
mov eax, dword [esp + 0x18]
add esp, 0xc
mov dword [eax], edi
lea esp, [esp]
add esi, 2
cmp word [esi], 0
jne 0x404740
cmp word [esi + 2], 0
je 0x40475e
add esi, 2
cmp word [esi + 2], 0
jne 0x4046d0
mov ecx, dword [esp + 0x834]
pop edi
pop esi
xor ecx, esp
call fcn.0040fa5b
mov esp, ebp
pop ebp
ret

Function at 0x404780
Capabilities:
Create process on windows

Disassembly:
cmp word [edi], 0
je 0x4047e4
test ebx, ebx
je 0x4047c8
push esi
push 0x800
call fcn.0040fafb
push str.__readInitFile
push edi
push str.Execute_process_NO_WAIT__cmd:___s___param:___s_
mov esi, eax
push 0x400
push esi
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x18
push esi
push 0x4208f8
mov ecx, ebx
call fcn.004038b0
push esi
call fcn.0040fa9f
add esp, 4
pop esi
push 1
push 0
push str.__readInitFile
push edi
push str.open
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
ret