Function at 0x4067d0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc8
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x90], ecx
mov dword [ebp - 0x74], 0x4f3670
mov dword [ebp - 0x70], 0x4f4a56
mov dword [ebp - 0x68], 0x406b63
mov dword [ebp - 0x94], edx
lea edx, [ebp - 8]
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x64], esp
mov dword [ebp - 0x6c], edx
lea edx, [ebp - 0x8c]
mov dword [esp], edx
call fcn.00458010
mov eax, dword [ebp - 0x90]
movq xmm0, qword [ebp - 0x98]
mov dword [eax], 0x508e68
mov dword [eax + 4], 0
movq qword [eax + 0x10], xmm0
mov dword [eax + 8], 0xffffffff
mov dword [eax + 0x18], 0
mov eax, dword [ebp + 8]
cmp byte [eax], 0
jne 0x406865
lea eax, [ebp - 0x8c]
mov dword [esp], eax
call fcn.004580a0
leave
ret 0x14
xor eax, eax
mov dword [ebp + eax - 0x48], 0
add eax, 4
cmp eax, 0x20
jb 0x406867
mov dword [esp + 4], 2
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov dword [ebp - 0x88], 1
call fcn.00404500
mov ecx, dword [ebp - 0x90]
cmp eax, 0xffffffff
mov dword [ecx + 8], eax
je 0x406a50
mov edx, dword [ecx + 0x10]
mov ecx, dword [ecx + 0x14]
mov dword [ebp - 0x9c], ecx
or ecx, edx
mov dword [ebp - 0x98], edx
jne 0x406ba5
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x4069e3
lea ecx, [ebp - 0x48]
lea edx, [ebp - 0x50]
mov dword [ebp - 0x50], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0x20
mov dword [esp + 0xc], edx
mov dword [ebp - 0x98], ecx
mov dword [esp + 4], ecx
mov dword [esp], eax
mov dword [ebp - 0x88], 1
call dword [sym.imp.KERNEL32.dll_ReadFile]
sub esp, 0x14
cmp dword [ebp - 0x50], 0x20
jne 0x406b83
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x406942
mov dword [esp + 8], 0x20
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x98]
mov dword [esp], eax
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x406b8f
mov eax, dword [ebp - 0x90]
cmp dword [eax + 8], 0xffffffff
jne 0x4069e3
lea eax, [ebp - 0x28]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x98]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x9c]
mov dword [esp], eax
mov dword [ebp - 0x88], 1
call fcn.0042c9b0
mov dword [esp], 0x14fc
mov dword [ebp - 0x88], 1
call fcn.004f2930
mov ecx, dword [ebp - 0x98]
mov dword [esp + 4], 0x20
mov dword [esp + 8], ecx
mov edx, dword [ebp - 0x9c]
mov ecx, eax
mov dword [esp], edx
mov dword [ebp - 0x88], 2
mov dword [ebp - 0xa0], eax
call fcn.0042ac30
mov ecx, dword [ebp - 0x90]
mov eax, dword [ebp - 0xa0]
sub esp, 0xc
mov dword [ecx + 4], eax
jmp 0x406853
mov ecx, dword [ebp - 0x90]
mov dword [ebp - 0x88], 1
call fcn.004656b0
mov eax, dword [ebp - 0x90]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], 0
mov eax, dword [eax + 8]
mov dword [esp + 0xc], 2
mov dword [ebp - 0x9c], ecx
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [ebp - 0x48]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x40695b
jmp 0x406853
mov dword [esp + 4], 1
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov dword [ebp - 0x88], 1
call fcn.00404500
mov edx, dword [ebp - 0x90]
cmp eax, 0xffffffff
mov dword [edx + 8], eax
je 0x406bc7
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x406853
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x406bb1
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x10]
mov edx, dword [edx]
mov dword [ebp - 0x48], edx
mov edx, dword [ecx + 4]
mov dword [ebp - 0x44], edx
mov edx, dword [ecx + 8]
mov dword [ebp - 0x40], edx
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x3c], edx
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0x38], edx
mov edx, dword [ecx + 0x14]
mov dword [ebp - 0x34], edx
mov edx, dword [ecx + 0x18]
mov dword [ebp - 0x30], edx
mov edx, dword [ecx + 0x1c]
mov dword [ebp - 0x2c], edx
mov edx, dword [ebp - 0x90]
mov ecx, dword [edx + 0x10]
mov edx, dword [edx + 0x14]
mov dword [ebp - 0xa8], edx
lea edx, [ebp - 0x48]
mov dword [ebp - 0xa4], ecx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x98], edx
mov edx, dword [ebp - 0xa8]
or edx, dword [ebp - 0xa4]
mov dword [ebp - 0x9c], ecx
jne 0x40695b
lea edx, [ebp - 0x4c]
mov dword [ebp - 0x4c], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0x20
mov dword [esp + 0xc], edx
mov edx, dword [ebp - 0x98]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [ebp - 0x88], 1
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub esp, 0x14
cmp dword [ebp - 0x4c], 0x20
je 0x406952
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov dword [ebp - 0x88], 1
call fcn.00404f20
add ebp, 8
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x88]
test eax, eax
je 0x406be8
sub eax, 1
je 0x406bd2
ud2
mov dword [esp], str.cannot_read_salt
call fcn.00402a80
mov dword [esp], str.salt_mismatch
mov dword [ebp - 0x88], 1
call fcn.00402a80
mov dword [esp], str.file_exists_and_off___0
call fcn.00402a80
mov dword [esp], str.salt_not_specified
mov dword [ebp - 0x88], 1
call fcn.00402a80
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00404f20
mov dword [esp + 4], 0x14fc
mov eax, dword [ebp - 0xa0]
mov dword [esp], eax
call fcn.004f2900
mov ecx, dword [ebp - 0x90]
add ecx, 4
call fcn.00464aa0
mov eax, dword [ebp - 0x98]
mov dword [esp], eax
mov dword [ebp - 0x88], 0xffffffff
call fcn.004583a0
nop
sub esp, 0x1c
mov dword [esp], str.NUMBER_OF_PROCESSORS
call sub.msvcrt.dll_getenv
test eax, eax
mov edx, 1
je 0x406c45
mov dword [esp], eax
call sub.msvcrt.dll_atoi
mov edx, 2
cmp eax, 2
cmovle edx, eax
mov eax, 1
test edx, edx
cmovle edx, eax
mov eax, edx
add esp, 0x1c
ret