Function at 0x10060630
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x40
mov eax, dword [0x1010d170]
xor eax, esp
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], ecx
cmp esi, ebx
je 0x100606d3
mov ecx, dword [ebp + 0xc]
mov eax, edi
mov dword [esp + 0x10], eax
cmp ecx, 0x10
jb 0x100606b8
mov eax, ecx
shr eax, 4
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x2c]
push edx
push ebx
push esi
call dword [esp + 0x30]
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov eax, ebx
sub ecx, ebx
mov dword [esp + 0x18], 4
nop
mov edx, dword [ecx + eax]
xor dword [eax], edx
add eax, 4
sub dword [esp + 0x18], 1
jne 0x10060690
sub dword [ebp + 0xc], 0x10
mov dword [esp + 0x10], esi
add esi, 0x10
add ebx, 0x10
sub dword [esp + 0x14], 1
jne 0x10060671
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov dword [edi], ecx
mov edx, dword [eax + 4]
mov dword [edi + 4], edx
mov ecx, dword [eax + 8]
mov dword [edi + 8], ecx
mov edx, dword [eax + 0xc]
mov dword [edi + 0xc], edx
jmp 0x10060775
cmp dword [ebp + 0xc], 0x10
jb 0x10060775
lea ecx, [esp + 0x34]
mov eax, edi
sub eax, ecx
mov dword [esp + 0x1c], eax
mov eax, ebx
mov edx, ecx
sub eax, edx
mov dword [esp + 0x14], eax
mov eax, esi
sub eax, ecx
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
shr eax, 4
mov dword [esp + 0x20], eax
shl eax, 4
add ebx, eax
mov edx, dword [esp + 0x2c]
push edx
lea eax, [esp + 0x38]
push eax
push esi
call dword [esp + 0x30]
add esp, 0xc
xor eax, eax
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x10]
lea eax, [esp + eax + 0x34]
mov edx, dword [ecx + eax]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x28], edx
mov edx, dword [ecx + eax]
xor edx, dword [eax]
mov ecx, dword [esp + 0x14]
mov dword [ecx + eax], edx
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
mov dword [ecx + eax], edx
mov eax, dword [esp + 0x18]
add eax, 4
mov dword [esp + 0x18], eax
cmp eax, 0x10
jb 0x10060722
mov eax, 0x10
sub dword [ebp + 0xc], eax
add dword [esp + 0x10], eax
add dword [esp + 0x14], eax
add esi, eax
sub dword [esp + 0x20], 1
jne 0x1006070a
cmp dword [ebp + 0xc], 0
je 0x100608eb
lea edx, [esp + 0x34]
mov eax, edi
sub eax, edx
mov dword [esp + 0x1c], eax
mov ecx, edx
mov eax, 1
sub eax, ecx
mov dword [esp + 0x28], eax
mov eax, 2
sub eax, edx
mov dword [esp + 0x20], eax
mov eax, 3
sub eax, ecx
mov dword [esp + 0x30], eax
mov eax, ecx
lea edx, [ebx + 2]
sub ebx, eax
mov eax, esi
sub eax, ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x2c]
push edx
lea eax, [esp + 0x38]
push eax
push esi
call dword [esp + 0x30]
add esp, 0xc
xor eax, eax
cmp eax, dword [ebp + 0xc]
jae 0x1006089b
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
lea ecx, [esp + eax + 0x34]
movzx edx, byte [edx + ecx]
mov byte [esp + 0xf], dl
mov edx, dword [esp + 0x1c]
movzx edx, byte [edx + ecx]
xor dl, byte [ecx]
mov byte [ebx + ecx], dl
movzx edx, byte [esp + 0xf]
mov ebx, dword [esp + 0x1c]
mov byte [ebx + ecx], dl
mov edx, dword [esp + 0x28]
add edx, ecx
cmp edx, dword [ebp + 0xc]
jae 0x10060890
movzx edx, byte [esi + eax + 1]
mov ebx, dword [esp + 0x10]
mov byte [esp + 0xf], dl
movzx edx, byte [ecx + 1]
xor dl, byte [edi + eax + 1]
mov byte [ebx + eax - 1], dl
movzx edx, byte [esp + 0xf]
mov byte [edi + eax + 1], dl
mov edx, dword [esp + 0x20]
add edx, ecx
cmp edx, dword [ebp + 0xc]
jae 0x10060893
movzx edx, byte [esi + eax + 2]
mov byte [esp + 0xf], dl
movzx edx, byte [ecx + 2]
xor dl, byte [edi + eax + 2]
mov byte [ebx + eax], dl
movzx edx, byte [esp + 0xf]
mov byte [edi + eax + 2], dl
mov edx, dword [esp + 0x30]
add edx, ecx
cmp edx, dword [ebp + 0xc]
jae 0x10060898
mov cl, byte [ecx + 3]
xor cl, byte [edi + eax + 3]
mov dl, byte [esi + eax + 3]
mov byte [ebx + eax + 1], cl
mov byte [edi + eax + 3], dl
add eax, 4
cmp eax, 0x10
jb 0x100607d9
jmp 0x1006089b
inc eax
jmp 0x1006089b
add eax, 2
jmp 0x1006089b
add eax, 3
mov ecx, dword [ebp + 0xc]
mov edx, 0x10
cmp ecx, edx
jbe 0x100608d3
add dword [esp + 0x14], edx
add dword [esp + 0x18], edx
add dword [esp + 0x10], edx
sub ecx, edx
add esi, edx
mov dword [ebp + 0xc], ecx
test ecx, ecx
jne 0x100607c5
pop esi
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.100ae60d
mov esp, ebp
pop ebp
ret
cmp eax, edx
jae 0x100608eb
sub esi, edi
lea ecx, [edi + eax]
sub edx, eax
mov edi, edi
mov al, byte [esi + ecx]
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x100608e0
mov ecx, dword [esp + 0x44]
pop esi
pop ebx
xor ecx, esp
call fcn.100ae60d
mov esp, ebp
pop ebp
ret