Function at 0x140066ef0
Capabilities:
Check for peb ntglobalflag flag
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x60
mov rax, qword gs:[0x60]
mov rdi, rdx
mov esi, ecx
test byte [rax + 0xbc], 0x70
jne 0x140067331
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x140067331
mov rax, qword gs:[0x58]
mov ebx, 8
add rbx, qword [rax]
mov eax, dword [rbx]
cmp dword [0x1402735b8], eax
jle 0x140066f87
lea rcx, [0x1402735b8]
call fcn.1400c6f30
cmp dword [0x1402735b8], 0xffffffff
jne 0x140066f87
lea rcx, [0x140104190]
mov dword [0x1402736f0], 0x4a4a4768
mov dword [0x1402736f4], 0x5c4b42
mov dword [0x1402736f8], 0x2e4b564b
call fcn.1400c72a0
lea rcx, [0x1402735b8]
call fcn.1400c6ec4
cmp byte [0x1402736fb], 0
lea rcx, [0x1402736f0]
je 0x140066fad
xor eax, eax
nop dword [rax]
xor byte [rax + rcx], 0x2e
inc rax
cmp rax, 0xc
jb 0x140066fa0
call fcn.140083310
test al, al
jne 0x140067331
mov eax, dword [rbx]
cmp dword [0x140272d34], eax
jle 0x140067018
lea rcx, [0x140272d34]
call fcn.1400c6f30
cmp dword [0x140272d34], 0xffffffff
jne 0x140067018
lea rcx, [0x140104170]
mov dword [0x140271f58], 0x4b5c4779
mov dword [0x140271f5c], 0x5c4f465d
mov dword [0x140271f60], 0x564b0045
mov word [0x140271f64], 0x2e4b
call fcn.1400c72a0
lea rcx, [0x140272d34]
call fcn.1400c6ec4
cmp byte [0x140271f65], 0
lea rcx, [0x140271f58]
je 0x14006703d
xor eax, eax
nop word [rax + rax]
xor byte [rax + rcx], 0x2e
inc rax
cmp rax, 0xe
jb 0x140067030
call fcn.140083310
test al, al
jne 0x140067331
mov eax, dword [rbx]
cmp dword [0x1402737e8], eax
mov qword [rsp + 0x80], rbp
lea rbp, [0x140273300]
movaps xmmword [rsp + 0x50], xmm6
movdqa xmm6, xmmword [0x140138050]
movdqu xmmword [rsp + 0x38], xmm6
mov word [rsp + 0x48], 0x4b56
mov byte [rsp + 0x4a], 0x2e
jle 0x1400670fd
lea rcx, [0x1402737e8]
call fcn.1400c6f30
cmp dword [0x1402737e8], 0xffffffff
jne 0x1400670fd
movzx eax, word [rsp + 0x48]
xor edx, edx
mov word [0x140273310], ax
movups xmmword [0x140273300], xmm6
mov byte [0x140273312], 0x2e
inc edx
cmp edx, 0x13
jb 0x1400670b3
movsxd r8, edx
cmp r8, 0x13
jae 0x1400670e5
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rsp + r8 + 0x38]
inc edx
mov byte [r8 + rbp], al
lea r8, [r8 + 1]
cmp edx, 0x13
jb 0x1400670d0
lea rcx, [0x140104150]
call fcn.1400c72a0
lea rcx, [0x1402737e8]
call fcn.1400c6ec4
cmp byte [0x140273312], 0
movaps xmm6, xmmword [rsp + 0x50]
je 0x14006713d
movdqu xmm0, xmmword [0x140273300]
mov eax, reloc.WS2_32.dll_recv
movdqa xmm1, xmmword [0x140137b00]
xorps xmm1, xmm0
movdqu xmmword [0x140273300], xmm1
nop dword [rax + rax]
xor byte [rax + rbp], 0x2e
inc rax
cmp rax, 0x13
jb 0x140067130
mov rcx, rbp
call fcn.140083310
mov rbp, qword [rsp + 0x80]
test al, al
jne 0x140067331
mov rax, qword [0x140271470]
add byte [rax], 0xd
add byte [rax + 1], 3
add byte [rax + 2], 0xb
inc byte [rax + 3]
call fcn.14007f840
call fcn.1400823f0
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [0x1402711b0], rax
call fcn.14007dfa0
cmp esi, 2
jne 0x14006731d
mov rax, qword [rdi + 8]
lea r8, [0x140271410]
sub r8, rax
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x1400671b5
inc rax
test ecx, ecx
jne 0x1400671a2
test edx, edx
jne 0x14006731d
mov eax, dword [rbx]
cmp dword [0x1402732f4], eax
jle 0x140067205
lea rcx, [0x1402732f4]
call fcn.1400c6f30
cmp dword [0x1402732f4], 0xffffffff
jne 0x140067205
lea rcx, [0x140104130]
mov dword [0x140273714], 0x5a5d4b5a
mov byte [0x140273718], 0x2e
call fcn.1400c72a0
lea rcx, [0x1402732f4]
call fcn.1400c6ec4
movzx eax, byte [0x140273718]
test al, al
je 0x140067234
xor byte [0x140273714], 0x2e
xor byte [0x140273715], 0x2e
xor byte [0x140273716], 0x2e
xor byte [0x140273717], 0x2e
xor al, 0x2e
mov byte [0x140273718], al
mov r8d, 0x32
lea rdx, [0x140273714]
lea rcx, [0x1402712d0]
call fcn.1400d1510
mov rcx, qword [0x1402711b0]
mov edx, 0xf0
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
call fcn.1400810e0
call fcn.140082780
call fcn.14007ebf0
call fcn.140080490
xor bl, bl
mov qword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
mov edx, 8
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400672e0
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x90]
mov r9d, 4
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x98]
mov dword [rsp + 0x90], 4
mov edx, setsockopt
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x1400672e0
cmp dword [rsp + 0x98], 0
setne bl
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400672f0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [0x14027125d], bl
test bl, bl
jne 0x140067317
call fcn.140067340
mov rcx, rax
call fcn.140087480
mov rcx, rax
call fcn.14004d370
xor ecx, ecx
call fcn.1400decb0
int3
call fcn.140067430
int3
lea rcx, [0x1402711b8]
call fcn.1400df8e4
xor ecx, ecx
call fcn.1400decb0
int3
xor ecx, ecx
call fcn.1400decb0
int3