Function at 0x1060a60
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [esp + 0x38]
xor ecx, ecx
test eax, eax
je 0x1060a93
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [eax + ecx], 0
lea ecx, [ecx + 2]
jne 0x1060a80
add ecx, 0xfffffffe
and ecx, 0xfffe
mov word [esp + 0x14], cx
mov edx, eax
test eax, eax
je 0x1060aa3
add ecx, 2
mov edx, ecx
mov edi, dword [esp + 0x44]
mov word [esp + 0x16], dx
mov dword [esp + 0x18], eax
mov dword [esp + 4], 0xbcbdbebf
xor eax, eax
nop
nop
nop
nop
nop
nop
mov ecx, eax
add cl, 0xa0
xor cl, byte [esp + eax + 4]
add cl, 0xe0
mov byte [esp + eax + 4], cl
inc eax
cmp eax, 4
jne 0x1060ac0
mov ebx, dword [esp + 4]
mov eax, dword [0xefa7f4]
test eax, eax
je 0x1060b2f
xor ecx, ecx
mov edx, dword [0xefa7f8]
nop
nop
nop
nop
nop
cmp dword [edx + ecx*8], 0xc0a4c970
je 0x1060b00
inc ecx
cmp eax, ecx
jne 0x1060af0
jmp 0x1060b2f
mov eax, dword [edx + ecx*8 + 4]
cmp eax, ebx
je 0x1060b2f
lea ecx, [esp + 0xc]
lea edx, [esp + 0x14]
push ecx
push 0
push 0
push 2
push edx
push dword [esp + 0x48]
push 0x18
push eax
push dword [0xefa7fc]
call fcn.0105c1a0
add esp, 0x24
mov ebx, eax
mov dword [esp + 4], 0xf18e8fa9
mov dword [esp + 8], 0
mov eax, 0x34bb96dd
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax - 0x34bb96d9]
xor ecx, eax
mov edx, ecx
and edx, 1
or ecx, 1
add ecx, edx
add cl, 0xae
mov byte [esp + eax - 0x34bb96d9], cl
inc eax
cmp eax, 0x34bb96e5
jne 0x1060b50
cmp ebx, dword [esp + 4]
jne 0x1060d09
push dword [esp + 0xc]
call fcn.01059030
add esp, 4
mov dword [esp], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 4], 0x23222122
mov dword [esp + 8], 0
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ebx, edx
or bl, 0xf8
xor bl, byte [esp + edx + 4]
add bl, 0x28
mov byte [esp + edx + 4], bl
mov esi, edx
and esi, 1
xor edx, 1
lea edx, [edx + esi*2]
cmp edx, 8
jb 0x1060bb0
mov edx, dword [esp + 4]
mov dword [esp + 0x10], 0xbcbdbebf
xor ebx, ebx
nop
nop
mov ecx, ebx
add cl, 0xa0
xor cl, byte [esp + ebx + 0x10]
add cl, 0xe0
mov byte [esp + ebx + 0x10], cl
inc ebx
cmp ebx, 4
jne 0x1060be0
mov ebx, dword [esp + 0x10]
mov ebp, dword [0xefa7f4]
test ebp, ebp
je 0x1060c54
mov ecx, edi
xor edi, edi
mov esi, dword [0xefa7f8]
nop
nop
cmp dword [esi + edi*8], 0xc0a4c970
je 0x1060c22
inc edi
cmp ebp, edi
jne 0x1060c10
mov edi, ecx
jmp 0x1060c54
mov ebp, dword [esi + edi*8 + 4]
cmp ebp, ebx
mov edi, ecx
je 0x1060c54
lea ecx, [esp + 0xc]
lea esi, [esp + 0x14]
push ecx
push eax
mov eax, dword [esp + 8]
push eax
push edx
push esi
push dword [esp + 0x48]
push 0x18
push ebp
push dword [0xefa7fc]
call fcn.0105c1a0
add esp, 0x24
mov ebx, eax
test ebx, ebx
mov edx, dword [esp + 0x40]
js 0x1060cfe
mov esi, dword [esp + 0x3c]
test esi, esi
je 0x1060c70
mov eax, dword [esp]
mov ecx, dword [eax + 4]
mov dword [esi], ecx
test edi, edi
je 0x1060cfe
test edx, edx
je 0x1060cf6
mov ebp, dword [edi]
mov eax, dword [esp]
mov ecx, dword [eax + 8]
cmp ebp, ecx
jb 0x1060c8a
mov ebp, ecx
mov eax, dword [esp]
lea esi, [eax + 0xc]
mov ecx, ebp
shr ecx, 2
mov edi, edx
xchg esi, esi
rep movsd dword es:[edi], dword [esi]
xchg esi, esi
mov ecx, ebp
and ecx, 0xfffffffc
add edx, ecx
add eax, ecx
add eax, 0xc
mov dword [esp + 0x1c], eax
mov esi, ebp
and esi, 3
mov ecx, esi
shr ecx, 1
mov edi, edx
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
mov eax, dword [esp + 0x1c]
mov ecx, ebp
xor ecx, 2
and ecx, esi
mov edi, dword [esp + 0x44]
je 0x1060cf6
mov esi, edx
and ebp, 2
movzx edx, byte [eax + ebp]
mov byte [esi + ebp], dl
cmp ecx, 1
je 0x1060cf6
movzx edx, byte [eax + ebp + 1]
mov byte [esi + ebp + 1], dl
cmp ecx, 2
je 0x1060cf6
movzx ecx, byte [eax + ebp + 2]
mov byte [esi + ebp + 2], cl
mov eax, dword [esp]
mov ecx, dword [eax + 8]
mov dword [edi], ecx
push dword [esp]
call fcn.01059070
add esp, 4
mov eax, ebx
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret