Function at 0x10121870
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 0x10130fc1
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x180
mov eax, dword [0x1014a0c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x140], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x90], xmm0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0xf
mov byte [ebp - 0x90], 0
mov dword [ebp - 4], 0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
push 0
mov byte [ebp - 4], 1
push dword [0x10151994]
push dword [0x10151990]
call fcn.10123b60
mov esi, dword [0x10151994]
mov edi, eax
push 1
push esi
push dword [0x10151990]
mov dword [ebp - 0x140], edi
call fcn.10123b60
mov ecx, dword [0x10151994]
mov dword [ebp - 0x16c], eax
mov dword [ebp - 0x168], ecx
cmp edi, esi
jne 0x10121948
cmp eax, ecx
je 0x10122305
cmp byte [0x1019a5f4], 0
je 0x10122305
mov ecx, dword [0x1014a12c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x138]
call eax
movss xmm0, dword [0x1019a600]
movss xmm1, dword [0x1019a604]
movss xmm2, dword [0x1019a608]
subss xmm0, dword [eax]
subss xmm1, dword [eax + 4]
subss xmm2, dword [eax + 8]
mulss xmm0, xmm0
mulss xmm1, xmm1
mulss xmm2, xmm2
addss xmm0, xmm1
addss xmm0, xmm2
call fcn.10023420
movss xmm1, dword [0x1019a614]
mulss xmm1, dword [0x1013dac8]
mulss xmm0, xmm0
mulss xmm1, dword [0x1019a614]
divss xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_expf
mov ecx, dword [0x10195170]
movaps xmm5, xmm0
mov eax, dword [0x1014a12c]
add ecx, 0xffffffb3
mulss xmm5, dword [0x1019a60c]
xor ecx, 0x49524e06
mov eax, dword [ecx + eax]
test eax, eax
jle 0x10121a23
movaps xmm2, xmm5
movd xmm0, eax
mulss xmm2, dword [0x1013d78c]
movaps xmm1, xmm5
cvtdq2ps xmm0, xmm0
subss xmm1, xmm2
mulss xmm1, dword [0x1013d78c]
comiss xmm1, xmm0
jbe 0x10121a20
addss xmm0, xmm0
movaps xmm2, xmm5
subss xmm2, xmm0
movaps xmm5, xmm2
movss xmm3, dword [0x1013da80]
lea edx, [ebp - 0x134]
movss xmm2, dword [0x1013da68]
andps xmm3, xmm5
movaps xmm0, xmm5
movss xmm4, dword [0x1013d7f0]
xorps xmm0, xmm3
mov dword [ebp - 0x134], 0x66322e25
cmpltss xmm0, xmm2
mov byte [ebp - 0x130], 0
movaps xmm1, xmm5
xor eax, eax
andps xmm2, xmm0
orps xmm2, xmm3
addss xmm1, xmm2
subss xmm1, xmm2
movaps xmm0, xmm1
subss xmm0, xmm5
cmpnless xmm0, xmm3
andps xmm0, xmm4
subss xmm1, xmm0
movss xmm0, dword [0x1019a5fc]
cvttss2si ecx, xmm1
test ecx, ecx
cmovg eax, ecx
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x12c], eax
mov eax, dword [0x10194f48]
subss xmm0, dword [eax + 0x10]
lea eax, [ebp - 0x18]
push eax
movss dword [ebp - 0x18], xmm0
call fcn.10122fd0
add esp, 4
lea ecx, [ebp - 0x90]
push eax
call fcn.10038180
mov ecx, dword [ebp - 0x34]
cmp ecx, 0xf
jbe 0x10121afd
mov edx, dword [ebp - 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10121af3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10121af3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.101241e7
add esp, 8
lea eax, [ebp - 0x12c]
mov word [ebp - 0x13c], 0x6925
push eax
lea edx, [ebp - 0x13c]
mov byte [ebp - 0x13a], 0
lea ecx, [ebp - 0x48]
call fcn.100f8480
add esp, 4
lea ecx, [ebp - 0x30]
push eax
call fcn.10038180
mov ecx, dword [ebp - 0x34]
cmp ecx, 0xf
jbe 0x10121b64
mov edx, dword [ebp - 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10121b5a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10121b5a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.101241e7
add esp, 8
mov edx, dword [0x1019511c]
mov eax, dword [0x1014a12c]
add edx, 0xffffffc8
mov ecx, dword [ebp - 0x12c]
xor edx, 0x49524df1
mov edi, dword [0x1015d35c]
cmp ecx, dword [edx + eax]
lea edx, [ebp - 0x164]
mov ecx, 0x1019a600
cmovl edi, dword [0x1014a63c]
call fcn.10114090
cmp dword [0x1019a638], 0xf
mov edx, 0x1019a624
mov byte [ebp - 0x141], al
xorps xmm0, xmm0
cmova edx, dword [0x1019a624]
mov ecx, edx
mov dword [ebp - 0x50], 0
movups xmmword [ebp - 0x60], xmm0
mov dword [ebp - 0x4c], 0
lea eax, [ecx + 1]
mov dword [ebp - 0x134], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10121bd7
sub ecx, dword [ebp - 0x134]
push ecx
push edx
lea ecx, [ebp - 0x60]
call fcn.1002a390
mov byte [ebp - 4], 2
xorps xmm1, xmm1
cmp dword [ebp - 0x140], esi
je 0x1012222b
mov ecx, 1
mov dword [ebp - 0x14c], 0
cmp dword [ebp - 0x50], ecx
lea eax, [ebp - 0x60]
xorps xmm0, xmm0
mov dword [ebp - 0x148], 0
cmovb ecx, dword [ebp - 0x50]
cmp dword [ebp - 0x4c], 0xf
push ecx
cmova eax, dword [ebp - 0x60]
lea ecx, [ebp - 0x15c]
push eax
movups xmmword [ebp - 0x15c], xmm0
call fcn.1002a390
mov byte [ebp - 4], 3
xor eax, eax
mov dword [ebp - 0x138], 0x8055600
mov dword [ebp - 0x134], 0x140b0005
mov word [ebp - 0x130], 0x5643
mov byte [ebp - 0x12e], 0x25
nop dword [eax]
xor byte [ebp + eax - 0x138], 0x25
inc eax
cmp eax, 0xb
jb 0x10121c70
push 0x98
lea eax, [ebp - 0x128]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x128], 0x10134840
lea ecx, [ebp - 0xd8]
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 - 0x124]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x128]
mov dword [ebp - 0x140], 5
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], 5
mov eax, dword [ebp - 0x128]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0x128], 0x1013483c
mov eax, dword [ebp - 0x128]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0x12c], eax
lea ecx, [ebp - 0x124]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
mov dword [ebp - 0x124], 0x101347e0
mov dword [ebp - 0xec], 0
mov dword [ebp - 0xe8], 4
lea eax, [ebp - 0x184]
mov byte [ebp - 4], 6
mov dword [ebp - 0x18c], eax
mov ecx, 2
mov dword [ebp - 0x188], 2
lea eax, [ebp - 0x17c]
nop dword [eax]
mov dword [eax - 8], 0
lea eax, [eax + 0xc]
mov dword [eax - 0x10], 0
mov dword [eax - 0xc], 0
sub ecx, 1
jne 0x10121d50
push dword [ebp - 0x188]
lea eax, [ebp - 0x15c]
mov dword [ebp - 0x180], 0x1004bf60
push dword [ebp - 0x18c]
mov dword [ebp - 0x184], eax
lea edx, [ebp - 0x138]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x17c], fcn.1002d8c0
lea ecx, [ebp - 0x128]
mov dword [ebp - 0x178], eax
mov dword [ebp - 0x174], 0x1004c1b0
mov dword [ebp - 0x170], 0x1004c1d0
call fcn.1002bba0
add esp, 8
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x124]
push eax
call fcn.1002d370
mov eax, dword [ebp - 0x128]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0x128], 0x1013483c
mov eax, dword [ebp - 0x128]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0x12c], eax
lea ecx, [ebp - 0x124]
call fcn.10029bb0
lea ecx, [ebp - 0x120]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0xd8]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x148]
cmp ecx, 0xf
jbe 0x10121e63
mov edx, dword [ebp - 0x15c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10121e59
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10121e59
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.101241e7
add esp, 8
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x14c], 0
push eax
lea edx, [ebp - 0x13c]
mov dword [ebp - 0x148], 0xf
lea ecx, [ebp - 0x78]
mov byte [ebp - 0x15c], 0
mov word [ebp - 0x13c], 0x6925
mov byte [ebp - 0x13a], 0
call fcn.100f8480
add esp, 4
mov byte [ebp - 4], 9
movss xmm0, dword [0x1013d8fc]
comiss xmm0, dword [ebp - 0x18]
mov dword [ebp - 0x134], 0xff0aac87
jbe 0x10121ecc
mov dword [ebp - 0x134], 0xff6ec8c8
movss xmm0, dword [0x1013d8e0]
comiss xmm0, dword [ebp - 0x18]
mov esi, dword [ebp - 0x134]
jbe 0x10121ef0
mov dword [ebp - 0x134], 0xff1120c0
mov esi, dword [ebp - 0x134]
cmp byte [0x1019a5f4], 0
je 0x101221a8
cmp byte [0x1019a5d1], 0
jne 0x101221a8
cmp byte [0x1019a5d2], 0
jne 0x101221a8
movss xmm0, dword [ebp - 0x18]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x10121f56
push 0
lea eax, [ebp - 0x48]
push eax
push ecx
mov eax, esp
mov ecx, 0x10197a74
push 0xb
push 6
mov dword [eax], 0x7d000000
call fcn.10114730
push 0
lea eax, [ebp - 0x48]
mov ecx, 0x10197a74
push eax
push esi
push 0xa
push 5
call fcn.10114730
mov ecx, dword [0x1019511c]
mov eax, dword [0x1014a12c]
add ecx, 0xffffffc8
mov edx, dword [ebp - 0x12c]
xor ecx, 0x49524df1
cmp dword [ecx + eax], edx
jg 0x1012207f
lea edx, [ebp - 0x134]
mov dword [ebp - 0x134], 0x41544146
lea ecx, [ebp - 0x15c]
mov word [ebp - 0x130], 0x4c
call fcn.1002bf50
push 0
push eax
push ecx
mov eax, esp
mov byte [ebp - 4], 0xa
push 0x1f
push 6
mov ecx, 0x10197a74
mov dword [eax], 0x7d000000
call fcn.10114730
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x148]
cmp ecx, 0xf
jbe 0x10121ffb
mov edx, dword [ebp - 0x15c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10121ff1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10121ff1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.101241e7
add esp, 8
lea edx, [ebp - 0x134]
mov dword [ebp - 0x134], 0x41544146
lea ecx, [ebp - 0x15c]
mov word [ebp - 0x130], 0x4c
call fcn.1002bf50
push 0
push eax
push ecx
mov eax, esp
mov byte [ebp - 4], 0xb
push 0x1e
push 5
mov ecx, 0x10197a74
mov dword [eax], 0xff1120c0
call fcn.10114730
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x148]
cmp ecx, 0xf
jbe 0x101221a8
mov edx, dword [ebp - 0x15c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1012219e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1012219e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
cmp edx, 1
jle 0x101221a8
lea eax, [ebp - 0x78]
mov dword [ebp - 0x134], 0x6925202d
push eax
lea edx, [ebp - 0x134]
mov word [ebp - 0x130], 0x5048
lea ecx, [ebp - 0x15c]
mov byte [ebp - 0x12e], 0
call fcn.1004b5c0
add esp, 4
push 0
push eax
push ecx
mov eax, esp
mov byte [ebp - 4], 0xc
push 0x1f
push 5
mov ecx, 0x10197a74
mov dword [eax], 0x7d000000
call fcn.10114730
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x148]
cmp ecx, 0xf
jbe 0x10122118
mov edx, dword [ebp - 0x15c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1012210e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1012210e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.101241e7
add esp, 8
lea eax, [ebp - 0x78]
mov dword [ebp - 0x134], 0x6925202d
push eax
lea edx, [ebp - 0x134]
mov word [ebp - 0x130], 0x5048
lea ecx, [ebp - 0x15c]
mov byte [ebp - 0x12e], 0
call fcn.1004b5c0
add esp, 4
push 0
push eax
push ecx
mov eax, esp
mov byte [ebp - 4], 0xd
push 0x1e
push 6
mov ecx, 0x10197a74
mov dword [eax], 0xff98ffff
call fcn.10114730
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x148]
cmp ecx, 0xf
jbe 0x101221a8
mov edx, dword [ebp - 0x15c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1012219e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1012219e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.101241e7
add esp, 8
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x64]
cmp ecx, 0xf
jbe 0x101221dc
mov edx, dword [ebp - 0x78]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x101221d2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10122218
push ecx
push edx
call fcn.101241e7
add esp, 8
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0xf
mov byte [ebp - 0x78], 0
cmp ecx, 0xf
jbe 0x10122228
mov edx, dword [ebp - 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1012221e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1012221e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.101241e7
add esp, 8
xorps xmm1, xmm1
mov eax, dword [ebp - 0x168]
cmp dword [ebp - 0x16c], eax
je 0x101222d5
cmp byte [ebp - 0x141], 0
je 0x101222d5
movss xmm0, dword [ebp - 0x18]
comiss xmm0, xmm1
movss xmm0, dword [ebp - 0x160]
movss xmm1, dword [ebp - 0x164]
jbe 0x10122297
push 2
lea eax, [ebp - 0x90]
mov ecx, 0x10197a2c
push eax
push dword [0x1014a63c]
cvttss2si eax, xmm0
push eax
cvttss2si eax, xmm1
push eax
call fcn.10114730
movss xmm0, dword [ebp - 0x160]
movss xmm1, dword [ebp - 0x164]
mov ecx, dword [0x1014a12c]
test ecx, ecx
je 0x101222d5
mov eax, dword [0x10195110]
add eax, 0xffffffcb
xor eax, 0x49524dee
cmp dword [eax + ecx], 0
jne 0x101222d5
push 2
lea eax, [ebp - 0x30]
mov ecx, 0x10197a2c
push eax
cvttss2si eax, xmm0
push edi
add eax, dword [0x10197a34]
push eax
cvttss2si eax, xmm1
push eax
call fcn.10114730
mov ecx, dword [ebp - 0x4c]
cmp ecx, 0xf
jbe 0x10122305
mov edx, dword [ebp - 0x60]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x101222fb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10122370
push ecx
push edx
call fcn.101241e7
add esp, 8
mov ecx, dword [ebp - 0x1c]
cmp ecx, 0xf
jbe 0x10122335
mov edx, dword [ebp - 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1012232b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10122370
push ecx
push edx
call fcn.101241e7
add esp, 8
mov ecx, dword [ebp - 0x7c]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
cmp ecx, 0xf
jbe 0x10122380
mov edx, dword [ebp - 0x90]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10122376
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10122376
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.101241e7
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.10123d6c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret