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

Disassembly:
mov eax, 0x183c
call fcn.0043b050
push ebx
push ebp
mov al, 6
push esi
mov esi, dword [sym.imp.MSVCRT.dll__open]
push edi
mov byte [esp + 0x26], al
mov byte [esp + 0x2d], al
mov eax, dword [esp + 0x1850]
push 0x1b6
mov bl, 5
mov dl, 7
mov cl, 2
push 0x8000
push eax
mov byte [esp + 0x2c], 1
mov byte [esp + 0x2d], 3
mov byte [esp + 0x2e], bl
mov byte [esp + 0x2f], dl
mov byte [esp + 0x30], cl
mov byte [esp + 0x31], 4
mov byte [esp + 0x33], 8
mov byte [esp + 0x34], 1
mov byte [esp + 0x35], cl
mov byte [esp + 0x36], 3
mov byte [esp + 0x37], 4
mov byte [esp + 0x38], bl
mov byte [esp + 0x3a], dl
mov byte [esp + 0x3b], 8
mov dword [esp + 0x3c], 0
call esi
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
mov dword [esp + 0x14], edi
jne 0x40725b
pop edi
pop esi
pop ebp
or eax, eax
pop ebx
add esp, 0x183c
ret
mov ecx, dword [esp + 0x1854]
push 0x1b6
push 0x8302
push ecx
call esi
add esp, 0xc
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x407293
push edi
call dword [sym.imp.MSVCRT.dll__close]
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x183c
ret
lea edx, [esp + 0x4c]
lea ebx, [esp + 0x104c]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], 0
jmp 0x4072b0
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov esi, 0x800
sub esi, ecx
push esi
push ebx
push edi
call dword [sym.imp.MSVCRT.dll__read]
mov ebp, eax
add esp, 0xc
cmp ebp, 0xffffffff
jne 0x4072ec
call dword [sym.imp.MSVCRT.dll__errno]
cmp dword [eax], 4
jne 0x4072ec
push esi
push ebx
push edi
call dword [sym.imp.MSVCRT.dll__read]
mov ebp, eax
add esp, 0xc
cmp ebp, 0xffffffff
je 0x4072ce
test ebp, ebp
jl 0x40745d
je 0x407375
mov edi, dword [esp + 0x1c]
cmp ebp, esi
mov ecx, ebp
mov esi, ebx
jae 0x40731e
mov eax, ecx
add ebx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x1c]
and ecx, 3
add eax, ebp
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x1c], eax
jmp 0x40732c
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x18]
add eax, ebp
cmp eax, 0x800
mov dword [esp + 0x18], eax
jb 0x4072ac
cmp dword [esp + 0x30], 1
jne 0x40737f
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
test edx, edx
je 0x4074bd
mov ecx, 0x800
lea edi, [esp + edx + 0x4c]
sub ecx, edx
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x40738d
mov dword [esp + 0x30], 1
jmp 0x40734c
cmp dword [esp + 0x18], 0x800
jne 0x40748b
lea ebx, [esp + 0x4c]
lea esi, [esp + 0x84c]
xor edi, edi
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
add ebx, 8
mov dword [esp + 0x34], eax
test edi, edi
mov dword [esp + 0x38], ecx
jne 0x4073c8
lea edx, [esp + 0x20]
lea eax, [esp + 0x3c]
push edx
lea ecx, [esp + 0x38]
push eax
push ecx
push edi
call fcn.00404000
add esp, 0x10
jmp 0x4073de
xor eax, eax
mov dl, byte [esp + eax + 0x44]
mov cl, byte [esp + eax + 0x34]
xor dl, cl
mov byte [esp + eax + 0x3c], dl
inc eax
cmp eax, 8
jb 0x4073ca
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov dword [esi], eax
mov dword [esi + 4], ecx
add esi, 8
inc edi
cmp edi, 0x100
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ecx
jb 0x40739a
lea ebx, [esp + 0x84c]
mov edi, 0x800
mov eax, dword [esp + 0x10]
mov ebp, dword [sym.imp.MSVCRT.dll__write]
push edi
push ebx
push eax
call ebp
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
jne 0x407442
call dword [sym.imp.MSVCRT.dll__errno]
cmp dword [eax], 4
jne 0x407442
mov ecx, dword [esp + 0x10]
push edi
push ebx
push ecx
call ebp
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
je 0x407424
test esi, esi
jl 0x40748b
je 0x407450
sub edi, esi
add ebx, esi
test edi, edi
jg 0x40740b
test edi, edi
jne 0x40748b
mov edi, dword [esp + 0x14]
jmp 0x407293
mov esi, dword [sym.imp.MSVCRT.dll__close]
push edi
call esi
mov edx, dword [esp + 0x14]
push edx
call esi
mov eax, dword [esp + 0x185c]
push eax
call fcn.004074e0
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x183c
ret
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.MSVCRT.dll__close]
push ecx
call esi
mov edx, dword [esp + 0x14]
push edx
call esi
mov eax, dword [esp + 0x185c]
push eax
call fcn.004074e0
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x183c
ret
mov esi, dword [sym.imp.MSVCRT.dll__close]
push edi
call esi
mov ecx, dword [esp + 0x14]
push ecx
call esi
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x183c
ret