Function at 0x10161120
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 xmmword [ebp - 0x84], xmm0
movdqu xmmword [ebp - 0x74], xmm1
movdqu xmmword [ebp - 0x64], xmm2
jle 0x101613c1
push ebx
push esi
push edi
and eax, 0x8000007f
jns 0x1016117e
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 - 0x54]
sub ebx, eax
jmp 0x101611a0
movdqu xmmword [ebp - 0x104], xmm0
xor edx, edx
movdqu xmmword [ebp - 0xf4], xmm1
movdqu xmmword [ebp - 0xe4], xmm2
lea ebx, [ebx]
lea eax, [ebp - 0x54]
add eax, edx
mov ecx, dword [eax + ebx]
mov dword [ebp + edx - 0xd4], ecx
add edx, 4
mov dword [eax], ecx
cmp edx, 0x50
jl 0x101611c0
add ebx, 0x50
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 0x101612f3
jmp 0x10161210
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 0x10161260
mov ecx, dword [ebp - 0x114]
mov eax, ecx
mov esi, dword [ebp - 0x10c]
and eax, 0xf
cmp al, 0xf
jne 0x101612b9
mov eax, ecx
add esi, 2
and eax, 0x7f
mov dword [ebp - 0x10c], esi
cmp al, 0x7f
jne 0x101612b1
mov ebx, 0x1c
jmp 0x101612bf
sub ebx, 0x1e004
jmp 0x101612bf
add ebx, 0x2000
mov eax, dword [ebp - 0x108]
inc eax
mov dword [ebp - 0x108], eax
cmp eax, 4
jne 0x101612e0
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 0x10161210
mov edi, dword [ebp - 0x11c]
test edi, edi
jne 0x10161346
movdqu xmm0, xmmword [ebp - 0x84]
xor ecx, ecx
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
mov eax, dword [ebp + ecx - 0xe4]
xor dword [ebp + ecx - 0x64], eax
add ecx, 4
cmp ecx, 0x10
jl 0x10161331
jmp 0x10161399
lea esi, [edi + 0xc]
mov edx, edi
cmp edx, esi
jge 0x10161372
nop
mov ecx, edx
and ecx, 0x8000001f
jns 0x1016135f
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 0x10161350
xor ecx, ecx
mov edx, edi
mov eax, edx
and eax, 0x8000001f
jns 0x10161384
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, 0xc
jl 0x10161376
dec dword [ebp + 0x10]
movdqu xmm2, xmmword [ebp - 0x64]
movdqu xmm1, xmmword [ebp - 0x74]
movdqu xmm0, xmmword [ebp - 0x84]
je 0x101613b8
mov ebx, dword [ebp + 0xc]
jmp 0x101611a0
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
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101c6a5b
mov esp, ebp
pop ebp
ret