Function at 0x140010d90
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call
Parse pe header
Query environment variable
Resolve function by parsing pe exports

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 8]
sub rsp, 0x108
mov rax, qword [0x14001a010]
xor rax, rsp
mov qword [rbp - 8], rax
mov r14, r9
mov qword [rbp - 0x38], r9
mov rsi, r8
mov qword [rsp + 0x58], r8
mov rdi, rdx
mov qword [rsp + 0x50], rdx
mov r13, rcx
mov r12d, 4
mov rax, qword gs:[0x58]
add r12, qword [rax]
mov eax, dword [r12]
cmp dword [0x14001b128], eax
jle 0x140011280
lea rcx, [0x14001b128]
call fcn.140012308
cmp dword [0x14001b128], 0xffffffff
jne 0x140011280
xor edi, edi
mov r14d, edi
mov dword [rbp - 0x60], edi
lea r9, [rbp - 0x60]
xor r8d, r8d
xor edx, edx
lea ecx, [rdi + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x140010e76
nop dword [rax]
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rbp - 0x60]
xor ecx, ecx
lea r9d, [rcx + 4]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r14, rax
lea r9, [rbp - 0x60]
mov r8d, dword [rbp - 0x60]
mov rdx, rax
mov ecx, 0xb
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x140010e30
test eax, eax
js 0x14001124e
mov r15d, edi
cmp dword [r14], edi
jbe 0x14001124e
mov esi, 0x5a4d
nop
mov eax, r15d
imul rcx, rax, 0x128
lea rbx, [rcx + r14]
movzx eax, word [rbx + 0x2e]
add rax, rcx
lea rdx, [r14 + 0x30]
add rdx, rax
mov qword [rbp - 0x58], rdi
mov qword [rbp - 0x48], rdi
mov qword [rbp - 0x40], 0xf
mov byte [rbp - 0x58], 0
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x140010ed0
lea rcx, [rbp - 0x58]
call fcn.14000e8b0
nop
lea rcx, [rbp - 0x58]
cmp qword [rbp - 0x40], 0x10
cmovae rcx, qword [rbp - 0x58]
lea rdx, str.ntoskrnl.exe
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x140011207
lea rdx, [rbx + 0x30]
mov qword [rbp - 0x80], rdi
mov qword [rbp - 0x70], rdi
mov qword [rbp - 0x68], 0xf
mov byte [rbp - 0x80], al
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x140010f25
lea rcx, [rbp - 0x80]
call fcn.14000e8b0
nop
lea rcx, str.SYSTEMROOT
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], 0xf
mov byte [rsp + 0x30], 0
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x140010f65
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.14000e8b0
nop
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x140010fb8
lea rax, [rcx + 1]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x30]
cmp rdx, 0x10
cmovae rax, qword [rsp + 0x30]
mov word [rax + rcx], 0x5c
lea rbx, [rsp + 0x30]
jmp 0x140010fda
mov qword [rsp + 0x20], 1
lea r9, [0x14001499c]
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.14000fb80
mov rbx, rax
lea rcx, [rbp - 0x80]
call fcn.14000de80
mov rcx, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x140010ff1
mov rbx, qword [rbx]
mov qword [rsp + 0x20], rcx
mov r9, rbx
mov rdx, rax
lea rcx, [rbp - 0x80]
call fcn.14000e700
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x140011043
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001103e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140011341
call fcn.14001214c
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], 0xf
mov byte [rsp + 0x30], 0
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 0x10
cmovae rcx, qword [rbp - 0x80]
xor edx, edx
lea r8d, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov r10, rax
cmp word [rax], si
jne 0x1400113d3
movsxd rcx, dword [rax + 0x3c]
cmp dword [rcx + rax], 0x4550
jne 0x140011348
mov edx, dword [rcx + rax + 0x88]
test edx, edx
je 0x140011348
mov r11d, dword [rdx + rax + 0x1c]
lea rbx, [rax + r11]
mov r8d, dword [rdx + rax + 0x20]
add r8, rax
mov esi, dword [rdx + rax + 0x24]
add rsi, rax
mov r9d, edi
test r11d, r11d
je 0x1400111b7
mov edx, dword [r8]
add rdx, r10
mov rax, rdi
nop dword [rax]
lea rcx, [0x140014db8]
movzx ecx, byte [rcx + rax]
inc rax
cmp cl, byte [rdx + rax - 1]
jne 0x1400111a7
cmp rax, 7
jne 0x1400110d0
movsxd rax, r9d
movzx ecx, word [rsi + rax*2]
mov ebx, dword [rbx + rcx*4]
mov eax, r15d
imul rcx, rax, 0x128
add rbx, qword [rcx + r14 + 0x18]
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 0x10
jb 0x140011154
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001114f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140011409
call fcn.14001214c
mov qword [rbp - 0x70], rdi
mov qword [rbp - 0x68], 0xf
mov byte [rbp - 0x80], 0
mov rdx, qword [rbp - 0x40]
cmp rdx, 0x10
jb 0x14001119f
inc rdx
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001119a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140011410
call fcn.14001214c
mov rdi, rbx
jmp 0x14001125f
inc r9d
add r8, 4
cmp r9d, r11d
jb 0x1400110c0
mov rdx, qword [rbp - 0x68]
cmp rdx, 0x10
jb 0x1400111f2
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400111ed
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140011409
call fcn.14001214c
mov qword [rbp - 0x70], rdi
mov qword [rbp - 0x68], 0xf
mov byte [rbp - 0x80], 0
mov esi, 0x5a4d
mov rdx, qword [rbp - 0x40]
cmp rdx, 0x10
jb 0x140011242
inc rdx
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001123d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140011410
call fcn.14001214c
inc r15d
cmp r15d, dword [r14]
jb 0x140010e90
mov r8d, 0x8000
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov qword [0x14001b130], rdi
lea rcx, [0x14001b128]
call fcn.1400122a8
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov r14, qword [rbp - 0x38]
mov rbx, qword [0x14001b130]
mov eax, dword [r12]
cmp dword [0x14001b100], eax
jle 0x1400112d8
lea rcx, [0x14001b100]
call fcn.140012308
cmp dword [0x14001b100], 0xffffffff
jne 0x1400112d8
lea rcx, [0x1400149e0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.NtShutdownSystem
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14001b120], rax
lea rcx, [0x14001b100]
call fcn.1400122a8
mov eax, dword [r12]
cmp dword [0x14001b09c], eax
jle 0x140011323
lea rcx, [0x14001b09c]
call fcn.140012308
cmp dword [0x14001b09c], 0xffffffff
jne 0x140011323
mov edx, 2
lea rcx, [0x14001b140]
call qword [sym.imp.MSVCP140.dll__Mtx_init_in_situ]
lea rcx, [0x140013f20]
call fcn.140012650
lea rcx, [0x14001b09c]
call fcn.1400122a8
lea rcx, [0x14001b140]
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x140011417
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 0x10
jb 0x140011383
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001137e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140011409
call fcn.14001214c
mov qword [rbp - 0x70], rdi
mov qword [rbp - 0x68], 0xf
mov byte [rbp - 0x80], 0
mov rdx, qword [rbp - 0x40]
cmp rdx, 0x10
jb 0x14001125f
mov rcx, qword [rbp - 0x58]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400113c9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140011410
call fcn.14001214c
jmp 0x14001125f
mov rdx, qword [rbp - 0x68]
cmp rdx, 0x10
jb 0x140011383
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001137e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001137e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov dword [rbp - 0x28], 0x25ff
mov word [rbp - 0x24], 0
mov qword [rbp - 0x22], rbx
mov rax, qword [0x14001ae20]
mov qword [rbp - 0x38], 0xe
lea rcx, [rbp - 0x18]
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x50], rax
mov rcx, qword [r13 + 0x38]
test rcx, rcx
jne 0x140011455
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
int3
mov rax, qword [rcx]
lea r9, [rbp - 0x38]
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x50]
call qword [rax + 0x10]
mov rax, qword [0x14001ae20]
mov qword [rbp - 0x60], 0xe
lea rcx, [rbp - 0x28]
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x68], rax
mov rcx, qword [r13 + 0x78]
test rcx, rcx
jne 0x140011496
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
int3
mov rax, qword [rcx]
lea r9, [rbp - 0x60]
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x68]
call qword [rax + 0x10]
mov rax, qword [0x14001b120]
mov r8, r14
mov rdx, rsi
mov rcx, rdi
call rax
mov rbx, rax
mov rcx, qword [0x14001ae20]
mov qword [rbp - 0x30], 0xe
lea rax, [rbp - 0x18]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rcx
mov rcx, qword [r13 + 0x78]
test rcx, rcx
jne 0x1400114ec
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
int3
mov rax, qword [rcx]
lea r9, [rbp - 0x30]
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x78]
call qword [rax + 0x10]
lea rcx, [0x14001b140]
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
test rbx, rbx
setne al
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400120f0
add rsp, 0x108
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret