Function at 0x10160100
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]
push ebx
push esi
mov edx, dword [ecx]
mov esi, dword [ecx + 4]
mov ebx, dword [ecx + 0xc]
mov dword [ebp - 0x110], ecx
push edi
mov edi, dword [ecx + 8]
mov dword [ebp - 0x114], eax
mov eax, dword [ecx + 0x10]
mov ecx, dword [ecx + 0x14]
mov dword [ebp - 0x10c], ecx
mov dword [ebp - 0x70], ecx
mov ecx, dword [ebp - 0x110]
mov dword [ebp - 0x84], edx
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x7c], edi
mov ecx, dword [ecx + 0x18]
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x108], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], ecx
jle 0x1016046e
mov eax, dword [ebp - 0x114]
and eax, 0x8000007f
jns 0x10160182
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 - 0x118], eax
lea eax, [ebp - 0x68]
sub ebx, eax
jmp 0x101601a3
mov ebx, dword [ebp + 0xc]
movdqu xmm0, xmmword [ebp - 0x84]
mov dword [ebp - 0xec], ecx
xor edx, edx
movdqu xmmword [ebp - 0x104], xmm0
movq xmm0, qword [ebp - 0x74]
movq qword [ebp - 0xf4], xmm0
lea eax, [ebp - 0x68]
add eax, edx
mov ecx, dword [ebx + eax]
mov dword [ebp + edx - 0xe8], ecx
add edx, 4
mov dword [eax], ecx
cmp edx, 0x64
jl 0x101601c8
add ebx, 0x64
xor eax, eax
xor edi, edi
mov dword [ebp + 0xc], ebx
mov esi, 1
mov ebx, 0x1c
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x108], esi
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x114], eax
jle 0x10160303
jmp 0x10160220
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 0x10160270
mov ecx, dword [ebp - 0x11c]
mov eax, ecx
mov esi, dword [ebp - 0x108]
and eax, 0xf
cmp al, 0xf
jne 0x101602c9
mov eax, ecx
add esi, 2
and eax, 0x7f
mov dword [ebp - 0x108], esi
cmp al, 0x7f
jne 0x101602c1
mov ebx, 0x1c
jmp 0x101602cf
sub ebx, 0x1e004
jmp 0x101602cf
add ebx, 0x2000
mov eax, dword [ebp - 0x10c]
inc eax
mov dword [ebp - 0x10c], eax
cmp eax, 4
jne 0x101602f0
inc edi
xor eax, eax
cmp edi, 0x20
mov dword [ebp - 0x10c], eax
cmove edi, eax
inc ecx
mov dword [ebp - 0x11c], ecx
cmp ecx, dword [ebp - 0x114]
jl 0x10160220
mov ecx, dword [ebp - 0x118]
test ecx, ecx
jne 0x10160375
mov ecx, dword [ebp - 0x70]
xor ecx, dword [ebp - 0xf0]
mov edx, dword [ebp - 0x84]
mov esi, dword [ebp - 0x80]
mov edi, dword [ebp - 0x7c]
mov ebx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x74]
xor eax, dword [ebp - 0xf4]
xor edx, dword [ebp - 0x104]
xor esi, dword [ebp - 0x100]
xor edi, dword [ebp - 0xfc]
xor ebx, dword [ebp - 0xf8]
mov dword [ebp - 0x10c], ecx
mov dword [ebp - 0x70], ecx
mov ecx, dword [ebp - 0x6c]
xor ecx, dword [ebp - 0xec]
mov dword [ebp - 0x84], edx
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x108], eax
mov dword [ebp - 0x74], eax
jmp 0x10160462
lea esi, [ecx + 7]
mov edx, ecx
cmp edx, esi
jge 0x101603a8
mov edi, edi
mov ecx, edx
and ecx, 0x8000001f
jns 0x1016038f
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 0x10160380
mov ecx, dword [ebp - 0x118]
mov eax, ecx
and eax, 0x8000001f
jns 0x101603b6
dec eax
or eax, 0xffffffe0
inc eax
mov edx, dword [ebp + eax*4 - 0x104]
lea eax, [ecx + 1]
mov dword [ebp - 0x84], edx
and eax, 0x8000001f
jns 0x101603d2
dec eax
or eax, 0xffffffe0
inc eax
mov esi, dword [ebp + eax*4 - 0x104]
lea eax, [ecx + 2]
mov dword [ebp - 0x80], esi
and eax, 0x8000001f
jns 0x101603eb
dec eax
or eax, 0xffffffe0
inc eax
mov edi, dword [ebp + eax*4 - 0x104]
lea eax, [ecx + 3]
mov dword [ebp - 0x7c], edi
and eax, 0x8000001f
jns 0x10160404
dec eax
or eax, 0xffffffe0
inc eax
mov ebx, dword [ebp + eax*4 - 0x104]
lea eax, [ecx + 4]
mov dword [ebp - 0x78], ebx
and eax, 0x8000001f
jns 0x1016041d
dec eax
or eax, 0xffffffe0
inc eax
mov eax, dword [ebp + eax*4 - 0x104]
mov dword [ebp - 0x108], eax
mov dword [ebp - 0x74], eax
lea eax, [ecx + 5]
and eax, 0x8000001f
jns 0x1016043c
dec eax
or eax, 0xffffffe0
inc eax
mov eax, dword [ebp + eax*4 - 0x104]
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x70], eax
lea eax, [ecx + 6]
and eax, 0x8000001f
jns 0x1016045b
dec eax
or eax, 0xffffffe0
inc eax
mov ecx, dword [ebp + eax*4 - 0x104]
dec dword [ebp + 0x10]
mov dword [ebp - 0x6c], ecx
jne 0x101601a0
mov eax, dword [ebp - 0x110]
mov dword [eax], edx
mov edx, eax
mov eax, dword [ebp - 0x108]
mov dword [edx + 8], edi
mov dword [edx + 0x18], ecx
mov ecx, dword [ebp - 4]
pop edi
mov dword [edx + 4], esi
xor ecx, ebp
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 0x10c]
pop esi
mov dword [edx + 0xc], ebx
mov dword [edx + 0x14], eax
pop ebx
call fcn.101c6a5b
mov esp, ebp
pop ebp
ret