Function at 0x1003c720
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d26b3
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x100e8040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x1014bb38], 0
je 0x1003cb38
push 0x1014bb3c
lea ecx, [ebp - 0x50]
call fcn.10032430
mov dword [ebp - 4], 0
xor eax, eax
mov ecx, dword [0x1015fa44]
mov dword [ebp - 0x114], 0xc7cdd1df
mov dword [ebp - 0x110], 0xd5c4c79a
mov word [ebp - 0x10c], 0xdfc6
mov byte [ebp - 0x10a], 0xb4
nop dword [eax + eax]
xor byte [ebp + eax - 0x114], 0xb4
inc eax
cmp eax, 0xb
jb 0x1003c7a0
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.1003ea60
mov byte [ebp - 4], 1
cmp dword [ebp - 0xac], 0
je 0x1003cad0
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 0x1003cad0
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 ecx, dword [eax + 8]
add ecx, dword [eax]
mov eax, dword [ebp - 0x18]
cmp ecx, eax
ja 0x1003c874
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], ecx
cmova eax, dword [ebp - 0x28]
mov byte [eax + ecx], 0
jmp 0x1003c881
sub ecx, eax
push 0
push ecx
lea ecx, [ebp - 0x28]
call fcn.10039330
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.10035320
test eax, eax
jne 0x1003c8d8
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.1003c370
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.10040840
add esp, 0x28
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x118]
cmp ecx, 0xf
jbe 0x1003c943
mov edx, dword [ebp - 0x12c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003c939
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1003c939
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100d0707
add esp, 8
push 0x1015b568
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0xf
mov byte [ebp - 0x12c], 0
call fcn.1003ece0
mov ecx, eax
call fcn.10043780
cmp dword [0x1015b59c], eax
mov dword [0x1015b59c], eax
setne cl
test cl, cl
je 0x1003c98f
mov eax, dword [0x1015b594]
test eax, eax
je 0x1003c98f
call eax
push 0x1015b5f8
lea ecx, [ebp - 0x38]
call fcn.1003ece0
mov ecx, eax
call fcn.10043780
cmp dword [0x1015b62c], eax
mov dword [0x1015b62c], eax
setne cl
test cl, cl
je 0x1003c9c0
mov eax, dword [0x1015b624]
test eax, eax
je 0x1003c9c0
call eax
push 0x1015b688
lea ecx, [ebp - 0x38]
call fcn.1003ece0
mov ecx, eax
call fcn.10043780
cmp dword [0x1015b6bc], eax
mov dword [0x1015b6bc], eax
setne cl
test cl, cl
je 0x1003c9f1
mov eax, dword [0x1015b6b4]
test eax, eax
je 0x1003c9f1
call eax
push 0x1015b718
lea ecx, [ebp - 0x38]
call fcn.1003ece0
mov ecx, eax
call fcn.10043780
cmp dword [0x1015b74c], eax
mov dword [0x1015b74c], eax
setne cl
test cl, cl
je 0x1003ca22
mov eax, dword [0x1015b744]
test eax, eax
je 0x1003ca22
call eax
push 0x1015b7a8
lea ecx, [ebp - 0x38]
call fcn.1003ece0
mov ecx, eax
call fcn.10043780
cmp dword [0x1015b7dc], eax
mov dword [0x1015b7dc], eax
setne cl
test cl, cl
je 0x1003ca53
mov eax, dword [0x1015b7d4]
test eax, eax
je 0x1003ca53
call eax
push 0x1015b838
lea ecx, [ebp - 0x38]
call fcn.1003ece0
mov ecx, eax
call fcn.10043780
cmp dword [0x1015b86c], eax
mov dword [0x1015b86c], eax
setne cl
test cl, cl
je 0x1003ca84
mov eax, dword [0x1015b864]
test eax, eax
je 0x1003ca84
call eax
lea ecx, [ebp - 0x38]
call fcn.1003efe0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x1003cabc
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003cab2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003cb28
push ecx
push edx
call fcn.100d0707
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
jmp 0x1003caf7
lea ecx, [ebp - 0xf8]
call fcn.10035320
test eax, eax
jne 0x1003caf7
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.1003cb60
mov ecx, dword [ebp - 0x3c]
cmp ecx, 0xf
jbe 0x1003cb38
mov edx, dword [ebp - 0x50]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003cb2e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1003cb2e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100d0707
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.100d028c
mov esp, ebp
pop ebp
ret