Function at 0x10065e80
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x3c
call fcn.10071fa0
mov eax, dword [0x100f51d4]
xor eax, esp
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x54]
push ebx
mov ebx, dword [esp + 0x44]
push ebp
mov ebp, dword [esp + 0x4c]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], edx
push esi
mov esi, dword [esp + 0x5c]
mov dword [esp + 0x14], esi
push edi
mov edi, dword [esp + 0x58]
cmp ebx, ebp
je 0x10065f39
mov ecx, esi
cmp edi, 0x10
jb 0x10065f1d
mov eax, edi
shr eax, 4
mov dword [esp + 0x14], eax
push dword [esp + 0x1c]
push ebp
push ebx
call edx
mov eax, dword [esi]
add esp, 0xc
xor dword [ebp], eax
sub edi, 0x10
mov eax, dword [esi + 4]
xor dword [ebp + 4], eax
mov eax, dword [esi + 8]
xor dword [ebp + 8], eax
mov eax, dword [esi + 0xc]
mov esi, ebx
xor dword [ebp + 0xc], eax
add ebx, 0x10
mov edx, dword [esp + 0x24]
add ebp, 0x10
sub dword [esp + 0x14], 1
jne 0x10065ed5
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x20], ebx
mov eax, dword [ecx]
mov dword [esi], eax
mov eax, dword [ecx + 4]
mov dword [esi + 4], eax
mov eax, dword [ecx + 8]
mov dword [esi + 8], eax
mov eax, dword [ecx + 0xc]
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0xc], eax
jmp 0x10065fac
cmp edi, 0x10
jb 0x10065fac
mov eax, edi
shr eax, 4
mov dword [esp + 0x14], eax
push ecx
lea eax, [esp + 0x3c]
push eax
push ebx
call edx
mov ecx, dword [ebx]
add esp, 0xc
mov eax, dword [esi]
sub edi, 0x10
xor eax, dword [esp + 0x38]
mov edx, dword [esp + 0x24]
mov dword [ebp], eax
mov eax, dword [esi + 4]
xor eax, dword [esp + 0x3c]
mov dword [esi], ecx
mov ecx, dword [ebx + 4]
mov dword [ebp + 4], eax
mov eax, dword [esi + 8]
xor eax, dword [esp + 0x40]
mov dword [esi + 4], ecx
mov ecx, dword [ebx + 8]
mov dword [ebp + 8], eax
mov eax, dword [esi + 0xc]
xor eax, dword [esp + 0x44]
mov dword [esi + 8], ecx
mov ecx, dword [ebx + 0xc]
add ebx, 0x10
mov dword [ebp + 0xc], eax
add ebp, 0x10
sub dword [esp + 0x14], 1
mov dword [esi + 0xc], ecx
mov ecx, dword [esp + 0x1c]
jne 0x10065f47
mov dword [esp + 0x20], ebx
test edi, edi
je 0x1006612e
lea edx, [esp + 0x38]
mov eax, esi
sub eax, edx
mov dword [esp + 0x28], eax
mov eax, 1
sub eax, edx
mov dword [esp + 0x2c], eax
mov eax, 2
sub eax, edx
mov dword [esp + 0x30], eax
mov eax, 3
sub eax, edx
mov dword [esp + 0x34], eax
mov eax, ebx
sub eax, edx
mov dword [esp + 0x14], eax
lea eax, [ebp + 2]
mov dword [esp + 0x10], eax
mov eax, edx
sub ebp, eax
push ecx
lea eax, [esp + 0x3c]
push eax
push ebx
call dword [esp + 0x30]
add esp, 0xc
xor eax, eax
cmp eax, edi
jae 0x100660d1
mov ecx, dword [esp + 0x14]
lea esi, [esp + 0x38]
mov ebx, dword [esp + 0x28]
add esi, eax
mov dl, byte [esi + ecx]
mov cl, byte [esi]
xor cl, byte [esi + ebx]
mov byte [esi + ebp], cl
mov ecx, ebx
mov ebx, dword [esp + 0x20]
mov byte [esi + ecx], dl
mov ecx, dword [esp + 0x2c]
add ecx, esi
cmp ecx, edi
jae 0x100660d0
mov cl, byte [esi + 1]
mov esi, dword [esp + 0x18]
mov dl, byte [ebx + eax + 1]
xor cl, byte [esi + eax + 1]
mov esi, dword [esp + 0x10]
mov byte [esi + eax - 1], cl
lea esi, [esp + 0x38]
mov ecx, dword [esp + 0x18]
add esi, eax
mov byte [ecx + eax + 1], dl
mov ecx, dword [esp + 0x30]
add ecx, esi
cmp ecx, edi
jae 0x100660cb
mov cl, byte [esi + 2]
mov esi, dword [esp + 0x18]
mov dl, byte [eax + ebx + 2]
xor cl, byte [esi + eax + 2]
mov esi, dword [esp + 0x10]
mov byte [esi + eax], cl
lea esi, [esp + 0x38]
mov ecx, dword [esp + 0x18]
add esi, eax
mov byte [ecx + eax + 2], dl
mov ecx, dword [esp + 0x34]
add ecx, esi
cmp ecx, edi
jae 0x100660c6
mov cl, byte [esi + 3]
mov esi, dword [esp + 0x18]
mov dl, byte [ebx + eax + 3]
xor cl, byte [esi + eax + 3]
mov esi, dword [esp + 0x10]
mov byte [esi + eax + 1], cl
mov esi, dword [esp + 0x18]
mov byte [esi + eax + 3], dl
add eax, 4
cmp eax, 0x10
jb 0x10066004
jmp 0x100660d1
add eax, 3
jmp 0x100660d1
add eax, 2
jmp 0x100660d1
inc eax
cmp edi, 0x10
jbe 0x1006610a
add dword [esp + 0x14], 0x10
add ebx, 0x10
add dword [esp + 0x10], 0x10
add ebp, 0x10
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x20], ebx
sub edi, 0x10
jne 0x10065ff4
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.10071699
add esp, 0x3c
ret
cmp eax, 0x10
jae 0x1006612e
mov ecx, dword [esp + 0x18]
sub ebx, ecx
lea edx, [ecx + eax]
mov ecx, 0x10
sub ecx, eax
nop
mov al, byte [ebx + edx]
lea edx, [edx + 1]
mov byte [edx - 1], al
sub ecx, 1
jne 0x10066120
mov ecx, dword [esp + 0x48]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10071699
add esp, 0x3c
ret