Function at 0x180015a20
Capabilities:
Create thread
Encode data using xor
Get system information on windows
Make suspicious ntquerysysteminformation call
Parse pe header
Query environment variable
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x100
movaps xmmword [rsp + 0xf0], xmm6
mov rax, qword [0x180050040]
xor rax, rsp
mov qword [rbp + 0xf], rax
mov rdi, r8
mov rbx, rcx
mov qword [rbp - 0x31], rcx
mov qword [rbp - 0x69], rcx
xor r14d, r14d
mov qword [rsp + 0x30], rcx
mov qword [rcx + 0x38], r14
mov rcx, qword [rdx + 0x38]
test rcx, rcx
je 0x180015a81
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax]
mov qword [rbx + 0x38], rax
add rbx, 0x40
mov qword [rsp + 0x30], rbx
mov qword [rbx + 0x38], r14
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x180015aa3
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax]
mov qword [rbx + 0x38], rax
mov rax, qword [0x18008a2a8]
test rax, rax
jne 0x180016537
movsd xmm0, qword [str.E___GX_]
movsd qword [rsp + 0x30], xmm0
mov eax, dword [0x18004acc8]
mov dword [rsp + 0x38], eax
movzx eax, byte [0x18004accc]
mov byte [rsp + 0x3c], al
mov r8d, r14d
mov ebx, dword [0x180050090]
cmp ebx, 2
jl 0x180015bce
movdqa xmm4, xmmword [0x18004b240]
movdqa xmm2, xmmword [0x18004b1c0]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x18004b1f0]
psubd xmm2, xmm0
andps xmm2, xmmword [0x18004b210]
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x18004b250]
movd xmm0, dword [str.E___GX_]
xorps xmm2, xmm0
movd dword [rsp + 0x30], xmm2
movdqa xmm2, xmmword [0x18004b1d0]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x18004b1f0]
psubd xmm2, xmm0
andps xmm2, xmmword [0x18004b210]
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x18004b250]
movd xmm0, dword [rsp + 0x34]
xorps xmm2, xmm0
movd dword [rsp + 0x34], xmm2
mov r8d, 8
movsxd rax, r8d
lea r9, [rsp + 0x30]
add r9, rax
nop dword [rax]
mov eax, 0x94f2095
imul r8d
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x37
movzx eax, r8b
sub al, cl
add al, 0x30
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0xd
jl 0x180015be0
xor edx, edx
mov r8d, 1
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov qword [0x18008a430], rax
movsd xmm0, qword [str.E___GX_]
movsd qword [rsp + 0x40], xmm0
mov eax, dword [0x18004acc8]
mov dword [rsp + 0x48], eax
movzx eax, byte [0x18004accc]
mov byte [rsp + 0x4c], al
mov r8d, r14d
cmp ebx, 2
jl 0x180015d44
movdqa xmm5, xmmword [0x18004b240]
movdqa xmm3, xmmword [0x18004b1c0]
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm5
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm5
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x18004b1f0]
psubd xmm3, xmm0
andps xmm3, xmmword [0x18004b210]
packuswb xmm3, xmm3
packuswb xmm3, xmm3
mov eax, dword [0x18004b250]
movd xmm0, eax
paddb xmm3, xmm0
movd xmm0, dword [str.E___GX_]
xorps xmm3, xmm0
movd dword [rsp + 0x40], xmm3
movdqa xmm2, xmmword [0x18004b1d0]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm5
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm5
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x18004b1f0]
psubd xmm2, xmm0
andps xmm2, xmmword [0x18004b210]
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, eax
paddb xmm2, xmm0
movd xmm1, dword [rsp + 0x44]
xorps xmm2, xmm1
movd dword [rsp + 0x44], xmm2
mov r8d, 8
movsxd rax, r8d
lea r9, [rsp + 0x40]
add r9, rax
nop
mov eax, 0x94f2095
imul r8d
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x37
movzx eax, r8b
sub al, cl
add al, 0x30
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0xd
jl 0x180015d50
mov r15, r14
mov dword [rbp - 0x59], r14d
lea r9, [rbp - 0x59]
xor r8d, r8d
xor edx, edx
mov ecx, 0xb
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x180015de9
xor edx, edx
mov r8d, 0x8000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rbp - 0x59]
xor ecx, ecx
mov r9d, 4
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r15, rax
lea r9, [rbp - 0x59]
mov r8d, dword [rbp - 0x59]
mov rdx, rax
mov ecx, 0xb
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x180015da1
test eax, eax
js 0x1800160f3
mov edi, r14d
mov dword [rsp + 0x30], r14d
cmp dword [r15], r14d
jbe 0x1800160f3
movabs r12, 0x526d65747379535c
mov r13d, 0x5a4d
mov eax, edi
imul rcx, rax, 0x128
lea rbx, [r15 + rcx]
movzx eax, word [rbx + 0x2e]
add rax, r15
lea rdx, [rcx + 0x30]
add rdx, rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x11], xmm0
mov qword [rbp - 1], r14
mov qword [rbp + 7], r14
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x180015e43
lea rcx, [rbp - 0x11]
call fcn.180011280
nop
lea rcx, [rbp - 0x11]
cmp qword [rbp + 7], 0xf
cmova rcx, qword [rbp - 0x11]
lea rdx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x1800160a9
lea rdx, [rbx + 0x30]
xorps xmm0, xmm0
movups xmmword [rbp - 0x51], xmm0
mov qword [rbp - 0x41], r14
mov qword [rbp - 0x39], r14
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x180015e92
lea rcx, [rbp - 0x51]
call fcn.180011280
nop
lea rcx, str.SYSTEMROOT
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rbp - 0x79], r14
mov qword [rbp - 0x71], r14
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x180015ed0
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.180011280
nop
mov r8d, 1
lea rdx, [0x18002a8c4]
lea rcx, [rsp + 0x50]
call fcn.180010440
mov rsi, rax
lea rbx, [rbp - 0x51]
cmp qword [rbp - 0x39], 0xf
cmova rbx, qword [rbp - 0x51]
mov rax, qword [rbp - 0x41]
cmp rax, 0xc
jb 0x180015f65
lea rdi, [rax + rbx]
lea r8, [rdi - 0xb]
sub r8, rbx
mov edx, 0x5c
mov rcx, rbx
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x180015f65
cmp qword [rax], r12
jne 0x180015f49
cmp dword [rax + 8], 0x5c746f6f
je 0x1800161df
inc rax
lea r8, [rdi - 0xb]
sub r8, rax
mov edx, 0x5c
mov rcx, rax
call sub.VCRUNTIME140.dll_memchr
test rax, rax
jne 0x180015f37
mov rax, 0xffffffffffffffff
mov rcx, qword [rsi + 0x10]
cmp qword [rsi + 0x18], 0xf
jbe 0x180015f7a
mov rsi, qword [rsi]
mov qword [rsp + 0x20], rcx
mov r9, rsi
mov rdx, rax
lea rcx, [rbp - 0x51]
call fcn.180010290
nop
mov rdx, qword [rbp - 0x71]
cmp rdx, 0xf
jbe 0x180015fcb
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180015fc6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800161e7
call fcn.1800271e0
lea rcx, [rbp - 0x51]
cmp qword [rbp - 0x39], 0xf
cmova rcx, qword [rbp - 0x51]
xor edx, edx
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov rsi, rax
cmp word [rax], r13w
jne 0x18001632e
movsxd rax, dword [rax + 0x3c]
cmp dword [rax + rsi], 0x4550
jne 0x18001629f
mov ecx, dword [rax + rsi + 0x88]
test ecx, ecx
je 0x18001629f
mov r14d, dword [rcx + rsi + 0x1c]
lea r12, [rsi + r14]
mov ebx, dword [rcx + rsi + 0x20]
add rbx, rsi
mov r13d, dword [rcx + rsi + 0x24]
add r13, rsi
xor edi, edi
test r14d, r14d
je 0x180016057
mov edx, dword [rbx]
add rdx, rsi
lea rcx, str.NtShutdownSystem
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x1800161ee
inc edi
add rbx, 4
cmp edi, r14d
jb 0x180016033
mov rdx, qword [rbp - 0x39]
cmp rdx, 0xf
jbe 0x180016092
inc rdx
mov rcx, qword [rbp - 0x51]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001608d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180016360
call fcn.1800271e0
mov r13d, 0x5a4d
movabs r12, 0x526d65747379535c
xor r14d, r14d
mov edi, dword [rsp + 0x30]
mov rdx, qword [rbp + 7]
cmp rdx, 0xf
jbe 0x1800160e4
inc rdx
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800160df
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800163bd
call fcn.1800271e0
inc edi
mov dword [rsp + 0x30], edi
cmp edi, dword [r15]
jb 0x180015e12
mov r8d, 0x8000
xor edx, edx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov ebx, r14d
mov dword [0x18008a42c], ebx
mov eax, 0xfff
and bx, ax
mov word [0x18008a428], bx
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x29], xmm1
mov qword [rbp - 0x19], r14
mov rbx, qword [0x18008a310]
mov rbx, qword [rbx]
mov rsi, qword [rbp - 0x31]
cmp byte [rbx + 0x19], 0
jne 0x180016450
lea r15, [0x180016570]
nop word [rax + rax]
movups xmm6, xmmword [rbx + 0x20]
mov ecx, 0x20
call fcn.180027308
movdqa xmm0, xmm6
psrldq xmm0, 8
movq qword [rax], xmm0
movq qword [rax + 8], xmm6
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], r15
mov qword [rbp - 0x31], rax
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r14d
mov r9, rax
lea r8, [0x1800266f0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x40], rax
test rax, rax
je 0x18001643f
mov rdx, qword [rbp - 0x21]
cmp rdx, qword [rbp - 0x19]
je 0x1800163c4
xorps xmm0, xmm0
movaps xmm1, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
movups xmmword [rdx], xmm1
mov rdi, qword [rbp - 0x21]
add rdi, 0x10
mov qword [rbp - 0x21], rdi
jmp 0x1800163d6
sub rax, rbx
jmp 0x180015f6c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
movsxd rax, edi
movzx ecx, word [r13 + rax*2]
mov ebx, dword [r12 + rcx*4]
xor edx, edx
mov r8d, 0x8000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
mov rdx, qword [rbp - 0x39]
cmp rdx, 0xf
jbe 0x180016248
inc rdx
mov rcx, qword [rbp - 0x51]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180016243
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180016360
call fcn.1800271e0
xor r14d, r14d
mov qword [rbp - 0x41], r14
mov qword [rbp - 0x39], 0xf
mov byte [rbp - 0x51], r14b
mov rdx, qword [rbp + 7]
cmp rdx, 0xf
jbe 0x180016107
inc rdx
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180016295
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800163b6
call fcn.1800271e0
jmp 0x180016107
mov rdx, qword [rbp - 0x39]
cmp rdx, 0xf
jbe 0x1800162da
inc rdx
mov rcx, qword [rbp - 0x51]
cmp rdx, 0x1000
mov rax, rcx
jb 0x1800162d5
mov rcx, qword [rcx - 8]
sub rax, rcx
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180016360
call fcn.1800271e0
mov byte [rbp - 0x51], 0
mov qword [rbp - 0x39], 0xf
mov qword [rbp - 0x41], r14
mov rdx, qword [rbp + 7]
cmp rdx, 0xf
jbe 0x180016104
inc rdx
mov rcx, qword [rbp - 0x11]
cmp rdx, 0x1000
mov rax, rcx
jb 0x180016324
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800163b6
call fcn.1800271e0
jmp 0x180016104
mov rdx, qword [rbp - 0x39]
cmp rdx, 0xf
jbe 0x18001636c
inc rdx
mov rcx, qword [rbp - 0x51]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180016367
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180016367
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800271e0
mov qword [rbp - 0x41], r14
mov qword [rbp - 0x39], 0xf
mov byte [rbp - 0x51], 0
mov rdx, qword [rbp + 7]
cmp rdx, 0xf
jbe 0x180016104
inc rdx
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180016324
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180016324
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
lea r8, [rsp + 0x40]
lea rcx, [rbp - 0x29]
call fcn.1800264c0
mov rdi, qword [rbp - 0x21]
cmp dword [rsp + 0x48], 0
jne 0x180016438
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
je 0x180016409
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x180016404
cmp rbx, qword [rax + 0x10]
jne 0x180016404
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x1800163f1
mov rbx, rax
jmp 0x18001642c
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
jne 0x18001642c
nop word [rax + rax]
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x180016420
cmp byte [rbx + 0x19], 0
je 0x180016150
jmp 0x180016454
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
mov dword [rsp + 0x48], r14d
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov rdi, qword [rbp - 0x21]
mov rbx, qword [rbp - 0x29]
cmp rbx, rdi
je 0x1800164a9
nop dword [rax]
cmp dword [rbx + 8], 0
je 0x18001651a
call qword [sym.imp.MSVCP140.dll__Thrd_id]
cmp dword [rbx + 8], eax
je 0x18001650e
movups xmm0, xmmword [rbx]
movaps xmmword [rsp + 0x40], xmm0
xor edx, edx
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll__Thrd_join]
test eax, eax
jne 0x180016502
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
add rbx, 0x10
cmp rbx, rdi
jne 0x180016460
mov rdi, qword [rbp - 0x21]
mov rbx, qword [rbp - 0x29]
test rbx, rbx
je 0x18001653b
mov rax, rbx
cmp rbx, rdi
je 0x1800164cf
nop word [rax + rax]
cmp dword [rax + 8], 0
jne 0x180016526
add rax, 0x10
cmp rax, rdi
jne 0x1800164c0
mov rdx, qword [rbp - 0x19]
sub rdx, rbx
and rdx, 0xfffffffffffffff0
mov rax, rbx
cmp rdx, 0x1000
jb 0x18001652d
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18001652d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov ecx, 2
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
mov rcx, rbx
call fcn.1800271e0
jmp 0x18001653b
mov rsi, qword [rbp - 0x31]
mov rax, rsi
mov rcx, qword [rbp + 0xf]
xor rcx, rsp
call fcn.1800271c0
mov rbx, qword [rsp + 0x158]
movaps xmm6, xmmword [rsp + 0xf0]
add rsp, 0x100
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret