Function at 0x140065410
Capabilities:
Check for peb beingdebugged flag
Encode data using xor
Get hostname

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0xf8]
sub rsp, 0x1d0
movaps xmmword [rax - 0x38], xmm6
mov rax, qword [0x14017b4c0]
xor rax, rsp
mov qword [rbp + 0xb0], rax
mov rsi, rcx
xor ebx, ebx
xorps xmm0, xmm0
movups xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], rbx
mov qword [rbp - 0x60], rbx
mov r8d, 8
lea rdx, [0x14015ca90]
lea rcx, [rbp - 0x78]
call fcn.140005120
nop
mov r8, qword [0x140188988]
lea rcx, [r8 + 0x20]
mov rdx, qword [r8 + 0x10]
mov r10, qword [rcx + 0x10]
movabs r14, 0x7fffffffffffffff
mov rax, r14
sub rax, rdx
cmp rax, r10
jb 0x1400657e5
mov r9, r8
cmp qword [r8 + 0x18], 0xf
jbe 0x1400654aa
mov r9, qword [r8]
cmp qword [rcx + 0x18], 0xf
jbe 0x1400654b4
mov rcx, qword [rcx]
mov qword [rsp + 0x30], r10
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rdx
movzx edx, byte [rsp + 0x40]
lea rcx, [rsp + 0x68]
call fcn.140012da0
lea r8, [rsp + 0x68]
mov r9, qword [rsp + 0x68]
mov r10, qword [rbp - 0x80]
cmp r10, 0xf
cmova r8, r9
mov rcx, rbx
mov rdx, rbx
mov rdi, qword [rsp + 0x78]
test rdi, rdi
je 0x140065521
nop dword [rax + rax]
movsx rax, byte [r8 + rdx]
add rax, rcx
imul rcx, rax, 0x401
mov rax, rcx
shr rax, 6
xor rcx, rax
inc rdx
cmp rdx, rdi
jb 0x140065500
lea rax, [rcx + rcx*8]
mov rcx, rax
shr rcx, 0xb
xor rcx, rax
imul rax, rcx, 0x8001
movabs r12, 0x5851f42d4c957f2d
test rax, rax
jne 0x14006554e
imul rdi, r12
inc rdi
jmp 0x140065551
mov rdi, rax
mov rax, qword [0x1401888c8]
mov r15, qword [rax]
cmp r10, 0xf
jbe 0x140065592
lea rdx, [r10 + 1]
mov rax, r9
cmp rdx, 0x1000
jb 0x14006558a
add rdx, 0x27
mov r9, qword [r9 - 8]
sub rax, r9
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400657d9
mov rcx, r9
call fcn.1400ce56c
cmp r15, rdi
jne 0x1400655f4
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
movdqa xmm6, xmmword [0x14015cbe0]
mov byte [rsp + 0x48], 0
mov rdx, qword [rbp - 0x60]
cmp rdx, 0xf
jbe 0x1400655e7
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400655e2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400657d9
call fcn.1400ce56c
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rbp - 0x78], xmm0
movups xmmword [rbp - 0x68], xmm6
mov edx, 0x100
lea rcx, [rbp - 0x50]
call qword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x1400657a1
mov rax, qword gs:[0x60]
cmp byte [rax + 2], 0
je 0x140065630
mov r8d, 1
lea rdx, [0x14015ca88]
lea rcx, [rbp - 0x78]
call fcn.14000b320
lea rax, [rbp - 0x50]
mov rcx, 0xffffffffffffffff
nop dword [rax + rax]
inc rcx
cmp byte [rax + rcx], 0
jne 0x140065640
mov rdx, qword [rbp - 0x68]
sub r14, rdx
cmp r14, rcx
jb 0x1400657e5
lea rax, [rbp - 0x78]
cmp qword [rbp - 0x60], 0xf
cmova rax, qword [rbp - 0x78]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea r9, [rbp - 0x50]
lea r8, [rbp - 0x78]
movzx edx, byte [rsp + 0x40]
lea rcx, [rsp + 0x48]
call fcn.140012da0
lea r9, [rsp + 0x48]
mov r8, qword [rsp + 0x48]
mov r10, qword [rsp + 0x60]
cmp r10, 0xf
cmova r9, r8
mov rcx, rbx
mov rdx, qword [rsp + 0x58]
test rdx, rdx
je 0x1400656d2
movsx rax, byte [r9 + rcx]
add rax, rbx
imul rbx, rax, 0x401
mov rax, rbx
shr rax, 6
xor rbx, rax
inc rcx
cmp rcx, rdx
jb 0x1400656b1
lea rax, [rbx + rbx*8]
mov rcx, rax
shr rcx, 0xb
xor rcx, rax
imul rax, rcx, 0x8001
test rax, rax
jne 0x1400656f5
imul rdx, r12
inc rdx
jmp 0x1400656f8
mov rdx, rax
mov qword [rsi], rdx
mov byte [rsi + 8], 1
cmp r10, 0xf
jbe 0x140065737
lea rdx, [r10 + 1]
mov rax, r8
cmp rdx, 0x1000
jb 0x14006572e
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400657d9
mov rcx, r8
call fcn.1400ce56c
nop
mov rdx, qword [rbp - 0x60]
cmp rdx, 0xf
jbe 0x14006576e
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140065769
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400657df
call fcn.1400ce56c
mov rax, rsi
mov rcx, qword [rbp + 0xb0]
xor rcx, rsp
call fcn.1400ce1f0
lea r11, [rsp + 0x1d0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
mov byte [rsi + 8], 0
mov rdx, qword [rbp - 0x60]
cmp rdx, 0xf
jbe 0x14006576e
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140065769
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400657df
jmp 0x140065769
call fcn.1400e1a34
nop
call fcn.1400e1a34
nop
call fcn.140002530
int3