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

Disassembly:
sub esp, 0x114
mov eax, dword [0x417018]
xor eax, esp
mov dword [esp + 0x110], eax
push ebp
mov ebp, dword [esp + 0x11c]
push esi
push 0
push 1
push 3
push 0
push 1
push 0x80000000
push 0x433340
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4070f7
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.0040999a
add esp, 0x114
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [esp + 0x10]
push eax
push 4
lea ecx, [esp + 0x20]
push ecx
push esi
call edi
mov eax, dword [esp + 0x14]
cmp eax, 0x3e8
jl 0x407121
cmp eax, 0xc8a
je 0x407142
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.0040999a
add esp, 0x114
ret
push 0
lea edx, [esp + 0x10]
push edx
push 4
push ebp
push esi
call edi
push 0
lea eax, [esp + 0x10]
push eax
push 4
lea ecx, [ebp + 4]
push ecx
push esi
call edi
cmp dword [esp + 0x14], 0x3eb
jl 0x407179
push 0
lea edx, [esp + 0x10]
push edx
push 4
lea eax, [ebp + 8]
push eax
push esi
call edi
cmp dword [esp + 0x14], 0x3f2
jl 0x4071b3
push 0
lea ecx, [esp + 0x10]
push ecx
push 4
lea edx, [ebp + 0x14]
push edx
push esi
call edi
push 0
lea eax, [esp + 0x10]
push eax
push 4
lea ecx, [ebp + 0xc]
push ecx
push esi
call edi
push 0
lea edx, [esp + 0x10]
push edx
push 4
lea eax, [ebp + 0x10]
push eax
push esi
call edi
cmp dword [esp + 0x14], 0x3fc
jl 0x4071fd
push 0
lea ecx, [esp + 0x10]
push ecx
push 4
lea edx, [ebp + 0x18]
push edx
push esi
call edi
push 0
lea eax, [esp + 0x10]
push eax
push 4
lea ecx, [esp + 0x1c]
push ecx
push esi
call edi
mov eax, dword [esp + 0x10]
push 0
lea edx, [esp + 0x10]
push edx
push eax
push 0x433010
push esi
call edi
mov ecx, dword [esp + 0x10]
mov byte [ecx + 0x433010], 0
cmp dword [esp + 0x14], 0x44c
jl 0x407217
push 0
lea edx, [esp + 0x10]
push edx
push 4
lea eax, [ebp + 0x1c]
push eax
push esi
call edi
cmp dword [esp + 0x14], 0x4b0
jl 0x40729b
push ebx
push 0
lea ecx, [esp + 0x14]
push ecx
push 4
lea edx, [ebp + 0x20]
push edx
push esi
call edi
push 0
lea eax, [esp + 0x14]
push eax
push 4
lea ebx, [ebp + 0x24]
push ebx
push esi
call edi
cmp dword [ebx], 0
pop ebx
je 0x40729b
push 0
lea ecx, [esp + 0x10]
push ecx
push 4
lea edx, [esp + 0x1c]
push edx
push esi
call edi
mov ecx, dword [esp + 0x10]
push 0
lea eax, [esp + 0x10]
push eax
push ecx
lea edx, [esp + 0x24]
push edx
push esi
call edi
mov ecx, dword [esp + 0x10]
xor eax, eax
test ecx, ecx
mov byte [esp + ecx + 0x18], 0
jle 0x407294
lea esp, [esp]
mov dl, byte [esp + eax + 0x18]
xor dl, 0x45
mov byte [eax + 0x433118], dl
add eax, 1
cmp eax, ecx
jl 0x407280
mov byte [ecx + 0x433118], 0
cmp dword [esp + 0x14], 0x5dc
jl 0x4072c5
push 0
lea eax, [esp + 0x10]
push eax
push 4
lea ecx, [ebp + 0x28]
push ecx
push esi
call edi
push 0
lea edx, [esp + 0x10]
push edx
push 4
lea eax, [ebp + 0x2c]
push eax
push esi
call edi
cmp dword [esp + 0x14], 0x7d0
jl 0x40733f
push 0
lea ecx, [esp + 0x10]
push ecx
push 4
lea edx, [ebp + 0x30]
push edx
push esi
call edi
push 0
lea eax, [esp + 0x10]
push eax
push 4
lea ecx, [ebp + 0x34]
push ecx
push esi
call edi
push 0
lea edx, [esp + 0x10]
push edx
push 4
lea eax, [ebp + 0x38]
push eax
push esi
call edi
push 0
lea ecx, [esp + 0x10]
push ecx
push 4
lea edx, [ebp + 0x3c]
push edx
push esi
call edi
push 0
lea eax, [esp + 0x10]
push eax
push 4
lea ecx, [ebp + 0x40]
push ecx
push esi
call edi
push 0
lea edx, [esp + 0x10]
push edx
push 4
lea eax, [ebp + 0x44]
push eax
push esi
call edi
push 0
lea ecx, [esp + 0x10]
push ecx
push 4
lea edx, [ebp + 0x48]
push edx
push esi
call edi
cmp dword [esp + 0x14], 0x834
jl 0x40743d
push 0
lea eax, [esp + 0x10]
push eax
push 4
lea ecx, [esp + 0x1c]
push ecx
push esi
call edi
mov eax, dword [esp + 0x10]
push 0
lea edx, [esp + 0x10]
push edx
push eax
push 0x417d34
push esi
call edi
mov ecx, dword [esp + 0x10]
push 0
lea edx, [esp + 0x10]
push edx
push 4
lea eax, [esp + 0x1c]
push eax
push esi
mov byte [ecx + 0x417d34], 0
call edi
mov edx, dword [esp + 0x10]
push 0
lea ecx, [esp + 0x10]
push ecx
push edx
push 0x417d24
push esi
call edi
mov eax, dword [esp + 0x10]
push 0
lea ecx, [esp + 0x10]
push ecx
push 4
lea edx, [esp + 0x1c]
push edx
push esi
mov byte [eax + 0x417d24], 0
call edi
mov ecx, dword [esp + 0x10]
push 0
lea eax, [esp + 0x10]
push eax
push ecx
push 0x417d68
push esi
call edi
mov edx, dword [esp + 0x10]
push 0
lea eax, [esp + 0x10]
push eax
push 4
lea ecx, [esp + 0x1c]
push ecx
push esi
mov byte [edx + 0x417d68], 0
call edi
mov eax, dword [esp + 0x10]
push 0
lea edx, [esp + 0x10]
push edx
push eax
push str.000000
push esi
call edi
mov ecx, dword [esp + 0x10]
push 0
lea edx, [esp + 0x10]
push edx
push 4
lea eax, [ebp + 0x4c]
push eax
push esi
mov byte [ecx + str.000000], 0
call edi
push 0
lea ecx, [esp + 0x10]
push ecx
push 4
lea edx, [ebp + 0x50]
push edx
push esi
call edi
push 0
lea eax, [esp + 0x10]
push eax
push 4
lea ecx, [ebp + 0x54]
push ecx
push esi
call edi
cmp dword [esp + 0x14], 0x898
jl 0x407457
push 0
lea edx, [esp + 0x10]
push edx
push 4
lea eax, [ebp + 0x58]
push eax
push esi
call edi
cmp dword [esp + 0x14], 0x9c4
jl 0x407525
push 0
lea ecx, [esp + 0x10]
push ecx
push 4
lea edx, [ebp + 0x5c]
push edx
push esi
call edi
push 0
lea eax, [esp + 0x10]
push eax
push 4
lea ecx, [ebp + 0x60]
push ecx
push esi
call edi
push 0
lea edx, [esp + 0x10]
push edx
push 4
lea eax, [ebp + 0x64]
push eax
push esi
call edi
push 0
lea ecx, [esp + 0x10]
push ecx
push 4
lea edx, [ebp + 0x68]
push edx
push esi
call edi
push 0
lea eax, [esp + 0x10]
push eax
push 4
lea ecx, [ebp + 0x6c]
push ecx
push esi
call edi
push 0
lea edx, [esp + 0x10]
push edx
push 4
lea eax, [ebp + 0x70]
push eax
push esi
call edi
push 0
lea ecx, [esp + 0x10]
push ecx
push 4
lea edx, [ebp + 0x74]
push edx
push esi
call edi
push 0
lea eax, [esp + 0x10]
push eax
push 4
lea ecx, [esp + 0x1c]
push ecx
push esi
call edi
mov eax, dword [esp + 0x10]
push 0
lea edx, [esp + 0x10]
push edx
push eax
push 0x417da8
push esi
call edi
mov ecx, dword [esp + 0x10]
push 0
lea edx, [esp + 0x10]
push edx
push 4
lea eax, [ebp + 0x78]
push eax
mov byte [ecx + 0x417da8], 0
push esi
call edi
push 0
lea ecx, [esp + 0x10]
push ecx
push 4
lea edx, [ebp + 0x7c]
push edx
push esi
call edi
cmp dword [esp + 0x14], 0xbb8
jl 0x407568
push 0
lea eax, [esp + 0x10]
push eax
push 4
lea ecx, [ebp + 0x80]
push ecx
push esi
call edi
push 0
lea edx, [esp + 0x10]
push edx
push 4
lea eax, [ebp + 0x84]
push eax
push esi
call edi
push 0
lea ecx, [esp + 0x10]
push ecx
push 4
add ebp, 0x88
push ebp
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
pop ebp
xor ecx, esp
mov eax, 1
call fcn.0040999a
add esp, 0x114
ret