Function at 0x10064160
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x103c4120]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 0x48], edi
cmp esi, 8
jge 0x10064196
pop edi
mov eax, 2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101c6a5b
mov esp, ebp
pop ebp
ret 4
cmp esi, 0x200
jg 0x1006417f
mov eax, esi
cdq
and edx, 7
add eax, edx
sar eax, 3
lea ecx, [eax*8]
cmp esi, ecx
jne 0x1006417f
mov dword [edi + 8], esi
xorps xmm0, xmm0
movdqu xmmword [edi + 0x10], xmm0
push ebx
lea ebx, [edi + 0x10]
movdqu xmmword [ebx + 0x10], xmm0
movdqu xmmword [ebx + 0x20], xmm0
movdqu xmmword [ebx + 0x30], xmm0
movdqu xmmword [ebx + 0x40], xmm0
movdqu xmmword [ebx + 0x50], xmm0
movdqu xmmword [ebx + 0x60], xmm0
movdqu xmmword [ebx + 0x70], xmm0
mov dword [ebx], eax
mov dword [edi + 0x14], 1
mov eax, dword [edi + 4]
mov dword [edi + 0x18], eax
mov eax, 0xa
mov dword [ebp - 0x4c], eax
lea ecx, [ecx]
cmp dword [edi + 4], 0
mov dword [ebp - 0x50], 0
jle 0x100643b3
add edi, 0x50
mov ecx, edi
mov edx, 4
jmp 0x10064220
mov eax, dword [ecx - 0x40]
lea ecx, [ecx + 0x10]
add dword [ecx - 0x10], eax
mov eax, dword [ecx - 0x4c]
add dword [ecx - 0xc], eax
mov eax, dword [ecx - 0x48]
add dword [ecx - 8], eax
mov eax, dword [ecx - 0x44]
add dword [ecx - 4], eax
dec edx
jne 0x10064220
mov esi, ebx
mov eax, dword [esi]
lea esi, [esi + 4]
mov ecx, edx
inc edx
xor ecx, 8
mov dword [ebp + ecx*4 - 0x44], eax
cmp edx, 0x10
jl 0x10064240
xor ecx, ecx
mov edx, ebx
jmp 0x10064260
mov eax, dword [ebp + ecx*4 - 0x44]
lea edx, [edx + 4]
rol eax, 7
inc ecx
mov dword [edx - 4], eax
cmp ecx, 0x10
jl 0x10064260
mov ecx, ebx
mov edx, 4
lea ebx, [ebx]
mov eax, dword [ecx + 0x40]
lea ecx, [ecx + 0x10]
xor dword [ecx - 0x10], eax
mov eax, dword [ecx + 0x34]
xor dword [ecx - 0xc], eax
mov eax, dword [ecx + 0x38]
xor dword [ecx - 8], eax
mov eax, dword [ecx + 0x3c]
xor dword [ecx - 4], eax
dec edx
jne 0x10064280
mov esi, edi
mov eax, dword [esi]
lea esi, [esi + 4]
mov ecx, edx
inc edx
xor ecx, 2
mov dword [ebp + ecx*4 - 0x44], eax
cmp edx, 0x10
jl 0x100642a0
movdqu xmm0, xmmword [ebp - 0x44]
mov ecx, edi
mov edx, 4
movdqu xmmword [edi], xmm0
movdqu xmm0, xmmword [ebp - 0x34]
movdqu xmmword [edi + 0x10], xmm0
movdqu xmm0, xmmword [ebp - 0x24]
movdqu xmmword [edi + 0x20], xmm0
movdqu xmm0, xmmword [ebp - 0x14]
movdqu xmmword [edi + 0x30], xmm0
mov eax, dword [ecx - 0x40]
lea ecx, [ecx + 0x10]
add dword [ecx - 0x10], eax
mov eax, dword [ecx - 0x4c]
add dword [ecx - 0xc], eax
mov eax, dword [ecx - 0x48]
add dword [ecx - 8], eax
mov eax, dword [ecx - 0x44]
add dword [ecx - 4], eax
dec edx
jne 0x100642e2
mov esi, ebx
mov eax, dword [esi]
lea esi, [esi + 4]
mov ecx, edx
inc edx
xor ecx, 4
mov dword [ebp + ecx*4 - 0x44], eax
cmp edx, 0x10
jl 0x10064302
xor ecx, ecx
mov edx, ebx
lea ebx, [ebx]
mov eax, dword [ebp + ecx*4 - 0x44]
lea edx, [edx + 4]
rol eax, 0xb
inc ecx
mov dword [edx - 4], eax
cmp ecx, 0x10
jl 0x10064320
mov eax, ebx
mov edx, 4
lea ebx, [ebx]
mov ecx, dword [eax + 0x40]
lea eax, [eax + 0x10]
xor dword [eax - 0x10], ecx
mov ecx, dword [eax + 0x34]
xor dword [eax - 0xc], ecx
mov ecx, dword [eax + 0x38]
xor dword [eax - 8], ecx
mov ecx, dword [eax + 0x3c]
xor dword [eax - 4], ecx
dec edx
jne 0x10064340
mov esi, edi
mov eax, dword [esi]
lea esi, [esi + 4]
mov ecx, edx
inc edx
xor ecx, 1
mov dword [ebp + ecx*4 - 0x44], eax
cmp edx, 0x10
jl 0x10064360
movdqu xmm0, xmmword [ebp - 0x44]
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x48]
inc eax
movdqu xmmword [edi], xmm0
mov dword [ebp - 0x50], eax
movdqu xmm0, xmmword [ebp - 0x34]
movdqu xmmword [edi + 0x10], xmm0
movdqu xmm0, xmmword [ebp - 0x24]
movdqu xmmword [edi + 0x20], xmm0
movdqu xmm0, xmmword [ebp - 0x14]
movdqu xmmword [edi + 0x30], xmm0
cmp eax, dword [ecx + 4]
jl 0x10064214
mov eax, dword [ebp - 0x4c]
mov edi, ecx
dec eax
mov dword [ebp - 0x4c], eax
jne 0x10064200
mov ecx, dword [ebp - 4]
xor eax, eax
pop ebx
mov dword [edi + 0xc], 0
xor ecx, ebp
pop edi
pop esi
call fcn.101c6a5b
mov esp, ebp
pop ebp
ret 4