Function at 0x10038290
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 0x100f2474
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x11c
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 [0x10144bdc], 0
je 0x100385c0
movss xmm0, dword [0x10131190]
mulss xmm0, dword [0x10104944]
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 [0x10104c20]
lea esi, [ebp - 0xd4]
movaps xmm2, xmmword [0x10105130]
lea ecx, [ebp - 0xd8]
fstp dword [ebp - 0xd4]
cvttss2si eax, dword [ebp - 0xd4]
add esp, 4
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xe8], 0x8d97cac3
mov dword [ebp - 0xe4], 0xdec0c488
mov byte [ebp - 0xe0], 0xad
movups xmmword [ebp - 0x108], xmm0
test eax, eax
mov dword [ebp - 0xd4], eax
movaps xmm0, xmmword [0x101054b0]
cmovle esi, ecx
xor eax, eax
movups xmmword [ebp - 0xf8], xmm0
movups xmm0, xmmword [ebp + eax - 0x108]
movaps xmm1, xmm2
xorps xmm1, xmm0
movups xmmword [ebp + eax - 0x108], xmm1
add eax, 0x10
cmp eax, 0x20
jb 0x10038380
cmp eax, 0x29
jae 0x100383b1
xor byte [ebp + eax - 0x108], 0xad
inc eax
cmp eax, 0x29
jb 0x100383a3
push 0x98
lea eax, [ebp - 0xc8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0xc8], 0x101032c8
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], 0x100ffabc
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], 0x100ffac8
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 4
lea eax, [ebp - 0x120]
mov dword [ebp - 4], 2
mov dword [ebp - 0x128], eax
mov ecx, 2
mov dword [ebp - 0x124], 2
lea eax, [ebp - 0x118]
mov dword [eax - 8], 0
lea eax, [eax + 0xc]
mov dword [eax - 0x10], 0
mov dword [eax - 0xc], 0
sub ecx, 1
jne 0x10038482
push dword [ebp - 0x124]
lea edx, [ebp - 0x108]
mov dword [ebp - 0x120], 0x10134664
push dword [ebp - 0x128]
lea ecx, [ebp - 0xc8]
mov dword [ebp - 0x11c], 0x1002ea20
mov dword [ebp - 0x118], fcn.10024760
mov dword [ebp - 0x114], esi
mov dword [ebp - 0x110], 0x1002e9a0
mov dword [ebp - 0x10c], 0x1002e9c0
call fcn.10024350
add esp, 8
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0xc4]
push eax
call fcn.1002be20
mov eax, dword [ebp - 0xc8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xc8], 0x100ffabc
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.1002b830
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, 0x101b152c
push eax
call fcn.100dd850
push 1
lea eax, [ebp - 0x2c]
mov ecx, 0x101b152c
push eax
push dword [0x10144e40]
mov eax, dword [0x101311a0]
push 0xa
add eax, 0xffffffe7
push eax
call fcn.100dd600
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xf
jbe 0x100385c0
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100385b6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100385b6
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100f079b
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.100f0320
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret