Function at 0x405ab0
Capabilities:
Encode data using xor
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x18c
mov eax, dword [0x46488c]
xor eax, esp
mov dword [esp + 0x188], eax
push ebx
xor eax, eax
push esi
push edi
push 0xff
push eax
mov dword [esp + 0x41], eax
mov dword [esp + 0x45], eax
mov dword [esp + 0x49], eax
mov dword [esp + 0x4d], eax
mov dword [esp + 0x51], eax
mov dword [esp + 0x55], eax
mov dword [esp + 0x59], eax
mov byte [esp + 0x9c], al
lea eax, [esp + 0x9d]
push eax
mov edi, ecx
mov byte [esp + 0x44], 0
call fcn.00431260
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
add esp, 0xc
xor eax, eax
push eax
push 0x80
push 3
push eax
push 1
push SysReAllocString
push str.password.ini
mov dword [esp + 0x34], 0xa0
mov byte [esp + 0x74], 0
mov dword [esp + 0x75], eax
mov dword [esp + 0x79], eax
mov dword [esp + 0x7d], eax
mov dword [esp + 0x81], eax
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x405b6b
push 0
lea ecx, [esp + 0x18]
push ecx
push 0x10
lea edx, [esp + 0x64]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push edi
call ebx
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0xc], esi
jne 0x405ba5
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x188]
xor ecx, esp
call fcn.00431081
add esp, 0x18c
ret
xor ebx, ebx
mov dword [esp + 0x1c], ebx
lea eax, [esp + 0x24]
push ebp
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x14], eax
jmp 0x405bc4
mov esi, dword [esp + 0x10]
push 0
push 0
mov ecx, ebx
shl ecx, 5
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea edx, [esp + 0x1c]
push edx
push 0x1c
lea eax, [esp + 0x48]
push eax
push esi
call edi
test eax, eax
je 0x405dbf
mov edx, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x1c]
push ecx
push 4
push edx
push esi
call edi
test eax, eax
je 0x405dca
test ebx, ebx
jbe 0x405c1a
mov eax, dword [esp + 0x14]
mov eax, dword [eax - 4]
jmp 0x405c1c
xor eax, eax
add dword [esp + 0x1c], eax
mov edi, str.nllfile
lea esi, [esp + 0x3c]
mov ecx, 8
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x405d81
mov eax, dword [esp + 0x1a4]
lea edx, [esp + 0x98]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x405c48
lea edi, [esp + 0x98]
add edi, 0xffffffff
mov edi, edi
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x405c60
mov ax, word [0x44ea70]
mov word [edi], ax
lea eax, [esp + 0x3c]
mov esi, eax
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x405c80
lea edi, [esp + 0x98]
sub eax, esi
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x405c95
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0
push 0x80
push 2
push 0
mov ecx, eax
and ecx, 3
push 2
rep movsb byte es:[edi], byte [esi]
push 0x40000000
lea ecx, [esp + 0xb0]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
mov eax, dword [esp + 0x10]
je 0x405dda
mov edx, dword [esp + 0x1c]
push 0
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor ebx, ebx
mov edi, edi
mov edi, dword [esp + 0x10]
push 0
lea ecx, [esp + 0x1c]
push ecx
push 0x10
lea edx, [esp + 0x7c]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405de5
mov esi, dword [esp + 0x18]
xor eax, eax
test esi, esi
jbe 0x405d47
mov edi, dword [esp + 0x1a0]
lea ecx, [esp + 0x70]
sub edi, ecx
jmp 0x405d30
lea ecx, [esp + eax + 0x70]
mov dl, byte [edi + ecx]
xor dl, byte [ecx]
add eax, 1
cmp eax, esi
mov byte [esp + eax + 0x83], dl
jb 0x405d30
push 0
lea eax, [esp + 0x28]
push eax
push esi
lea ecx, [esp + 0x90]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x405df5
add ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
cmp ebx, dword [edx]
jb 0x405cf0
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [esp + 0x20]
add dword [esp + 0x14], 4
add ebx, 1
cmp ebx, 5
mov dword [esp + 0x20], ebx
jl 0x405bc0
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [esp + 0x198]
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00431081
add esp, 0x18c
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x405da6
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call edi
push esi
call edi
xor eax, eax
jmp 0x405da6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x405da6
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
xor eax, eax
jmp 0x405da6
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
mov ecx, dword [esp + 0x10]
push ecx
call esi
xor eax, eax
jmp 0x405da6