Function at 0x1400071b0
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x268
lea rbp, [rsp + 0x80]
movdqa xmmword [rbp + 0x1d0], xmm6
mov qword [rbp + 0x1c8], 0xfffffffffffffffe
mov rsi, rcx
lea rcx, [0x1400d80e8]
call sub.KERNEL32.dll_GetModuleHandleA
test rax, rax
je 0x1400074f3
lea rdx, str.RtlGetVersion
mov rcx, rax
call sub.KERNEL32.dll_GetProcAddress
mov rdi, rax
lea rcx, [rbp - 0x3c]
mov r8d, 0x118
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov dword [rbp - 0x40], 0x11c
lea rcx, [rbp - 0x40]
call rdi
test eax, eax
jne 0x1400075c6
mov r13d, dword [rbp - 0x3c]
mov r14d, dword [rbp - 0x38]
mov r15d, dword [rbp - 0x34]
mov r12w, word [rbp + 0xd8]
mov dil, byte [rbp + 0xda]
mov qword [rbp + 0x128], r13
mov qword [rbp + 0x130], r14
mov qword [rbp + 0x138], r15
mov qword [rbp + 0x120], 1
lea rax, str.SOFTWAREMicrosoftWindows_NTCurrentVersionProductNameEditionIDWindows_11
mov qword [rbp - 0x40], rax
lea rax, [0x1400d8128]
mov qword [rbp - 0x38], rax
mov word [rbp - 0x30], 0
mov dword [rbp - 0x28], 1
lea rcx, [rbp + 0xf8]
lea rdx, [rbp - 0x40]
call fcn.140006510
mov qword [rbp + 0x1a0], 0
mov rdx, qword [rbp + 0xf8]
lea rax, [rbp + 0x1a0]
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
mov qword [rbp + 0x168], rdx
xor r8d, r8d
mov r9d, 0x20019
call sub.ADVAPI32.dll_RegOpenKeyExW
test eax, eax
jne 0x1400075cf
cmp qword [rbp + 0x1a0], 0
je 0x1400075cf
cmp r13d, 0xa
sete al
cmp r15d, 0x55f0
setae bl
and bl, al
mov eax, ebx
xor al, 1
movzx eax, al
lea rcx, [0x1400d8133]
lea rdx, [0x1400d8128]
test bl, bl
cmovne rdx, rcx
lea rax, [rdx + rax*2 + 9]
mov qword [rbp - 0x40], rdx
mov qword [rbp - 0x38], rax
mov word [rbp - 0x30], 0
mov dword [rbp - 0x28], 1
lea rcx, [rbp + 0xe0]
lea rdx, [rbp - 0x40]
call fcn.140006510
mov qword [rbp + 0x140], r14
mov r14, r15
mov dword [rbp + 0x1bc], 0
mov dword [rbp + 0x1c0], 0
mov rcx, qword [rbp + 0x1a0]
mov rdx, qword [rbp + 0xe0]
lea r15, [rbp + 0x1c0]
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x1bc]
mov qword [rbp + 0x1a8], rdx
xor r8d, r8d
call sub.ADVAPI32.dll_RegQueryValueExW
mov word [rbp + 0x1c4], r12w
test eax, eax
jne 0x140007632
cmp dword [rbp + 0x1bc], 1
jne 0x140007632
mov r12d, dword [rbp + 0x1c0]
test r12d, r12d
je 0x140007632
mov eax, r12d
and eax, 1
jne 0x140007632
mov byte [rbp + 0x1c7], dil
mov rax, r12
shr rax, 1
mov qword [rbp + 0x170], rax
mov eax, 2
cmp r12d, 2
jb 0x140007414
mov rax, qword [rbp + 0x170]
lea rdi, [rax + rax]
mov edx, 2
mov rcx, rdi
call fcn.140006330
test rax, rax
je 0x140007b53
mov rcx, qword [rbp + 0x1a0]
mov qword [rsp + 0x28], r15
mov qword [rbp + 0x1b0], rax
mov qword [rsp + 0x20], rax
mov rdx, qword [rbp + 0x1a8]
xor r8d, r8d
xor r9d, r9d
call sub.ADVAPI32.dll_RegQueryValueExW
mov dil, byte [rbp + 0x1c7]
mov rcx, qword [rbp + 0x170]
lea rdx, [rcx + rcx]
test eax, eax
jne 0x140007696
mov eax, dword [rbp + 0x1c0]
cmp rdx, rax
jne 0x140007696
mov r15, r14
mov qword [rbp + 0x110], rdx
mov r8, rcx
cmp r12d, 2
mov rdx, qword [rbp + 0x1b0]
jb 0x140007497
mov r8, rcx
test rdx, rdx
je 0x140007497
lea r8, [rcx - 1]
cmp word [rdx + rcx*2 - 2], 0
cmovne r8, rcx
lea rcx, [rbp - 0x40]
call fcn.1400abf10
lea rcx, [rbp - 0x40]
call fcn.1400b23e0
mov r8, rdx
lea rcx, [rbp + 0x150]
mov rdx, rax
call fcn.1400b23f0
cmp qword [rbp + 0x150], 0
mov r14, qword [rbp + 0x140]
je 0x1400077e0
mov rax, qword [rbp + 0x160]
mov qword [rbp + 0x190], rax
movdqu xmm0, xmmword [rbp + 0x150]
movdqa xmmword [rbp + 0x180], xmm0
jmp 0x140007a12
mov rax, qword [0x14014b118]
mov rax, qword [rax]
xor ecx, ecx
cmp rax, 1
setne cl
mov eax, 0xff
cmovbe eax, ecx
test al, al
je 0x140007520
movzx eax, al
cmp eax, 0xff
jne 0x1400075c6
lea rdx, [0x1400d80e8]
lea rdi, [rbp + 0x120]
mov r8d, 6
mov rcx, rdi
call fcn.1400bdc70
mov qword [rbp + 0x150], rdi
lea rax, [0x140006490]
mov qword [rbp + 0x158], rax
lea rax, [0x1400d8390]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], 2
mov qword [rbp - 0x20], 0
lea rax, [rbp + 0x150]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], 1
mov qword [rsp + 0x20], 0
lea r8, str.os_info::imp::winapiC:Users_fydne1.cargo_registry_srcindex.crates.io_6f17d22bba15001fos_info_3.7.0_srcwindowswinapi.rs
lea rcx, [rbp - 0x40]
mov edx, 1
mov r9d, 0x110
call fcn.1400a4bc0
mov rcx, qword [rbp + 0x120]
test rcx, rcx
je 0x1400075c6
mov rdx, qword [rbp + 0x128]
test rdx, rdx
je 0x1400075c6
mov r8d, 1
call fcn.140006310
xor ebx, ebx
xor eax, eax
jmp 0x140007981
mov rax, qword [0x14014b118]
mov rax, qword [rax]
test rax, rax
je 0x1400076e1
lea rax, str.RegOpenKeyExW_HKEY_LOCAL_MACHINE__...__failed
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], 1
lea rax, [0x1400d80e8]
mov qword [rbp - 0x30], rax
pxor xmm0, xmm0
movdqu xmmword [rbp - 0x28], xmm0
mov qword [rsp + 0x20], 0
lea r8, str.os_info::imp::winapiC:Users_fydne1.cargo_registry_srcindex.crates.io_6f17d22bba15001fos_info_3.7.0_srcwindowswinapi.rs
lea rcx, [rbp - 0x40]
mov edx, 1
mov r9d, 0x89
call fcn.1400a4bc0
jmp 0x1400076e1
mov rax, qword [0x14014b118]
mov rax, qword [rax]
test rax, rax
movzx r12d, word [rbp + 0x1c4]
je 0x1400076b6
lea rax, str.RegQueryValueExW_failed
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], 1
lea rax, [0x1400d80e8]
mov qword [rbp - 0x30], rax
pxor xmm0, xmm0
movdqu xmmword [rbp - 0x28], xmm0
mov qword [rsp + 0x20], 0
lea r8, str.os_info::imp::winapiC:Users_fydne1.cargo_registry_srcindex.crates.io_6f17d22bba15001fos_info_3.7.0_srcwindowswinapi.rs
lea rcx, [rbp - 0x40]
mov edx, 1
mov r9d, 0xa5
call fcn.1400a4bc0
jmp 0x1400076b6
cmp r12d, 2
movzx r12d, word [rbp + 0x1c4]
jb 0x1400076b6
mov r8d, 2
mov rcx, qword [rbp + 0x1b0]
call fcn.140006310
mov rdx, qword [rbp + 0xe8]
test rdx, rdx
je 0x1400076d7
add rdx, rdx
mov r8d, 2
mov rcx, qword [rbp + 0x1a8]
call fcn.140006310
mov r15, r14
mov r14, qword [rbp + 0x140]
mov rdx, qword [rbp + 0x100]
test rdx, rdx
je 0x140007702
add rdx, rdx
mov r8d, 2
mov rcx, qword [rbp + 0x168]
call fcn.140006310
cmp r13d, 5
je 0x140007794
cmp r13d, 6
je 0x140007752
cmp r13d, 0xa
jne case.default.0x140007769
test r14d, r14d
jne case.default.0x140007769
cmp dil, 1
jne 0x1400078c7
cmp r15d, 0x55f0
lea rax, [0x1400d827a]
lea r14, str.Windows_10Windows_11Windows_Server_2016Windows_8.1Windows_Server_2012_R2Windows_8Windows_Server_2012Windows_7Windows_Server_2008_R2Windows_VistaWindows_Server_2008Windows_XPWindows_2000Windows_Server_2003Windows_XP_Professional_x64_EditionWindows_Home_ServerGetModuleHandleA___failed
cmovae r14, rax
mov edi, 0xa
jmp 0x14000792e
cmp r14d, 3
ja case.default.0x140007769
mov eax, r14d
lea rcx, [0x140007d94]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
jmp rax
cmp dil, 1
mov eax, recv
mov edi, reloc.WS2_32.dll_send
cmove rdi, rax
lea rax, [0x1400d82f3]
lea r14, [0x1400d8300]
cmove r14, rax
jmp 0x14000792e
test r14d, r14d
je 0x1400077cf
cmp r14d, 1
je 0x1400077be
cmp r14d, 2
jne case.default.0x140007769
mov ecx, 0x59
call sub.USER32.dll_GetSystemMetrics
test eax, eax
je 0x1400078d5
xor ebx, ebx
jmp 0x140007966
lea r14, [0x1400d8313]
mov edi, 0xa
jmp 0x14000792e
lea r14, [0x1400d831d]
mov edi, recv
jmp 0x14000792e
mov rdx, qword [rbp + 0x158]
mov rdi, qword [rbp + 0x160]
test rdi, rdi
mov qword [rbp + 0x148], rdi
je 0x1400079d1
mov qword [rbp + 0x178], rdx
setns al
js 0x140007b62
movzx edx, al
movzx eax, byte [0x14014b245]
mov rcx, rdi
mov qword [rbp + 0x118], rdx
call fcn.140006300
test rax, rax
mov rdx, qword [rbp + 0x178]
jne 0x1400079d6
mov rcx, qword [rbp + 0x118]
mov rdx, qword [rbp + 0x148]
call fcn.1400d5480
jmp 0x140007b67
cmp dil, 1
mov eax, 9
mov edi, reloc.WS2_32.dll_send
cmove rdi, rax
lea rax, [0x1400d82b8]
lea r14, [0x1400d82c1]
cmove r14, rax
jmp 0x14000792e
cmp dil, 1
mov eax, 0xb
mov edi, 0x16
cmove rdi, rax
lea rax, [0x1400d8297]
lea r14, [0x1400d82a2]
cmove r14, rax
jmp 0x14000792e
cmp dil, 1
mov eax, 9
mov edi, 0x16
cmove rdi, rax
lea rax, [0x1400d82d4]
lea r14, [0x1400d82dd]
cmove r14, rax
jmp 0x14000792e
lea r14, [0x1400d8284]
mov edi, reloc.WS2_32.dll_send
jmp 0x14000792e
pxor xmm0, xmm0
movdqa xmmword [rbp - 0x20], xmm0
movdqa xmmword [rbp - 0x30], xmm0
movdqa xmmword [rbp - 0x40], xmm0
lea rcx, [rbp - 0x40]
call sub.KERNEL32.dll_GetSystemInfo
test r12w, r12w
js 0x140007b38
cmp dil, 1
sete al
cmp word [rbp - 0x40], 9
sete cl
and cl, al
movzx eax, cl
mov rdi, rax
shl rdi, 4
add rdi, 0x13
lea rcx, [0x1400d833c]
lea r14, [0x1400d8329]
test al, al
cmovne r14, rcx
movzx eax, byte [0x14014b245]
mov edx, 1
mov rcx, rdi
call fcn.140006300
test rax, rax
je 0x140007b44
mov rbx, rax
mov rcx, rax
mov rdx, r14
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
movq xmm0, rdi
pshufd xmm6, xmm0, 0x44
lea rax, [rbp + 0x128]
mov rcx, qword [rax + 0x10]
mov qword [rbp - 0x30], rcx
movups xmm0, xmmword [rax]
movaps xmmword [rbp - 0x40], xmm0
mov eax, 1
mov rcx, qword [rbp - 0x30]
mov qword [rsi + 0x18], rcx
movaps xmm0, xmmword [rbp - 0x40]
movups xmmword [rsi + 8], xmm0
mov qword [rsi], rax
mov qword [rsi + 0x20], rbx
movdqu xmmword [rsi + 0x28], xmm6
mov qword [rsi + 0x38], 0
mov word [rsi + 0x68], 0x2802
mov qword [rsi + 0x50], 0
mov rax, rsi
movaps xmm6, xmmword [rbp + 0x1d0]
add rsp, 0x268
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov eax, 1
mov rcx, rax
mov qword [rbp + 0x178], rax
mov rdi, qword [rbp + 0x148]
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rbp + 0x178]
mov qword [rbp + 0x180], rax
mov qword [rbp + 0x188], rdi
mov qword [rbp + 0x190], rdi
movzx edi, byte [rbp + 0x1c7]
mov rdx, qword [rbp - 0x38]
test rdx, rdx
je 0x140007a2a
mov rcx, qword [rbp - 0x40]
mov r8d, 1
call fcn.140006310
test bl, bl
je 0x140007ab2
lea rax, [rbp + 0x180]
mov qword [rbp - 0x50], rax
lea rax, [0x140002740]
mov qword [rbp - 0x48], rax
lea rax, [0x1400d8148]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], 1
mov qword [rbp - 0x20], 0
lea rax, [rbp - 0x50]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], 1
lea rcx, [rbp + 0x150]
lea rdx, [rbp - 0x40]
call fcn.1400bd240
mov rbx, qword [rbp + 0x150]
movdqu xmm6, xmmword [rbp + 0x158]
mov rdx, qword [rbp + 0x188]
test rdx, rdx
je 0x140007ac1
mov rcx, qword [rbp + 0x180]
mov r8d, 1
call fcn.140006310
jmp 0x140007ac1
mov rbx, qword [rbp + 0x180]
movdqu xmm6, xmmword [rbp + 0x188]
cmp r12d, 2
mov rcx, qword [rbp + 0x1b0]
mov rdx, qword [rbp + 0x110]
jb 0x140007ae0
mov r8d, 2
call fcn.140006310
mov rdx, qword [rbp + 0xe8]
test rdx, rdx
movzx r12d, word [rbp + 0x1c4]
je 0x140007b09
add rdx, rdx
mov r8d, 2
mov rcx, qword [rbp + 0x1a8]
call fcn.140006310
mov rdx, qword [rbp + 0x100]
test rdx, rdx
je 0x140007b2a
add rdx, rdx
mov r8d, 2
mov rcx, qword [rbp + 0x168]
call fcn.140006310
test rbx, rbx
jne 0x140007966
jmp 0x140007702
lea r14, [0x1400d835f]
jmp 0x1400078ce
mov ecx, 1
mov rdx, rdi
call fcn.1400d5480
jmp 0x140007b67
mov ecx, 2
mov rdx, rdi
call fcn.1400d5480
jmp 0x140007b67
call fcn.1400bceb0
ud2