Function at 0x10046060
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101002d3
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x1011c0c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x1011e148], 0
je 0x10046478
push 0x1011e14c
lea ecx, [ebp - 0x50]
call fcn.10039650
mov dword [ebp - 4], 0
xor eax, eax
mov ecx, dword [0x10132a38]
mov dword [ebp - 0x114], 0x1d170b05
mov dword [ebp - 0x110], 0x1d0f0640
mov word [ebp - 0x10c], 0x705
mov byte [ebp - 0x10a], 0x6e
nop dword [eax + eax]
xor byte [ebp + eax - 0x114], 0x6e
inc eax
cmp eax, 0xb
jb 0x100460e0
cmp dword [ebp - 0x3c], 0xf
lea edx, [ebp - 0x114]
lea eax, [ebp - 0x50]
cmova eax, dword [ebp - 0x50]
push edx
push eax
call ecx
push 0xb8
lea eax, [ebp - 0x108]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x108]
call fcn.100483d0
mov byte [ebp - 4], 1
cmp dword [ebp - 0xac], 0
je 0x10046410
mov eax, dword [ebp - 0x108]
lea ecx, [ebp - 0x108]
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_bool___thiscall_std::ios_base::fail_void_const]
test al, al
jne 0x10046410
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], al
push 2
push 0
push 0
lea ecx, [ebp - 0x108]
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::seekg_long_long___int64___int_]
lea eax, [ebp - 0x12c]
push eax
lea ecx, [ebp - 0x108]
call dword [sym.imp.MSVCP140.dll_public:_class_std::fpos_struct__Mbstatet____thiscall_std::basic_istream_char__struct_std::char_traits_char__::tellg_void_]
mov edx, dword [eax + 8]
add edx, dword [eax]
mov eax, dword [ebp - 0x18]
cmp edx, eax
ja 0x100461b4
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], edx
cmova eax, dword [ebp - 0x28]
mov byte [eax + edx], 0
jmp 0x100461c1
push 0
sub edx, eax
lea ecx, [ebp - 0x28]
push edx
call fcn.100428a0
push 0
push 0
push 0
lea ecx, [ebp - 0x108]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::seekg_long_long___int64___int_]
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
push 0
push dword [ebp - 0x18]
cmova eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x108]
push eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::read_char___long_long___int64__]
lea ecx, [ebp - 0xf8]
call fcn.1003c070
test eax, eax
jne 0x10046218
mov eax, dword [ebp - 0x108]
lea ecx, [ebp - 0x108]
push 0
push 2
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x12c]
call fcn.10045ca0
sub esp, 0x28
mov byte [ebp - 4], 3
mov ecx, esp
mov edx, eax
mov dword [ecx + 0x24], 0
lea ecx, [ebp - 0x38]
call fcn.1004a1f0
add esp, 0x28
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x118]
cmp ecx, 0xf
jbe 0x10046283
mov edx, dword [ebp - 0x12c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10046279
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10046279
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100fe0da
add esp, 8
push 0x10131368
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0xf
mov byte [ebp - 0x12c], 0
call fcn.10048620
mov ecx, eax
call fcn.1004d070
cmp dword [0x1013139c], eax
mov dword [0x1013139c], eax
setne cl
test cl, cl
je 0x100462cf
mov eax, dword [0x10131394]
test eax, eax
je 0x100462cf
call eax
push 0x101313f8
lea ecx, [ebp - 0x38]
call fcn.10048620
mov ecx, eax
call fcn.1004d070
cmp dword [0x1013142c], eax
mov dword [0x1013142c], eax
setne cl
test cl, cl
je 0x10046300
mov eax, dword [0x10131424]
test eax, eax
je 0x10046300
call eax
push 0x10131488
lea ecx, [ebp - 0x38]
call fcn.10048620
mov ecx, eax
call fcn.1004d070
cmp dword [0x101314bc], eax
mov dword [0x101314bc], eax
setne cl
test cl, cl
je 0x10046331
mov eax, dword [0x101314b4]
test eax, eax
je 0x10046331
call eax
push 0x10131518
lea ecx, [ebp - 0x38]
call fcn.10048620
mov ecx, eax
call fcn.1004d070
cmp dword [0x1013154c], eax
mov dword [0x1013154c], eax
setne cl
test cl, cl
je 0x10046362
mov eax, dword [0x10131544]
test eax, eax
je 0x10046362
call eax
push 0x101315a8
lea ecx, [ebp - 0x38]
call fcn.10048620
mov ecx, eax
call fcn.1004d070
cmp dword [0x101315dc], eax
mov dword [0x101315dc], eax
setne cl
test cl, cl
je 0x10046393
mov eax, dword [0x101315d4]
test eax, eax
je 0x10046393
call eax
push 0x10131638
lea ecx, [ebp - 0x38]
call fcn.10048620
mov ecx, eax
call fcn.1004d070
cmp dword [0x1013166c], eax
mov dword [0x1013166c], eax
setne cl
test cl, cl
je 0x100463c4
mov eax, dword [0x10131664]
test eax, eax
je 0x100463c4
call eax
lea ecx, [ebp - 0x38]
call fcn.10048920
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x100463fc
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100463f2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10046468
push ecx
push edx
call fcn.100fe0da
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
jmp 0x10046437
lea ecx, [ebp - 0xf8]
call fcn.1003c070
test eax, eax
jne 0x10046437
push eax
mov eax, dword [ebp - 0x108]
lea ecx, [ebp - 0x108]
push 2
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
lea ecx, [ebp - 0x108]
call fcn.100464a0
mov ecx, dword [ebp - 0x3c]
cmp ecx, 0xf
jbe 0x10046478
mov edx, dword [ebp - 0x50]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1004646e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1004646e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100fe0da
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100fdc5c
mov esp, ebp
pop ebp
ret