Function at 0x10161840
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x103c4120]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x10], 0
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x118], ecx
mov dword [ebp - 0x110], eax
movdqu xmm0, xmmword [ecx]
movdqu xmm1, xmmword [ecx + 0x10]
movdqu xmm2, xmmword [ecx + 0x20]
movdqu xmm3, xmmword [ecx + 0x30]
movdqu xmmword [ebp - 0x84], xmm0
movdqu xmmword [ebp - 0x74], xmm1
movdqu xmmword [ebp - 0x64], xmm2
movdqu xmmword [ebp - 0x54], xmm3
jle 0x10161ae6
push ebx
push esi
push edi
and eax, 0x8000007f
jns 0x101618a8
dec eax
or eax, 0xffffff80
inc eax
mov ebx, dword [ebp + 0xc]
shl eax, 3
cdq
and edx, 0x1f
add eax, edx
sar eax, 5
mov dword [ebp - 0x11c], eax
lea eax, [ebp - 0x44]
sub ebx, eax
movdqu xmmword [ebp - 0x104], xmm0
xor edx, edx
movdqu xmmword [ebp - 0xf4], xmm1
movdqu xmmword [ebp - 0xe4], xmm2
movdqu xmmword [ebp - 0xd4], xmm3
lea eax, [ebp - 0x44]
add eax, edx
mov ecx, dword [eax + ebx]
mov dword [ebp + edx - 0xc4], ecx
add edx, 4
mov dword [eax], ecx
cmp edx, 0x40
jl 0x101618e4
add ebx, 0x40
xor eax, eax
xor edi, edi
mov dword [ebp + 0xc], ebx
mov esi, 1
mov ebx, 0x1c
mov dword [ebp - 0x108], eax
mov dword [ebp - 0x10c], esi
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x110], eax
jle 0x10161a13
nop
mov edx, dword [ebp + edi*4 - 0x104]
mov ecx, 3
sub ecx, eax
mov eax, dword [ebp + edi*4 - 0x84]
shl ecx, 3
shr edx, cl
imul edx, esi
shr eax, cl
imul eax, esi
and edx, 0xff
add edx, 0x1000
and eax, 0xff
shl edx, 5
shl eax, 5
add edx, ebx
add eax, ebx
lea edx, [edx*4 + 0x102c0a50]
lea esi, [eax*4 + 0x102c0a50]
xor eax, eax
lea ecx, [ecx]
mov ecx, dword [esi]
lea esi, [esi + 4]
xor dword [ebp + eax - 0x84], ecx
lea edx, [edx + 4]
mov ecx, dword [edx - 4]
xor dword [ebp + eax - 0x104], ecx
add eax, 4
cmp eax, 0x80
jl 0x10161980
mov ecx, dword [ebp - 0x114]
mov eax, ecx
mov esi, dword [ebp - 0x10c]
and eax, 0xf
cmp al, 0xf
jne 0x101619d9
mov eax, ecx
add esi, 2
and eax, 0x7f
mov dword [ebp - 0x10c], esi
cmp al, 0x7f
jne 0x101619d1
mov ebx, 0x1c
jmp 0x101619df
sub ebx, 0x1e004
jmp 0x101619df
add ebx, 0x2000
mov eax, dword [ebp - 0x108]
inc eax
mov dword [ebp - 0x108], eax
cmp eax, 4
jne 0x10161a00
inc edi
xor eax, eax
cmp edi, 0x20
mov dword [ebp - 0x108], eax
cmove edi, eax
inc ecx
mov dword [ebp - 0x114], ecx
cmp ecx, dword [ebp - 0x110]
jl 0x10161930
mov edi, dword [ebp - 0x11c]
test edi, edi
jne 0x10161a62
xor eax, eax
nop
movdqu xmm0, xmmword [ebp + eax - 0x84]
movdqu xmm1, xmmword [ebp + eax - 0x104]
pxor xmm1, xmm0
movdqu xmmword [ebp + eax - 0x84], xmm1
movdqu xmm0, xmmword [ebp + eax - 0x74]
movdqu xmm1, xmmword [ebp + eax - 0xf4]
pxor xmm1, xmm0
movdqu xmmword [ebp + eax - 0x74], xmm1
add eax, 0x20
cmp eax, 0x40
jl 0x10161a20
jmp 0x10161ab9
lea esi, [edi + 0x10]
mov edx, edi
cmp edx, esi
jge 0x10161a92
jmp 0x10161a70
mov ecx, edx
and ecx, 0x8000001f
jns 0x10161a7f
dec ecx
or ecx, 0xffffffe0
inc ecx
mov eax, dword [ebp + ecx*4 - 0x84]
inc edx
xor dword [ebp + ecx*4 - 0x104], eax
cmp edx, esi
jl 0x10161a70
xor ecx, ecx
mov edx, edi
mov eax, edx
and eax, 0x8000001f
jns 0x10161aa4
dec eax
or eax, 0xffffffe0
inc eax
mov eax, dword [ebp + eax*4 - 0x104]
inc edx
mov dword [ebp + ecx*4 - 0x84], eax
inc ecx
cmp ecx, 0x10
jl 0x10161a96
dec dword [ebp + 0x10]
movdqu xmm3, xmmword [ebp - 0x54]
movdqu xmm2, xmmword [ebp - 0x64]
movdqu xmm1, xmmword [ebp - 0x74]
movdqu xmm0, xmmword [ebp - 0x84]
je 0x10161add
mov ebx, dword [ebp + 0xc]
jmp 0x101618c2
mov ecx, dword [ebp - 0x118]
pop edi
pop esi
pop ebx
movdqu xmmword [ecx], xmm0
movdqu xmmword [ecx + 0x10], xmm1
movdqu xmmword [ecx + 0x20], xmm2
movdqu xmmword [ecx + 0x30], xmm3
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101c6a5b
mov esp, ebp
pop ebp
ret