Function at 0x140056df0
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.140031e50
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp esi, eax
jne 0x140031d8e
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jmp 0x140031d9b
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 0x140031db4
test rcx, rcx
jle 0x140031db1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], rdi
xor edx, edx
xor r9d, r9d
lea ecx, [rdx + 0xa]
call fcn.1400135d4
test al, al
je 0x140031df8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp esi, eax
jne 0x140031df8
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 0x140031df8
test rcx, rcx
jle 0x140031df5
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], rdi
mov rdi, qword [rbx]
test rdi, rdi
jg 0x140031e35
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp rdi, rax
je 0x140031e35
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp rdi, rax
je 0x140031e35
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 0x140056df0
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
mov qword [rbp - 0x59], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1400f3080]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r12, rcx
xorps xmm0, xmm0
movups xmmword [rbp - 9], xmm0
movups xmmword [rbp + 7], xmm0
movups xmmword [rbp + 0x17], xmm0
lea rcx, [rbp - 9]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [rbp - 9], 0
jne 0x140056ecf
mov ecx, 0x20
call fcn.14006bb2c
mov rbx, rax
mov qword [rbp - 0x49], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
mov rcx, qword [r12]
lea r14, vtable.blackbone::Native.0
mov qword [rax], r14
mov qword [rax + 8], rcx
xor r15d, r15d
mov qword [rax + 0x10], r15
movups xmmword [rbp - 0x39], xmm0
movups xmmword [rbp - 0x29], xmm0
movups xmmword [rbp - 0x19], xmm0
lea rcx, [rbp - 0x39]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov eax, dword [rbp - 0x35]
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 rsi, [r12 + 0x10]
mov rcx, qword [rsi]
mov qword [rsi], rbx
test rcx, rcx
je 0x140056fab
mov qword [rcx], r14
jmp 0x140056fa1
xor r15d, r15d
mov dword [rbp - 0x51], r15d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rbp - 0x51]
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
lea rdi, [r12 + 0x10]
lea ecx, [r15 + 0x20]
cmp dword [rbp - 0x51], 1
jne 0x140056f4a
call fcn.14006bb2c
mov rbx, rax
mov qword [rbp - 0x49], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
xor r8d, r8d
mov rdx, qword [r12]
mov rcx, rax
call fcn.140057940
lea rax, vtable.blackbone::NativeWow64.0
mov qword [rbx], rax
mov rcx, qword [rdi]
mov qword [rdi], rbx
test rcx, rcx
je 0x140056f45
lea r14, vtable.blackbone::Native.0
mov qword [rcx], r14
lea edx, [r15 + 0x20]
call fcn.14006bb24
mov rsi, rdi
jmp 0x140056fab
call fcn.14006bb2c
mov qword [rbp - 0x49], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
xor r8d, r8d
mov rdx, qword [r12]
mov rcx, rax
call fcn.140057940
lea rcx, [rbp - 0x49]
mov rsi, rdi
cmp rdi, rcx
je 0x140056f8f
mov rcx, qword [rdi]
mov qword [rdi], rax
test rcx, rcx
je 0x140056fab
lea r14, vtable.blackbone::Native.0
mov qword [rcx], r14
jmp 0x140056fa1
test rax, rax
je 0x140056fab
lea r14, vtable.blackbone::Native.0
mov qword [rax], r14
mov rcx, rax
mov edx, 0x20
call fcn.14006bb24
mov rax, qword [rsi]
cmp byte [rax + 0x15], 0
jne 0x140056fbf
mov byte [r12 + 0x18], 1
jmp 0x140057093
mov dword [rbp - 0x51], r15d
mov dword [rbp - 0x41], r15d
call fcn.140024970
mov rbx, rax
mov qword [rbp - 0x29], r15
mov qword [rbp - 0x21], 0xf
mov byte [rbp - 0x39], 0
lea rdx, str.GetProcessDEPPolicy
lea rcx, [rbp - 0x39]
call fcn.140004d70
nop
call fcn.140046480
lea rdi, [rbx + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov qword [rbp - 0x49], r15
lea r8, [rbp - 0x39]
lea rdx, [rbp - 0x49]
mov rcx, rbx
call fcn.140025e20
mov rax, qword [rbp - 0x49]
mov rcx, rdi
cmp rax, qword [rbx + 8]
je 0x140057045
mov rbx, qword [rax + 0x30]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rbx, rbx
je 0x14005704c
lea r8, [rbp - 0x41]
lea rdx, [rbp - 0x51]
mov rcx, qword [r12]
call rbx
mov r15d, eax
jmp 0x14005704c
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov rdx, qword [rbp - 0x21]
cmp rdx, 0x10
jb 0x140057083
inc rdx
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005707e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400570bd
call fcn.14006bb24
test r15d, r15d
je 0x140057093
movzx eax, byte [rbp - 0x51]
and al, 1
mov byte [r12 + 0x18], al
xor eax, eax
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14006bb00
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.140095014
int3