Function at 0x10008090
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x40
mov eax, dword [ecx + 0x30]
mov ebx, ecx
movzx ecx, byte [ecx + 0x80]
mov esi, dword [ebp + 8]
mov edi, edx
test ecx, ecx
not eax
je 0x10008167
mov edx, 0x40
mov dword [esp + 0x10], ecx
mov dword [esp + 8], ebx
sub edx, ecx
mov ecx, esi
sub ecx, edx
jbe 0x100080e6
mov esi, ecx
mov ebx, dword [esp + 8]
shr ecx, 6
and esi, 0x3f
cmp esi, 1
sbb ecx, 0xffffffff
cmp ecx, eax
ja 0x10008182
mov esi, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
lea eax, [ebx + esi + 0x40]
mov ebx, ecx
sub ebx, edx
jae 0x1000819d
mov esi, dword [esp + 8]
test ecx, ecx
mov ebx, ecx
je 0x1000815c
xor ecx, ecx
cmp ebx, 8
jb 0x10008150
mov ecx, ebx
xor edx, edx
and ecx, 0xfffffff8
nop word cs:[eax + eax]
nop dword [eax]
movq xmm0, qword [edi + edx]
movq xmm1, qword [eax + edx]
pxor xmm1, xmm0
movq qword [edi + edx], xmm1
add edx, 8
cmp ecx, edx
jne 0x10008120
mov ebx, dword [ebp + 8]
cmp ecx, ebx
je 0x1000815c
nop word cs:[eax + eax]
nop dword [eax + eax]
movzx edx, byte [eax + ecx]
xor byte [edi + ecx], dl
inc ecx
cmp ebx, ecx
jne 0x10008150
add bl, byte [esp + 0x10]
mov edx, ebx
jmp 0x10008468
mov ecx, esi
xor edx, edx
and esi, 0x3f
setne dl
mov dword [esp + 0x10], ecx
shr ecx, 6
add edx, ecx
cmp edx, eax
jbe 0x1000822e
lea eax, [esp + 0xf]
push 0x1016e72c
push 0x1016e678
push eax
push 0x2b
push 0x1016e688
call fcn.100dc670
xor esi, 0x3f
mov dword [esp + 0x2c], ebx
cmp edx, esi
cmovb esi, edx
xor ecx, ecx
cmp esi, 0x10
jb 0x100081ea
inc esi
mov ebx, 0x10
mov ecx, esi
and ecx, 0xf
cmovne ebx, ecx
mov ecx, esi
sub ecx, ebx
xor ebx, ebx
nop word cs:[eax + eax]
nop
movdqu xmm0, xmmword [edi + ebx]
movdqu xmm1, xmmword [eax + ebx]
pxor xmm1, xmm0
movdqu xmmword [edi + ebx], xmm1
add ebx, 0x10
cmp ecx, ebx
jne 0x100081d0
lea esi, [edi + edx]
mov dword [esp + 0x28], esi
nop word cs:[eax + eax]
nop dword [eax + eax]
cmp edx, ecx
je 0x1000845c
movzx ebx, byte [eax + ecx]
xor byte [edi + ecx], bl
inc ecx
cmp edx, ecx
jne 0x10008200
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 8]
mov ecx, eax
mov esi, eax
mov dword [esp + 0x10], eax
shr ecx, 6
and esi, 0x3f
lea eax, [esp + 0x30]
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], ecx
push eax
push ebx
call fcn.10005230
add esp, 8
test esi, esi
mov edx, esi
mov esi, ebx
je 0x10008468
mov eax, dword [0x101010b8]
mov ecx, dword [esp + 0x10]
lea ebx, [esi + 0x40]
movzx eax, byte [eax]
and ecx, 0xffffffc0
cmp al, 1
jne 0x10008299
mov dword [esp + 0x10], ecx
mov ecx, esi
mov dword [esp + 8], esi
mov esi, edx
mov edx, ebx
call fcn.10005440
mov edx, esi
mov esi, dword [esp + 8]
mov ecx, dword [esp + 0x10]
add edi, ecx
xor eax, eax
cmp edx, 8
jae 0x10008400
jmp 0x1000847a
movdqu xmm4, xmmword [esi]
movdqu xmm2, xmmword [esi + 0x10]
movdqu xmm0, xmmword [esi + 0x30]
movdqu xmm7, xmmword [esi + 0x20]
mov eax, 0xa
movdqa xmm6, xmm4
movdqa xmm3, xmm2
movdqa xmm5, xmm0
movdqa xmmword [esp + 0x10], xmm7
nop word cs:[eax + eax]
nop dword [eax]
paddd xmm6, xmm3
dec eax
pxor xmm5, xmm6
movdqa xmm1, xmm5
pslld xmm5, 0x10
psrld xmm1, 0x10
por xmm5, xmm1
paddd xmm7, xmm5
pxor xmm3, xmm7
movdqa xmm1, xmm3
pslld xmm3, 0xc
psrld xmm1, 0x14
por xmm3, xmm1
paddd xmm6, xmm3
pxor xmm5, xmm6
pshufd xmm6, xmm6, 0x93
movdqa xmm1, xmm5
pslld xmm5, 8
psrld xmm1, 0x18
por xmm5, xmm1
paddd xmm7, xmm5
pshufd xmm5, xmm5, 0x4e
pxor xmm3, xmm7
pshufd xmm7, xmm7, 0x39
movdqa xmm1, xmm3
pslld xmm3, 7
psrld xmm1, 0x19
por xmm3, xmm1
paddd xmm6, xmm3
pxor xmm5, xmm6
movdqa xmm1, xmm5
pslld xmm5, 0x10
psrld xmm1, 0x10
por xmm5, xmm1
paddd xmm7, xmm5
pxor xmm3, xmm7
movdqa xmm1, xmm3
pslld xmm3, 0xc
psrld xmm1, 0x14
por xmm3, xmm1
paddd xmm6, xmm3
pxor xmm5, xmm6
pshufd xmm6, xmm6, 0x39
movdqa xmm1, xmm5
pslld xmm5, 8
psrld xmm1, 0x18
por xmm5, xmm1
paddd xmm7, xmm5
pshufd xmm5, xmm5, 0x4e
pxor xmm3, xmm7
pshufd xmm7, xmm7, 0x93
movdqa xmm1, xmm3
pslld xmm3, 7
psrld xmm1, 0x19
por xmm3, xmm1
jne 0x100082d0
paddd xmm7, xmmword [esp + 0x10]
movd eax, xmm0
paddd xmm6, xmm4
paddd xmm3, xmm2
paddd xmm5, xmm0
inc eax
movdqu xmmword [esi + 0x40], xmm6
movdqu xmmword [esi + 0x50], xmm3
movdqu xmmword [esi + 0x60], xmm7
movdqu xmmword [esi + 0x70], xmm5
mov dword [esi + 0x30], eax
add edi, ecx
xor eax, eax
cmp edx, 8
jb 0x1000847a
xor eax, eax
cmp edx, 0x20
jb 0x10008439
movdqu xmm0, xmmword [edi]
movdqu xmm2, xmmword [esi + 0x40]
movdqu xmm1, xmmword [edi + 0x10]
movdqu xmm3, xmmword [esi + 0x50]
mov eax, edx
and eax, 0xffffffe0
cmp edx, eax
pxor xmm2, xmm0
pxor xmm3, xmm1
movdqu xmmword [edi], xmm2
movdqu xmmword [edi + 0x10], xmm3
je 0x10008468
test dl, 0x18
je 0x1000847a
mov ecx, eax
mov eax, edx
and eax, 0xfffffff8
movq xmm0, qword [edi + ecx]
movq xmm1, qword [ebx + ecx]
pxor xmm1, xmm0
movq qword [edi + ecx], xmm1
add ecx, 8
cmp eax, ecx
jne 0x10008440
jmp 0x10008476
push 0x1016e6b4
push edx
push edx
call fcn.100dc320
mov byte [esi + 0x80], dl
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
cmp edx, eax
je 0x10008468
movzx ecx, byte [ebx + eax]
xor byte [edi + eax], cl
inc eax
jmp 0x10008476