Function at 0x100ca620
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x1024b8c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x21c], eax
mov eax, dword [0x1025bce8]
mov dword [ebp - 0x220], ebx
push edi
mov edi, ecx
test al, 1
jne 0x100ca749
or eax, 1
cmp byte [0x10246b78], 0
mov dword [0x1025bce8], eax
je 0x100ca6c7
cmp byte [0x10246b79], 0
jne 0x100ca721
mov byte [0x10246b79], 1
xor esi, esi
nop
xor edx, edx
mov ebx, esi
xor edx, dword [0x10246bcc]
xor ebx, dword [0x10246bc8]
xor edx, 0xd28f2c5
xor ebx, 0x1de26cd5
mov ecx, edx
mov eax, ebx
shld ecx, eax, 0xd
shl eax, 0xd
xor edx, ecx
xor ebx, eax
mov dword [ebp - 0x228], edx
mov eax, ebx
shrd eax, edx, 7
xor al, bl
xor byte [esi + 0x10246b7a], al
inc esi
cmp esi, 0x4a
jb 0x100ca680
jmp 0x100ca71b
xor esi, esi
nop dword [eax]
xor edx, edx
mov ebx, esi
xor edx, dword [0x10246bcc]
xor ebx, dword [0x10246bc8]
xor edx, 0xd28f2c5
xor ebx, 0x1de26cd5
mov ecx, edx
mov eax, ebx
shld ecx, eax, 0xd
shl eax, 0xd
xor edx, ecx
xor ebx, eax
mov dword [ebp - 0x228], edx
mov eax, ebx
shrd eax, edx, 7
xor al, byte [esi + 0x10246b7a]
xor al, bl
mov byte [esi + 0x10246b7a], al
inc esi
cmp esi, 0x4a
jb 0x100ca6d0
mov ebx, dword [ebp - 0x220]
lea eax, [ebp - 0x221]
mov ecx, 0x1025bcd0
push eax
push 0x10246bc3
push 0x10246b7a
call fcn.1004f960
push 0x10164d80
call fcn.1010302d
add esp, 4
mov esi, dword [edi + 0xc]
cmp esi, dword [edi + 0x10]
je 0x100ca776
push 0xe960
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov ecx, esi
call fcn.100c9dd0
mov esi, dword [edi + 0xc]
lea eax, [esi + 0xe960]
mov dword [edi + 0xc], eax
jmp 0x100ca781
push esi
lea ecx, [edi + 8]
call fcn.100c96e0
mov esi, eax
push dword [0x1018c020]
call fcn.10064c30
fstp dword [esi + 0x14]
mov dword [esi + 0x18], 0
mov word [esi], 0
mov dword [esi + 8], 0xffffffff
mov eax, dword [ebx + 0x10]
mov dword [esi + 4], eax
movq xmm0, qword [0x1018c0f8]
movq qword [esi + 0x24], xmm0
mov eax, dword [0x1018c100]
mov dword [esi + 0x2c], eax
mov dword [esi + 0xc], 0xffffffff
mov eax, dword [ebx + 0x24]
mov dword [esi + 0x1c], eax
mov eax, dword [ebx + 8]
mov dword [esi + 0x10], eax
lea eax, [esi + 0x48]
push 0xe8b8
push dword [ebx + 0x2c]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov edi, dword [ebp - 0x21c]
add esp, 0x10
mov eax, dword [edi + 8]
lea ecx, [edi + 8]
call dword [eax + 0x28]
mov dword [esi + 0x20], eax
movq xmm0, qword [ebx + 0x30]
movq qword [esi + 0x3c], xmm0
mov eax, dword [ebx + 0x38]
mov dword [esi + 0x44], eax
test byte [0x10254734], 4
je 0x100cad30
push 0x158
lea eax, [ebp - 0x218]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [edi + 8]
lea ecx, [edi + 8]
add esp, 0xc
call dword [eax + 0x28]
mov ecx, dword [0x1024c6c0]
lea esi, [ebp - 0x218]
push esi
push eax
mov edx, dword [ecx]
mov eax, dword [edx + 0x20]
call eax
xorps xmm0, xmm0
mov dword [ebp - 0xc], 0
lea ecx, [ebp - 0x208]
mov dword [ebp - 8], 0
movups xmmword [ebp - 0x1c], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100ca865
sub ecx, edx
lea eax, [ebp - 0x208]
push ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.10043e70
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x34]
call fcn.10044dc0
mov ecx, dword [ebp - 8]
cmp ecx, 0xf
jbe 0x100ca8c0
mov edx, dword [ebp - 0x1c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100ca8b6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100ca8b6
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10102d1a
add esp, 8
mov edi, dword [ebp - 0x24]
cmp edi, 0x14
jbe 0x100ca958
cmp dword [ebp - 0x20], 0xf
lea esi, [edi - 0x14]
lea edx, [ebp - 0x34]
cmova edx, dword [ebp - 0x34]
sub edi, esi
add edx, 0x14
lea ecx, [edi - 0x13]
push ecx
lea eax, [edx + esi]
push eax
push edx
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov dword [ebp - 0x24], edi
lea eax, [ebp - 0x1c]
mov ecx, 0x102445a8
push eax
call fcn.1006d610
cmp dword [ebp - 8], 0xf
lea edx, [ebp - 0x1c]
cmova edx, dword [ebp - 0x1c]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100ca911
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x34]
call fcn.10046cb0
mov ecx, dword [ebp - 8]
cmp ecx, 0xf
jbe 0x100ca958
mov edx, dword [ebp - 0x1c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100ca94e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100cad20
push ecx
push edx
call fcn.10102d1a
add esp, 8
mov eax, dword [0x1024cf40]
test al, 1
jne 0x100ca977
mov ecx, dword [0x1024ceb4]
or eax, 1
mov dword [0x1024cf40], eax
mov dword [0x1024cf3c], ecx
jmp 0x100ca97d
mov ecx, dword [0x1024cf3c]
mov eax, dword [ebx + 0x2c]
sub esp, 8
mov esi, dword [ebp - 0x21c]
movss xmm0, dword [eax + 0x28]
subss xmm0, dword [esi + ecx]
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll_fabs
add esp, 4
fstp dword [ebp - 0x21c]
movss xmm0, dword [ebp - 0x21c]
movss dword [esp], xmm0
call fcn.10064c50
mov dword [ebp - 0x220], eax
add esp, 4
mov eax, dword [0x1024cf40]
test al, 1
jne 0x100ca9e3
mov ecx, dword [0x1024ceb4]
or eax, 1
mov dword [0x1024cf40], eax
mov dword [0x1024cf3c], ecx
jmp 0x100ca9e9
mov ecx, dword [0x1024cf3c]
mov eax, dword [ebx + 0x2c]
sub esp, 8
movss xmm0, dword [esi + ecx]
subss xmm0, dword [eax + 0x28]
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll_fabs
movss xmm0, dword [ebx + 0x24]
mulss xmm0, dword [0x101676a8]
push dword [ebx + 8]
fstp dword [ebp - 0x228]
cvttss2si eax, xmm0
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0xc0]
push eax
call fcn.100d8250
add esp, 0x10
mov dword [ebp - 0x158], 0x1016bff0
cmp dword [0x1025bce4], 0xf
lea ecx, [ebp - 0x108]
mov esi, 0x1025bcd0
mov edi, eax
cmova esi, dword [0x1025bcd0]
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 - 0x154]
push eax
lea ecx, [ebp - 0x158]
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 eax, dword [ebp - 0x158]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0x158], 0x1016bfec
mov eax, dword [ebp - 0x158]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0x15c], eax
lea ecx, [ebp - 0x154]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
lea eax, [ebp - 0xa0]
mov dword [ebp - 0x154], 0x1016bcd0
mov dword [ebp - 0xa8], eax
mov ecx, 7
mov dword [ebp - 0x11c], 0
lea eax, [ebp - 0x98]
mov dword [ebp - 0x118], 4
mov dword [ebp - 0xa4], 7
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 0x100caaf0
push dword [ebp - 0xa4]
mov dword [ebp - 0xc], 0x100745a0
lea eax, [ebp - 0x34]
push dword [ebp - 0xa8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x21c]
movq xmm0, qword [ebp - 0x10]
movq qword [ebp - 0xa0], xmm0
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], 0x100745a0
movq xmm0, qword [ebp - 0x10]
mov dword [ebp - 0x10], eax
lea eax, [ebx + 0xc]
movq qword [ebp - 0x94], xmm0
mov dword [ebp - 0xc], 0x100ad670
movq xmm0, qword [ebp - 0x10]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x220]
movq qword [ebp - 0x88], xmm0
mov dword [ebp - 0xc], 0x100ad670
movq xmm0, qword [ebp - 0x10]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x228]
movq qword [ebp - 0x7c], xmm0
mov dword [ebp - 0xc], 0x100ad670
movq xmm0, qword [ebp - 0x10]
mov dword [ebp - 0x10], eax
lea eax, [ebx + 0x10]
movq qword [ebp - 0x70], xmm0
mov dword [ebp - 0xc], 0x100c9bb0
movq xmm0, qword [ebp - 0x10]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x158]
movq qword [ebp - 0x64], xmm0
mov dword [ebp - 0xc], 0x100ad670
movq xmm0, qword [ebp - 0x10]
push esi
push eax
mov dword [ebp - 0x98], fcn.10074770
mov dword [ebp - 0x8c], fcn.10074770
mov dword [ebp - 0x80], 0x10074760
mov dword [ebp - 0x74], 0x10074760
mov dword [ebp - 0x68], 0x10074760
mov dword [ebp - 0x5c], 0x100c9dc0
movq qword [ebp - 0x58], xmm0
mov dword [ebp - 0x50], 0x10074760
call fcn.100797c0
add esp, 0x10
lea eax, [ebp - 0x4c]
lea ecx, [ebp - 0x158]
push eax
call fcn.1004dac0
mov eax, dword [ebp - 0x158]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0x158], 0x1016bfec
mov eax, dword [ebp - 0x158]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0x15c], eax
lea ecx, [ebp - 0x154]
call fcn.10045350
lea ecx, [ebp - 0x150]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x108]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov ecx, dword [ebp - 0xac]
cmp ecx, 0xf
jbe 0x100caca5
mov edx, dword [ebp - 0xc0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100cac9b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100cac9b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10102d1a
add esp, 8
mov ecx, dword [0x102576ac]
lea eax, [ebp - 0x4c]
push 1
push 0xffffffffffffffff
push eax
call fcn.100f2e90
mov ecx, dword [ebp - 0x38]
cmp ecx, 0xf
jbe 0x100cace8
mov edx, dword [ebp - 0x4c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100cacde
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100cad20
push ecx
push edx
call fcn.10102d1a
add esp, 8
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0xf
mov byte [ebp - 0x4c], 0
cmp ecx, 0xf
jbe 0x100cad30
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100cad26
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100cad26
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10102d1a
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10103042
mov esp, ebp
pop ebp
ret 8