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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x7c0]
sub rsp, 0x8c0
mov rax, qword [0x1401198e8]
xor rax, rsp
mov qword [rbp + 0x7b0], rax
mov rbx, rcx
mov qword [rsp + 0x38], rcx
xor edi, edi
mov dword [rsp + 0x30], edi
mov edx, 0x14
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x140135e40], eax
jg 0x140034c39
cmp qword [0x14011a668], rdi
jne 0x140034bf1
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
mov r12, rdi
mov qword [rbp - 0x80], rdi
mov esi, 7
mov r15d, esi
mov qword [rbp - 0x78], rsi
mov word [rsp + 0x70], di
mov r14d, 0xffff
movzx eax, word [0x14011a5c8]
cmp ax, r14w
jne 0x1400347dd
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [rsp + 0x40]
mov word [0x14011a5c8], ax
mov ecx, 9
cmp cx, ax
jne 0x14003480b
lea r8d, [rcx + 2]
lea rdx, str.Windows_x64
lea rcx, [rsp + 0x70]
call fcn.140003510
mov r15, qword [rbp - 0x78]
mov r12, qword [rbp - 0x80]
movzx eax, word [0x14011a5c8]
cmp ax, r14w
jne 0x140034828
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [rsp + 0x40]
mov word [0x14011a5c8], ax
cmp di, ax
jne 0x140034853
mov r8d, 0xe
lea rdx, str.Windows_NT_x86
lea rcx, [rsp + 0x70]
call fcn.140003510
mov r15, qword [rbp - 0x78]
mov r12, qword [rbp - 0x80]
movzx eax, word [0x14011a5c8]
cmp ax, r14w
jne 0x140034870
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [rsp + 0x40]
mov word [0x14011a5c8], ax
mov ecx, 0xc
cmp cx, ax
jne 0x140034897
lea r8d, [rcx + 1]
lea rdx, str.Windows_ARM64
lea rcx, [rsp + 0x70]
call fcn.140003510
mov r15, qword [rbp - 0x78]
mov r12, qword [rbp - 0x80]
test r12, r12
jne 0x1400348b1
movups xmm0, xmmword [rsp + 0x70]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rbp - 0x80]
movups xmmword [rbx + 0x10], xmm1
jmp 0x140034c00
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x60], rax
movabs rcx, 0x7ffffffffffffffe
mov rax, rcx
sub rax, r12
cmp rax, 0x34
jb 0x140034c6f
lea rax, [rsp + 0x70]
mov r14, qword [rsp + 0x70]
cmp r15, 8
cmovae rax, r14
mov qword [rsp + 0x38], rax
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
lea rax, [r12 + 0x34]
lea r13, [rsp + 0x40]
mov rdi, 0xffffffffffffffff
cmp rax, 7
jbe 0x140034953
mov rsi, rax
or rsi, 7
cmp rsi, rcx
jbe 0x140034925
mov rsi, rcx
jmp 0x140034931
mov eax, 0xa
cmp rsi, rax
cmovb rsi, rax
mov rdx, rsi
add rdx, 1
cmovb rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.1400037f0
mov r13, rax
mov qword [rsp + 0x40], rax
lea rax, [r12 + 0x34]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rsi
movaps xmm0, xmmword [str.SYSTEMCurrentControlSetControlPrintEnvironments_]
movups xmmword [r13], xmm0
movaps xmm1, xmmword [0x1400f6280]
movups xmmword [r13 + 0x10], xmm1
movaps xmm0, xmmword [0x1400f6290]
movups xmmword [r13 + 0x20], xmm0
movaps xmm1, xmmword [0x1400f62a0]
movups xmmword [r13 + 0x30], xmm1
movaps xmm0, xmmword [0x1400f62b0]
movups xmmword [r13 + 0x40], xmm0
movaps xmm1, xmmword [0x1400f62c0]
movups xmmword [r13 + 0x50], xmm1
movsd xmm0, qword [0x1400f62d0]
movsd qword [r13 + 0x60], xmm0
lea rcx, [r13 + 0x68]
lea r8, [r12 + r12]
mov rdx, qword [rsp + 0x38]
call fcn.14009d3c0
xor eax, eax
mov word [r13 + r12*2 + 0x68], ax
lea r8, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae r8, qword [rsp + 0x40]
mov rdx, 0xffffffff80000002
lea r9d, [rax + 1]
lea rcx, [rbp - 0x70]
call fcn.140027410
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x140034a35
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140034a30
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140034c75
call fcn.14009bfe4
movdqa xmm0, xmmword [0x1400f80d0]
movdqu xmmword [rsp + 0x50], xmm0
xor r12d, r12d
mov word [rsp + 0x40], r12w
mov rsi, qword [rbp - 0x70]
test rsi, rsi
jne 0x140034aba
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], r12
xor r8d, r8d
lea rdx, [0x1400f1b38]
mov rcx, rbx
call fcn.140003860
nop
cmp r15, 8
jb 0x140034c00
lea rdx, [r15*2 + 2]
mov rax, r14
cmp rdx, 0x1000
jb 0x140034aad
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140034c33
mov rcx, r14
call fcn.14009bfe4
jmp 0x140034c00
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
movdqa xmm1, xmmword [0x1400f80d0]
movdqu xmmword [rsp + 0x50], xmm1
mov word [rsp + 0x40], r12w
mov dword [rsp + 0x30], 6
mov dword [rsp + 0x34], 0x800
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
xor r8d, r8d
lea rdx, str.Directory
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140034b2e
mov eax, dword [rsp + 0x38]
dec eax
cmp eax, 1
ja 0x140034b33
cmp dword [rsp + 0x34], 0
jne 0x140034b33
mov word [rbp - 0x50], r12w
jmp 0x140034b33
cmp eax, 0xd
jne 0x140034b5b
lea rax, [rbp - 0x50]
nop word [rax + rax]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x140034b40
mov r8, rdi
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x40]
call fcn.140003510
lea rdx, [rsp + 0x40]
lea rcx, [0x14011a658]
call fcn.140005f80
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x140034bb0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140034baa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140034c7b
call fcn.14009bfe4
nop
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
cmp r15, 8
jb 0x140034bf1
lea rdx, [r15*2 + 2]
mov rax, r14
cmp rdx, 0x1000
jb 0x140034be9
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140034c33
mov rcx, r14
call fcn.14009bfe4
lea rdx, [0x14011a658]
mov rcx, rbx
call fcn.1400132f0
mov rax, rbx
mov rcx, qword [rbp + 0x7b0]
xor rcx, rsp
call fcn.14009c570
lea r11, [rsp + 0x8c0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.1400a3080
int3
lea rcx, [0x140135e40]
call fcn.14009c3c4
cmp dword [0x140135e40], 0xffffffff
jne 0x140034786
lea rcx, [0x1400d3d20]
call fcn.14009c224
lea rcx, [0x140135e40]
call fcn.14009c364
jmp 0x140034786
call fcn.140003690
nop
call fcn.1400a3080
int3
call fcn.1400a3080
int3