Function at 0x10031660
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 0x100ecf18
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x128
mov eax, dword [0x101090b8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x1013e3ac], 0
je 0x1003191a
movss xmm0, dword [0x101291e8]
mulss xmm0, dword [0x100fd960]
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 [0x100fdbc0]
lea ecx, [ebp - 0xd4]
movaps xmm2, xmmword [0x100fe0d0]
lea edx, [ebp - 0xd8]
fstp dword [ebp - 0xd4]
cvttss2si eax, dword [ebp - 0xd4]
add esp, 4
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xf4], 0xb114c45
mov dword [ebp - 0xf0], 0x5846420e
mov byte [ebp - 0xec], 0x2b
movups xmmword [ebp - 0x114], xmm0
test eax, eax
mov dword [ebp - 0xd4], eax
movaps xmm0, xmmword [0x100fe2c0]
cmovle ecx, edx
xor eax, eax
mov dword [ebp - 0xdc], ecx
movups xmmword [ebp - 0x104], xmm0
nop dword [eax]
movups xmm0, xmmword [ebp + eax - 0x114]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [ebp + eax - 0x114], xmm1
add eax, 0x10
cmp eax, 0x20
jb 0x10031750
cmp eax, 0x29
jae 0x10031782
xor byte [ebp + eax - 0x114], 0x2b
inc eax
cmp eax, 0x29
jb 0x10031774
push 0x98
lea eax, [ebp - 0xd0]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 8
lea ecx, [ebp - 0xd0]
call fcn.100255b0
lea eax, [ebp - 0x12c]
mov dword [ebp - 4], 0
mov dword [ebp - 0x134], eax
mov esi, eax
mov dword [ebp - 0x130], 2
mov edi, 2
mov ecx, esi
call fcn.1001cf40
add esi, 0xc
sub edi, 1
jne 0x100317c7
push dword [ebp - 0x130]
mov eax, dword [ebp - 0xdc]
lea edx, [ebp - 0x114]
push dword [ebp - 0x134]
mov dword [ebp - 0xe8], 0x1012c6bc
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0xe4], 0x10028670
movq xmm0, qword [ebp - 0xe8]
movq qword [ebp - 0x12c], xmm0
mov dword [ebp - 0xe8], eax
mov dword [ebp - 0xe4], 0x100281e0
movq xmm0, qword [ebp - 0xe8]
mov dword [ebp - 0x124], fcn.1001da30
movq qword [ebp - 0x120], xmm0
mov dword [ebp - 0x118], 0x10028360
call fcn.1001d620
add esp, 8
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0xcc]
push eax
call fcn.10025a90
mov eax, dword [ebp - 0xd0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xd0], 0x100f8abc
mov eax, dword [ebp - 0xd0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0xd4], eax
lea ecx, [ebp - 0xcc]
call fcn.10025500
lea ecx, [ebp - 0xc8]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x80]
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], 1
push eax
lea eax, [ebp - 0x34]
mov ecx, 0x101a93fc
push eax
call fcn.100d8c80
push 1
lea eax, [ebp - 0x2c]
mov ecx, 0x101a93fc
push eax
push dword [0x1013e610]
mov eax, dword [0x101291f8]
push 0xa
add eax, 0xffffffe7
push eax
call fcn.100d8a30
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x1003191a
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10031910
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10031910
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.100ea570
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100ea0f5
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret