Function at 0x10046560
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10100378
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x1011c0c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x1011e148], 0
je 0x10046acf
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
push 0
mov byte [ebp - 0x20], 0
call fcn.10049ed0
push 0x1011e14c
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 1
call fcn.10039650
mov byte [ebp - 4], 2
xor eax, eax
mov ecx, dword [0x10132a38]
mov dword [ebp - 0xf4], 0x1d170b05
mov dword [ebp - 0xf0], 0x1d0f0640
mov word [ebp - 0xec], 0x705
mov byte [ebp - 0xea], 0x6e
xor byte [ebp + eax - 0xf4], 0x6e
inc eax
cmp eax, 0xb
jb 0x100465f3
cmp dword [ebp - 0x24], 0xf
lea edx, [ebp - 0xf4]
lea eax, [ebp - 0x38]
cmova eax, dword [ebp - 0x38]
push edx
push eax
call ecx
push 0xb0
lea eax, [ebp - 0xe8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
cmp dword [ebp - 0x24], 0xf
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0xe8]
cmova eax, dword [ebp - 0x38]
push eax
call fcn.1003bdd0
mov eax, dword [ebp - 0xe8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xe8], 0x1010e1b4
mov eax, dword [ebp - 0xe8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xec], eax
mov byte [ebp - 4], 3
cmp dword [ebp - 0x98], 0
je 0x10046a4d
mov eax, dword [ebp - 0xe8]
lea ecx, [ebp - 0xe8]
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_bool___thiscall_std::ios_base::fail_void_const]
test al, al
jne 0x10046a4d
mov edx, dword [0x1013139c]
lea ecx, [ebp - 0xf8]
xorps xmm0, xmm0
mov byte [ebp - 0xf8], al
movq qword [ebp - 0xf0], xmm0
call fcn.1004dc90
push 0x10131368
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 4
call fcn.10048620
movzx ecx, byte [ebp - 0xf8]
mov edi, eax
mov eax, dword [ebp - 0xf0]
mov dl, byte [edi]
mov byte [edi], cl
mov ecx, dword [ebp - 0xec]
mov esi, dword [edi + 0xc]
mov byte [ebp - 0xf8], dl
mov edx, dword [edi + 8]
mov dword [edi + 0xc], ecx
lea ecx, [ebp - 0xf8]
mov dword [edi + 8], eax
mov dword [ebp - 0xf0], edx
mov dword [ebp - 0xec], esi
call fcn.10048920
mov edx, dword [0x1013142c]
lea ecx, [ebp - 0xf8]
xorps xmm0, xmm0
mov byte [ebp - 0xf8], 0
movq qword [ebp - 0xf0], xmm0
call fcn.1004dc90
push 0x101313f8
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 5
call fcn.10048620
movzx ecx, byte [ebp - 0xf8]
mov edi, eax
mov eax, dword [ebp - 0xf0]
mov dl, byte [edi]
mov byte [edi], cl
mov ecx, dword [ebp - 0xec]
mov esi, dword [edi + 0xc]
mov byte [ebp - 0xf8], dl
mov edx, dword [edi + 8]
mov dword [edi + 0xc], ecx
lea ecx, [ebp - 0xf8]
mov dword [edi + 8], eax
mov dword [ebp - 0xf0], edx
mov dword [ebp - 0xec], esi
call fcn.10048920
mov edx, dword [0x101314bc]
lea ecx, [ebp - 0xf8]
xorps xmm0, xmm0
mov byte [ebp - 0xf8], 0
movq qword [ebp - 0xf0], xmm0
call fcn.1004dc90
push 0x10131488
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 6
call fcn.10048620
movzx ecx, byte [ebp - 0xf8]
mov edi, eax
mov eax, dword [ebp - 0xf0]
mov dl, byte [edi]
mov byte [edi], cl
mov ecx, dword [ebp - 0xec]
mov esi, dword [edi + 0xc]
mov byte [ebp - 0xf8], dl
mov edx, dword [edi + 8]
mov dword [edi + 0xc], ecx
lea ecx, [ebp - 0xf8]
mov dword [edi + 8], eax
mov dword [ebp - 0xf0], edx
mov dword [ebp - 0xec], esi
call fcn.10048920
xorps xmm0, xmm0
mov byte [ebp - 0xf8], 0
movq qword [ebp - 0xf0], xmm0
mov edx, dword [0x1013154c]
lea ecx, [ebp - 0xf8]
call fcn.1004dc90
push 0x10131518
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 7
call fcn.10048620
movzx ecx, byte [ebp - 0xf8]
mov edi, eax
mov eax, dword [ebp - 0xf0]
mov dl, byte [edi]
mov byte [edi], cl
mov ecx, dword [ebp - 0xec]
mov esi, dword [edi + 0xc]
mov byte [ebp - 0xf8], dl
mov edx, dword [edi + 8]
mov dword [edi + 0xc], ecx
lea ecx, [ebp - 0xf8]
mov dword [edi + 8], eax
mov dword [ebp - 0xf0], edx
mov dword [ebp - 0xec], esi
call fcn.10048920
mov edx, dword [0x101315dc]
lea ecx, [ebp - 0xf8]
xorps xmm0, xmm0
mov byte [ebp - 0xf8], 0
movq qword [ebp - 0xf0], xmm0
call fcn.1004dc90
push 0x101315a8
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 8
call fcn.10048620
movzx ecx, byte [ebp - 0xf8]
mov edi, eax
mov eax, dword [ebp - 0xf0]
mov dl, byte [edi]
mov byte [edi], cl
mov ecx, dword [ebp - 0xec]
mov esi, dword [edi + 0xc]
mov byte [ebp - 0xf8], dl
mov edx, dword [edi + 8]
mov dword [edi + 0xc], ecx
lea ecx, [ebp - 0xf8]
mov dword [edi + 8], eax
mov dword [ebp - 0xf0], edx
mov dword [ebp - 0xec], esi
call fcn.10048920
mov edx, dword [0x1013166c]
lea ecx, [ebp - 0xf8]
xorps xmm0, xmm0
mov byte [ebp - 0xf8], 0
movq qword [ebp - 0xf0], xmm0
call fcn.1004dc90
push 0x10131638
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 9
call fcn.10048620
mov byte [ebp - 4], 3
mov edi, eax
movzx ecx, byte [ebp - 0xf8]
mov eax, dword [ebp - 0xf0]
mov dl, byte [edi]
mov byte [edi], cl
mov ecx, dword [ebp - 0xec]
mov esi, dword [edi + 0xc]
mov byte [ebp - 0xf8], dl
mov edx, dword [edi + 8]
mov dword [edi + 0xc], ecx
lea ecx, [ebp - 0xf8]
mov dword [edi + 8], eax
mov dword [ebp - 0xf0], edx
mov dword [ebp - 0xec], esi
call fcn.10048920
push ecx
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x20]
call fcn.10048730
mov byte [ebp - 4], 0xa
cmp dword [eax + 0x14], 0xf
mov ecx, dword [eax + 0x10]
jbe 0x1004697b
mov eax, dword [eax]
push ecx
mov edx, eax
lea ecx, [ebp - 0x100]
call fcn.10045a20
add esp, 4
mov byte [ebp - 4], 0xb
lea edx, [ebp - 0x100]
cmp dword [ebp - 0xec], 0xf
lea ecx, [ebp - 0xe8]
push dword [ebp - 0xf0]
cmova edx, dword [ebp - 0x100]
call fcn.10039a30
mov byte [ebp - 4], 0xa
add esp, 4
mov ecx, dword [ebp - 0xec]
cmp ecx, 0xf
jbe 0x100469f2
mov edx, dword [ebp - 0x100]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100469e8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10046a3d
push ecx
push edx
call fcn.100fe0da
add esp, 8
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x108]
mov dword [ebp - 0xf0], 0
mov dword [ebp - 0xec], 0xf
mov byte [ebp - 0x100], 0
cmp ecx, 0xf
jbe 0x10046a4d
mov edx, dword [ebp - 0x11c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10046a43
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10046a43
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
lea ecx, [ebp - 0xe4]
call fcn.1003c070
test eax, eax
jne 0x10046a74
push eax
mov eax, dword [ebp - 0xe8]
lea ecx, [ebp - 0xe8]
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 - 0xe8]
call fcn.1003a230
mov ecx, dword [ebp - 0x24]
cmp ecx, 0xf
jbe 0x10046ab5
mov edx, dword [ebp - 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10046aab
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10046aab
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
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0xf
mov byte [ebp - 0x38], 0
call fcn.10048920
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100fdc5c
mov esp, ebp
pop ebp
ret