joyce8/EMBER2024-capa huggingface dataset:
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 0x414240
push 0x13
push eax
push 0x413db8
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.00407c32
add esp, 0xc
xor eax, eax
add esp, 0x14
ret
Function at 0x4034d0
Capabilities:
Read .ini file

Disassembly:
push 0x414240
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 0x414240
push 0x13
push ecx
push 0x413db8
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.00407c32
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 0x40e476
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.00407784
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 0x40e53e
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], 0x40f350
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.00407784
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.00406030
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.00406030
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.00407784
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.00407779
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.00407784
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.004060e0
mov edx, dword [esi + 0x10c]
mov eax, dword [ebx + 0x108]
push 1
push 0
push edx
push eax
mov ecx, ebx
call fcn.00406030
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, 0x134
push ebx
push ebp
push esi
push edi
xor edi, edi
mov ebp, ecx
push edi
push 0x80
push 3
push edi
push 3
lea eax, [ebp + 4]
push 0x80000000
push eax
mov dword [esp + 0x2c], edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x405dbc
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
mov dword [ebp + 0x114], eax
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x134
ret
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [esp + 0x14]
push edi
push ecx
lea edx, [esp + 0x48]
push 0x40
push edx
push esi
call ebx
mov eax, dword [esp + 0x7c]
push edi
push edi
push eax
push esi
mov ecx, ebp
call fcn.00406030
test eax, eax
jne 0x405df0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x134
ret
lea ecx, [esp + 0x14]
push edi
push ecx
lea edx, [esp + 0x88]
push 0x18
push edx
push esi
call ebx
mov eax, dword [esp + 0x94]
push 1
and eax, 0xffff
push edi
push eax
push esi
mov ecx, ebp
call fcn.00406030
test eax, eax
jne 0x405e2a
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x134
ret
cmp word [esp + 0x86], 0
jbe 0x405e68
lea ecx, [esp + 0x14]
push 0
push ecx
lea edx, [esp + 0x20]
push 0x28
push edx
push esi
call ebx
mov eax, dword [esp + 0x2c]
test di, di
je 0x405e53
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x28]
add eax, edx
inc edi
cmp di, word [esp + 0x86]
mov dword [esp + 0x10], eax
jb 0x405e35
push esi
mov ecx, ebp
call fcn.00405e90
mov edi, dword [esp + 0x10]
push esi
add edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x134
ret
Function at 0x405e90
Capabilities:
Read file via mapping

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
push edi
push 0
push 0
push 0
push 2
push 0
mov ebx, ecx
push eax
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov esi, eax
test esi, esi
mov dword [esp + 0x18], esi
jne 0x405ec6
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
push 0
push 0
push 0
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
jne 0x405eec
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 4
mov esi, dword [edi + 0x3c]
add esi, edi
mov ebp, dword [esi + 0xa8]
test ebp, ebp
jne 0x405f17
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 4
push esi
push str..debug
mov ecx, ebx
call fcn.00405fe0
test eax, eax
je 0x405f3a
cmp dword [eax + 0xc], ebp
jne 0x405f3a
mov eax, dword [eax + 0x14]
mov ecx, dword [esi + 0xac]
add eax, edi
jmp 0x405fa9
push esi
push str..rdata
mov ecx, ebx
call fcn.00405fe0
mov ebx, eax
test ebx, ebx
jne 0x405f69
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 4
mov ecx, dword [esi + 0xac]
mov eax, 0x24924925
mul ecx
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 4
jne 0x405f9d
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 4
mov eax, dword [ebx + 0x14]
mov edx, dword [ebx + 0xc]
sub eax, edx
add eax, ebp
add eax, edi
test ecx, ecx
jbe 0x405fc2
add eax, 0x10
mov edx, dword [eax]
mov ebx, dword [esp + 0x10]
add ebx, edx
add eax, 0x1c
dec ecx
mov dword [esp + 0x10], ebx
jne 0x405fb0
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4

Function at 0x406390
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [0x414754]
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 0x414354
push 0x12c
push eax
push 0x413db8
lea edx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
pop esi
add esp, 0x14
ret
Function at 0x406660
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 0x406794
push ebp
push str.GetDiskFreeSpaceExA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, eax
xor eax, eax
cmp ebp, eax
je 0x406715
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.00406a60
test eax, eax
je 0x4066d2
lea eax, [esp + 0x438]
push eax
call fcn.00406960
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 0x406780
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 0x406780
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 0x406870
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 0x4068d7
mov eax, dword [esp + 0x18]
mov dl, byte [esp + 0x1c]
push eax
push esi
mov byte [esi], dl
call fcn.00406610
add esp, 8
test eax, eax
je 0x4068d7
push esi
call fcn.00406800
add esp, 4
test eax, eax
jne 0x4068e5
inc ebx
cmp ebx, 0x1a
jl 0x40689f
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x406a90
Capabilities:
Create directory

Disassembly:
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
push edi
mov dword [esp + 0x14], 1
call ebx
add eax, 2
push eax
call fcn.00407784
add esp, 4
mov esi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x411314
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
mov edi, esi
call ebx
mov ebx, eax
xor ebp, ebp
test ebx, ebx
jbe 0x406b0e
cmp byte [edi], 0x5c
jne 0x406afe
push 0
push esi
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x406afb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x406b06
mov byte [edi], 0x5c
inc edi
inc ebp
cmp ebp, ebx
jb 0x406ad9
jmp 0x406b0e
mov dword [esp + 0x10], 0
push esi
call fcn.00407779
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4

Function at 0x406b30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x406b4c
test al, 0x10
jne 0x406b4c
mov eax, 1
ret 4
xor eax, eax
ret 4

Function at 0x406b60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x406b7c
test al, 0x10
je 0x406b7c
mov eax, 1
ret 4
xor eax, eax
ret 4

Function at 0x406d50
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x474
xor eax, eax
push edi
mov dword [esp + 8], eax
mov ecx, 0x11
mov dword [esp + 0xc], eax
lea edi, [esp + 0x18]
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0
rep stosd dword es:[edi], eax
mov dword [esp + 0x14], eax
mov word [esp + 0x48], ax
mov eax, dword [esp + 0x480]
mov dword [esp + 0x18], 0x44
test eax, eax
mov dword [esp + 0x44], 1
je 0x406da3
mov word [esp + 0x48], 1
mov ecx, dword [esp + 0x47c]
lea edx, [esp + 0x78]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 8]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push 0
push 0x20
push 0
push 0
lea edx, [esp + 0x94]
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x406e5e
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
push esi
mov esi, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
push 0xff
push 0xffffffffffffffff
lea eax, [esp + 0x14]
push 0
push eax
push 1
call esi
test eax, eax
je 0x406e2a
cmp eax, 1
jne 0x406e2a
push 0
push 0
push 0
lea ecx, [esp + 0x6c]
push 0
push ecx
call edi
mov eax, dword [esp + 0x64]
cmp eax, 0x11
je 0x406e2a
cmp eax, 0x10
je 0x406e2a
cmp eax, 0x12
jne 0x406ded
mov eax, dword [esp + 0xc]
lea edx, [esp + 8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push edx
mov dword [0x414888], ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
mov eax, dword [esp]
add esp, 0x474
ret 8
mov eax, 0xcccccccc
pop edi
add esp, 0x474
ret 8