Function at 0x140009ee0
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xe0]
sub rsp, 0x1e0
mov rax, qword [0x140185080]
xor rax, rsp
mov qword [rbp + 0xd0], rax
mov rdi, rdx
mov rsi, rcx
mov qword [rbp - 0x20], rdx
xor r14d, r14d
lea r12, [rcx + 8]
mov rcx, r12
call fcn.140006270
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r14 + 1]
mov rcx, qword [rsi + 0x70]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r13, rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x14000a970
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r15, rax
xor edx, edx
mov r8d, 0x2000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
mov dword [rbp - 0x18], r14d
test rax, rax
je 0x140009ffa
lea r9, [rbp - 0x18]
mov r8d, 0x2000
mov rdx, rax
lea ecx, [r14 + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
jns 0x140009fe3
mov r8, rbx
xor edx, edx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r8d, dword [rbp - 0x18]
xor edx, edx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x140009ffa
lea r9, [rbp - 0x18]
mov r8d, dword [rbp - 0x18]
mov rdx, rax
lea ecx, [r14 + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
js 0x140009ffa
cmp dword [rbx], 0
jbe 0x140009ffa
mov r14, qword [rbx + 0x18]
mov r8, rbx
xor edx, edx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rsi + 0x38], r14
mov qword [rsi], r13
mov ebx, 0x1000
xor r13d, r13d
nop dword [rax]
mov dword [rbp - 0x18], r13d
mov qword [rbp - 8], r13
mov qword [rbp], rbx
mov qword [rbp + 8], 8
mov qword [rsp + 0x38], r13
lea rax, [rbp - 0x18]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 8
lea rax, [rbp - 8]
mov qword [rsp + 0x20], rax
mov r9d, reloc.WS2_32.dll_recv
lea r8, [rbp]
mov edx, 0x222010
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x14000a072
cmp qword [rbp - 8], r13
je 0x14000a075
add rbx, 8
cmp rbx, 0x10000
jb 0x14000a010
mov rbx, r13
mov qword [rsi + 0x28], rbx
lea rcx, str.systemroot
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rax + r8], r13b
jne 0x14000a0a0
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1400070b0
nop
mov r8d, reloc.WLDAP32.dll_Ordinal_22
lea rdx, str.System32_ntoskrnl.exe
lea rcx, [rsp + 0x40]
call fcn.140006980
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x50], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x14000a12c
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000a127
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000a127
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400b64a0
movdqa xmm0, xmmword [0x140173c60]
movdqu xmmword [rsp + 0x50], xmm0
mov byte [rsp + 0x40], 0
lea rax, [rbp - 0x80]
mov qword [rbp - 8], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], r13
mov qword [rbp - 0x68], r13
mov r8d, Ordinal_45
lea rdx, str.https:__msdl.microsoft.com_download_symbols_
lea rcx, [rbp - 0x80]
call fcn.1400070b0
nop
lea rax, [rbp - 0x60]
mov qword [rbp - 0x18], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], r13
mov qword [rbp - 0x48], r13
xor r8d, r8d
lea rdx, [0x140171e48]
lea rcx, [rbp - 0x60]
call fcn.1400070b0
nop
lea rdx, [rbp + 0x40]
lea rcx, [rbp - 0x40]
call fcn.140006340
nop
lea r9, [rbp - 0x80]
lea r8, [rbp - 0x60]
mov rdx, rax
lea rcx, [rbp + 0x20]
call fcn.140007af0
nop
mov r14, qword [rbp + 0x30]
test r14, r14
jne 0x14000a2ca
lea rdx, str.download_pdb_failed
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140006d90
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
lea rdx, [0x140006f60]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
mov rdx, qword [rbp + 0x38]
cmp rdx, 0xf
jbe 0x14000a23b
inc rdx
mov rcx, qword [rbp + 0x20]
cmp rdx, 0x1000
mov rax, rcx
jb 0x14000a236
mov rcx, qword [rcx - 8]
sub rax, rcx
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000a8d0
call fcn.1400b64a0
mov byte [rbp + 0x20], 0
mov qword [rbp + 0x38], reloc.WS2_32.dll_ntohs
mov qword [rbp + 0x30], r13
mov rdx, qword [rbp + 0x58]
cmp rdx, 0xf
jbe 0x14000a287
inc rdx
mov rcx, qword [rbp + 0x40]
cmp rdx, 0x1000
mov rax, rcx
jb 0x14000a281
mov rcx, qword [rcx - 8]
sub rax, rcx
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000a91e
call fcn.1400b64a0
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 0xf
jbe 0x14000a2c1
inc rdx
cmp rdx, 0x1000
mov rcx, qword [rdi]
jb 0x14000a2bc
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000a9e1
mov rcx, r8
call fcn.1400b64a0
mov qword [rdi + 0x10], r13
jmp 0x14000a9aa
xorps xmm0, xmm0
movups xmmword [rbp], xmm0
mov qword [rbp + 0x10], r13
mov qword [rbp + 0x18], r13
lea r15, [rbp + 0x20]
cmp qword [rbp + 0x38], 0xf
cmova r15, qword [rbp + 0x20]
movabs rbx, 0x7fffffffffffffff
cmp r14, rbx
ja 0x14000a9e8
cmp r14, 0xf
ja 0x14000a319
mov qword [rbp + 0x10], r14
mov qword [rbp + 0x18], reloc.WS2_32.dll_ntohs
movups xmm0, xmmword [r15]
movups xmmword [rbp], xmm0
jmp 0x14000a3ae
mov rax, r14
or rax, 0xf
cmp rax, rbx
jbe 0x14000a351
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.1400b64a8
mov rcx, rax
test rax, rax
je 0x14000a37d
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x14000a393
mov rbx, rax
cmp rax, 0x16
mov eax, reloc.WLDAP32.dll_Ordinal_22
cmovb rbx, rax
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x14000a384
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14000a9ee
jmp 0x14000a333
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x14000a390
call fcn.1400b64a8
jmp 0x14000a393
mov rax, r13
mov qword [rbp], rax
mov qword [rbp + 0x10], r14
mov qword [rbp + 0x18], rbx
lea r8, [r14 + 1]
mov rdx, r15
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
lea rdx, [rbp - 0x18]
lea rcx, [rbp]
call fcn.140009080
test al, al
jne 0x14000a3cb
lea rdx, str.load_pdb_failed
jmp 0x14000a1cf
lea rax, [rsp + 0x60]
mov qword [rbp], rax
lea rdx, str.ActiveProcessLinks
lea rcx, [rsp + 0x60]
call fcn.140006110
mov rbx, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], r13
mov r8d, 9
lea rdx, str._EPROCESS
lea rcx, [rsp + 0x40]
call fcn.1400070b0
nop
mov r8, rbx
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x18]
call fcn.140009430
mov dword [rsi + 0x48], eax
lea rax, [rsp + 0x60]
mov qword [rbp], rax
lea rdx, str.UniqueProcessId
lea rcx, [rsp + 0x60]
call fcn.140006110
mov rbx, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], r13
mov r8d, 9
lea rdx, str._EPROCESS
lea rcx, [rsp + 0x40]
call fcn.1400070b0
nop
mov r8, rbx
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x18]
call fcn.140009430
mov dword [rsi + 0x4c], eax
lea rax, [rsp + 0x60]
mov qword [rbp], rax
lea rdx, str.ThreadListHead
lea rcx, [rsp + 0x60]
call fcn.140006110
mov rbx, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], r13
mov r8d, 9
lea rdx, str._EPROCESS
lea rcx, [rsp + 0x40]
call fcn.1400070b0
nop
mov r8, rbx
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x18]
call fcn.140009430
mov dword [rsi + 0x50], eax
lea rax, [rsp + 0x60]
mov qword [rbp], rax
lea rdx, [0x140171f90]
lea rcx, [rsp + 0x60]
call fcn.140006110
mov rbx, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], r13
mov r8d, 8
lea rdx, str._ETHREAD
lea rcx, [rsp + 0x40]
call fcn.1400070b0
nop
mov r8, rbx
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x18]
call fcn.140009430
add eax, 8
mov dword [rsi + 0x54], eax
lea rax, [rsp + 0x60]
mov qword [rbp], rax
lea rdx, str.PreviousMode
lea rcx, [rsp + 0x60]
call fcn.140006110
mov rbx, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], r13
mov r8d, 8
lea rdx, str._KTHREAD
lea rcx, [rsp + 0x40]
call fcn.1400070b0
nop
mov r8, rbx
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x18]
call fcn.140009430
mov dword [rsi + 0x58], eax
lea rax, [rsp + 0x60]
mov qword [rbp], rax
lea rdx, str.ThreadListEntry
lea rcx, [rsp + 0x60]
call fcn.140006110
mov rbx, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], r13
mov r8d, 8
lea rdx, str._ETHREAD
lea rcx, [rsp + 0x40]
call fcn.1400070b0
nop
mov r8, rbx
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x18]
call fcn.140009430
mov dword [rsi + 0x5c], eax
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], r13
mov r8d, reloc.WS2_32.dll_ntohs
lea rdx, str.MiGetPteAddress
lea rcx, [rsp + 0x40]
call fcn.1400070b0
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x18]
call fcn.140009300
mov dword [rsi + 0x60], eax
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], r13
mov r8d, reloc.WLDAP32.dll_Ordinal_26
lea rdx, str.MmAllocateIndependentPages
lea rcx, [rsp + 0x40]
call fcn.1400070b0
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x18]
call fcn.140009300
mov dword [rsi + 0x64], eax
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], r13
mov r8d, reloc.WS2_32.dll_send
lea rdx, str.MmSetPageProtection
lea rcx, [rsp + 0x40]
call fcn.1400070b0
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x18]
call fcn.140009300
mov dword [rsi + 0x68], eax
mov edx, 0x10000000
mov rbx, qword [rbp - 0x18]
mov rcx, rbx
call qword [sym.imp.dbghelp.dll_SymUnloadModule64]
mov rcx, rbx
call qword [sym.imp.dbghelp.dll_SymCleanup]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [rsi + 0x60]
mov rdx, qword [rsi + 0x38]
add rcx, 0x13
add rdx, rcx
mov qword [rbp - 8], r13
lea r8, [rbp - 8]
mov rcx, rsi
call fcn.14000aa00
mov rax, qword [rbp - 8]
mov qword [rsi + 0x40], rax
cmp qword [r12 + 0x18], 0xf
jbe 0x14000a6fe
mov r12, qword [r12]
mov rdx, r12
call fcn.140009b10
lea r14, [rax + 0x1200]
mov r8, r13
test r14, r14
jne 0x14000a71a
mov rdx, r13
jmp 0x14000a771
mov qword [rbp - 0x18], r13
mov rdx, r14
mov rcx, rsi
call fcn.140009a90
mov rbx, rax
mov rdx, r14
mov rcx, rsi
call fcn.140009a90
mov r15, rax
lea r8, [rbp - 0x18]
mov rdx, qword [rax + 0x18]
mov rcx, rsi
call fcn.14000aa00
mov r8, qword [rbp - 0x18]
test r8, r8
jne 0x14000a76d
lea r8, [rbp - 0x18]
mov rdx, qword [r15 + 0x10]
mov rcx, rsi
call fcn.14000aa00
mov r8, qword [rbp - 0x18]
mov rdx, qword [rbx + 0x10]
jmp 0x14000a771
mov rdx, qword [rbx + 0x18]
or r8, 2
mov rcx, rsi
call fcn.140009c40
mov dword [rbp + 0x60], 0x2444894c
mov dword [rbp + 0x64], 0x54894818
mov dword [rbp + 0x68], 0x89481024
mov dword [rbp + 0x6c], 0x4808244c
mov dword [rbp + 0x70], 0x4838ec83
mov dword [rbp + 0x74], 0x4024448b
mov dword [rbp + 0x78], 0x18408b48
mov dword [rbp + 0x7c], 0x24448948
mov dword [rbp + 0x80], 0x448b4820
mov dword [rbp + 0x84], 0x8b482024
mov dword [rbp + 0x88], 0x44894800
mov dword [rbp + 0x8c], 0x8b482824
mov dword [rbp + 0x90], 0x4c202444
mov dword [rbp + 0x94], 0x4820488b
mov dword [rbp + 0x98], 0x2024448b
mov dword [rbp + 0x9c], 0x18408b4c
mov dword [rbp + 0xa0], 0x24448b48
mov dword [rbp + 0xa4], 0x508b4820
mov dword [rbp + 0xa8], 0x448b4810
mov dword [rbp + 0xac], 0x8b482024
mov dword [rbp + 0xb0], 0x54ff0848
mov dword [rbp + 0xb4], 0x8b482824
mov dword [rbp + 0xb8], 0x4820244c
mov dword [rbp + 0xbc], 0x4828498b
mov dword [rbp + 0xc0], 0xc0330189
mov dword [rbp + 0xc4], 0x38c48348
mov dword [rbp + 0xc8], 0xccccccc3
mov dword [rbp + 0xcc], 0xcccccccc
mov ebx, r13d
movsxd rax, ebx
lea r8, [rbp + 0x60]
add r8, rax
lea rdx, [rax + r14]
mov rcx, rsi
call fcn.14000ab10
add ebx, 8
cmp ebx, 0x70
jb 0x14000a880
mov rdx, qword [rbp + 0x38]
cmp rdx, 0xf
jbe 0x14000a8dc
inc rdx
mov rcx, qword [rbp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000a8d7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000a8d7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400b64a0
mov qword [rbp + 0x30], r13
mov qword [rbp + 0x38], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x20], 0
mov rdx, qword [rbp + 0x58]
cmp rdx, 0xf
jbe 0x14000a92b
inc rdx
mov rcx, qword [rbp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000a925
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000a925
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400b64a0
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 0xf
jbe 0x14000a965
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x14000a960
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
add rcx, 0xfffffffffffffff8
cmp rcx, 0x1f
ja 0x14000a9e1
mov rcx, r8
call fcn.1400b64a0
mov qword [rdi + 0x10], r13
mov eax, 1
jmp 0x14000a9ac
mov rdx, qword [rdi + 0x18]
cmp rdx, 0xf
jbe 0x14000a9a6
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x14000a9a1
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000a9e1
mov rcx, r8
call fcn.1400b64a0
mov qword [rdi + 0x10], r14
xor eax, eax
mov byte [rdi], 0
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov rcx, qword [rbp + 0xd0]
xor rcx, rsp
call fcn.1400b6480
mov rbx, qword [rsp + 0x230]
add rsp, 0x1e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.140001d50
nop
call fcn.140001cb0
int3