Function at 0x1003f090
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f4ab4
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x124
mov eax, dword [0x101110c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xdc], 0
cmp byte [0x10144a64], 0
je 0x1003f3e0
movss xmm0, dword [0x10131190]
mulss xmm0, dword [0x10105fc4]
push ecx
movss dword [ebp - 0xd4], xmm0
fld dword [ebp - 0xd4]
fstp dword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_roundf
movaps xmm0, xmmword [0x10106d10]
lea esi, [ebp - 0xd4]
movaps xmm2, xmmword [0x10106ba0]
lea ecx, [ebp - 0xd8]
fstp dword [ebp - 0xd4]
cvttss2si eax, dword [ebp - 0xd4]
add esp, 4
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xf4], 0xe2f8a5ac
mov dword [ebp - 0xf0], 0xb1afabe7
mov byte [ebp - 0xec], 0xc2
movups xmmword [ebp - 0x114], xmm0
test eax, eax
mov dword [ebp - 0xd4], eax
movaps xmm0, xmmword [0x101065c0]
cmovle esi, ecx
xor eax, eax
movups xmmword [ebp - 0x104], xmm0
movups xmm0, xmmword [ebp + eax - 0x114]
movaps xmm1, xmm2
xorps xmm1, xmm0
movups xmmword [ebp + eax - 0x114], xmm1
add eax, 0x10
cmp eax, 0x20
jb 0x1003f180
cmp eax, 0x29
jae 0x1003f1b1
xor byte [ebp + eax - 0x114], 0xc2
inc eax
cmp eax, 0x29
jb 0x1003f1a3
push 0x98
lea eax, [ebp - 0xc8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0xc8], 0x10104308
lea ecx, [ebp - 0x78]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::constructor_void_]
push 0
push 0
lea eax, [ebp - 0xc4]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0xc8]
mov dword [ebp - 0xdc], 2
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char_____bool_]
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0xc8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xc8], 0x10100afc
mov eax, dword [ebp - 0xc8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0xcc], eax
lea ecx, [ebp - 0xc4]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
mov dword [ebp - 0xc4], 0x10100b08
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 4
lea eax, [ebp - 0x12c]
mov dword [ebp - 4], 2
mov dword [ebp - 0x134], eax
mov ecx, 2
mov dword [ebp - 0x130], 2
lea eax, [ebp - 0x124]
mov dword [eax - 8], 0
lea eax, [eax + 0xc]
mov dword [eax - 0x10], 0
mov dword [eax - 0xc], 0
sub ecx, 1
jne 0x1003f282
push dword [ebp - 0x130]
mov dword [ebp - 0xe8], 0x10134664
lea edx, [ebp - 0x114]
push dword [ebp - 0x134]
mov dword [ebp - 0xe4], 0x100357b0
lea ecx, [ebp - 0xc8]
movq xmm0, qword [ebp - 0xe8]
movq qword [ebp - 0x12c], xmm0
mov dword [ebp - 0xe8], esi
mov dword [ebp - 0xe4], 0x10035730
movq xmm0, qword [ebp - 0xe8]
mov dword [ebp - 0x124], fcn.1002b150
movq qword [ebp - 0x120], xmm0
mov dword [ebp - 0x118], 0x10035750
call fcn.1002ad40
add esp, 8
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0xc4]
push eax
call fcn.10032b40
mov eax, dword [ebp - 0xc8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xc8], 0x10100afc
mov eax, dword [ebp - 0xc8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0xcc], eax
lea ecx, [ebp - 0xc4]
call fcn.10032540
lea ecx, [ebp - 0xc0]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x78]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 3
push eax
lea eax, [ebp - 0xd0]
mov ecx, 0x101b13bc
push eax
call fcn.100e0650
push 1
lea eax, [ebp - 0x2c]
mov ecx, 0x101b13bc
push eax
push dword [0x10144cc8]
mov eax, dword [0x101311a0]
push 0xa
add eax, 0xffffffe7
push eax
call fcn.100e0400
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xf
jbe 0x1003f3e0
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003f3d6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1003f3d6
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100f2c1b
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100f27a0
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret