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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x330]
sub rsp, 0x430
mov rax, qword [0x14002f010]
xor rax, rsp
mov qword [rbp + 0x320], rax
mov rax, r8
mov qword [rbp + 0x58], rax
mov qword [rsp + 0x48], rdx
test r8, r8
je 0x14000b801
mov rcx, qword [rcx]
test rcx, rcx
je 0x14000b801
shr rax, 0x27
and eax, 0x1ff
lea rdi, [rcx + rax*8]
mov qword [rsp + 0x38], rdi
mov qword [rdx], rdi
mov r15d, 4
mov rax, qword gs:[0x58]
add r15, qword [rax]
mov qword [rbp + 0x220], r15
xor r13d, r13d
mov r14d, 0x5a4d
mov eax, dword [r15]
cmp dword [0x14002fb50], eax
jle 0x1400097f5
lea rcx, [0x14002fb50]
call fcn.14000dbd0
cmp dword [0x14002fb50], 0xffffffff
jne 0x1400097f5
mov r15d, r13d
mov dword [rbp + 0x40], r13d
lea r9, [rbp + 0x40]
xor r8d, r8d
xor edx, edx
lea ecx, [rdx + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x140009616
nop dword [rax + rax]
xor edx, edx
mov r8d, 0x8000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rbp + 0x40]
xor ecx, ecx
lea r9d, [rcx + 4]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r15, rax
lea r9, [rbp + 0x40]
mov r8d, dword [rbp + 0x40]
mov rdx, rax
mov ecx, 0xb
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x1400095d0
test eax, eax
js 0x1400097c2
mov r12d, r13d
cmp dword [r15], r13d
jbe 0x1400097c2
nop word [rax + rax]
mov eax, r12d
mov qword [rbp + 0x48], rax
imul rcx, rax, 0x128
lea rbx, [rcx + r15]
movzx edx, word [rbx + 0x2e]
add rcx, 0x30
add rdx, rcx
add rdx, r15
lea rcx, [rbp + 0x80]
call fcn.140006410
nop
lea rcx, [rbp + 0x80]
call fcn.140006cc0
lea rdx, [0x140010ac8]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x1400097a7
lea rdx, [rbx + 0x30]
lea rcx, [rbp + 0x60]
call fcn.140006410
nop
lea rcx, str.SYSTEMROOT
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rdx, rax
lea rcx, [rbp + 0xc0]
call fcn.140006410
nop
mov r8d, 1
lea rdx, [0x14001093c]
mov rcx, rax
call fcn.140006c40
mov rdi, rax
xor r8d, r8d
lea rdx, str.SystemRoot_
lea rcx, [rbp + 0x60]
call fcn.140006260
mov rsi, rax
mov rbx, qword [rdi + 0x10]
mov rcx, rdi
call fcn.140006cc0
mov qword [rsp + 0x20], rbx
mov r9, rax
mov r8d, 0xc
mov rdx, rsi
lea rcx, [rbp + 0x60]
call fcn.140006930
nop
lea rcx, [rbp + 0xc0]
call fcn.140002c20
lea rcx, [rbp + 0x60]
call fcn.140006cc0
xor edx, edx
lea r8d, [rdx + 1]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov rsi, rax
cmp word [rax], r14w
jne 0x1400098fd
movsxd rax, dword [rax + 0x3c]
cmp dword [rax + rsi], 0x4550
jne 0x1400098fd
mov ecx, dword [rax + rsi + 0x88]
test ecx, ecx
je 0x1400098fd
mov r14d, dword [rcx + rsi + 0x1c]
lea r13, [rsi + r14]
mov ebx, dword [rcx + rsi + 0x20]
add rbx, rsi
mov eax, dword [rcx + rsi + 0x24]
add rax, rsi
mov qword [rbp + 0x50], rax
xor edi, edi
test r14d, r14d
je 0x140009798
mov edx, dword [rbx]
add rdx, rsi
lea rcx, str.MmGetVirtualForPhysical
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x1400098b0
inc edi
add rbx, 4
cmp edi, r14d
jb 0x140009774
lea rcx, [rbp + 0x60]
call fcn.140002c20
mov r14d, 0x5a4d
lea rcx, [rbp + 0x80]
call fcn.140002c20
inc r12d
cmp r12d, dword [r15]
jb 0x140009630
xor r13d, r13d
mov r8d, 0x8000
xor edx, edx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rbx, r13
mov qword [0x14002fae8], rbx
lea rcx, [0x14002fb50]
call fcn.14000db70
mov rdi, qword [rsp + 0x38]
mov r15, qword [rbp + 0x220]
mov rbx, qword [0x14002fae8]
mov eax, dword [r15]
cmp dword [0x14002faf8], eax
jle 0x14000984c
lea rcx, [0x14002faf8]
call fcn.14000dbd0
cmp dword [0x14002faf8], 0xffffffff
jne 0x14000984c
lea rcx, [0x140010ab8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.NtShutdownSystem
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14002fbb8], rax
lea rcx, [0x14002faf8]
call fcn.14000db70
mov eax, dword [r15]
cmp dword [0x14002fbb0], eax
jle 0x140009896
lea rcx, [0x14002fbb0]
call fcn.14000dbd0
cmp dword [0x14002fbb0], 0xffffffff
jne 0x140009896
mov edx, 2
lea rcx, [0x14002fb00]
call qword [sym.imp.MSVCP140.dll__Mtx_init_in_situ]
lea rcx, [0x14000f480]
call fcn.14000df54
lea rcx, [0x14002fbb0]
call fcn.14000db70
lea rcx, [0x14002fb00]
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x14000991b
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
nop
movsxd rax, edi
mov rcx, qword [rbp + 0x50]
movzx ecx, word [rcx + rax*2]
mov ebx, dword [r13 + rcx*4]
imul rax, qword [rbp + 0x48], 0x128
add rbx, qword [rax + r15 + 0x18]
xor edx, edx
mov r8d, 0x8000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
lea rcx, [rbp + 0x60]
call fcn.140002c20
nop
lea rcx, [rbp + 0x80]
call fcn.140002c20
xor r13d, r13d
jmp 0x1400097d6
lea rcx, [rbp + 0x60]
call fcn.140002c20
nop
lea rcx, [rbp + 0x80]
call fcn.140002c20
xor r13d, r13d
jmp 0x1400097d3
mov dword [rbp + 0x230], 0x25ff
mov word [rbp + 0x234], 0
mov qword [rbp + 0x236], rbx
mov rcx, qword [0x14002fad0]
mov r8d, 0xe
lea rdx, [rbp + 0x2f0]
call fcn.140003200
mov rcx, qword [0x14002fad0]
mov r8d, 0xe
lea rdx, [rbp + 0x230]
call fcn.1400033a0
mov rax, qword [0x14002fbb8]
mov rcx, rdi
call rax
mov rdi, rax
mov qword [rsp + 0x38], rax
mov rcx, qword [0x14002fad0]
mov r8d, 0xe
lea rdx, [rbp + 0x2f0]
call fcn.1400033a0
lea rcx, [0x14002fb00]
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov ecx, dword [r15]
cmp dword [0x14002fe0c], ecx
jle 0x140009c72
lea rcx, [0x14002fe0c]
call fcn.14000dbd0
cmp dword [0x14002fe0c], 0xffffffff
jne 0x140009c72
mov r14, r13
mov dword [rbp + 0x40], r13d
lea r9, [rbp + 0x40]
xor r8d, r8d
xor edx, edx
lea ecx, [rdx + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x140009a36
nop dword [rax]
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rbp + 0x40]
xor ecx, ecx
lea r9d, [rcx + 4]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r14, rax
lea r9, [rbp + 0x40]
mov r8d, dword [rbp + 0x40]
mov rdx, rax
mov ecx, 0xb
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x1400099f0
test eax, eax
jns 0x140009a50
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x140009c57
mov r15d, r13d
cmp dword [r14], 0
jbe 0x140009c3f
nop dword [rax]
mov r12d, r15d
imul rcx, r12, 0x128
lea rbx, [rcx + r14]
movzx edx, word [rbx + 0x2e]
add rcx, 0x30
add rdx, rcx
add rdx, r14
lea rcx, [rbp + 0x1c0]
call fcn.140006410
nop
lea rcx, [rbp + 0x1c0]
call fcn.140006cc0
lea rdx, [0x140010ac8]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x140009c27
lea rdx, [rbx + 0x30]
lea rcx, [rbp + 0x60]
call fcn.140006410
nop
lea rcx, str.SYSTEMROOT
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rdx, rax
lea rcx, [rbp]
call fcn.140006410
nop
mov r8d, 1
lea rdx, [0x14001093c]
mov rcx, rax
call fcn.140006c40
mov rdi, rax
xor r8d, r8d
lea rdx, str.SystemRoot_
lea rcx, [rbp + 0x60]
call fcn.140006260
mov rsi, rax
mov rbx, qword [rdi + 0x10]
mov rcx, rdi
call fcn.140006cc0
mov qword [rsp + 0x20], rbx
mov r9, rax
mov r8d, 0xc
mov rdx, rsi
lea rcx, [rbp + 0x60]
call fcn.140006930
nop
lea rcx, [rbp]
call fcn.140002c20
lea rcx, [rbp + 0x60]
call fcn.140006cc0
xor edx, edx
lea r8d, [rdx + 1]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov r10, rax
mov eax, 0x5a4d
cmp word [r10], ax
jne 0x140009d2d
movsxd rcx, dword [r10 + 0x3c]
cmp dword [rcx + r10], 0x4550
jne 0x140009d2d
mov edx, dword [rcx + r10 + 0x88]
test edx, edx
je 0x140009d2d
mov r11d, dword [rdx + r10 + 0x1c]
lea rbx, [r10 + r11]
mov r8d, dword [rdx + r10 + 0x20]
add r8, r10
mov edi, dword [rdx + r10 + 0x24]
add rdi, r10
mov r9d, r13d
test r11d, r11d
je 0x140009c1d
mov edx, dword [r8]
add rdx, r10
mov rcx, r13
nop dword [rax]
lea rax, [0x140010b68]
movzx eax, byte [rax + rcx]
inc rcx
cmp al, byte [rdx + rcx - 1]
jne 0x140009c11
cmp rcx, 7
jne 0x140009bb0
movsxd rax, r9d
movzx ecx, word [rdi + rax*2]
mov ebx, dword [rbx + rcx*4]
imul rax, r12, 0x128
add rbx, qword [rax + r14 + 0x18]
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
lea rcx, [rbp + 0x60]
call fcn.140002c20
nop
lea rcx, [rbp + 0x1c0]
call fcn.140002c20
mov r15, qword [rbp + 0x220]
jmp 0x140009c5a
inc r9d
add r8, 4
cmp r9d, r11d
jb 0x140009ba0
lea rcx, [rbp + 0x60]
call fcn.140002c20
nop
lea rcx, [rbp + 0x1c0]
call fcn.140002c20
inc r15d
cmp r15d, dword [r14]
jb 0x140009a60
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov r15, qword [rbp + 0x220]
mov rbx, r13
mov qword [0x14002fd10], rbx
lea rcx, [0x14002fe0c]
call fcn.14000db70
mov rdi, qword [rsp + 0x38]
mov rbx, qword [0x14002fd10]
mov eax, dword [r15]
cmp dword [0x14002ff38], eax
jle 0x140009cc9
lea rcx, [0x14002ff38]
call fcn.14000dbd0
cmp dword [0x14002ff38], 0xffffffff
jne 0x140009cc9
lea rcx, [0x140010ab8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.NtShutdownSystem
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14002fd18], rax
lea rcx, [0x14002ff38]
call fcn.14000db70
mov eax, dword [r15]
cmp dword [0x14002fdf4], eax
jle 0x140009d13
lea rcx, [0x14002fdf4]
call fcn.14000dbd0
cmp dword [0x14002fdf4], 0xffffffff
jne 0x140009d13
mov edx, 2
lea rcx, [0x14002fd30]
call qword [sym.imp.MSVCP140.dll__Mtx_init_in_situ]
lea rcx, [0x14000f4d0]
call fcn.14000df54
lea rcx, [0x14002fdf4]
call fcn.14000db70
lea rcx, [0x14002fd30]
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x140009d48
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
nop
lea rcx, [rbp + 0x60]
call fcn.140002c20
nop
lea rcx, [rbp + 0x1c0]
call fcn.140002c20
jmp 0x140009c50
mov dword [rbp + 0x240], 0x25ff
mov word [rbp + 0x244], 0
mov qword [rbp + 0x246], rbx
mov rcx, qword [0x14002fad0]
mov r8d, 0xe
lea rdx, [rbp + 0x2a0]
call fcn.140003200
mov rcx, qword [0x14002fad0]
mov r8d, 0xe
lea rdx, [rbp + 0x240]
call fcn.1400033a0
mov r8d, 8
mov rdx, rdi
lea rcx, [rsp + 0x40]
call qword [0x14002fd18]
mov rcx, qword [0x14002fad0]
mov r8d, 0xe
lea rdx, [rbp + 0x2a0]
call fcn.1400033a0
lea rcx, [0x14002fd30]
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov rax, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
mov qword [rdx + 8], rax
test rax, rax
je 0x14000b801
mov rcx, qword [rbp + 0x58]
shr rcx, 0x1e
and ecx, 0x1ff
movabs r8, 0xfffffffff000
and rax, r8
lea rdi, [rax + rcx*8]
mov qword [rbp + 0x230], rdi
mov qword [rdx + 0x10], rdi
mov eax, dword [r15]
cmp dword [0x14002fb50], eax
jle 0x14000a091
lea rcx, [0x14002fb50]
call fcn.14000dbd0
cmp dword [0x14002fb50], 0xffffffff
jne 0x14000a091
mov r15, r13
mov dword [rbp + 0x40], r13d
lea r9, [rbp + 0x40]
xor r8d, r8d
xor edx, edx
lea ecx, [rdx + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x140009ea6
nop word [rax + rax]
xor edx, edx
mov r8d, 0x8000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rbp + 0x40]
xor ecx, ecx
lea r9d, [rcx + 4]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r15, rax
lea r9, [rbp + 0x40]
mov r8d, dword [rbp + 0x40]
mov rdx, rax
mov ecx, 0xb
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x140009e60
test eax, eax
js 0x14000a05c
mov r12d, r13d
cmp dword [r15], 0
jbe 0x14000a05c
nop dword [rax + rax]
mov eax, r12d
mov qword [rsp + 0x38], rax
imul rcx, rax, 0x128
lea rbx, [rcx + r15]
movzx edx, word [rbx + 0x2e]
add rcx, 0x30
add rdx, rcx
add rdx, r15
lea rcx, [rbp + 0x1e0]
call fcn.140006410
nop
lea rcx, [rbp + 0x1e0]
call fcn.140006cc0
lea rdx, [0x140010ac8]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x14000a041
lea rdx, [rbx + 0x30]
lea rcx, [rbp + 0x100]
call fcn.140006410
nop
lea rcx, str.SYSTEMROOT
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rdx, rax
lea rcx, [rbp - 0x20]
call fcn.140006410
nop
mov r8d, 1
lea rdx, [0x14001093c]
mov rcx, rax
call fcn.140006c40
mov rdi, rax
xor r8d, r8d
lea rdx, str.SystemRoot_
lea rcx, [rbp + 0x100]
call fcn.140006260
mov rsi, rax
mov rbx, qword [rdi + 0x10]
mov rcx, rdi
call fcn.140006cc0
mov qword [rsp + 0x20], rbx
mov r9, rax
mov r8d, 0xc
mov rdx, rsi
lea rcx, [rbp + 0x100]
call fcn.140006930
nop
lea rcx, [rbp - 0x20]
call fcn.140002c20
lea rcx, [rbp + 0x100]
call fcn.140006cc0
xor edx, edx
lea r8d, [rdx + 1]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov rsi, rax
mov eax, 0x5a4d
cmp word [rsi], ax
jne 0x14000a19e
movsxd rax, dword [rsi + 0x3c]
cmp dword [rax + rsi], 0x4550
jne 0x14000a19e
mov ecx, dword [rax + rsi + 0x88]
test ecx, ecx
je 0x14000a19e
mov r14d, dword [rcx + rsi + 0x1c]
lea r13, [rsi + r14]
mov ebx, dword [rcx + rsi + 0x20]
add rbx, rsi
mov eax, dword [rcx + rsi + 0x24]
add rax, rsi
mov qword [rsp + 0x40], rax
xor edi, edi
test r14d, r14d
je 0x14000a034
mov edx, dword [rbx]
add rdx, rsi
lea rcx, str.MmGetVirtualForPhysical
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x14000a14c
inc edi
add rbx, 4
cmp edi, r14d
jb 0x14000a010
lea rcx, [rbp + 0x100]
call fcn.140002c20
nop
lea rcx, [rbp + 0x1e0]
call fcn.140002c20
inc r12d
cmp r12d, dword [r15]
jb 0x140009ec0
xor r13d, r13d
mov r8d, 0x8000
xor edx, edx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rbx, r13
mov qword [0x14002fae8], rbx
lea rcx, [0x14002fb50]
call fcn.14000db70
mov rdi, qword [rbp + 0x230]
mov r15, qword [rbp + 0x220]
mov rbx, qword [0x14002fae8]
mov eax, dword [r15]
cmp dword [0x14002faf8], eax
jle 0x14000a0e8
lea rcx, [0x14002faf8]
call fcn.14000dbd0
cmp dword [0x14002faf8], 0xffffffff
jne 0x14000a0e8
lea rcx, [0x140010ab8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.NtShutdownSystem
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14002fbb8], rax
lea rcx, [0x14002faf8]
call fcn.14000db70
mov eax, dword [r15]
cmp dword [0x14002fbb0], eax
jle 0x14000a132
lea rcx, [0x14002fbb0]
call fcn.14000dbd0
cmp dword [0x14002fbb0], 0xffffffff
jne 0x14000a132
mov edx, 2
lea rcx, [0x14002fb00]
call qword [sym.imp.MSVCP140.dll__Mtx_init_in_situ]
lea rcx, [0x14000f480]
call fcn.14000df54
lea rcx, [0x14002fbb0]
call fcn.14000db70
lea rcx, [0x14002fb00]
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x14000a1bf
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
nop
movsxd rax, edi
mov rcx, qword [rsp + 0x40]
movzx ecx, word [rcx + rax*2]
mov ebx, dword [r13 + rcx*4]
imul rax, qword [rsp + 0x38], 0x128
add rbx, qword [rax + r15 + 0x18]
xor edx, edx
mov r8d, 0x8000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
lea rcx, [rbp + 0x100]
call fcn.140002c20
nop
lea rcx, [rbp + 0x1e0]
call fcn.140002c20
xor r13d, r13d
jmp 0x14000a070
lea rcx, [rbp + 0x100]
call fcn.140002c20
nop
lea rcx, [rbp + 0x1e0]
call fcn.140002c20
xor r13d, r13d
jmp 0x14000a06d
mov dword [rbp + 0x250], 0x25ff
mov word [rbp + 0x254], 0
mov qword [rbp + 0x256], rbx
mov rcx, qword [0x14002fad0]
mov r8d, 0xe
lea rdx, [rbp + 0x2b0]
call fcn.140003200
mov rcx, qword [0x14002fad0]
mov r8d, 0xe
lea rdx, [rbp + 0x250]
call fcn.1400033a0
mov rax, qword [0x14002fbb8]
mov rcx, rdi
call rax
mov rdi, rax
mov qword [rbp + 0x230], rax
mov rcx, qword [0x14002fad0]
mov r8d, 0xe
lea rdx, [rbp + 0x2b0]
call fcn.1400033a0
lea rcx, [0x14002fb00]
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov ecx, dword [r15]
cmp dword [0x14002fdf8], ecx
jle 0x14000a52a
lea rcx, [0x14002fdf8]
call fcn.14000dbd0
cmp dword [0x14002fdf8], 0xffffffff
jne 0x14000a52a
mov r14, r13
mov dword [rbp + 0x48], r13d
lea r9, [rbp + 0x48]
xor r8d, r8d
xor edx, edx
lea ecx, [rdx + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x14000a2d6
nop
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rbp + 0x48]
xor ecx, ecx
lea r9d, [rcx + 4]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r14, rax
lea r9, [rbp + 0x48]
mov r8d, dword [rbp + 0x48]
mov rdx, rax
mov ecx, 0xb
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x14000a290
test eax, eax
jns 0x14000a2f0
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x14000a50d
mov r15d, r13d
cmp dword [r14], 0
jbe 0x14000a4f5
nop dword [rax]
mov r12d, r15d
imul rcx, r12, 0x128
lea rbx, [r14 + rcx]
movzx eax, word [rbx + 0x2e]
add rax, r14
lea rdx, [rcx + 0x30]
add rdx, rax
lea rcx, [rbp + 0x160]
call fcn.140006410
nop
lea rcx, [rbp + 0x160]
call fcn.140006cc0
lea rdx, [0x140010ac8]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x14000a4dd
lea rdx, [rbx + 0x30]
lea rcx, [rbp + 0xe0]
call fcn.140006410
nop
lea rcx, str.SYSTEMROOT
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rdx, rax
lea rcx, [rbp + 0x20]
call fcn.140006410
nop
mov r8d, 1
lea rdx, [0x14001093c]
mov rcx, rax
call fcn.140006c40
mov rdi, rax
xor r8d, r8d
lea rdx, str.SystemRoot_
lea rcx, [rbp + 0xe0]
call fcn.140006260
mov rsi, rax
mov rbx, qword [rdi + 0x10]
mov rcx, rdi
call fcn.140006cc0
mov qword [rsp + 0x20], rbx
mov r9, rax
mov r8d, 0xc
mov rdx, rsi
lea rcx, [rbp + 0xe0]
call fcn.140006930
nop
lea rcx, [rbp + 0x20]
call fcn.140002c20
lea rcx, [rbp + 0xe0]
call fcn.140006cc0
xor edx, edx
lea r8d, [rdx + 1]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov r10, rax
mov eax, 0x5a4d
cmp word [r10], ax
jne 0x14000a5e5
movsxd rcx, dword [r10 + 0x3c]
cmp dword [rcx + r10], 0x4550
jne 0x14000a5e5
mov edx, dword [rcx + r10 + 0x88]
test edx, edx
je 0x14000a5e5
mov r11d, dword [rdx + r10 + 0x1c]
lea rbx, [r10 + r11]
mov r8d, dword [rdx + r10 + 0x20]
add r8, r10
mov edi, dword [rdx + r10 + 0x24]
add rdi, r10
mov r9d, r13d
test r11d, r11d
je 0x14000a4d0
mov edx, dword [r8]
add rdx, r10
mov rcx, r13
nop dword [rax]
lea rax, [0x140010b68]
movzx eax, byte [rax + rcx]
inc rcx
cmp al, byte [rdx + rcx - 1]
jne 0x14000a4c4
cmp rcx, 7
jne 0x14000a460
movsxd rax, r9d
movzx ecx, word [rdi + rax*2]
mov ebx, dword [rbx + rcx*4]
imul rax, r12, 0x128
add rbx, qword [rax + r14 + 0x18]
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
lea rcx, [rbp + 0xe0]
call fcn.140002c20
nop
lea rcx, [rbp + 0x160]
call fcn.140002c20
mov r15, qword [rbp + 0x220]
jmp 0x14000a510
inc r9d
add r8, 4
cmp r9d, r11d
jb 0x14000a450
lea rcx, [rbp + 0xe0]
call fcn.140002c20
nop
lea rcx, [rbp + 0x160]
call fcn.140002c20
inc r15d
cmp r15d, dword [r14]
jb 0x14000a300
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov r15, qword [rbp + 0x220]
mov rbx, r13
mov qword [0x14002fe18], rbx
lea rcx, [0x14002fdf8]
call fcn.14000db70
mov rdi, qword [rbp + 0x230]
mov rbx, qword [0x14002fe18]
mov eax, dword [r15]
cmp dword [0x14002ff3c], eax
jle 0x14000a581
lea rcx, [0x14002ff3c]
call fcn.14000dbd0
cmp dword [0x14002ff3c], 0xffffffff
jne 0x14000a581
lea rcx, [0x140010ab8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.NtShutdownSystem
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14002fde0], rax
lea rcx, [0x14002ff3c]
call fcn.14000db70
mov eax, dword [r15]
cmp dword [0x14002fe08], eax
jle 0x14000a5cb
lea rcx, [0x14002fe08]
call fcn.14000dbd0
cmp dword [0x14002fe08], 0xffffffff
jne 0x14000a5cb
mov edx, 2
lea rcx, [0x14002fee0]
call qword [sym.imp.MSVCP140.dll__Mtx_init_in_situ]
lea rcx, [0x14000f4b0]
call fcn.14000df54
lea rcx, [0x14002fe08]
call fcn.14000db70
lea rcx, [0x14002fee0]
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x14000a603
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
nop
lea rcx, [rbp + 0xe0]
call fcn.140002c20
nop
lea rcx, [rbp + 0x160]
call fcn.140002c20
jmp 0x14000a506
mov dword [rbp + 0x260], 0x25ff
mov word [rbp + 0x264], 0
mov qword [rbp + 0x266], rbx
mov rcx, qword [0x14002fad0]
mov r8d, 0xe
lea rdx, [rbp + 0x300]
call fcn.140003200
mov rcx, qword [0x14002fad0]
mov r8d, 0xe
lea rdx, [rbp + 0x260]
call fcn.1400033a0
mov r8d, 8
mov rdx, rdi
lea rcx, [rsp + 0x30]
call qword [0x14002fde0]
mov rcx, qword [0x14002fad0]
mov r8d, 0xe
lea rdx, [rbp + 0x300]
call fcn.1400033a0
lea rcx, [0x14002fee0]
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov rax, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x48]
mov qword [rdx + 0x18], rax
test rax, rax
je 0x14000b801
mov rcx, qword [rbp + 0x58]
shr rcx, 0x15
and ecx, 0x1ff
movabs r8, 0xfffffffff000
and rax, r8
lea rdi, [rax + rcx*8]
mov qword [rsp + 0x40], rdi
mov qword [rdx + 0x20], rdi
mov eax, dword [r15]
cmp dword [0x14002fb50], eax
jle 0x14000a943
lea rcx, [0x14002fb50]
call fcn.14000dbd0
cmp dword [0x14002fb50], 0xffffffff
jne 0x14000a943
mov r15, r13
mov dword [rbp + 0x48], r13d
lea r9, [rbp + 0x48]
xor r8d, r8d
xor edx, edx
lea ecx, [rdx + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x14000a756
xor edx, edx
mov r8d, 0x8000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rbp + 0x48]
xor ecx, ecx
lea r9d, [rcx + 4]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r15, rax
lea r9, [rbp + 0x48]
mov r8d, dword [rbp + 0x48]
mov rdx, rax
mov ecx, 0xb
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x14000a710
test eax, eax
js 0x14000a910
mov r12d, r13d
cmp dword [r15], 0
jbe 0x14000a910
nop dword [rax + rax]
mov eax, r12d
mov qword [rbp + 0x230], rax
imul rcx, rax, 0x128
lea rbx, [r15 + rcx]
movzx eax, word [rbx + 0x2e]
add rax, r15
lea rdx, [rcx + 0x30]
add rdx, rax
lea rcx, [rbp + 0x200]
call fcn.140006410
nop
lea rcx, [rbp + 0x200]
call fcn.140006cc0
lea rdx, [0x140010ac8]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x14000a8f5
lea rdx, [rbx + 0x30]
lea rcx, [rbp + 0x120]
call fcn.140006410
nop
lea rcx, str.SYSTEMROOT
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.140006410
nop
mov r8d, 1
lea rdx, [0x14001093c]
mov rcx, rax
call fcn.140006c40
mov rdi, rax
xor r8d, r8d
lea rdx, str.SystemRoot_
lea rcx, [rbp + 0x120]
call fcn.140006260
mov rsi, rax
mov rbx, qword [rdi + 0x10]
mov rcx, rdi
call fcn.140006cc0
mov qword [rsp + 0x20], rbx
mov r9, rax
mov r8d, 0xc
mov rdx, rsi
lea rcx, [rbp + 0x120]
call fcn.140006930
nop
lea rcx, [rsp + 0x60]
call fcn.140002c20
lea rcx, [rbp + 0x120]
call fcn.140006cc0
xor edx, edx
lea r8d, [rdx + 1]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov rsi, rax
mov eax, 0x5a4d
cmp word [rsi], ax
jne 0x14000aa52
movsxd rax, dword [rsi + 0x3c]
cmp dword [rax + rsi], 0x4550
jne 0x14000aa52
mov ecx, dword [rax + rsi + 0x88]
test ecx, ecx
je 0x14000aa52
mov r14d, dword [rcx + rsi + 0x1c]
lea r13, [rsi + r14]
mov ebx, dword [rcx + rsi + 0x20]
add rbx, rsi
mov eax, dword [rcx + rsi + 0x24]
add rax, rsi
mov qword [rsp + 0x30], rax
xor edi, edi
test r14d, r14d
je 0x14000a8e8
mov edx, dword [rbx]
add rdx, rsi
lea rcx, str.MmGetVirtualForPhysical
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x14000a9fe
inc edi
add rbx, 4
cmp edi, r14d
jb 0x14000a8c4
lea rcx, [rbp + 0x120]
call fcn.140002c20
nop
lea rcx, [rbp + 0x200]
call fcn.140002c20
inc r12d
cmp r12d, dword [r15]
jb 0x14000a770
xor r13d, r13d
mov r8d, 0x8000
xor edx, edx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rbx, r13
mov qword [0x14002fae8], rbx
lea rcx, [0x14002fb50]
call fcn.14000db70
mov rdi, qword [rsp + 0x40]
mov r15, qword [rbp + 0x220]
mov rbx, qword [0x14002fae8]
mov eax, dword [r15]
cmp dword [0x14002faf8], eax
jle 0x14000a99a
lea rcx, [0x14002faf8]
call fcn.14000dbd0
cmp dword [0x14002faf8], 0xffffffff
jne 0x14000a99a
lea rcx, [0x140010ab8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.NtShutdownSystem
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14002fbb8], rax
lea rcx, [0x14002faf8]
call fcn.14000db70
mov eax, dword [r15]
cmp dword [0x14002fbb0], eax
jle 0x14000a9e4
lea rcx, [0x14002fbb0]
call fcn.14000dbd0
cmp dword [0x14002fbb0], 0xffffffff
jne 0x14000a9e4
mov edx, 2
lea rcx, [0x14002fb00]
call qword [sym.imp.MSVCP140.dll__Mtx_init_in_situ]
lea rcx, [0x14000f480]
call fcn.14000df54
lea rcx, [0x14002fbb0]
call fcn.14000db70
lea rcx, [0x14002fb00]
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x14000aa73
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
nop
movsxd rax, edi
mov rcx, qword [rsp + 0x30]
movzx ecx, word [rcx + rax*2]
mov ebx, dword [r13 + rcx*4]
imul rax, qword [rbp + 0x230], 0x128
add rbx, qword [rax + r15 + 0x18]
xor edx, edx
mov r8d, 0x8000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
lea rcx, [rbp + 0x120]
call fcn.140002c20
nop
lea rcx, [rbp + 0x200]
call fcn.140002c20
xor r13d, r13d
jmp 0x14000a924
lea rcx, [rbp + 0x120]
call fcn.140002c20
nop
lea rcx, [rbp + 0x200]
call fcn.140002c20
xor r13d, r13d
jmp 0x14000a921
mov dword [rbp + 0x270], 0x25ff
mov word [rbp + 0x274], 0
mov qword [rbp + 0x276], rbx
mov rcx, qword [0x14002fad0]
mov r8d, 0xe
lea rdx, [rbp + 0x2d0]
call fcn.140003200
mov rcx, qword [0x14002fad0]
mov r8d, 0xe
lea rdx, [rbp + 0x270]
call fcn.1400033a0
mov rax, qword [0x14002fbb8]
mov rcx, rdi
call rax
mov rdi, rax
mov qword [rsp + 0x30], rax
mov rcx, qword [0x14002fad0]
mov r8d, 0xe
lea rdx, [rbp + 0x2d0]
call fcn.1400033a0
lea rcx, [0x14002fb00]
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov ecx, dword [r15]
cmp dword [0x14002fdf0], ecx
jle 0x14000add8
lea rcx, [0x14002fdf0]
call fcn.14000dbd0
cmp dword [0x14002fdf0], 0xffffffff
jne 0x14000add8
mov r14, r13
mov dword [rbp + 0x50], r13d
lea r9, [rbp + 0x50]
xor r8d, r8d
xor edx, edx
lea ecx, [rdx + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x14000ab87
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rbp + 0x50]
xor ecx, ecx
lea r9d, [rcx + 4]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r14, rax
lea r9, [rbp + 0x50]
mov r8d, dword [rbp + 0x50]
mov rdx, rax
mov ecx, 0xb
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x14000ab41
test eax, eax
jns 0x14000aba1
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x14000adbd
mov r15d, r13d
cmp dword [r14], 0
jbe 0x14000ada5
nop
mov r12d, r15d
imul rcx, r12, 0x128
lea rbx, [rcx + r14]
movzx edx, word [rbx + 0x2e]
add rcx, 0x30
add rdx, rcx
add rdx, r14
lea rcx, [rbp + 0x180]
call fcn.140006410
nop
lea rcx, [rbp + 0x180]
call fcn.140006cc0
lea rdx, [0x140010ac8]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x14000ad8d
lea rdx, [rbx + 0x30]
lea rcx, [rbp + 0x140]
call fcn.140006410
nop
lea rcx, str.SYSTEMROOT
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rdx, rax
lea rcx, [rbp - 0x80]
call fcn.140006410
nop
mov r8d, 1
lea rdx, [0x14001093c]
mov rcx, rax
call fcn.140006c40
mov rdi, rax
xor r8d, r8d
lea rdx, str.SystemRoot_
lea rcx, [rbp + 0x140]
call fcn.140006260
mov rsi, rax
mov rbx, qword [rdi + 0x10]
mov rcx, rdi
call fcn.140006cc0
mov qword [rsp + 0x20], rbx
mov r9, rax
mov r8d, 0xc
mov rdx, rsi
lea rcx, [rbp + 0x140]
call fcn.140006930
nop
lea rcx, [rbp - 0x80]
call fcn.140002c20
lea rcx, [rbp + 0x140]
call fcn.140006cc0
xor edx, edx
lea r8d, [rdx + 1]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov r10, rax
mov eax, 0x5a4d
cmp word [r10], ax
jne 0x14000ae93
movsxd rcx, dword [r10 + 0x3c]
cmp dword [rcx + r10], 0x4550
jne 0x14000ae93
mov edx, dword [rcx + r10 + 0x88]
test edx, edx
je 0x14000ae93
mov r11d, dword [rdx + r10 + 0x1c]
lea rbx, [r10 + r11]
mov r8d, dword [rdx + r10 + 0x20]
add r8, r10
mov edi, dword [rdx + r10 + 0x24]
add rdi, r10
mov r9d, r13d
test r11d, r11d
je 0x14000ad80
mov edx, dword [r8]
add rdx, r10
mov rcx, r13
nop dword [rax]
lea rax, [0x140010b68]
movzx eax, byte [rax + rcx]
inc rcx
cmp al, byte [rdx + rcx - 1]
jne 0x14000ad74
cmp rcx, 7
jne 0x14000ad10
movsxd rax, r9d
movzx ecx, word [rdi + rax*2]
mov ebx, dword [rbx + rcx*4]
imul rax, r12, 0x128
add rbx, qword [rax + r14 + 0x18]
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
lea rcx, [rbp + 0x140]
call fcn.140002c20
nop
lea rcx, [rbp + 0x180]
call fcn.140002c20
mov r15, qword [rbp + 0x220]
jmp 0x14000adc0
inc r9d
add r8, 4
cmp r9d, r11d
jb 0x14000ad00
lea rcx, [rbp + 0x140]
call fcn.140002c20
nop
lea rcx, [rbp + 0x180]
call fcn.140002c20
inc r15d
cmp r15d, dword [r14]
jb 0x14000abb0
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov r15, qword [rbp + 0x220]
mov rbx, r13
mov qword [0x14002fed8], rbx
lea rcx, [0x14002fdf0]
call fcn.14000db70
mov rdi, qword [rsp + 0x30]
mov rbx, qword [0x14002fed8]
mov eax, dword [r15]
cmp dword [0x14002ff30], eax
jle 0x14000ae2f
lea rcx, [0x14002ff30]
call fcn.14000dbd0
cmp dword [0x14002ff30], 0xffffffff
jne 0x14000ae2f
lea rcx, [0x140010ab8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.NtShutdownSystem
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14002fd80], rax
lea rcx, [0x14002ff30]
call fcn.14000db70
mov eax, dword [r15]
cmp dword [0x14002fed0], eax
jle 0x14000ae79
lea rcx, [0x14002fed0]
call fcn.14000dbd0
cmp dword [0x14002fed0], 0xffffffff
jne 0x14000ae79
mov edx, 2
lea rcx, [0x14002fd90]
call qword [sym.imp.MSVCP140.dll__Mtx_init_in_situ]
lea rcx, [0x14000f4a0]
call fcn.14000df54
lea rcx, [0x14002fed0]
call fcn.14000db70
lea rcx, [0x14002fd90]
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x14000aeb1
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
nop
lea rcx, [rbp + 0x140]
call fcn.140002c20
nop
lea rcx, [rbp + 0x180]
call fcn.140002c20
jmp 0x14000adb6
mov dword [rbp + 0x280], 0x25ff
mov word [rbp + 0x284], 0
mov qword [rbp + 0x286], rbx
mov rcx, qword [0x14002fad0]
mov r8d, 0xe
lea rdx, [rbp + 0x310]
call fcn.140003200
mov rcx, qword [0x14002fad0]
mov r8d, 0xe
lea rdx, [rbp + 0x280]
call fcn.1400033a0
mov r8d, 8
mov rdx, rdi
lea rcx, [rsp + 0x50]
call qword [0x14002fd80]
mov rcx, qword [0x14002fad0]
mov r8d, 0xe
lea rdx, [rbp + 0x310]
call fcn.1400033a0
lea rcx, [0x14002fd90]
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov rax, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov qword [rdx + 0x28], rax
test al, al
jns 0x14000af58
mov qword [rdx + 0x38], rax
mov qword [rdx + 0x30], rax
mov al, 1
jmp 0x14000b803
mov rcx, qword [rbp + 0x58]
shr rcx, 0xc
and ecx, 0x1ff
movabs r8, 0xfffffffff000
and rax, r8
lea rdi, [rax + rcx*8]
mov qword [rbp + 0x230], rdi
mov qword [rdx + 0x30], rdi
mov eax, dword [r15]
cmp dword [0x14002fb50], eax
jle 0x14000b201
lea rcx, [0x14002fb50]
call fcn.14000dbd0
cmp dword [0x14002fb50], 0xffffffff
jne 0x14000b201
mov r15, r13
mov dword [rbp + 0x50], r13d
lea r9, [rbp + 0x50]
xor r8d, r8d
xor edx, edx
lea ecx, [rdx + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x14000b016
nop word [rax + rax]
xor edx, edx
mov r8d, 0x8000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rbp + 0x50]
xor ecx, ecx
lea r9d, [rcx + 4]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r15, rax
lea r9, [rbp + 0x50]
mov r8d, dword [rbp + 0x50]
mov rdx, rax
mov ecx, 0xb
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x14000afd0
test eax, eax
js 0x14000b1cc
mov r12d, r13d
cmp dword [r15], 0
jbe 0x14000b1cc
nop dword [rax + rax]
mov eax, r12d
mov qword [rsp + 0x30], rax
imul rcx, rax, 0x128
lea rbx, [r15 + rcx]
movzx eax, word [rbx + 0x2e]
add rax, r15
lea rdx, [rcx + 0x30]
add rdx, rax
lea rcx, [rbp + 0x1a0]
call fcn.140006410
nop
lea rcx, [rbp + 0x1a0]
call fcn.140006cc0
lea rdx, [0x140010ac8]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x14000b1b1
lea rdx, [rbx + 0x30]
lea rcx, [rbp + 0xa0]
call fcn.140006410
nop
lea rcx, str.SYSTEMROOT
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rdx, rax
lea rcx, [rbp - 0x60]
call fcn.140006410
nop
mov r8d, 1
lea rdx, [0x14001093c]
mov rcx, rax
call fcn.140006c40
mov rdi, rax
xor r8d, r8d
lea rdx, str.SystemRoot_
lea rcx, [rbp + 0xa0]
call fcn.140006260
mov rsi, rax
mov rbx, qword [rdi + 0x10]
mov rcx, rdi
call fcn.140006cc0
mov qword [rsp + 0x20], rbx
mov r9, rax
mov r8d, 0xc
mov rdx, rsi
lea rcx, [rbp + 0xa0]
call fcn.140006930
nop
lea rcx, [rbp - 0x60]
call fcn.140002c20
lea rcx, [rbp + 0xa0]
call fcn.140006cc0
xor edx, edx
lea r8d, [rdx + 1]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov rsi, rax
mov eax, 0x5a4d
cmp word [rsi], ax
jne 0x14000b30b
movsxd rax, dword [rsi + 0x3c]
cmp dword [rax + rsi], 0x4550
jne 0x14000b30b
mov ecx, dword [rax + rsi + 0x88]
test ecx, ecx
je 0x14000b30b
mov r14d, dword [rcx + rsi + 0x1c]
lea r13, [rsi + r14]
mov ebx, dword [rcx + rsi + 0x20]
add rbx, rsi
mov eax, dword [rcx + rsi + 0x24]
add rax, rsi
mov qword [rsp + 0x50], rax
xor edi, edi
test r14d, r14d
je 0x14000b1a4
mov edx, dword [rbx]
add rdx, rsi
lea rcx, str.MmGetVirtualForPhysical
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x14000b2bc
inc edi
add rbx, 4
cmp edi, r14d
jb 0x14000b180
lea rcx, [rbp + 0xa0]
call fcn.140002c20
nop
lea rcx, [rbp + 0x1a0]
call fcn.140002c20
inc r12d
cmp r12d, dword [r15]
jb 0x14000b030
xor r13d, r13d
mov r8d, 0x8000
xor edx, edx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rbx, r13
mov qword [0x14002fae8], rbx
lea rcx, [0x14002fb50]
call fcn.14000db70
mov rdi, qword [rbp + 0x230]
mov r15, qword [rbp + 0x220]
mov rbx, qword [0x14002fae8]
mov eax, dword [r15]
cmp dword [0x14002faf8], eax
jle 0x14000b258
lea rcx, [0x14002faf8]
call fcn.14000dbd0
cmp dword [0x14002faf8], 0xffffffff
jne 0x14000b258
lea rcx, [0x140010ab8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.NtShutdownSystem
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14002fbb8], rax
lea rcx, [0x14002faf8]
call fcn.14000db70
mov eax, dword [r15]
cmp dword [0x14002fbb0], eax
jle 0x14000b2a2
lea rcx, [0x14002fbb0]
call fcn.14000dbd0
cmp dword [0x14002fbb0], 0xffffffff
jne 0x14000b2a2
mov edx, 2
lea rcx, [0x14002fb00]
call qword [sym.imp.MSVCP140.dll__Mtx_init_in_situ]
lea rcx, [0x14000f480]
call fcn.14000df54
lea rcx, [0x14002fbb0]
call fcn.14000db70
lea rcx, [0x14002fb00]
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x14000b32b
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
nop
movsxd rax, edi
mov rcx, qword [rsp + 0x50]
movzx ecx, word [rcx + rax*2]
mov ebx, dword [r13 + rcx*4]
imul rax, qword [rsp + 0x30], 0x128
add rbx, qword [rax + r15 + 0x18]
xor edx, edx
mov r8d, 0x8000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
lea rcx, [rbp + 0xa0]
call fcn.140002c20
nop
lea rcx, [rbp + 0x1a0]
call fcn.140002c20
jmp 0x14000b1e0
lea rcx, [rbp + 0xa0]
call fcn.140002c20
nop
lea rcx, [rbp + 0x1a0]
call fcn.140002c20
xor ebx, ebx
jmp 0x14000b1e0
mov dword [rbp + 0x290], 0x25ff
mov word [rbp + 0x294], 0
mov qword [rbp + 0x296], rbx
mov rcx, qword [0x14002fad0]
mov r8d, 0xe
lea rdx, [rbp + 0x2c0]
call fcn.140003200
mov rcx, qword [0x14002fad0]
mov r8d, 0xe
lea rdx, [rbp + 0x290]
call fcn.1400033a0
mov rax, qword [0x14002fbb8]
mov rcx, rdi
call rax
mov r13, rax
mov rcx, qword [0x14002fad0]
mov r8d, 0xe
lea rdx, [rbp + 0x2c0]
call fcn.1400033a0
lea rcx, [0x14002fb00]
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov ecx, dword [r15]
cmp dword [0x14002fd20], ecx
jle 0x14000b689
lea rcx, [0x14002fd20]
call fcn.14000dbd0
cmp dword [0x14002fd20], 0xffffffff
jne 0x14000b689
xor esi, esi
mov r14d, esi
mov dword [rbp + 0x58], esi
lea r9, [rbp + 0x58]
xor r8d, r8d
xor edx, edx
lea ecx, [rsi + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x14000b43b
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rbp + 0x58]
xor ecx, ecx
lea r9d, [rcx + 4]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r14, rax
lea r9, [rbp + 0x58]
mov r8d, dword [rbp + 0x58]
mov rdx, rax
mov ecx, 0xb
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x14000b3f5
test eax, eax
jns 0x14000b455
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x14000b676
mov r15d, esi
cmp dword [r14], esi
jbe 0x14000b65e
mov r12d, r15d
imul rcx, r12, 0x128
lea rbx, [r14 + rcx]
movzx eax, word [rbx + 0x2e]
add rax, r14
lea rdx, [rcx + 0x30]
add rdx, rax
lea rcx, [rbp + 0xc0]
call fcn.140006410
nop
lea rcx, [rbp + 0xc0]
call fcn.140006cc0
lea rdx, [0x140010ac8]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x14000b646
lea rdx, [rbx + 0x30]
lea rcx, [rbp + 0x80]
call fcn.140006410
nop
lea rcx, str.SYSTEMROOT
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rdx, rax
lea rcx, [rbp - 0x40]
call fcn.140006410
nop
mov r8d, 1
lea rdx, [0x14001093c]
mov rcx, rax
call fcn.140006c40
mov rdi, rax
xor r8d, r8d
lea rdx, str.SystemRoot_
lea rcx, [rbp + 0x80]
call fcn.140006260
mov rsi, rax
mov rbx, qword [rdi + 0x10]
mov rcx, rdi
call fcn.140006cc0
mov qword [rsp + 0x20], rbx
mov r9, rax
mov r8d, 0xc
mov rdx, rsi
lea rcx, [rbp + 0x80]
call fcn.140006930
nop
lea rcx, [rbp - 0x40]
call fcn.140002c20
lea rcx, [rbp + 0x80]
call fcn.140006cc0
xor edx, edx
lea r8d, [rdx + 1]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov r10, rax
mov eax, 0x5a4d
cmp word [r10], ax
jne 0x14000b744
movsxd rcx, dword [r10 + 0x3c]
cmp dword [rcx + r10], 0x4550
jne 0x14000b744
mov eax, dword [rcx + r10 + 0x88]
test eax, eax
je 0x14000b744
mov r11d, dword [rax + r10 + 0x1c]
lea rbx, [r10 + r11]
mov r8d, dword [rax + r10 + 0x20]
add r8, r10
mov edi, dword [rax + r10 + 0x24]
add rdi, r10
xor esi, esi
mov r9d, esi
test r11d, r11d
je 0x14000b639
nop dword [rax]
nop word [rax + rax]
mov edx, dword [r8]
add rdx, r10
mov rax, rsi
nop dword [rax]
lea rcx, [0x140010b68]
movzx ecx, byte [rcx + rax]
inc rax
cmp cl, byte [rdx + rax - 1]
jne 0x14000b62d
cmp rax, 7
jne 0x14000b5d0
movsxd rax, r9d
movzx ecx, word [rdi + rax*2]
mov esi, dword [rbx + rcx*4]
imul rax, r12, 0x128
add rsi, qword [rax + r14 + 0x18]
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
lea rcx, [rbp + 0x80]
call fcn.140002c20
nop
lea rcx, [rbp + 0xc0]
call fcn.140002c20
jmp 0x14000b66f
inc r9d
add r8, 4
cmp r9d, r11d
jb 0x14000b5c0
lea rcx, [rbp + 0x80]
call fcn.140002c20
nop
lea rcx, [rbp + 0xc0]
call fcn.140002c20
inc r15d
cmp r15d, dword [r14]
jb 0x14000b461
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov r15, qword [rbp + 0x220]
mov qword [0x14002fde8], rsi
lea rcx, [0x14002fd20]
call fcn.14000db70
mov rbx, qword [0x14002fde8]
mov eax, dword [r15]
cmp dword [0x14002fd08], eax
jle 0x14000b6e0
lea rcx, [0x14002fd08]
call fcn.14000dbd0
cmp dword [0x14002fd08], 0xffffffff
jne 0x14000b6e0
lea rcx, [0x140010ab8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.NtShutdownSystem
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14002fec8], rax
lea rcx, [0x14002fd08]
call fcn.14000db70
mov eax, dword [r15]
cmp dword [0x14002fd04], eax
jle 0x14000b72a
lea rcx, [0x14002fd04]
call fcn.14000dbd0
cmp dword [0x14002fd04], 0xffffffff
jne 0x14000b72a
mov edx, 2
lea rcx, [0x14002fe20]
call qword [sym.imp.MSVCP140.dll__Mtx_init_in_situ]
lea rcx, [0x14000f4c0]
call fcn.14000df54
lea rcx, [0x14002fd04]
call fcn.14000db70
lea rcx, [0x14002fe20]
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x14000b764
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
nop
lea rcx, [rbp + 0x80]
call fcn.140002c20
nop
lea rcx, [rbp + 0xc0]
call fcn.140002c20
xor esi, esi
jmp 0x14000b66f
mov dword [rbp + 0x220], 0x25ff
mov word [rbp + 0x224], 0
mov qword [rbp + 0x226], rbx
mov rcx, qword [0x14002fad0]
mov r8d, 0xe
lea rdx, [rbp + 0x2e0]
call fcn.140003200
mov rcx, qword [0x14002fad0]
mov r8d, 0xe
lea rdx, [rbp + 0x220]
call fcn.1400033a0
mov r8d, 8
mov rdx, r13
lea rcx, [rsp + 0x58]
call qword [0x14002fec8]
mov rcx, qword [0x14002fad0]
mov r8d, 0xe
lea rdx, [rbp + 0x2e0]
call fcn.1400033a0
lea rcx, [0x14002fe20]
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov rax, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x48]
mov qword [rdx + 0x38], rax
test rax, rax
jne 0x14000af51
xor al, al
mov rcx, qword [rbp + 0x320]
xor rcx, rsp
call fcn.14000da20
lea r11, [rsp + 0x430]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret