Function at 0x140bf0a30
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], r9
push rbx
push rbp
push rsi
push rdi
push r14
push r15
mov eax, 0x28
call fcn.140cd95f0
sub rsp, rax
mov rbp, qword [rsp + 0x88]
mov r10, r9
mov r15, qword [rsp + 0x80]
mov rdi, r8
mov rsi, rdx
mov r14, rcx
mov ebx, dword [rbp]
test ebx, ebx
jns 0x140bf0a81
mov dword [rbp], 0xffffffff
add rsp, 0x28
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
cmp dword [rsp + 0x90], 0
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x20], r13
je 0x140bf0bb0
test ebx, ebx
je 0x140bf0ac6
nop dword [rax]
test rdi, rdi
je 0x140bf0ac6
movzx eax, byte [r14]
dec rdi
mov ecx, ebx
inc r14
xor byte [rcx + r15], al
movzx eax, byte [rcx + r15]
mov byte [rsi], al
inc rsi
inc ebx
and ebx, 0xf
jne 0x140bf0aa0
mov r9, qword [rsp + 0x98]
cmp rdi, 0x10
jb 0x140bf0b74
mov r12, rsi
mov r13, rdi
shr r13, 4
mov rbp, r14
imul rax, r13, 0xfffffffffffffff0
sub r12, r15
sub rbp, r15
add rdi, rax
mov rax, r13
shl rax, 4
add rsi, rax
mov qword [rsp + 0x68], rsi
add r14, rax
mov rsi, qword [rsp + 0x78]
nop dword [rax]
mov r8, rsi
mov rdx, r15
mov rcx, r15
call r9
cmp ebx, 0x10
jae 0x140bf0b4a
mov edx, reloc.WS2_32.dll_ntohs
mov ecx, ebx
sub edx, ebx
add rcx, r15
shr edx, 3
inc edx
mov rax, qword [rcx + rbp]
xor qword [rcx], rax
mov rax, qword [rcx]
mov qword [r12 + rcx], rax
lea rcx, [rcx + 8]
sub rdx, 1
jne 0x140bf0b32
mov r9, qword [rsp + 0x98]
add r12, 0x10
add rbp, 0x10
xor ebx, ebx
sub r13, 1
jne 0x140bf0b10
mov rsi, qword [rsp + 0x68]
mov r10, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x88]
test rdi, rdi
je 0x140bf0cbd
mov r8, r10
mov rdx, r15
mov rcx, r15
call r9
nop dword [rax]
mov ecx, ebx
inc ebx
movzx eax, byte [rcx + r14]
xor byte [r15 + rcx], al
movzx eax, byte [r15 + rcx]
mov byte [rsi + rcx], al
sub rdi, 1
jne 0x140bf0b90
jmp 0x140bf0cbd
test ebx, ebx
je 0x140bf0bdc
test rdi, rdi
je 0x140bf0bdc
movzx edx, byte [r14]
dec rdi
mov ecx, ebx
inc r14
movzx eax, dl
xor al, byte [rcx + r15]
mov byte [rsi], al
inc rsi
inc ebx
mov byte [rcx + r15], dl
and ebx, 0xf
jne 0x140bf0bb4
mov r13, qword [rsp + 0x98]
cmp rdi, 0x10
jb 0x140bf0c86
mov rbp, rdi
mov r12, rsi
shr rbp, 4
sub r12, r15
imul rax, rbp, 0xfffffffffffffff0
add rdi, rax
mov qword [rsp + 0x70], rdi
mov rdi, qword [rsp + 0x78]
nop dword [rax]
mov r8, rdi
mov rdx, r15
mov rcx, r15
call r13
cmp ebx, 0x10
jae 0x140bf0c60
mov r9d, reloc.WS2_32.dll_ntohs
mov r8d, ebx
sub r9d, ebx
mov r10, r14
shr r9d, 3
add r8, r15
sub r10, rsi
inc r9d
nop dword [rax]
lea rcx, [r12 + r8]
mov rdx, qword [rcx + r10]
lea r8, [r8 + 8]
mov rax, rdx
xor rax, qword [r8 - 8]
mov qword [rcx], rax
mov qword [r8 - 8], rdx
sub r9, 1
jne 0x140bf0c40
add rsi, 0x10
add r12, 0x10
add r14, 0x10
xor ebx, ebx
sub rbp, 1
jne 0x140bf0c10
mov rdi, qword [rsp + 0x70]
mov r10, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x88]
test rdi, rdi
je 0x140bf0cbd
mov r8, r10
mov rdx, r15
mov rcx, r15
call r13
nop word [rax + rax]
mov ecx, ebx
inc ebx
movzx edx, byte [rcx + r14]
movzx eax, dl
xor al, byte [rcx + r15]
mov byte [rsi + rcx], al
mov byte [rcx + r15], dl
sub rdi, 1
jne 0x140bf0ca0
mov dword [rbp], ebx
mov r12, qword [rsp + 0x60]
mov r13, qword [rsp + 0x20]
add rsp, 0x28
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret