Function at 0x1001e167
Capabilities:
Encode data using xor

Disassembly:
push 0xbc
mov eax, 0x1006b4ac
call fcn.10035d00
mov esi, ecx
mov eax, dword [esi + 0x158]
cmp eax, dword [esi + 0x15c]
je 0x1001e6d4
mov eax, dword [esi + 0x15c]
xor edi, edi
sub eax, dword [esi + 0x158]
push 0x68
pop ecx
cdq
idiv ecx
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x44], ecx
test eax, eax
jle 0x1001e468
mov edi, dword [esi + 0x158]
mov ebx, dword [ebp + 8]
mov edx, dword [ebp - 0x30]
lea ecx, [edi + 0x18]
cmp dword [ecx], ebx
je 0x1001e1e0
push 0x68
pop eax
add ecx, eax
inc edx
mov eax, dword [esi + 0x15c]
sub eax, edi
mov dword [ebp - 0x30], edx
cdq
idiv dword [ebp - 0x44]
mov edx, dword [ebp - 0x30]
cmp edx, eax
jl 0x1001e1bb
jmp 0x1001e465
mov al, byte [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
imul ecx, edx, 0x68
mov edx, dword [ebp + 0x14]
sub ebx, edx
mov dword [ebp - 0x48], 4
mov dword [ebp - 0x78], ecx
mov byte [ecx + edi + 0x65], al
lea edi, [ecx + 0x58]
mov ecx, dword [esi + 0x158]
mov ax, word [ebx + edx]
mov word [edi + ecx - 8], ax
mov ecx, dword [esi + 0x158]
mov ax, word [edx]
add edx, 2
sub dword [ebp - 0x48], 1
mov word [edi + ecx], ax
lea edi, [edi + 2]
jne 0x1001e1ff
mov eax, dword [ebp + 8]
cmp eax, dword [esi + 0x140]
jne 0x1001e465
or dword [ebp - 0x7c], 0xffffffff
lea ebx, [esi + 0xb4]
and dword [ebp - 0x74], 0
lea eax, [esi + 0x84]
mov edi, dword [ebp - 0x30]
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x44], 4
mov ecx, dword [eax]
call fcn.1000bc9a
test al, al
je 0x1001e449
mov eax, dword [esi + 0x158]
mov ecx, dword [ebp - 0x78]
cmp byte [ecx + eax + 0x65], 2
jne 0x1001e2f7
movaps xmm0, xmmword [0x10080260]
xor ecx, ecx
movups xmmword [ebp - 0x70], xmm0
mov dword [ebp - 0x60], 0x1e180510
mov word [ebp - 0x5c], 0x2c1f
mov byte [ebp - 0x5a], 0
mov al, byte [ebp + ecx - 0x6f]
xor al, byte [ebp - 0x70]
mov byte [ebp + ecx - 0x6f], al
inc ecx
cmp ecx, 0x15
jb 0x1001e297
lea eax, [ebp - 0x6f]
mov byte [ebp - 0x5a], 0
push eax
lea ecx, [ebp - 0x98]
call fcn.1000289a
and dword [ebp - 4], 0
lea edx, [ebp - 0x98]
mov ecx, dword [esi + 0x7c]
call fcn.1000c3bb
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x98]
push 0
push 1
call fcn.1000274f
mov ecx, dword [esi + 0x7c]
mov edx, 0xff5cb9fe
call fcn.1000c401
mov eax, 0xff808080
mov dword [ebp - 0x7c], eax
jmp 0x1001e36e
mov dl, 0x70
mov dword [ebp - 0x40], 0x1e252b70
mov dword [ebp - 0x3c], 0x50021514
xor ecx, ecx
mov dword [ebp - 0x38], 0x2d091107
mov byte [ebp - 0x34], 0
xor byte [ebp + ecx - 0x3f], dl
inc ecx
cmp ecx, 0xb
jae 0x1001e323
mov dl, byte [ebp - 0x40]
jmp 0x1001e314
lea eax, [ebp - 0x3f]
mov byte [ebp - 0x34], 0
push eax
lea ecx, [ebp - 0x98]
call fcn.1000289a
mov dword [ebp - 4], 1
lea edx, [ebp - 0x98]
mov ecx, dword [esi + 0x7c]
call fcn.1000c3bb
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x98]
push 0
push 1
call fcn.1000274f
mov ecx, dword [esi + 0x7c]
mov edx, 0xffc4fc03
call fcn.1000c401
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebx - 4]
mov edx, eax
call fcn.1000c401
mov ebx, dword [ebp - 0x74]
mov edx, dword [esi + 0x158]
imul ecx, edi, 0x34
lea eax, [ebx + ecx]
add ebx, ecx
movzx eax, word [edx + eax*2 + 0x58]
xor ecx, ecx
push eax
movzx eax, word [edx + ebx*2 + 0x50]
mov dl, 7
push eax
mov dword [ebp - 0x54], 0x27632207
mov dword [ebp - 0x50], 0x63222728
mov byte [ebp - 0x4c], 0
xor byte [ebp + ecx - 0x53], dl
inc ecx
cmp ecx, 7
jae 0x1001e3ba
mov dl, byte [ebp - 0x54]
jmp 0x1001e3ab
sub esp, 0x18
mov byte [ebp - 0x4c], 0
lea eax, [ebp - 0x53]
mov ecx, esp
push eax
call fcn.1000289a
lea eax, [ebp - 0x70]
push eax
call fcn.10007288
add esp, 0x24
mov dword [ebp - 4], 2
cmp dword [eax + 0x14], 0x10
jb 0x1001e3e7
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x98]
call fcn.1000289a
mov ecx, dword [ebp - 0x48]
lea edx, [ebp - 0x98]
mov byte [ebp - 4], 3
mov ecx, dword [ecx]
call fcn.1000c3bb
push 0
push 1
lea ecx, [ebp - 0x98]
call fcn.1000274f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
push 0
push 1
call fcn.1000274f
mov eax, dword [esi + 0x158]
xorps xmm3, xmm3
xorps xmm2, xmm2
movzx eax, word [eax + ebx*2 + 0x50]
mov ebx, dword [ebp - 0x48]
movd xmm1, eax
mov ecx, dword [ebx + 4]
cvtdq2ps xmm1, xmm1
call fcn.1000c25e
mov eax, dword [ebp - 0x80]
add ebx, 0x14
inc dword [ebp - 0x74]
add eax, 4
sub dword [ebp - 0x44], 1
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x48], ebx
jne 0x1001e25a
push 0x68
pop ecx
mov eax, dword [esi + 0x144]
shl eax, 2
mov dword [ebp - 0x78], eax
lea edi, [eax - 4]
cmp edi, eax
jge 0x1001e6d4
imul ebx, edi, 0x68
lea eax, [esi + 0xc]
add eax, 0x18
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 0x15c]
sub eax, dword [esi + 0x158]
cdq
idiv ecx
dec eax
cmp edi, eax
jg 0x1001e6d4
mov eax, dword [esi + 0x158]
lea ecx, [ebp - 0x2c]
add eax, ebx
mov dword [ebp - 0x44], 0xffc4fc03
push eax
call fcn.1000237c
mov dword [ebp - 4], 4
xor ecx, ecx
mov eax, dword [esi + 0x158]
cmp byte [ebx + eax + 0x65], 2
jne 0x1001e51f
movaps xmm0, xmmword [0x10080a70]
movups xmmword [ebp - 0x70], xmm0
mov dword [ebp - 0x60], 0x415c495b
mov dword [ebp - 0x5c], 0x754647
mov al, byte [ebp + ecx - 0x6f]
xor al, byte [ebp - 0x70]
mov byte [ebp + ecx - 0x6f], al
inc ecx
cmp ecx, 0x16
jb 0x1001e4ea
lea eax, [ebp - 0x6f]
mov byte [ebp - 0x59], 0
push eax
call fcn.1000287d
pop ecx
push eax
lea eax, [ebp - 0x6f]
push eax
lea ecx, [ebp - 0x2c]
call fcn.10004efe
mov dword [ebp - 0x44], 0xff5cb9fe
jmp 0x1001e566
mov dl, 0x27
mov dword [ebp - 0x40], 0x727c0727
mov dword [ebp - 0x3c], 0x55424349
mov dword [ebp - 0x38], 0x5e465007
mov word [ebp - 0x34], 0x7a
xor byte [ebp + ecx - 0x3f], dl
inc ecx
cmp ecx, 0xc
jae 0x1001e54b
mov dl, byte [ebp - 0x40]
jmp 0x1001e53c
lea eax, [ebp - 0x3f]
mov byte [ebp - 0x33], 0
push eax
call fcn.1000287d
pop ecx
push eax
lea eax, [ebp - 0x3f]
push eax
lea ecx, [ebp - 0x2c]
call fcn.10004efe
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x98]
cmovae eax, dword [ebp - 0x2c]
push eax
call fcn.1000289a
mov ecx, dword [ebp - 0x30]
lea edx, [ebp - 0x98]
mov byte [ebp - 4], 5
mov ecx, dword [ecx]
call fcn.1000c3bb
push 0
push 1
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 4
call fcn.1000274f
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x44]
mov ecx, dword [eax]
call fcn.1000c401
mov ecx, dword [esi + 0x158]
movaps xmm0, xmmword [0x10080110]
movzx eax, byte [ebx + ecx + 0x64]
push eax
movzx eax, byte [ebx + ecx + 0x63]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x58], xmm0
mov al, byte [ebp + ecx - 0x57]
xor al, byte [ebp - 0x58]
mov byte [ebp + ecx - 0x57], al
inc ecx
cmp ecx, 0xe
jb 0x1001e5d0
sub esp, 0x18
mov byte [ebp - 0x49], 0
lea eax, [ebp - 0x57]
mov ecx, esp
push eax
call fcn.1000289a
lea eax, [ebp - 0xb0]
push eax
call fcn.10007288
add esp, 0x24
mov byte [ebp - 4], 6
cmp dword [eax + 0x14], 0x10
jb 0x1001e60e
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x98]
call fcn.1000289a
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x98]
mov byte [ebp - 4], 7
mov ecx, dword [eax - 4]
call fcn.1000c3bb
push 0
push 1
lea ecx, [ebp - 0x98]
call fcn.1000274f
push 0
push 1
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 4
call fcn.1000274f
mov eax, dword [esi + 0x158]
lea ecx, [ebp - 0xc8]
mov dx, word [eax + ebx + 0x60]
call fcn.1001a116
mov byte [ebp - 4], 8
cmp dword [eax + 0x14], 0x10
jb 0x1001e673
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0xb0]
call fcn.1000289a
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0xb0]
mov byte [ebp - 4], 9
mov ecx, dword [eax + 8]
call fcn.1000c3bb
push 0
push 1
lea ecx, [ebp - 0xb0]
call fcn.1000274f
push 0
push 1
lea ecx, [ebp - 0xc8]
call fcn.1000274f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
push 0
push 1
call fcn.1000274f
mov eax, dword [ebp - 0x30]
inc edi
push 0x68
pop ecx
add ebx, ecx
cmp edi, dword [ebp - 0x78]
jl 0x1001e485
call fcn.10035caa
ret 0x10