Function at 0x1400c6720
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x60
cmp qword [rdx + 0x40], 0
mov rdi, rdx
mov rsi, rcx
je 0x1400c6ad1
mov ebx, dword [rdx + 0x1c]
test ebx, ebx
je 0x1400c6ad1
cmp dword [rsi + 0x3c], 0
mov ecx, ebx
je 0x1400c6775
mov rcx, qword [rsi + 0x28]
mov r8d, reloc.WS2_32.dll_recv
mov rdx, qword [rsi + 8]
mov rax, qword [rcx + 0x50]
mov rcx, qword [rcx + 0x58]
call qword [rax + 0x20]
test eax, eax
jne 0x1400c6ad1
mov dword [rsi + 0x3c], eax
mov ebx, dword [rdi + 0x1c]
mov ecx, ebx
mov qword [rsp + 0x80], rbp
lea r11, [0x140252a20]
mov qword [rsp + 0x58], r12
mov r8d, 2
mov qword [rsp + 0x50], r13
lea r12, [0x14024c050]
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r15
mov r15d, dword [rdi + 0x10]
lea r13d, [r15 + r15]
lea eax, [r13 + 3]
cmp ecx, eax
jne 0x1400c6826
mov rbp, qword [rdi + 0x40]
mov edx, r8d
test rbp, rbp
je 0x1400c6826
mov r9, rbp
mov r10, r11
nop word [rax + rax]
movzx eax, byte [r9]
dec edx
test al, al
je 0x1400c67f7
mov ecx, eax
movzx eax, byte [r10]
movzx eax, byte [rax + r12]
cmp byte [rcx + r12], al
jne 0x1400c67f7
inc r9
inc r10
test edx, edx
jg 0x1400c67d0
dec edx
test edx, edx
js 0x1400c6811
movzx eax, byte [r10]
movzx edx, byte [rax + r12]
movzx eax, byte [r9]
movzx ecx, byte [rax + r12]
cmp ecx, edx
jne 0x1400c6826
mov r8, qword [rdi + 0x30]
lea edx, [rbx - 3]
lea rcx, [rbp + 2]
call fcn.1400764e0
jmp 0x1400c68e8
mov r14d, dword [rsi]
lea eax, [r14 + r15]
lea eax, [rax*2 + 3]
cmp ebx, eax
jne 0x1400c68b7
mov r10, qword [rdi + 0x40]
test r10, r10
je 0x1400c68b7
mov r9, r10
movzx eax, byte [r9]
dec r8d
test al, al
je 0x1400c686e
mov ecx, eax
movzx eax, byte [r11]
movzx eax, byte [rax + r12]
cmp byte [rcx + r12], al
jne 0x1400c686e
inc r9
inc r11
test r8d, r8d
jg 0x1400c6844
dec r8d
test r8d, r8d
js 0x1400c688a
movzx eax, byte [r11]
movzx r8d, byte [rax + r12]
movzx eax, byte [r9]
movzx ecx, byte [rax + r12]
cmp ecx, r8d
jne 0x1400c68b7
mov r8, qword [rdi + 0x30]
lea rbx, [r10 + 2]
mov rcx, rbx
mov edx, r13d
call fcn.1400764e0
mov eax, dword [rdi + 0x10]
mov edx, dword [rsi]
add eax, eax
mov r8, qword [rsi + 8]
add edx, edx
movsxd rcx, eax
add rcx, rbx
call fcn.1400764e0
jmp 0x1400c68e8
mov rax, qword [rdi + 0x30]
mov r8d, ebx
mov r10, qword [rdi + 0x50]
mov r9, qword [rsi + 8]
mov rdx, qword [rdi + 0x40]
mov rcx, qword [rdi + 0x58]
mov qword [rsp + 0x38], rax
mov eax, dword [rdi + 8]
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], r14d
call qword [r10 + 0x30]
mov ebp, dword [rsi]
mov ebx, dword [rdi + 0x10]
mov edx, dword [rdi + 0x28]
mov rcx, qword [rdi + 0x48]
mov r13, qword [rsi + 8]
mov r12, qword [rdi + 0x30]
mov dword [rsp + 0x90], ebp
mov dword [rsp + 0x88], ebx
call fcn.1400c9220
lea eax, [rbx + rbp]
mov qword [rdi + 0x48], 0
add eax, eax
movsxd r14, eax
lea ebp, [rax + 3]
lea rcx, [r14 + 3]
mov dword [rdi + 0x28], ebp
call fcn.1400f1360
mov rbx, rax
test rax, rax
je 0x1400c6ac6
test ebp, ebp
jle 0x1400c695d
mov rcx, rax
mov r8d, ebp
nop dword [rax]
nop dword [rax + rax]
mov byte [rcx], 0
lea rcx, [rcx + 1]
sub r8, 1
jne 0x1400c6950
lea rdx, [r14 + 3]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualLock]
mov qword [rdi + 0x48], rbx
mov byte [rbx], 0x78
mov rax, qword [rdi + 0x48]
mov byte [rax + 1], 0x27
movsxd rax, dword [rsp + 0x88]
mov rdx, qword [rdi + 0x48]
mov r14, rax
lea r15, [rdx + 2]
test eax, eax
jle 0x1400c69d2
xor ebx, ebx
xor ebp, ebp
nop dword [rax]
nop dword [rax + rax]
movzx r9d, byte [rbx + r12]
lea r8, [0x140252888]
movsxd rdx, ebp
mov ecx, 3
add rdx, r15
call fcn.140061db0
add ebp, 2
inc rbx
cmp rbx, r14
jl 0x1400c69a0
mov rdx, qword [rdi + 0x48]
mov eax, dword [rsp + 0x88]
movsxd r14, dword [rsp + 0x90]
lea r15, [rdx + 2]
add eax, eax
movsxd rcx, eax
add r15, rcx
test r14, r14
jle 0x1400c6a1b
xor ebx, ebx
xor ebp, ebp
nop
movzx r9d, byte [rbx + r13]
lea r8, [0x140252888]
movsxd rdx, ebp
mov ecx, 3
add rdx, r15
call fcn.140061db0
add ebp, 2
inc rbx
cmp rbx, r14
jl 0x1400c69f0
mov rdx, qword [rdi + 0x48]
movsxd rax, dword [rdi + 0x28]
mov byte [rax + rdx - 1], 0x27
test byte [rdi + 0x2c], 1
je 0x1400c6a99
movsxd r8, dword [rsi]
mov rdx, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
call fcn.14020d920
mov r9d, dword [rsi]
xor edx, edx
test r9d, r9d
jle 0x1400c6a67
movzx r8d, byte [0x1402fd004]
xor ecx, ecx
nop
mov rax, qword [rsi + 0x10]
lea rcx, [rcx + 1]
inc edx
xor byte [rax + rcx - 1], r8b
mov r9d, dword [rsi]
cmp edx, r9d
jl 0x1400c6a50
mov rax, qword [rdi + 0x38]
mov r8d, dword [rdi + 0x10]
mov r10, qword [rdi + 0x50]
mov rdx, qword [rdi + 0x30]
mov rcx, qword [rdi + 0x58]
mov qword [rsp + 0x38], rax
mov eax, dword [rdi + 0xc]
mov dword [rsp + 0x30], r8d
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], r9d
mov r9, qword [rsi + 0x10]
call qword [r10 + 0x30]
mov dword [rdi + 4], 0
xor eax, eax
mov r14, qword [rsp + 0x48]
mov r13, qword [rsp + 0x50]
mov r12, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x80]
mov r15, qword [rsp + 0x40]
add rsp, 0x60
pop rdi
pop rsi
pop rbx
ret
mov qword [rdi + 0x48], rbx
mov eax, 7
jmp 0x1400c6aa2
mov eax, 1
add rsp, 0x60
pop rdi
pop rsi
pop rbx
ret