Function at 0x40c5a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x443079
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
push esi
push edi
mov eax, dword [0x45a070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], edx
mov esi, ecx
push ecx
lea ecx, [ebp - 0xec]
call fcn.00404f30
sub esp, 8
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xdc]
push esi
call fcn.0040ce70
test eax, eax
lea ecx, [ebp - 0xec]
mov eax, dword [ebp - 0xec]
push 0
mov eax, dword [eax + 4]
jne 0x40c61a
mov edx, dword [ecx + eax + 0xc]
add ecx, eax
or edx, 2
mov eax, edx
or eax, 4
cmp dword [ecx + 0x38], 0
jmp 0x40c626
add ecx, eax
xor edx, edx
mov eax, 4
cmp dword [ecx + 0x38], edx
cmovne eax, edx
push eax
call fcn.00401dd0
mov eax, dword [ebp - 0xec]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0xe0], 6
jne 0x40c69c
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0xec]
call fcn.0040ca90
mov edi, dword [eax + 8]
add edi, dword [eax]
mov dword [ebp - 0x18], edi
cmp edi, 0x1c
jae 0x40c727
lea ecx, [ebp - 0xdc]
call fcn.004085a0
test eax, eax
jne 0x40c69c
mov eax, dword [ebp - 0xec]
lea ecx, [ebp - 0xec]
push 0
mov eax, dword [eax + 4]
add ecx, eax
mov edx, dword [ecx + 0xc]
or edx, 2
mov eax, edx
or eax, 4
cmp dword [ecx + 0x38], 0
cmovne eax, edx
push eax
call fcn.00401dd0
mov byte [ebp - 0xd], 0
mov eax, dword [ebp - 0xec]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xec], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xec]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0xf0], eax
lea ecx, [ebp - 0xdc]
call fcn.004058d0
mov eax, dword [ebp - 0xec]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xec], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xec]
mov edx, dword [eax + 4]
lea ecx, [edx - 0x18]
mov dword [ebp + edx - 0xf0], ecx
lea eax, [ebp - 0x7c]
mov dword [ebp - 4], 2
push eax
mov dword [ebp - 0x7c], vtable.std::ios_base.0
call fcn.0040e291
mov al, byte [ebp - 0xd]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
sub esp, 0xc
lea ecx, [ebp - 0xec]
call fcn.0040cb70
push ecx
lea ecx, [ebp - 0x28]
call fcn.0040ca00
push 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xec]
mov eax, dword [ebp - 0x28]
push 0x1c
push eax
call fcn.0040cc80
mov eax, dword [ebp - 0xec]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0xe0], 6
je 0x40c7ab
lea ecx, [ebp - 0xdc]
call fcn.004085a0
test eax, eax
jne 0x40c946
mov eax, dword [ebp - 0xec]
lea ecx, [ebp - 0xec]
push 0
mov eax, dword [eax + 4]
add ecx, eax
mov edx, dword [ecx + 0xc]
or edx, 2
mov eax, edx
or eax, 4
cmp dword [ecx + 0x38], 0
cmovne eax, edx
push eax
call fcn.00401dd0
jmp 0x40c946
mov esi, dword [ebp + 8]
lea eax, [edi - 0x18]
push eax
mov ecx, esi
call fcn.0040c9b0
push 0
lea eax, [edi - 0x1c]
push eax
push dword [esi]
lea ecx, [ebp - 0xec]
call fcn.0040cc80
mov eax, dword [ebp - 0xec]
lea ecx, [ebp - 0xec]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0xe0], 6
je 0x40c7ef
call fcn.0040ca50
jmp 0x40c946
call fcn.0040ca50
mov eax, dword [ebp - 0x28]
mov edx, 0x10
movups xmm0, xmmword [eax]
pandn xmm0, xmmword [0x4530b0]
movups xmmword [eax], xmm0
nop word [eax + eax]
not byte [eax + edx]
inc edx
cmp edx, 0x1c
jb 0x40c810
cmp dword [eax + 4], 0x1c
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x14], ecx
mov dword [eax + 0x18], 0xffffffff
jne 0x40c946
cmp dword [eax], 0x564e5621
jne 0x40c946
lea edi, [eax + 1]
or esi, 0xffffffff
mov eax, 7
nop word [eax + eax]
movzx ecx, byte [edi - 1]
lea edi, [edi + 4]
movzx edx, byte [ecx + 0x452b00]
mov ecx, esi
shr ecx, 0x18
xor edx, ecx
shl esi, 8
movzx ecx, byte [edi - 4]
xor esi, dword [edx*4 + 0x452c00]
movzx edx, byte [ecx + 0x452b00]
mov ecx, esi
shr ecx, 0x18
xor edx, ecx
shl esi, 8
movzx ecx, byte [edi - 3]
xor esi, dword [edx*4 + 0x452c00]
movzx edx, byte [ecx + 0x452b00]
mov ecx, esi
shr ecx, 0x18
xor edx, ecx
shl esi, 8
movzx ecx, byte [edi - 2]
xor esi, dword [edx*4 + 0x452c00]
movzx edx, byte [ecx + 0x452b00]
mov ecx, esi
shr ecx, 0x18
xor edx, ecx
shl esi, 8
xor esi, dword [edx*4 + 0x452c00]
sub eax, 1
jne 0x40c850
mov eax, dword [ebp - 0x28]
mov edi, dword [ebp - 0x18]
cmp dword [ebp - 0x14], esi
jne 0x40c946
mov edx, dword [ebp - 0x1c]
movzx ecx, word [eax + 0x10]
mov word [edx], cx
movzx ecx, byte [eax + 0x12]
mov byte [edx + 2], cl
movzx ecx, byte [eax + 0x13]
mov byte [edx + 3], cl
movzx ecx, word [eax + 0x14]
mov word [edx + 4], cx
mov ecx, dword [eax + 4]
add ecx, dword [eax + 8]
cmp edi, ecx
jne 0x40c946
mov edi, dword [ebp + 8]
xor esi, esi
mov edx, dword [edi]
cmp dword [eax + 8], esi
jbe 0x40c91d
nop dword [eax]
not dword [edx]
lea edx, [edx + 4]
add esi, 4
cmp esi, dword [eax + 8]
jb 0x40c910
push dword [eax + 8]
mov ecx, edi
call fcn.0040c9b0
mov eax, dword [ebp - 0x28]
mov esi, dword [eax + 0xc]
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov ecx, dword [edi]
mov edx, dword [edi + 4]
sub edx, ecx
call fcn.0040c410
mov byte [ebp - 0xd], 1
cmp esi, eax
je 0x40c94a
mov byte [ebp - 0xd], 0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x40c6a0
mov ecx, dword [ebp - 0x20]
sub ecx, eax
cmp ecx, 0x1000
jb 0x40c993
test al, 0x1f
je 0x40c96f
call fcn.0042c649
mov ecx, dword [eax - 4]
cmp ecx, eax
jb 0x40c97b
call fcn.0042c649
sub eax, ecx
cmp eax, 4
jae 0x40c987
call fcn.0042c649
cmp eax, 0x23
jbe 0x40c991
call fcn.0042c649
mov eax, ecx
push eax
call fcn.0040f89a
add esp, 4
jmp 0x40c6a0