Function at 0x46a7a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea ecx, [ebp - 0x4a0]
sub esp, 0x58c
call fcn.004e3c50
mov esi, dword [sym.imp.libstdc_6.dll_VTT_for_std::basic_ofstream_char__std::char_traits_char___]
mov byte [ebp - 0x42c], 0
lea ecx, [ebp - 0x510]
mov edi, dword [sym.imp.libstdc_6.dll_vtable_for___cxxabiv1::__class_type_info]
mov dword [ebp - reloc.libstdc_6.dll__ZdlPv], sym.imp.libstdc_6.dll_operator_delete_void_
mov dword [ebp - 0x430], 0
mov byte [ebp - 0x42b], 0
mov eax, dword [esi - 0xc]
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 0
mov dword [ebp - 0x420], 0
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0x510], esi
mov dword [ebp + eax - 0x510], edi
mov dword [ebp - 0x50c], 0
add ecx, dword [esi - 0xc]
mov dword [esp], 0
call fcn.004e3c40
lea ecx, [ebp - 0x508]
sub esp, 4
mov dword [ebp - reloc.libstdc_6.dll__ZTVSt9basic_iosIcSt11char_traitsIcEE], sym.imp.libstdc_6.dll_vtable_for_std::basic_ios_char__std::char_traits_char___
mov dword [ebp - reloc.libstdc_6.dll__Znwj], sym.imp.libstdc_6.dll_operator_new_unsigned_int_
call fcn.004e3e00
lea eax, [ebp - 0x508]
lea ecx, [ebp - 0x4a0]
mov dword [esp], eax
call fcn.004e3c40
mov eax, dword [ebp + 0xc]
sub esp, 4
lea ecx, [ebp - 0x508]
mov dword [esp + 4], 0xe
mov eax, dword [eax]
mov dword [esp], eax
call fcn.004e3e10
sub esp, 8
test eax, eax
lea ecx, [ebp - 0x510]
mov eax, dword [ebp - 0x510]
je 0x46ac02
add ecx, dword [eax - 0xc]
mov dword [esp], 0
call fcn.004e3c38
mov ecx, dword [ebp - 0x48c]
sub esp, 4
test ecx, ecx
jne 0x46abb5
lea ecx, [ebp - 0x510]
mov dword [esp + 8], 2
mov dword [esp], 0
mov dword [esp + 4], 0
call fcn.004e3eb0
lea eax, [ebp - 0x510]
sub esp, 0xc
lea ecx, [ebp - 0x418]
mov dword [esp], eax
call fcn.004e3ea8
mov ebx, dword [ebp - 0x418]
sub esp, 4
lea ecx, [ebp - 0x510]
mov dword [esp + 8], 0
mov dword [esp], 0
mov dword [esp + 4], 0
call fcn.004e3eb0
sub esp, 0xc
cmp ebx, 0x3ff
jbe 0x46ab66
lea eax, [ebx - 0x400]
mov dword [ebp - 0x414], 0
lea ecx, [ebp - 0x510]
mov dword [esp + 8], 0
mov dword [ebp - 0x410], 0
shr eax, 1
mov dword [ebp - 0x418], eax
mov eax, dword [ebp - 0x418]
mov dword [esp], eax
mov eax, dword [ebp - 0x414]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x40c]
mov dword [esp + 0xc], eax
call fcn.004e3eb8
lea eax, [ebp - 0x418]
sub esp, 0x10
lea ecx, [ebp - 0x510]
mov dword [esp + 4], 0x400
mov dword [esp], eax
call fcn.004e3ec0
sub esp, 8
lea ecx, [ebp - 0x508]
call fcn.004e3e08
test eax, eax
je 0x46ac18
lea eax, [ebp - 0x418]
lea ecx, [ebx + 0x400]
sub eax, ebx
nop
movzx edx, bl
movzx edx, byte [edx + 0xc7be60]
xor byte [eax + ebx], dl
add ebx, 1
cmp ecx, ebx
jne 0x46a9d0
lea ebx, [ebp - 0x568]
mov dword [esp], ebx
call fcn.0046b470
lea eax, [ebp - 0x418]
mov dword [esp + 8], 0x400
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.0046b4a0
lea eax, [ebp - 0x578]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.0046b670
movzx eax, byte [ebp - 0x575]
mov dword [esp + 0xc], 0xc7be4b
xor al, byte [ebp - 0x571]
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0x46a6f0
mov edx, eax
movzx eax, byte [ebp - 0x577]
xor dl, byte [ebp - 0x56d]
xor al, byte [ebp - 0x573]
xor dl, byte [ebp - 0x569]
mov ecx, eax
xor cl, byte [ebp - 0x56f]
movzx eax, byte [ebp - 0x578]
xor cl, byte [ebp - 0x56b]
xor al, byte [ebp - 0x574]
shl edx, 0x18
movzx ecx, cl
shl ecx, 8
or ecx, edx
mov edx, eax
xor dl, byte [ebp - 0x570]
xor dl, byte [ebp - 0x56c]
movzx eax, byte [ebp - 0x576]
xor al, byte [ebp - 0x572]
movzx edx, dl
or edx, ecx
mov ecx, eax
xor cl, byte [ebp - 0x56e]
xor cl, byte [ebp - 0x56a]
movzx ecx, cl
shl ecx, 0x10
or ecx, edx
mov edx, 0x431be2e9
mov eax, ecx
mul edx
shr edx, 0x12
imul eax, edx, 0xf423f
sub ecx, eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], ecx
mov dword [esp], eax
call fcn.0053cb70
lea ecx, [ebp - 0x508]
mov dword [ebp - reloc.libstdc_6.dll__ZTVSt9basic_iosIcSt11char_traitsIcEE], sym.imp.libstdc_6.dll_vtable_for_std::basic_ios_char__std::char_traits_char___
mov dword [ebp - reloc.libstdc_6.dll__Znwj], sym.imp.libstdc_6.dll_operator_new_unsigned_int_
mov dword [ebp - reloc.libstdc_6.dll__ZTVSt14basic_ifstreamIcSt11char_traitsIcEE], sym.imp.libstdc_6.dll_vtable_for_std::basic_ifstream_char__std::char_traits_char___
call fcn.004e3e08
lea ecx, [ebp - 0x4e4]
call fcn.004e3e48
lea ecx, [ebp - 0x4ec]
mov dword [ebp - reloc.libstdc_6.dll__ZdaPv], sym.imp.libstdc_6.dll_operator_delete___void_
call fcn.004e3d70
mov eax, dword [esi - 0xc]
mov edi, dword [sym.imp.libstdc_6.dll_vtable_for___cxxabiv1::__class_type_info]
lea ecx, [ebp - 0x4a0]
mov dword [ebp - 0x510], esi
mov dword [ebp + eax - 0x510], edi
mov dword [ebp - 0x50c], 0
mov dword [ebp - reloc.libstdc_6.dll__ZdlPv], sym.imp.libstdc_6.dll_operator_delete_void_
call fcn.004e3c48
mov eax, dword [ebp + 8]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x418]
lea ecx, [ebp - 0x510]
mov dword [esp + 4], ebx
lea edi, [ebp - 0x418]
mov dword [esp], eax
call fcn.004e3ec0
mov eax, 0x400
sub esp, 8
lea ecx, [edi + ebx]
sub eax, ebx
cmp eax, 4
jae 0x46abde
test eax, eax
je 0x46a9ae
test al, 2
mov byte [ecx], 0
je 0x46a9ae
xor edx, edx
mov word [ecx + eax - 2], dx
jmp 0x46a9ae
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 8]
add eax, 8
mov ecx, edi
mov dword [edi], eax
mov dword [esp + 4], 0xc7be4a
mov dword [esp], 0xc7be4a
call fcn.0046a700
sub esp, 8
jmp 0x46aadd
lea edi, [ecx + 4]
mov dword [ecx], 0
mov dword [ecx + eax - 4], 0
and edi, 0xfffffffc
sub ecx, edi
add ecx, eax
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
jmp 0x46a9ae
add ecx, dword [eax - 0xc]
mov eax, dword [ecx + 0x14]
or eax, 4
mov dword [esp], eax
call fcn.004e3c38
jmp 0x46a8b6
mov eax, dword [ebp - 0x510]
lea ecx, [ebp - 0x510]
add ecx, dword [eax - 0xc]
mov eax, dword [ecx + 0x14]
or eax, 4
mov dword [esp], eax
call fcn.004e3c38
sub esp, 4
jmp 0x46a9c1