Function at 0x1002daf0
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 0x103147c3
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x68
mov eax, dword [0x1043900c]
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 - 0x4c], 0
mov eax, dword [0x1060b5e0]
mov ecx, dword [0x1060b508]
mov dword [ebp - 0x5c], ecx
mov eax, dword [eax + 0xaa8]
mov dword [ebp - 0x58], eax
test eax, eax
jne 0x1002db5a
call fcn.1002e840
jmp 0x1002dcc1
mov eax, dword fs:[0x2c]
mov ecx, dword [0x104c14e0]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x10611928]
cmp eax, dword [ecx + 4]
jg 0x1002dcdf
mov eax, dword [0x10611714]
mov esi, dword [ebp - 0x58]
mov esi, dword [eax + esi]
mov eax, 0x1b4e81b5
imul esi
mov ecx, esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x96
sub ecx, eax
mov eax, dword [0x1060b5e0]
lea edi, [ecx + ecx*2]
shl edi, 5
lea ecx, [ebp - 0x68]
add edi, dword [ebp - 0x5c]
push ecx
mov dword [edi], esi
mov ecx, dword [eax + 0xaa8]
call fcn.100cc7d0
mov ecx, dword [eax]
mov dword [edi + 4], ecx
mov ecx, dword [eax + 4]
mov dword [edi + 8], ecx
mov ecx, dword [0x1060b5e0]
mov eax, dword [eax + 8]
mov dword [edi + 0xc], eax
mov ecx, dword [ecx + 0xaa8]
call fcn.100ccb70
mov ecx, dword [eax]
mov dword [edi + 0x10], ecx
mov ecx, dword [eax + 4]
mov dword [edi + 0x14], ecx
lea ecx, [ebp - 0x74]
mov eax, dword [eax + 8]
mov dword [edi + 0x18], eax
mov eax, dword [0x1060b5e0]
push ecx
mov ecx, dword [eax + 0xaa8]
call fcn.100ccf00
mov ecx, dword [eax]
mov dword [edi + 0x28], ecx
mov ecx, dword [eax + 4]
mov dword [edi + 0x2c], ecx
mov ecx, dword [0x1060b5e0]
mov eax, dword [eax + 8]
mov dword [edi + 0x30], eax
mov ecx, dword [ecx + 0xaa8]
call fcn.100c3af0
mov ecx, dword [eax]
mov dword [edi + 0x28], ecx
mov ecx, dword [eax + 4]
mov dword [edi + 0x2c], ecx
mov eax, dword [eax + 8]
mov dword [edi + 0x30], eax
mov eax, dword [0x1060b5e0]
mov ecx, dword [eax + 0xaa8]
mov eax, dword [ecx + 0x114]
mov dword [edi + 0x40], eax
mov eax, dword [ecx + 0x118]
mov dword [edi + 0x44], eax
mov eax, dword [ecx + 0x11c]
mov dword [edi + 0x48], eax
call fcn.100c5050
mov ecx, dword [0x1060b5e0]
mov eax, dword [eax]
mov dword [edi + 0x4c], eax
mov ecx, dword [ecx + 0xaa8]
call fcn.100c4200
mov ecx, dword [0x1060b5e0]
mov eax, dword [eax]
mov dword [edi + 0x50], eax
mov ecx, dword [ecx + 0xaa8]
call fcn.100c9370
mov ecx, dword [0x1060b5e0]
mov eax, dword [eax]
mov dword [edi + 0x54], eax
mov ecx, dword [ecx + 0xaa8]
call fcn.100c3e80
mov eax, dword [eax]
mov ecx, dword [0x1060b5e0]
mov dword [edi + 0x58], eax
mov ecx, dword [ecx + 0xaa8]
call fcn.100c5b00
mov eax, dword [eax]
mov dword [edi + 0x5c], eax
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.102bb91c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0x10611928
call fcn.102bba07
add esp, 4
cmp dword [0x10611928], 0xffffffff
jne 0x1002db7a
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x44]
xorps xmm0, xmm0
mov dword [ebp - 0x34], 0
movups xmmword [ebp - 0x44], xmm0
push 0xd
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
mov dword [ebp - 0x4c], 1
call fcn.1001a120
mov esi, 0x103f6288
jmp 0x1002dd31
mov al, byte [esi]
lea ecx, [ebp - 0x44]
xor al, 0xa5
mov byte [ebp - 0x48], al
push dword [ebp - 0x48]
call fcn.1001a280
add esi, 2
cmp esi, 0x103f629e
jne 0x1002dd31
cmp dword [ebp - 0x30], 0x10
lea eax, [ebp - 0x44]
mov edi, dword [ebp - 0x44]
mov esi, dword [ebp - 0x34]
cmovae eax, edi
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], eax
test esi, esi
je 0x1002de22
push esi
push 0
push eax
call sub.VCRUNTIME140.dll_memchr
mov edx, eax
add esp, 0xc
test edx, edx
je 0x1002de22
sub edx, dword [ebp - 0x48]
cmp edx, 0xffffffff
je 0x1002de22
jmp 0x1002dd90
cmp dword [ebp - 0x30], 0x10
lea eax, [ebp - 0x44]
cmovae eax, edi
setae cl
add edx, eax
lea eax, [ebp - 0x44]
test cl, cl
je 0x1002ddbb
sub edx, edi
mov eax, esi
sub eax, edx
mov edi, 1
cmp eax, edi
cmovb edi, eax
mov eax, dword [ebp - 0x4c]
jmp 0x1002ddd0
sub edx, eax
mov edi, 1
mov eax, esi
sub eax, edx
cmp eax, edi
cmovb edi, eax
lea eax, [ebp - 0x44]
jmp 0x1002ddd0
lea ecx, [eax + edx]
sub esi, edi
mov eax, esi
sub eax, edx
inc eax
push eax
lea eax, [ecx + edi]
push eax
push ecx
call sub.VCRUNTIME140.dll_memmove
mov edi, dword [ebp - 0x44]
lea eax, [ebp - 0x44]
add esp, 0xc
mov dword [ebp - 0x34], esi
cmp dword [ebp - 0x30], 0x10
mov dword [ebp - 0x4c], edi
cmovae eax, edi
mov dword [ebp - 0x48], eax
test esi, esi
je 0x1002de22
push esi
push 0
push eax
call sub.VCRUNTIME140.dll_memchr
mov edx, eax
add esp, 0xc
test edx, edx
je 0x1002de22
sub edx, dword [ebp - 0x48]
cmp edx, 0xffffffff
jne 0x1002dd90
jmp 0x1002de22
cmp dword [ebp - 0x30], 0x10
lea eax, [ebp - 0x44]
cmovae eax, edi
mov dword [ebp - 0x54], eax
mov byte [ebp - 4], 2
xorps xmm0, xmm0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0
mov esi, 0x103f6844
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
mov dword [ebp - 0x4c], 3
jmp 0x1002de60
mov al, byte [esi]
lea ecx, [ebp - 0x2c]
xor al, 0xa5
mov byte [ebp - 0x48], al
push dword [ebp - 0x48]
call fcn.1001a280
add esi, 2
cmp esi, 0x103f685e
jne 0x1002de60
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
mov edi, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x1c]
cmovae eax, edi
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x50], eax
test esi, esi
je 0x1002df52
push esi
push 0
push eax
call sub.VCRUNTIME140.dll_memchr
mov edx, eax
add esp, 0xc
test edx, edx
je 0x1002df52
sub edx, dword [ebp - 0x50]
cmp edx, 0xffffffff
je 0x1002df52
jmp 0x1002dec0
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
cmovae eax, edi
setae cl
add edx, eax
lea eax, [ebp - 0x2c]
test cl, cl
je 0x1002deeb
sub edx, edi
mov eax, esi
sub eax, edx
mov edi, 1
cmp eax, edi
cmovb edi, eax
mov eax, dword [ebp - 0x48]
jmp 0x1002df00
sub edx, eax
mov edi, 1
mov eax, esi
sub eax, edx
cmp eax, edi
cmovb edi, eax
lea eax, [ebp - 0x2c]
jmp 0x1002df00
lea ecx, [eax + edx]
sub esi, edi
mov eax, esi
sub eax, edx
inc eax
push eax
lea eax, [ecx + edi]
push eax
push ecx
call sub.VCRUNTIME140.dll_memmove
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x2c]
add esp, 0xc
mov dword [ebp - 0x1c], esi
cmp dword [ebp - 0x18], 0x10
mov dword [ebp - 0x48], edi
cmovae eax, edi
mov dword [ebp - 0x50], eax
test esi, esi
je 0x1002df52
push esi
push 0
push eax
call sub.VCRUNTIME140.dll_memchr
mov edx, eax
add esp, 0xc
test edx, edx
je 0x1002df52
sub edx, dword [ebp - 0x50]
cmp edx, 0xffffffff
jne 0x1002dec0
jmp 0x1002df52
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
push 0
push dword [ebp - 0x54]
cmovae eax, edi
push eax
call fcn.10171b70
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x18]
mov dword [0x10611714], eax
cmp ecx, 0x10
jb 0x1002dfa4
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1002df98
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002dfe2
jmp 0x1002df98
push ecx
push edx
call fcn.102bb95a
add esp, 8
jmp 0x1002dfa4
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
cmp ecx, 0x10
jb 0x1002dff4
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1002dfe8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1002dfe8
jmp 0x1002dfe2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.102bb95a
add esp, 8
jmp 0x1002dff4
push 0x10611928
mov dword [ebp - 4], 0xffffffff
call fcn.102bb9b6
add esp, 4
jmp 0x1002db7a