Function at 0x14002f600
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov esi, edx
mov rbx, rcx
call fcn.14002f6f0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp esi, eax
jne 0x14002f62e
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jmp 0x14002f63b
mov r8d, esi
xor edx, edx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rcx, qword [rbx]
mov rdi, rax
cmp rax, rcx
je 0x14002f654
test rcx, rcx
jle 0x14002f651
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], rdi
xor edx, edx
xor r9d, r9d
lea ecx, [rdx + 0xa]
call fcn.14000eebc
test al, al
je 0x14002f698
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp esi, eax
jne 0x14002f698
mov r8d, esi
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rcx, qword [rbx]
mov rdi, rax
cmp rax, rcx
je 0x14002f698
test rcx, rcx
jle 0x14002f695
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], rdi
mov rdi, qword [rbx]
test rdi, rdi
jg 0x14002f6d5
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp rdi, rax
je 0x14002f6d5
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp rdi, rax
je 0x14002f6d5
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x1250]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rcx, rbx
mov dword [rbx + 8], esi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x140055780
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
mov qword [rbp - 0x39], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1400f4080]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov rsi, rcx
xor eax, eax
mov qword [rbp + 0xf], rax
mov qword [rbp + 0x17], rax
mov qword [rbp + 0x1f], rax
mov qword [rbp + 0x27], rax
mov qword [rbp + 0x2f], rax
mov qword [rbp + 0x37], rax
lea rcx, [rbp + 0xf]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [rbp + 0xf], 0
jne 0x14005587c
mov ecx, 0x20
call fcn.14006967c
mov rbx, rax
mov qword [rbp - 0x29], rax
xor eax, eax
mov qword [rbx], rax
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rax
mov rcx, qword [rsi]
lea rdi, vtable.blackbone::Native.0
mov qword [rbx], rdi
mov qword [rbx + 8], rcx
xor r15d, r15d
mov qword [rbx + 0x10], r15
mov qword [rbp - 0x21], rax
mov qword [rbp - 0x19], rax
mov qword [rbp - 0x11], rax
mov qword [rbp - 9], rax
mov qword [rbp - 1], rax
mov qword [rbp + 7], rax
lea rcx, [rbp - 0x21]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov eax, dword [rbp - 0x1d]
mov dword [rbx + 0x18], eax
mov word [rbx + 0x14], 0x101
mov dword [rbx + 0x10], r15d
mov byte [rbx + 0x16], 1
lea rax, vtable.blackbone::x86Native.0
mov qword [rbx], rax
lea r14, [rsi + 0x10]
mov rcx, qword [r14]
mov qword [r14], rbx
test rcx, rcx
je 0x140055949
mov qword [rcx], rdi
jmp 0x14005593f
xor r15d, r15d
mov dword [rbp - 0x31], r15d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rbp - 0x31]
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
lea ecx, [r15 + 0x20]
cmp dword [rbp - 0x31], 1
jne 0x1400558f0
call fcn.14006967c
mov rbx, rax
mov qword [rbp - 0x29], rax
xor eax, eax
mov qword [rbx], rax
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rax
xor r8d, r8d
mov rdx, qword [rsi]
mov rcx, rbx
call fcn.1400562b0
lea rax, vtable.blackbone::NativeWow64.0
mov qword [rbx], rax
lea r14, [rsi + 0x10]
mov rcx, qword [r14]
mov qword [r14], rbx
test rcx, rcx
je 0x140055949
lea rdi, vtable.blackbone::Native.0
mov qword [rcx], rdi
jmp 0x14005593f
call fcn.14006967c
mov qword [rbp - 0x29], rax
xor ecx, ecx
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], rcx
xor r8d, r8d
mov rdx, qword [rsi]
mov rcx, rax
call fcn.1400562b0
lea r14, [rsi + 0x10]
lea rcx, [rbp - 0x29]
cmp r14, rcx
je 0x14005592d
mov rcx, qword [r14]
mov qword [r14], rax
jmp 0x1400558df
test rax, rax
je 0x140055949
lea rdi, vtable.blackbone::Native.0
mov qword [rax], rdi
mov rcx, rax
mov edx, 0x20
call fcn.140069674
mov rax, qword [r14]
cmp byte [rax + 0x15], 0
jne 0x14005595b
mov byte [rsi + 0x18], 1
jmp 0x140055a12
mov dword [rbp - 0x31], r15d
mov dword [rbp - 0x29], r15d
call fcn.140021910
mov rbx, rax
mov ecx, 0x20
call fcn.14006967c
mov qword [rbp - 0x11], 0x13
mov qword [rbp - 9], 0x1f
movups xmm0, xmmword [str.GetProcessDEPPolicy]
movups xmmword [rax], xmm0
movzx ecx, word [0x1400d4b78]
mov word [rax + 0x10], cx
movzx ecx, byte [0x1400d4b7a]
mov byte [rax + 0x12], cl
mov byte [rax + 0x13], 0
mov qword [rbp - 0x21], rax
lea rdx, [rbp - 0x21]
mov rcx, rbx
call fcn.1400231f0
test rax, rax
je 0x1400559cd
lea r8, [rbp - 0x29]
lea rdx, [rbp - 0x31]
mov rcx, qword [rsi]
call rax
mov r15d, eax
mov rdx, qword [rbp - 9]
cmp rdx, 0x10
jb 0x140055a04
inc rdx
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400559ff
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140055a3d
call fcn.140069674
test r15d, r15d
je 0x140055a12
movzx eax, byte [rbp - 0x31]
and al, 1
mov byte [rsi + 0x18], al
xor eax, eax
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.140069650
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.1400927c0
int3