Function at 0x18006f040
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 8], rcx
mov rax, rsp
sub rsp, 0x2d8
mov qword [rax - 8], rbx
mov qword [rax - 0x10], rbp
mov qword [rax - 0x18], rsi
mov qword [rax - 0x20], rdi
mov qword [rax - 0x28], r12
mov qword [rax - 0x30], r13
mov qword [rax - 0x40], r15
mov r15d, r8d
mov rbp, rcx
add r15d, 0xfffffff0
lea rcx, [rax - 0x1f8]
mov rsi, r9
mov ebx, r15d
mov edi, r15d
mov r12, rdx
and ebx, 0xf
shr edi, 4
call fcn.180083c10
lea r13, [r12 + 0x10]
lea rcx, [rsp + 0xe0]
mov r8d, r15d
mov rdx, r13
call fcn.1800860b0
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0x60]
call fcn.1800861a0
lea rcx, [rsp + 0x50]
mov r8d, setsockopt
mov rdx, r12
call fcn.180077c40
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0xd0]
mov r8d, setsockopt
call fcn.180077c40
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x90]
mov r8d, setsockopt
call fcn.180077c40
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0xa0]
mov r8d, setsockopt
call fcn.180077c40
mov edx, 1
lea r9, [rsp + 0x90]
mov r8d, edx
mov rcx, rbp
mov dword [rsp + 0x20], 0x20
call rsi
test eax, eax
jne 0x18006f52a
lea r8d, [rax + 0x10]
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0xc0]
call fcn.180077c40
lea r9, [rsp + 0x90]
lea rcx, [rsp + 0x140]
mov r8d, pe_nt_image_headers64
mov dl, 1
call fcn.180096180
test eax, eax
js 0x18006f1ea
lea rcx, [rsp + 0x78]
xor r8d, r8d
mov dl, 2
call fcn.1800962f0
test eax, eax
js 0x18006f1ea
cmp edi, 1
jbe 0x18006f1b1
lea eax, [rdi - 2]
lea rcx, [rsp + 0x40]
mov r8d, setsockopt
shl eax, 4
lea rdx, [rax + r12 + 0x10]
call fcn.180077c40
jmp 0x18006f1c1
xor edx, edx
lea rcx, [rsp + 0x40]
lea r8d, [rdx + 0x10]
call fcn.180077c30
test edi, edi
je 0x18006f1f4
mov r9d, edi
lea rdx, [rsp + 0x140]
lea rcx, [rsp + 0x78]
mov r8, r13
shl r9d, 7
mov qword [rsp + 0x20], r13
call fcn.180096a00
test eax, eax
jns 0x18006f1f4
mov eax, 0x2bb
jmp 0x18006f52a
test ebx, ebx
mov qword [rsp + 0x2a0], r14
je 0x18006f34d
lea eax, [rdi - 1]
lea r8, [rsp + 0x40]
lea r9, [rsp + 0x41]
shl eax, 4
lea r10, [rsp + 0x42]
lea r11, [rsp + 0x43]
lea rsi, [rax + r12 + 0x10]
mov ebp, 4
sub r8, rsi
sub r9, rsi
sub r10, rsi
sub r11, rsi
mov rcx, rsi
mov rdx, rbp
nop
nop
movzx eax, byte [r8 + rcx]
xor byte [rcx], al
movzx eax, byte [r9 + rcx]
xor byte [rcx + 1], al
movzx eax, byte [r10 + rcx]
xor byte [rcx + 2], al
movzx eax, byte [r11 + rcx]
xor byte [rcx + 3], al
add rcx, rbp
dec rdx
jne 0x18006f240
test ebx, ebx
je 0x18006f27f
mov rcx, rsi
mov edx, ebx
movzx eax, byte [rcx + 0x10]
inc rcx
xor byte [rcx - 1], al
dec rdx
jne 0x18006f270
lea rdx, [rsi + 0x10]
lea rcx, [rsp + 0x30]
mov r8d, ebx
call fcn.180077c40
mov r11d, r15d
mov r8d, setsockopt
and r11d, 0xf
sub r8d, ebx
lea rdx, [r11 + rsi]
lea rcx, [rsp + r11 + 0x30]
call fcn.180077c40
lea r11, [rsp + 0x30]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x140]
lea rcx, [rsp + 0x78]
mov r9d, pe_nt_image_headers64
mov qword [rsp + 0x20], r11
call fcn.180096a00
test eax, eax
jns 0x18006f2e3
mov eax, 0x2bb
jmp 0x18006f522
xor edx, edx
nop
nop
nop
movzx eax, byte [rsp + rdx + 0x40]
add rdx, 4
xor byte [rsp + rdx + 0x2c], al
movzx eax, byte [rsp + rdx + 0x3d]
xor byte [rsp + rdx + 0x2d], al
movzx eax, byte [rsp + rdx + 0x3e]
xor byte [rsp + rdx + 0x2e], al
movzx eax, byte [rsp + rdx + 0x3f]
xor byte [rsp + rdx + 0x2f], al
dec rbp
jne 0x18006f2f0
lea rcx, [rsi + 0x10]
mov r8d, ebx
mov rdx, rsi
call fcn.180077c40
lea r8d, [rbp + 0x10]
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.180077c40
mov rsi, qword [rsp + 0x2f8]
mov rbp, qword [rsp + 0x2e0]
lea rcx, [rsp + 0xe0]
call fcn.180083c10
lea rcx, [rsp + 0xe0]
mov r8d, r15d
mov rdx, r13
call fcn.1800860b0
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0x60]
call fcn.1800861a0
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x90]
mov r8d, setsockopt
call fcn.180077c40
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0xa0]
mov r8d, setsockopt
call fcn.180077c40
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0xb0]
mov r8d, setsockopt
call fcn.180077c40
mov edx, 1
lea r9, [rsp + 0x90]
lea r8d, [rdx + 1]
mov rcx, rbp
mov dword [rsp + 0x20], gethostbyname
call rsi
test eax, eax
mov esi, eax
je 0x18006f50a
lea r9, [rsp + 0xc0]
lea rcx, [rsp + 0x140]
xor edx, edx
mov r8d, pe_nt_image_headers64
call fcn.180096180
test eax, eax
js 0x18006f2d9
lea rcx, [rsp + 0x78]
xor r8d, r8d
mov dl, 2
call fcn.1800962f0
test eax, eax
js 0x18006f2d9
test edi, edi
je 0x18006f45b
mov r9d, edi
lea rdx, [rsp + 0x140]
lea rcx, [rsp + 0x78]
mov r8, r13
shl r9d, 7
mov qword [rsp + 0x20], r13
call fcn.180096340
test eax, eax
js 0x18006f2d9
test ebx, ebx
je 0x18006f4f3
lea eax, [rdi - 1]
lea rcx, [rsp + 0x30]
mov r8d, setsockopt
shl eax, 4
lea rdi, [rax + r12 + 0x10]
mov rdx, rdi
call fcn.180077c40
test ebx, ebx
je 0x18006f4a2
lea rcx, [rsp + 0x30]
lea rdx, [rdi + 0x10]
mov r8d, ebx
movzx eax, byte [rdx]
inc rcx
inc rdx
xor byte [rcx - 1], al
dec r8
jne 0x18006f491
lea rax, [rsp + 0x30]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x140]
lea rcx, [rsp + 0x78]
mov r9d, pe_nt_image_headers64
mov qword [rsp + 0x20], rax
call fcn.180096340
test eax, eax
js 0x18006f2d9
lea rcx, [rdi + 0x10]
mov r8d, ebx
mov rdx, rdi
call fcn.180077c40
lea rdx, [rsp + 0x30]
mov r8d, setsockopt
mov rcx, rdi
call fcn.180077c40
lea rdx, [rsp + 0x50]
mov r8d, setsockopt
mov rcx, r12
call fcn.180077c40
mov eax, esi
jmp 0x18006f522
lea rdx, [rsp + 0x90]
mov r8d, setsockopt
mov rcx, r12
call fcn.180077c40
xor eax, eax
mov r14, qword [rsp + 0x2a0]
mov r15, qword [rsp + 0x298]
mov r13, qword [rsp + 0x2a8]
mov r12, qword [rsp + 0x2b0]
mov rdi, qword [rsp + 0x2b8]
mov rsi, qword [rsp + 0x2c0]
mov rbp, qword [rsp + 0x2c8]
mov rbx, qword [rsp + 0x2d0]
add rsp, 0x2d8
ret