Function at 0x403730
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4232d3
mov eax, dword fs:[0]
push eax
sub esp, 0x188
push esi
mov eax, dword [0x432088]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0xd], dl
mov esi, ecx
sub esp, 0xc
lea ecx, [ebp - 0x194]
push esi
call fcn.00407190
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x194]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x188], 6
jne 0x40394c
mov eax, dword [ebp + eax - 0x15c]
test eax, eax
push ecx
mov word [ebp - 0x20], 1
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x20]
sete byte [ebp - 0x28]
mov byte [ebp - 0x27], 0
push 0
push dword [ebp - 0x28]
push eax
call fcn.00407330
lea ecx, [ebp - 0x184]
mov byte [ebp - 4], 1
call fcn.00406560
test eax, eax
jne 0x4037f2
mov eax, dword [ebp - 0x194]
lea ecx, [ebp - 0x194]
push 0
mov eax, dword [eax + 4]
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.00401dd0
mov eax, dword [ebp - 0x18]
mov ecx, 0x200
mov edx, dword [ebp - 0x1c]
sub eax, edx
cmp eax, ecx
jbe 0x403818
lea eax, [edx + ecx]
mov dl, byte [ebp - 0xd]
xor byte [eax], dl
inc ecx
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
sub eax, edx
cmp ecx, eax
jb 0x403803
sub esp, 0xc
lea ecx, [ebp - 0xdc]
push esi
call fcn.00407380
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0xdc]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0xd0], 6
jne 0x40388f
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
sub ecx, eax
push 0
push ecx
push eax
lea ecx, [ebp - 0xdc]
call fcn.004047d0
lea ecx, [ebp - 0xd8]
call fcn.00406560
test eax, eax
jne 0x40388f
mov eax, dword [ebp - 0xdc]
lea ecx, [ebp - 0xdc]
push 0
mov eax, dword [eax + 4]
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.00401dd0
mov eax, dword [ebp - 0xdc]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xdc], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xdc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xe0], eax
lea ecx, [ebp - 0xd8]
call fcn.00405420
mov eax, dword [ebp - 0xdc]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xdc], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xdc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0xe0], eax
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 3
push eax
mov dword [ebp - 0x74], vtable.std::ios_base.0
call fcn.004090d3
mov byte [ebp - 4], 0
add esp, 4
mov edx, dword [ebp - 0x1c]
test edx, edx
je 0x40394c
mov ecx, dword [ebp - 0x14]
mov eax, edx
sub ecx, edx
cmp ecx, 0x1000
jb 0x40392d
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4039d5
push ecx
push edx
call fcn.00409a0b
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x194]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x194]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x198], eax
lea ecx, [ebp - 0x184]
call fcn.00405420
mov eax, dword [ebp - 0x194]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_istream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x194]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0x198], eax
lea eax, [ebp - 0x124]
mov dword [ebp - 4], 4
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.004090d3
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
call fcn.0040f3a0
int3