joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402300
Capabilities:
Delete file
Get common file path
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x40e0fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x730
lea eax, [esp + 0x22c]
push esi
push eax
mov esi, ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 4]
lea edx, [esp + 0x230]
push ecx
push 0
push 0x41111c
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov ecx, dword [esi + 0x68]
lea eax, [esp + 0x334]
push 0x400
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x334]
lea ecx, [esp + 0x108]
push edx
call fcn.00405750
mov ecx, dword [str.Setup.INI]
lea eax, [esp + 4]
push eax
push ecx
lea ecx, [esp + 0x110]
mov dword [esp + 0x744], 0
call fcn.00405b10
lea edx, [esp + 4]
add esi, 4
push edx
push 0x104
push esi
push 0x413da0
push str.PASSWORD
push 0x41110c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x108]
mov dword [esp + 0x73c], 0xffffffff
call fcn.004058c0
mov ecx, dword [esp + 0x734]
pop esi
mov dword fs:[0], ecx
add esp, 0x73c
ret

Function at 0x4024e0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x413e1c]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4024ff
mov ecx, dword [0x413e1c]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
ret
Function at 0x402820
Capabilities:
Inspect load icon resource

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push eax
call fcn.00403430
add esp, 4
test eax, eax
jne 0x4029a1
push 0x414330
call fcn.004034d0
add esp, 4
test eax, eax
jne 0x4029a1
mov ecx, dword [esp + 0x28]
mov edx, dword [0x414330]
push 0x41473c
mov dword [ecx], edx
call fcn.00403480
add esp, 4
test eax, eax
jne 0x4029a1
mov ebx, dword [esp + 0x24]
mov eax, dword [0x41473c]
mov dword [ebx], eax
mov eax, dword [0x414330]
cmp eax, 1
jne 0x402889
pop edi
pop esi
xor eax, eax
pop ebx
ret
lea ecx, [esp + 0x10]
push ecx
push 0x414750
call fcn.00402800
test eax, eax
jne 0x4029a1
mov edx, dword [0x414330]
lea eax, [edx*4]
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
mov dword [0x414334], eax
jne 0x4028cf
pop edi
pop esi
mov eax, 0xfffffffc
pop ebx
ret
push 0x414330
call fcn.00403500
mov esi, eax
add esp, 4
test esi, esi
je 0x40290e
mov ecx, dword [0x414334]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push ecx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [0x414334]
push edx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop edi
pop esi
pop ebx
ret
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
and eax, 0xffff
mov dword [0x414748], ebx
push eax
push esi
call dword [sym.imp.USER32.dll_LoadIconA]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
push 0
push 0x402bd0
and edx, 0xffff
push ecx
push edx
push esi
mov dword [0x41474c], eax
call dword [sym.imp.USER32.dll_DialogBoxParamA]
mov esi, eax
mov eax, dword [0x41474c]
test eax, eax
je 0x40295e
push eax
call dword [sym.imp.USER32.dll_DestroyIcon]
cmp esi, 1
jne 0x402967
xor esi, esi
jmp 0x40296f
cmp esi, 2
jne 0x40296f
or esi, 0xffffffff
mov eax, dword [0x414334]
test eax, eax
je 0x402997
mov edi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [0x414334]
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebx]
mov eax, esi
mov dword [0x41473c], ecx
pop edi
pop esi
pop ebx
ret
Function at 0x402f20
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0xcc
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push ebp
push esi
mov esi, dword [esp + 0xdc]
push edi
push 0x3ee
push esi
call ebx
mov edi, eax
test edi, edi
je 0x4030bf
mov ebp, dword [sym.imp.USER32.dll_GetWindowTextLengthA]
push edi
call ebp
mov dword [esp + 0x10], eax
lea eax, [esp + 0x5c]
push 0x7f
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0x3ef
push esi
call ebx
mov esi, eax
test esi, esi
mov dword [esp + 0x18], esi
je 0x4030bf
push esi
call ebp
cmp dword [esp + 0x10], eax
jge 0x402f91
lea ecx, [esp + 0x5c]
push 0x7f
push ecx
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
push edi
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
test esi, esi
je 0x4030bf
lea edx, [esp + 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [esp + 0x60]
push eax
push esi
call fcn.00403660
push 1
push 0x411134
push esi
mov ebx, eax
call fcn.00403660
mov ebp, eax
push esi
push edi
and ebp, 0xffff
call dword [sym.imp.USER32.dll_ReleaseDC]
mov esi, ebx
mov dword [esp + 0x10], 0
and esi, 0xffff
add esi, ebp
shr ebx, 0x10
test esi, esi
mov dword [esp + 0x1c], ebx
je 0x4030bf
test ebx, ebx
je 0x4030bf
lea ecx, [esp + 0x20]
push ecx
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
sub ebx, eax
sub ecx, edx
cmp ebx, esi
mov dword [esp + 0x14], ecx
jge 0x40303d
mov eax, esi
sub eax, ebx
lea ebx, [esi + ebp]
add eax, ebp
mov dword [esp + 0x10], eax
mov eax, 1
jmp 0x403041
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
cmp ecx, edx
jge 0x403052
add edx, 4
mov dword [esp + 0x14], edx
jmp 0x403056
test eax, eax
je 0x4030bf
mov ebp, dword [esp + 0x18]
mov esi, dword [sym.imp.USER32.dll_GetWindowPlacement]
lea edx, [esp + 0x30]
mov dword [esp + 0x30], 0x2c
push edx
push ebp
call esi
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
push 1
push eax
push ebx
push ecx
mov ecx, dword [esp + 0x20]
sub edx, ecx
push edx
push ebp
mov ebp, dword [sym.imp.USER32.dll_MoveWindow]
call ebp
lea eax, [esp + 0x30]
mov dword [esp + 0x30], 0x2c
push eax
push edi
call esi
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x10]
push 1
push ecx
push ebx
push edx
mov edx, dword [esp + 0x5c]
lea ecx, [eax + eax]
sub edx, ecx
push edx
push edi
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xcc
ret

Function at 0x403480
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x14
lea eax, [esp]
push 0x414228
push 0x13
push eax
push 0x413da0
push str.Default
push str.Languages
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x4034b1
mov eax, 0xfffffffa
add esp, 0x14
ret
mov ecx, dword [esp + 0x18]
lea edx, [esp]
push ecx
push 0x41114c
push edx
call fcn.00407a82
add esp, 0xc
xor eax, eax
add esp, 0x14
ret
Function at 0x4034d0
Capabilities:
Read .ini file

Disassembly:
push 0x414228
push 0
push str.Count
push str.Languages
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [esp + 4]
mov dword [ecx], eax
neg eax
sbb eax, eax
and eax, 6
add eax, 0xfffffffa
ret

Function at 0x403500
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x98
xor eax, eax
push ebx
push ebp
mov ebp, dword [esp + 0xa4]
push esi
xor esi, esi
push edi
cmp dword [ebp], 0
jbe 0x403598
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push esi
push 0x41116c
lea eax, [esp + 0x30]
push str._s_d
push eax
call edi
add esp, 0x10
lea ecx, [esp + 0x14]
lea edx, [esp + 0x28]
push 0x414228
push 0x13
push ecx
push 0x413da0
push edx
push str.Languages
call ebx
test eax, eax
je 0x403593
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push 0x41114c
push ecx
call fcn.00407a82
mov edx, dword [ebp + 4]
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [edx + esi*4], eax
mov eax, dword [ebp]
inc esi
cmp esi, eax
jb 0x403527
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x98
ret
mov eax, 0xfffffffa
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret
Function at 0x404200
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x40e146
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x218
push ebx
push ebp
xor ebx, ebx
push esi
push edi
mov ebp, ecx
mov dword [esp + 0x14], ebx
push 0xf003f
push str.SOFTWAREMicrosoftWindowsCurrentVersionInstallerRunOnceEntries
push 0x80000002
lea ecx, [esp + 0x20]
mov dword [esp + 0x23c], ebx
call fcn.00404710
test eax, eax
jne 0x40433c
mov ecx, 0x81
lea edi, [esp + 0x21]
mov byte [esp + 0x20], bl
push ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
lea eax, [esp + 0x20]
push ebx
push eax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x24]
push ebx
lea edx, [esp + 0x30]
push ecx
push edx
push ebx
push eax
mov dword [esp + 0x38], 0x208
mov esi, 1
call edi
test eax, eax
jne 0x40433c
mov dword [esp + 0x10], ebx
push 0xf003f
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
lea ecx, [esp + 0x1c]
mov byte [esp + 0x23c], 1
call fcn.00404710
test eax, eax
jne 0x4042d6
lea ecx, [esp + 0x20]
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, ebp
call fcn.004043a0
test eax, eax
jne 0x40436d
push 0xf003f
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnceEx
push 0x80000002
lea ecx, [esp + 0x1c]
call fcn.00404710
test eax, eax
jne 0x404307
lea eax, [esp + 0x20]
lea ecx, [esp + 0x10]
push eax
push ecx
mov ecx, ebp
call fcn.004043a0
test eax, eax
jne 0x40436d
lea ecx, [esp + 0x10]
mov byte [esp + 0x230], bl
call fcn.004046f0
push ebx
lea edx, [esp + 0x20]
push ebx
push edx
lea ecx, [esp + 0x24]
push ebx
lea edx, [esp + 0x30]
mov eax, esi
push ecx
push edx
push eax
mov eax, dword [esp + 0x30]
push eax
inc esi
call edi
test eax, eax
je 0x404295
lea ecx, [esp + 0x14]
mov dword [esp + 0x230], 0xffffffff
call fcn.004046f0
xor eax, eax
mov ecx, dword [esp + 0x228]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x224
ret 4
lea ecx, [esp + 0x10]
mov byte [esp + 0x230], bl
call fcn.004046f0
lea ecx, [esp + 0x14]
mov dword [esp + 0x230], 0xffffffff
call fcn.004046f0
mov eax, 1
jmp 0x404352
Function at 0x4045c0
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x4c0
push esi
mov esi, ecx
mov dword [esp + 0x4c0], 0
call fcn.004010a0
lea eax, [esp + 0x28]
mov dword [esp + 0xbc], 1
push eax
mov dword [esp + 0x2c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x38]
sub eax, 0
je 0x4046be
dec eax
je 0x404691
dec eax
jne 0x4046c9
lea ecx, [esp + 4]
mov dword [esp + 0xbc], 2
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 4]
and eax, 0xffff
dec eax
je 0x404654
dec eax
je 0x404647
dec eax
jne 0x40465f
mov dword [esp + 0xbc], 5
jmp 0x40465f
mov dword [esp + 0xbc], 3
jmp 0x40465f
mov dword [esp + 0xbc], 4
mov eax, dword [esp + 0x2c]
cmp eax, 4
jb 0x404673
mov dword [esp + 0x4c0], 1
mov edx, dword [esp + 0x30]
push edx
push eax
lea eax, [esp + 0xc8]
push str._u._u
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x4046c9
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push ecx
push edx
lea eax, [esp + 0xc8]
push str._u._u
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov dword [esp + 0x4c0], 1
jmp 0x4046c9
mov dword [esp + 0xbc], 7
lea ecx, [esp + 0xbc]
push ecx
mov ecx, esi
call fcn.00401060
mov ecx, eax
call fcn.00404950
mov eax, 1
pop esi
add esp, 0x4c0
ret

Function at 0x404780
Capabilities:
Set registry value

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esi]
inc eax
push eax
mov eax, dword [esp + 0x14]
push edi
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
ret 8

Function at 0x405450
Capabilities:
Hash data with crc32

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x6c]
test eax, eax
jne 0x405495
push 0x400
call fcn.004075d4
add esp, 4
mov dword [esi + 0x6c], eax
xor ecx, ecx
mov eax, ecx
mov edx, 8
test al, 1
je 0x405480
shr eax, 1
xor eax, 0xedb88320
jmp 0x405482
shr eax, 1
dec edx
jne 0x405473
mov edx, dword [esi + 0x6c]
inc ecx
cmp ecx, 0xff
mov dword [edx + ecx*4 - 4], eax
jle 0x40546c
pop esi
ret

Function at 0x4054c0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov edx, eax
dec eax
test edx, edx
je 0x4054fc
mov edx, dword [esp + 4]
push ebx
push esi
push edi
mov edi, dword [ecx + 0x6c]
lea esi, [eax + 1]
mov eax, dword [esp + 0x18]
mov ecx, eax
xor ebx, ebx
mov bl, byte [edx]
and ecx, 0xff
xor ecx, ebx
inc edx
shr eax, 8
mov ecx, dword [edi + ecx*4]
xor eax, ecx
dec esi
jne 0x4054dc
pop edi
pop esi
pop ebx
ret 0xc
mov eax, dword [esp + 0xc]
ret 0xc
Function at 0x405750
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x40e20e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0xc], esi
mov dword [esi + 0x108], ebx
mov dword [esi + 0x10c], ebx
mov dword [esi + 0x114], ebx
mov dword [esi + 0x11c], ebx
mov dword [esi + 0x120], ebx
mov dword [esi + 0x124], ebx
mov edi, dword [esp + 0x20]
lea eax, [esi + 4]
push edi
push eax
mov dword [esp + 0x20], ebx
mov dword [esi], 0x40f348
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, esi
call fcn.00405d70
push ebx
push 0x80
push 3
push ebx
push 3
push 0x80000000
push edi
mov dword [esi + 0x110], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x108], eax
jne 0x4057ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x114], eax
jmp 0x40587d
push 0x2e
mov dword [esi + 0x10c], 1
call fcn.004075d4
mov edi, eax
mov ecx, 0xb
xor eax, eax
mov dword [esi + 0x118], edi
rep stosd dword es:[edi], eax
add esp, 4
stosw word es:[edi], ax
mov ecx, dword [esi + 0x110]
mov edx, dword [esi + 0x108]
push ebx
push ebx
push ecx
push edx
mov ecx, esi
call fcn.00405e80
test eax, eax
je 0x40587d
mov ecx, dword [esi + 0x118]
mov edx, dword [esi + 0x108]
lea eax, [esp + 0x20]
push ebx
push eax
push 0x2e
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40587d
cmp dword [esp + 0x20], ebx
je 0x40587d
mov ecx, esi
call fcn.00405a20
test eax, eax
je 0x40587d
mov eax, dword [esi + 0x118]
mov ax, word [eax + 0xe]
cmp ax, bx
je 0x40587d
and eax, 0xffff
mov ecx, esi
push eax
call fcn.00405cd0
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x405b90
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x10c]
test eax, eax
je 0x405bd9
mov ebp, dword [esp + 0x14]
test ebp, ebp
je 0x405bd9
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 3
push 0
push 3
lea eax, [esi + 4]
push 0x80000000
push eax
call edi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x405be2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x114], eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0xc
mov ecx, dword [esp + 0x18]
push 0
push 0
push ecx
push ebx
mov ecx, esi
call fcn.00405e80
test eax, eax
je 0x405bd9
mov edx, dword [esp + 0x1c]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push edx
call edi
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
jne 0x405c35
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov dword [esi + 0x114], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0xc
mov edi, dword [ebp + 0x10c]
mov ebp, 0x400
cmp edi, ebp
jae 0x405c46
mov ebp, edi
push ebp
call fcn.004075d4
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
push ebp
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405ca7
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push 0
push ecx
push edx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x14]
sub edi, eax
je 0x405ca7
test eax, eax
je 0x405ca7
cmp edi, 0x400
jae 0x405c93
mov ebp, edi
lea ecx, [esp + 0x14]
push 0
push ecx
push ebp
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x405c65
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call edi
mov edx, dword [esp + 0x18]
push edx
call edi
push esi
call fcn.004075c9
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
ret 0xc

Function at 0x405cd0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
push ebx
push ebp
push esi
test eax, eax
push edi
mov ebx, ecx
mov dword [esp + 0x10], 0
jle 0x405d64
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0x138
call fcn.004075d4
mov esi, eax
add esp, 4
mov ecx, 0x4e
xor eax, eax
mov edi, esi
push eax
rep stosd dword es:[edi], eax
mov ecx, dword [ebx + 0x108]
lea eax, [esp + 0x18]
push eax
push 0x138
push esi
push ecx
call ebp
test eax, eax
je 0x405d64
mov eax, dword [esp + 0x14]
test eax, eax
je 0x405d64
push esi
lea ecx, [ebx + 0x11c]
call fcn.00405f30
mov edx, dword [esi + 0x10c]
mov eax, dword [ebx + 0x108]
push 1
push 0
push edx
push eax
mov ecx, ebx
call fcn.00405e80
test eax, eax
je 0x405d64
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x405cef
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
Function at 0x405d70
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x130
push ebx
push ebp
push esi
xor ebp, ebp
push edi
push ebp
mov edi, ecx
push 0x80
push 3
push ebp
push 3
lea eax, [edi + 4]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x405db8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x114], eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x130
ret
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x44]
push 0x40
push edx
push esi
call ebx
mov eax, dword [esp + 0x78]
push 0
push 0
push eax
push esi
mov ecx, edi
call fcn.00405e80
test eax, eax
jne 0x405def
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x130
ret
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x84]
push 0x18
push edx
push esi
call ebx
mov eax, dword [esp + 0x90]
push 1
and eax, 0xffff
push 0
push eax
push esi
mov ecx, edi
call fcn.00405e80
test eax, eax
jne 0x405e2b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x130
ret
xor edi, edi
cmp word [esp + 0x82], di
jbe 0x405e62
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x1c]
push 0x28
push edx
push esi
call ebx
test di, di
jne 0x405e51
mov ebp, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
add ebp, edx
inc edi
cmp di, word [esp + 0x82]
jb 0x405e37
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x130
ret

Function at 0x4061e0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [0x41473c]
sub esp, 0x14
lea ecx, [esp]
push esi
push eax
push str._04x
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov esi, dword [sym.imp.USER32.dll_CharNextA]
add esp, 0xc
lea edx, [esp + 4]
push edx
call esi
push eax
call esi
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push 0x41433c
push 0x12c
push eax
push 0x413da0
lea edx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
pop esi
add esp, 0x14
ret
Function at 0x4064b0
Capabilities:
Get disk size

Disassembly:
sub esp, 0x828
push ebx
mov ebx, dword [esp + 0x834]
push esi
push edi
xor edi, edi
push str.KERNEL32
mov dword [ebx], edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x4065e4
push ebp
push str.GetDiskFreeSpaceExA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, eax
xor eax, eax
cmp ebp, eax
je 0x406565
mov eax, dword [esp + 0x83c]
lea ecx, [esp + 0x438]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x438]
push edx
call fcn.004068b0
test eax, eax
je 0x406522
lea eax, [esp + 0x438]
push eax
call fcn.004067b0
lea ecx, [esp + 0x20]
lea edx, [esp + 0x30]
push ecx
lea eax, [esp + 0x2c]
push edx
lea ecx, [esp + 0x440]
push eax
push ecx
call ebp
test eax, eax
je 0x4065d0
mov edx, dword [esp + 0x20]
push esi
shr edx, 0xa
mov dword [ebx], edx
mov edi, 1
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x828
ret
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x83c]
mov byte [esp + 0x3b], 0
mov cl, byte [eax]
mov dl, byte [eax + 1]
mov al, byte [eax + 2]
mov byte [esp + 0x38], cl
mov byte [esp + 0x39], dl
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3a], al
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x44]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x4065d0
mov eax, dword [esp + 0x18]
mov edi, 1
imul eax, dword [esp + 0x10]
imul eax, dword [esp + 0x14]
shr eax, 0xa
mov dword [ebx], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x828
ret
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x828
ret

Function at 0x4066c0
Capabilities:
Get disk information

Disassembly:
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
push esi
mov esi, dword [esp + 0x18]
xor ebx, ebx
mov cl, 0x3a
mov al, 0x5c
push edi
mov edi, dword [esp + 0x14]
mov byte [esi], bl
mov byte [esi + 1], cl
mov byte [esi + 2], al
mov byte [esi + 3], bl
mov byte [esp + 0x1d], cl
mov byte [esp + 0x1e], al
mov byte [esp + 0x1f], bl
mov al, bl
lea ecx, [esp + 0x1c]
add al, 0x41
push ecx
mov byte [esp + 0x20], al
call ebp
cmp eax, edi
jne 0x406727
mov eax, dword [esp + 0x18]
mov dl, byte [esp + 0x1c]
push eax
push esi
mov byte [esi], dl
call fcn.00406460
add esp, 8
test eax, eax
je 0x406727
push esi
call fcn.00406650
add esp, 4
test eax, eax
jne 0x406735
inc ebx
cmp ebx, 0x1a
jl 0x4066ef
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret