Function at 0x46b670
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.004e4b20
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.004e4b10
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.004e4cd0
lea eax, [ebp - 0x508]
lea ecx, [ebp - 0x4a0]
mov dword [esp], eax
call fcn.004e4b10
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.004e4ce0
sub esp, 8
test eax, eax
lea ecx, [ebp - 0x510]
mov eax, dword [ebp - 0x510]
je 0x46bad2
add ecx, dword [eax - 0xc]
mov dword [esp], 0
call fcn.004e4b08
mov ecx, dword [ebp - 0x48c]
sub esp, 4
test ecx, ecx
jne 0x46ba85
lea ecx, [ebp - 0x510]
mov dword [esp + 8], 2
mov dword [esp], 0
mov dword [esp + 4], 0
call fcn.004e4d80
lea eax, [ebp - 0x510]
sub esp, 0xc
lea ecx, [ebp - 0x418]
mov dword [esp], eax
call fcn.004e4d78
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.004e4d80
sub esp, 0xc
cmp ebx, 0x3ff
jbe 0x46ba36
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.004e4d88
lea eax, [ebp - 0x418]
sub esp, 0x10
lea ecx, [ebp - 0x510]
mov dword [esp + 4], 0x400
mov dword [esp], eax
call fcn.004e4d90
sub esp, 8
lea ecx, [ebp - 0x508]
call fcn.004e4cd8
test eax, eax
je 0x46bae8
lea eax, [ebp - 0x418]
lea ecx, [ebx + 0x400]
sub eax, ebx
nop
movzx edx, bl
movzx edx, byte [edx + 0xc7d080]
xor byte [eax + ebx], dl
add ebx, 1
cmp ecx, ebx
jne 0x46b8a0
lea ebx, [ebp - 0x568]
mov dword [esp], ebx
call fcn.0046c340
lea eax, [ebp - 0x418]
mov dword [esp + 8], 0x400
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.0046c370
lea eax, [ebp - 0x578]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.0046c540
movzx eax, byte [ebp - 0x575]
mov dword [esp + 0xc], 0xc7d06b
xor al, byte [ebp - 0x571]
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0x46b5c0
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.0053daf0
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.004e4cd8
lea ecx, [ebp - 0x4e4]
call fcn.004e4d18
lea ecx, [ebp - 0x4ec]
mov dword [ebp - reloc.libstdc_6.dll__ZdaPv], sym.imp.libstdc_6.dll_operator_delete___void_
call fcn.004e4c40
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.004e4b18
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.004e4d90
mov eax, 0x400
sub esp, 8
lea ecx, [edi + ebx]
sub eax, ebx
cmp eax, 4
jae 0x46baae
test eax, eax
je 0x46b87e
test al, 2
mov byte [ecx], 0
je 0x46b87e
xor edx, edx
mov word [ecx + eax - 2], dx
jmp 0x46b87e
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 8]
add eax, 8
mov ecx, edi
mov dword [edi], eax
mov dword [esp + 4], 0xc7d06a
mov dword [esp], 0xc7d06a
call fcn.0046b5d0
sub esp, 8
jmp 0x46b9ad
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 0x46b87e
add ecx, dword [eax - 0xc]
mov eax, dword [ecx + 0x14]
or eax, 4
mov dword [esp], eax
call fcn.004e4b08
jmp 0x46b786
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.004e4b08
sub esp, 4
jmp 0x46b891