Function at 0x1001ade4
Capabilities:
Encode data using xor

Disassembly:
push 8
push 0xc0
mov eax, 0x1003633f
call fcn.10034614
mov esi, ecx
mov ecx, dword [esi + 0x158]
mov eax, dword [esi + 0x15c]
cmp ecx, eax
je 0x1001b30e
sub eax, ecx
and dword [ebp - 0x30], 0
push 0x68
pop edi
cdq
idiv edi
mov dword [ebp - 0x9c], edi
mov edx, eax
test edx, edx
jle 0x1001b0a7
mov edi, dword [ebx + 8]
lea eax, [ecx + 0x18]
cmp dword [eax], edi
je 0x1001ae41
inc dword [ebp - 0x30]
add eax, 0x68
cmp dword [ebp - 0x30], edx
jl 0x1001ae2d
jmp 0x1001b0a7
imul edi, dword [ebp - 0x30], 0x68
mov al, byte [ebx + 0xc]
mov edx, dword [ebx + 0x14]
mov dword [ebp - 0x34], 4
mov dword [ebp - 0x98], edi
mov byte [edi + ecx + 0x65], al
add edi, 0x58
mov eax, dword [ebx + 0x10]
sub eax, edx
mov dword [ebx + 0x10], eax
sub dword [ebp - 0x34], 1
movzx ecx, word [edx + eax]
mov eax, dword [esi + 0x158]
mov word [edi + eax - 8], cx
mov eax, dword [esi + 0x158]
movzx ecx, word [edx]
lea edx, [edx + 2]
mov word [edi + eax], cx
lea edi, [edi + 2]
mov eax, dword [ebx + 0x10]
jne 0x1001ae67
mov eax, dword [ebx + 8]
cmp eax, dword [esi + 0x140]
jne 0x1001b0a7
or dword [ebp - 0x78], 0xffffffff
lea eax, [esi + 0x84]
and dword [ebp - 0x34], 0
lea edi, [esi + 0xb4]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x48], 4
mov ecx, dword [eax]
call fcn.10009702
test al, al
je 0x1001b08e
mov eax, dword [esi + 0x158]
mov ecx, dword [ebp - 0x98]
cmp byte [ecx + eax + 0x65], 2
jne 0x1001af4e
movups xmm0, xmmword [0x1003e2e0]
mov dword [ebp - 0x60], 0x2c2a3722
xor ecx, ecx
mov word [ebp - 0x5c], 0x1e2d
movups xmmword [ebp - 0x70], xmm0
mov byte [ebp - 0x5a], 0
mov al, byte [ebp - 0x70]
xor byte [ebp + ecx - 0x6f], al
inc ecx
cmp ecx, 0x15
jb 0x1001aeff
lea eax, [ebp - 0x6f]
mov byte [ebp - 0x5a], 0
push eax
lea ecx, [ebp - 0x94]
call fcn.10002604
and dword [ebp - 4], 0
lea edx, [ebp - 0x94]
mov ecx, dword [esi + 0x7c]
call fcn.10009e29
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.10002410
mov dword [ebp - 0x78], 0xff808080
mov edx, 0xff5cb9fe
jmp 0x1001afb6
mov cl, 0x36
mov dword [ebp - 0x44], 0x58636d36
mov dword [ebp - 0x40], 0x16445352
xor eax, eax
mov dword [ebp - 0x3c], 0x6b4f5741
mov byte [ebp - 0x38], 0
xor byte [ebp + eax - 0x43], cl
inc eax
cmp eax, 0xb
jae 0x1001af7a
mov cl, byte [ebp - 0x44]
jmp 0x1001af6b
lea eax, [ebp - 0x43]
mov byte [ebp - 0x38], 0
push eax
lea ecx, [ebp - 0x94]
call fcn.10002604
mov dword [ebp - 4], 1
lea edx, [ebp - 0x94]
mov ecx, dword [esi + 0x7c]
call fcn.10009e29
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.10002410
mov edx, 0xffc4fc03
mov ecx, dword [esi + 0x7c]
call fcn.10009e6f
mov edx, dword [ebp - 0x78]
mov ecx, dword [edi - 4]
call fcn.10009e6f
imul edx, dword [ebp - 0x30], 0x34
mov eax, dword [esi + 0x158]
mov dword [ebp - 0x54], 0x4b0f4e6b
mov dword [ebp - 0x50], 0xf4e4b44
mov byte [ebp - 0x4c], 0
add edx, dword [ebp - 0x34]
mov dword [ebp - 0x74], edx
movzx ecx, word [eax + edx*2 + 0x58]
movzx eax, word [eax + edx*2 + 0x50]
push ecx
push eax
mov cl, 0x6b
xor eax, eax
xor byte [ebp + eax - 0x53], cl
inc eax
cmp eax, 7
jae 0x1001b00a
mov cl, byte [ebp - 0x54]
jmp 0x1001affb
sub esp, 0x18
mov byte [ebp - 0x4c], 0
lea eax, [ebp - 0x53]
mov ecx, esp
push eax
call fcn.10002604
lea eax, [ebp - 0x70]
push eax
call fcn.10004864
add esp, 0x24
mov dword [ebp - 4], 2
cmp dword [eax + 0x14], 0xf
jbe 0x1001b037
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x94]
call fcn.10002604
mov byte [ebp - 4], 3
lea edx, [ebp - 0x94]
mov ecx, dword [edi]
call fcn.10009e29
lea ecx, [ebp - 0x94]
call fcn.10002410
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.10002410
mov eax, dword [esi + 0x158]
xorps xmm3, xmm3
mov ecx, dword [ebp - 0x74]
xorps xmm2, xmm2
movzx eax, word [eax + ecx*2 + 0x50]
mov ecx, dword [edi + 4]
movd xmm1, eax
cvtdq2ps xmm1, xmm1
call fcn.10009cc7
mov eax, dword [ebp - 0x7c]
add edi, 0x14
inc dword [ebp - 0x34]
add eax, 4
sub dword [ebp - 0x48], 1
mov dword [ebp - 0x7c], eax
jne 0x1001aebf
mov eax, dword [esi + 0x144]
shl eax, 2
mov dword [ebp - 0x74], eax
lea edi, [eax - 4]
cmp edi, eax
jge 0x1001b30e
imul eax, edi, 0x68
mov dword [ebp - 0x30], eax
lea eax, [esi + 0xc]
mov ecx, dword [esi + 0x158]
add eax, 0x18
mov dword [ebp - 0x34], eax
mov eax, dword [esi + 0x15c]
sub eax, ecx
cdq
idiv dword [ebp - 0x9c]
dec eax
cmp edi, eax
jg 0x1001b30e
mov eax, dword [ebp - 0x30]
add eax, ecx
mov dword [ebp - 0x48], 0xffc4fc03
push eax
lea ecx, [ebp - 0x2c]
call fcn.10002277
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 4], 4
mov eax, dword [esi + 0x158]
cmp byte [ecx + eax + 0x65], 2
jne 0x1001b168
movups xmm0, xmmword [0x1003eb40]
mov dword [ebp - 0x60], 0x7a677260
xor ecx, ecx
mov dword [ebp - 0x5c], 0x4e7d7c
movups xmmword [ebp - 0x70], xmm0
mov al, byte [ebp - 0x70]
xor byte [ebp + ecx - 0x6f], al
inc ecx
cmp ecx, 0x16
jb 0x1001b132
lea ecx, [ebp - 0x6f]
mov byte [ebp - 0x59], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001b149
sub ecx, edx
lea eax, [ebp - 0x6f]
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.10007d00
mov dword [ebp - 0x48], 0xff5cb9fe
jmp 0x1001b1b6
mov cl, 0x62
mov dword [ebp - 0x44], 0x37394262
mov dword [ebp - 0x40], 0x1007060c
xor eax, eax
mov dword [ebp - 0x3c], 0x1b031542
mov word [ebp - 0x38], 0x3f
xor byte [ebp + eax - 0x43], cl
inc eax
cmp eax, 0xc
jae 0x1001b196
mov cl, byte [ebp - 0x44]
jmp 0x1001b187
lea ecx, [ebp - 0x43]
mov byte [ebp - 0x37], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001b1a0
sub ecx, edx
lea eax, [ebp - 0x43]
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.10007d00
cmp dword [ebp - 0x18], 0xf
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x94]
cmova eax, dword [ebp - 0x2c]
push eax
call fcn.10002604
mov ecx, dword [ebp - 0x34]
lea edx, [ebp - 0x94]
mov byte [ebp - 4], 5
mov ecx, dword [ecx]
call fcn.10009e29
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 4
call fcn.10002410
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x48]
mov ecx, dword [eax]
call fcn.10009e6f
mov eax, dword [esi + 0x158]
mov edx, dword [ebp - 0x30]
movups xmm0, xmmword [str..bKXKB]
movzx ecx, byte [eax + edx + 0x64]
movzx eax, byte [eax + edx + 0x63]
push ecx
push eax
movups xmmword [ebp - 0x58], xmm0
xor ecx, ecx
mov al, byte [ebp - 0x58]
xor byte [ebp + ecx - 0x57], al
inc ecx
cmp ecx, 0xe
jb 0x1001b21f
sub esp, 0x18
mov byte [ebp - 0x49], 0
lea eax, [ebp - 0x57]
mov ecx, esp
push eax
call fcn.10002604
lea eax, [ebp - 0xb8]
push eax
call fcn.10004864
add esp, 0x24
mov byte [ebp - 4], 6
cmp dword [eax + 0x14], 0xf
jbe 0x1001b259
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x94]
call fcn.10002604
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x94]
mov byte [ebp - 4], 7
mov ecx, dword [eax - 4]
call fcn.10009e29
lea ecx, [ebp - 0x94]
call fcn.10002410
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 4
call fcn.10002410
mov edx, dword [esi + 0x158]
lea ecx, [ebp - 0xd0]
add edx, dword [ebp - 0x30]
mov dx, word [edx + 0x60]
call fcn.100175e0
mov byte [ebp - 4], 8
cmp dword [eax + 0x14], 0xf
jbe 0x1001b2b8
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0xb8]
call fcn.10002604
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0xb8]
mov byte [ebp - 4], 9
mov ecx, dword [eax + 8]
call fcn.10009e29
lea ecx, [ebp - 0xb8]
call fcn.10002410
lea ecx, [ebp - 0xd0]
call fcn.10002410
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.10002410
push 0x68
pop eax
add dword [ebp - 0x30], eax
inc edi
mov eax, dword [ebp - 0x34]
cmp edi, dword [ebp - 0x74]
jl 0x1001b0c7
mov ecx, dword [ebp - 0x14]
call fcn.100345f2
ret 0x10