Function at 0x10067d00
Capabilities:
Encode data using xor

Disassembly:
mov eax, 8
call fcn.10097eb0
cmp dword [esp + 0x24], 0
mov eax, dword [esp + 0x20]
mov eax, dword [eax]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x28]
push edi
mov edi, dword [esp + 0x24]
je 0x10067e13
test eax, eax
je 0x10067d60
jmp 0x10067d30
test edi, edi
je 0x10067d60
mov ebx, dword [esp + 0x1c]
movzx ecx, byte [ebx]
xor byte [eax + esi], cl
mov cl, byte [eax + esi]
mov edx, dword [esp + 0x20]
mov byte [edx], cl
add edx, 1
add ebx, 1
add eax, 1
sub edi, 1
and eax, 0xf
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], ebx
jne 0x10067d30
cmp edi, 0x10
jb 0x10067dc7
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov eax, edi
shr eax, 4
mov ebx, ecx
mov ebp, edx
mov dword [esp + 0x34], eax
shl eax, 4
add ecx, eax
sub ebx, esi
sub ebp, esi
add edx, eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], edx
lea ecx, [ecx]
mov edx, dword [esp + 0x28]
push edx
push esi
push esi
call dword [esp + 0x44]
add esp, 0xc
mov eax, esi
mov edx, 4
mov ecx, dword [eax + ebp]
xor dword [eax], ecx
mov ecx, dword [eax]
mov dword [ebx + eax], ecx
add eax, 4
sub edx, 1
jne 0x10067da5
sub edi, 0x10
add ebx, 0x10
add ebp, 0x10
sub dword [esp + 0x34], 1
jne 0x10067d90
xor ebx, ebx
test edi, edi
je 0x10067e05
mov edx, dword [esp + 0x28]
push edx
push esi
push esi
call dword [esp + 0x44]
mov ecx, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
add esp, 0xc
sub ecx, esi
mov eax, esi
sub ebp, esi
mov ebx, edi
jmp 0x10067df0
movzx edx, byte [eax + ecx]
xor byte [eax], dl
mov dl, byte [eax]
sub edi, 1
mov byte [eax + ebp], dl
add eax, 1
test edi, edi
jne 0x10067df0
mov eax, dword [esp + 0x30]
pop edi
pop esi
pop ebp
mov dword [eax], ebx
pop ebx
add esp, 8
ret
test eax, eax
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
je 0x10067e4a
nop
test edi, edi
je 0x10067e42
mov dl, byte [eax + esi]
mov cl, byte [ebx]
xor dl, cl
mov byte [ebp], dl
mov byte [eax + esi], cl
add eax, 1
add ebp, 1
add ebx, 1
sub edi, 1
and eax, 0xf
jne 0x10067e20
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], edi
cmp edi, 0x10
jb 0x10067ec3
mov eax, ebp
sub eax, esi
shr edi, 4
mov dword [esp + 0x34], eax
mov dword [esp + 0x14], edi
mov edi, edi
mov eax, dword [esp + 0x28]
push eax
push esi
push esi
call dword [esp + 0x44]
mov edi, ebx
add esp, 0xc
mov eax, esi
sub edi, ebp
mov dword [esp + 0x10], 4
lea esp, [esp]
mov ecx, dword [esp + 0x34]
mov ebx, dword [eax]
add ecx, eax
mov edx, dword [ecx + edi]
xor ebx, edx
mov dword [ecx], ebx
mov dword [eax], edx
mov ecx, 1
add eax, 4
sub dword [esp + 0x10], ecx
jne 0x10067e80
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x1c]
add dword [esp + 0x34], 0x10
sub edi, 0x10
add ebx, 0x10
add ebp, 0x10
sub dword [esp + 0x14], ecx
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ebx
jne 0x10067e60
xor eax, eax
test edi, edi
je 0x10067efd
mov edx, dword [esp + 0x28]
push edx
push esi
push esi
call dword [esp + 0x44]
add esp, 0xc
sub ebx, ebp
mov eax, esi
sub ebp, esi
mov dword [esp + 0x34], edi
mov dl, byte [eax]
lea esi, [eax + ebp]
mov cl, byte [esi + ebx]
xor dl, cl
mov byte [esi], dl
sub edi, 1
mov byte [eax], cl
add eax, 1
test edi, edi
jne 0x10067ee1
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
mov dword [ecx], eax
pop ebx
add esp, 8
ret