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

Disassembly:
push 0xffffffffffffffff
push 0x46bb66
mov eax, dword fs:[0]
push eax
sub esp, 0x288
mov eax, dword [0x4854a0]
xor eax, esp
mov dword [esp + 0x280], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4854a0]
xor eax, esp
push eax
lea eax, [esp + 0x29c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x2ac]
mov esi, ecx
push 0x477738
push eax
mov dword [esp + 0x2c], esi
call fcn.00438392
mov edi, eax
add esp, 8
test edi, edi
mov dword [esp + 0x18], edi
je 0x408165
push 2
push 0
push edi
call fcn.00438e7d
add esp, 0xc
push edi
call fcn.00438d37
add esp, 4
push 0
push 0
push edi
mov ebx, eax
call fcn.00438e7d
add esp, 0xc
push edi
push 1
lea eax, [esp + 0x40]
push 0x24
push eax
call fcn.00438962
add esp, 0x10
cmp eax, 1
jne 0x40815c
sub ebx, 0x24
cmp byte [esp + 0x38], 0x50
jne 0x40815c
cmp byte [esp + 0x39], 0x41
jne 0x40815c
mov al, byte [esp + 0x3a]
cmp al, 1
jne 0x408191
mov dword [esi + 0x10], 0
push edi
call fcn.00439026
add esp, 4
xor al, al
mov ecx, dword [esp + 0x29c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x280]
xor ecx, esp
call fcn.00436f5b
add esp, 0x294
ret 4
cmp al, 2
jne 0x4081ab
push edi
push 1
lea ecx, [esi + 0x10]
push 4
push ecx
call fcn.00438962
add esp, 0x10
sub ebx, 4
jmp 0x4081d3
cmp al, 3
jne 0x40815c
push edi
push 1
lea ebp, [esi + 0x10]
push 4
push ebp
call fcn.00438962
xor byte [ebp], 0xa4
xor byte [esi + 0x11], 0xa4
xor byte [esi + 0x12], 0xa4
add esp, 0x10
sub ebx, 4
xor byte [esi + 0x13], 0xa4
mov dword [esp + 0x1c], ebx
xor eax, eax
lea esp, [esp]
xor byte [esp + eax + 0x3b], 0xa4
add eax, 1
cmp eax, 0x20
jl 0x4081e0
push ebx
call fcn.0041bf8c
mov ebp, eax
add esp, 4
mov dword [esp + 0x34], ebp
push edi
push 1
push ebx
push ebp
mov dword [esp + 0x2b4], 0
call fcn.00438962
add esp, 0x10
cmp eax, 1
je 0x40822d
push edi
call fcn.00439026
add esp, 4
push ebp
call fcn.0041bf87
jmp 0x408162
lea edx, [esp + 0x270]
push edx
mov ecx, ebx
mov edx, ebp
call fcn.00405e70
add esp, 4
mov eax, 0x21
lea ecx, [esp + 0x270]
lea edx, [esp + 0x3b]
mov ebx, dword [edx]
cmp ebx, dword [ecx]
jne 0x408269
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x408251
test eax, eax
je 0x4082ce
movzx edi, byte [edx]
movzx ebx, byte [ecx]
sub edi, ebx
jne 0x4082b8
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x4082ca
movzx edi, byte [edx]
movzx ebx, byte [ecx]
sub edi, ebx
jne 0x4082b8
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x4082ca
movzx edi, byte [edx]
movzx ebx, byte [ecx]
sub edi, ebx
jne 0x4082b8
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x4082ca
movzx edi, byte [edx]
movzx eax, byte [ecx]
sub edi, eax
je 0x4082ca
test edi, edi
mov edi, dword [esp + 0x18]
mov eax, 1
jg 0x4082d0
or eax, 0xffffffff
jmp 0x4082d0
mov edi, dword [esp + 0x18]
xor eax, eax
test eax, eax
push edi
jne 0x40821a
call fcn.00439026
mov ebx, dword [esp + 0x20]
mov al, byte [ebx + ebp - 1]
sub al, 0x5c
mov cl, al
add cl, cl
xor byte [ebp], cl
mov cl, al
mov dl, al
add cl, cl
shr dl, 1
xor byte [ebp + 1], dl
add cl, cl
xor byte [ebp + 2], cl
shr al, 2
xor byte [ebp + 3], al
mov dword [esp + 0x24], 0
mov eax, dword [ebp]
add esp, 4
push eax
mov dword [esp + 0x24], eax
call fcn.0041bf8c
mov edi, eax
add esp, 4
mov dword [esp + 0x30], edi
add ebx, 0xfffffffc
push ebx
lea edx, [ebp + 4]
push edx
lea eax, [esp + 0x28]
push eax
push edi
mov byte [esp + 0x2b4], 1
call fcn.00417950
mov ebx, dword [esi + 8]
mov ecx, dword [edi]
add esp, 0x10
cmp dword [esi + 4], ebx
lea edx, [edi + 4]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x28], ebx
jbe 0x408362
call fcn.004382be
mov eax, dword [esi + 4]
cmp eax, dword [esi + 8]
mov dword [esp + 0x1c], eax
jbe 0x408377
call fcn.004382be
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x40838e
mov ebx, dword [esi + 8]
push eax
mov eax, dword [esp + 0x2c]
call fcn.00405510
add esp, 4
mov dword [esi + 8], eax
mov ebx, dword [esp + 0x2c]
test ebx, ebx
jbe 0x4083e9
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x18]
add eax, 0x104
mov ecx, 0x41
lea edi, [esp + 0x5c]
rep movsd dword es:[edi], dword [esi]
mov esi, eax
add eax, 0x104
mov ecx, 0x41
lea edi, [esp + 0x160]
rep movsd dword es:[edi], dword [esi]
mov cl, byte [eax]
mov esi, dword [esp + 0x24]
add eax, 1
mov dword [esp + 0x18], eax
lea eax, [esp + 0x5c]
mov byte [esp + 0x264], cl
call fcn.00402b70
sub ebx, 1
jne 0x408396
mov edi, dword [esp + 0x30]
push edi
call fcn.0041bf87
add esp, 4
push ebp
call fcn.0041bf87
add esp, 4
mov al, 1
jmp 0x408167