Function at 0x10160940
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 edx, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x118], edx
mov dword [ebp - 0x110], ecx
mov eax, dword [edx]
mov dword [ebp - 0x84], eax
mov eax, dword [edx + 4]
mov dword [ebp - 0x80], eax
mov eax, dword [edx + 8]
mov dword [ebp - 0x7c], eax
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x78], eax
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x74], eax
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x70], eax
mov eax, dword [edx + 0x18]
mov dword [ebp - 0x6c], eax
mov eax, dword [edx + 0x1c]
mov dword [ebp - 0x68], eax
jle 0x10160c71
push ebx
mov eax, ecx
push esi
push edi
and eax, 0x8000007f
jns 0x101609b2
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 - 0x64]
sub ebx, eax
lea esp, [esp]
movdqu xmm0, xmmword [ebp - 0x84]
xor edx, edx
movdqu xmmword [ebp - 0x104], xmm0
movdqu xmm0, xmmword [ebp - 0x74]
movdqu xmmword [ebp - 0xf4], xmm0
nop
lea eax, [ebp - 0x64]
add eax, edx
mov ecx, dword [ebx + eax]
mov dword [ebp + edx - 0xe4], ecx
add edx, 4
mov dword [eax], ecx
cmp edx, 0x60
jl 0x101609f0
add ebx, 0x60
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 0x10160b23
jmp 0x10160a40
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 0x10160a90
mov ecx, dword [ebp - 0x114]
mov eax, ecx
mov esi, dword [ebp - 0x10c]
and eax, 0xf
cmp al, 0xf
jne 0x10160ae9
mov eax, ecx
add esi, 2
and eax, 0x7f
mov dword [ebp - 0x10c], esi
cmp al, 0x7f
jne 0x10160ae1
mov ebx, 0x1c
jmp 0x10160aef
sub ebx, 0x1e004
jmp 0x10160aef
add ebx, 0x2000
mov eax, dword [ebp - 0x108]
inc eax
mov dword [ebp - 0x108], eax
cmp eax, 4
jne 0x10160b10
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 0x10160a40
mov edi, dword [ebp - 0x11c]
test edi, edi
jne 0x10160b64
movdqu xmm0, xmmword [ebp - 0x84]
movdqu xmm1, xmmword [ebp - 0x104]
pxor xmm1, xmm0
movdqu xmm0, xmmword [ebp - 0x74]
movdqu xmmword [ebp - 0x84], xmm1
movdqu xmm1, xmmword [ebp - 0xf4]
pxor xmm1, xmm0
movdqu xmmword [ebp - 0x74], xmm1
jmp 0x10160c5c
lea esi, [edi + 8]
mov edx, edi
cmp edx, esi
jge 0x10160b92
lea ecx, [ecx]
mov ecx, edx
and ecx, 0x8000001f
jns 0x10160b7f
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 0x10160b70
mov eax, edi
and eax, 0x8000001f
jns 0x10160ba0
dec eax
or eax, 0xffffffe0
inc eax
mov eax, dword [ebp + eax*4 - 0x104]
mov dword [ebp - 0x84], eax
lea eax, [edi + 1]
and eax, 0x8000001f
jns 0x10160bbc
dec eax
or eax, 0xffffffe0
inc eax
mov eax, dword [ebp + eax*4 - 0x104]
mov dword [ebp - 0x80], eax
lea eax, [edi + 2]
and eax, 0x8000001f
jns 0x10160bd5
dec eax
or eax, 0xffffffe0
inc eax
mov eax, dword [ebp + eax*4 - 0x104]
mov dword [ebp - 0x7c], eax
lea eax, [edi + 3]
and eax, 0x8000001f
jns 0x10160bee
dec eax
or eax, 0xffffffe0
inc eax
mov eax, dword [ebp + eax*4 - 0x104]
mov dword [ebp - 0x78], eax
lea eax, [edi + 4]
and eax, 0x8000001f
jns 0x10160c07
dec eax
or eax, 0xffffffe0
inc eax
mov eax, dword [ebp + eax*4 - 0x104]
mov dword [ebp - 0x74], eax
lea eax, [edi + 5]
and eax, 0x8000001f
jns 0x10160c20
dec eax
or eax, 0xffffffe0
inc eax
mov eax, dword [ebp + eax*4 - 0x104]
mov dword [ebp - 0x70], eax
lea eax, [edi + 6]
and eax, 0x8000001f
jns 0x10160c39
dec eax
or eax, 0xffffffe0
inc eax
mov eax, dword [ebp + eax*4 - 0x104]
mov dword [ebp - 0x6c], eax
lea eax, [edi + 7]
and eax, 0x8000001f
jns 0x10160c52
dec eax
or eax, 0xffffffe0
inc eax
mov eax, dword [ebp + eax*4 - 0x104]
mov dword [ebp - 0x68], eax
dec dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
jne 0x101609d0
mov edx, dword [ebp - 0x118]
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 4]
mov dword [edx], eax
xor ecx, ebp
mov eax, dword [ebp - 0x80]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x7c]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x78]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 0x74]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 0x70]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 0x6c]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 0x68]
mov dword [edx + 0x1c], eax
call fcn.101c6a5b
mov esp, ebp
pop ebp
ret