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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x258
movaps xmmword [rsp + 0x240], xmm6
mov rsi, rcx
mov rax, qword [0x1402e0038]
xor rax, rsp
mov qword [rsp + 0x238], rax
mov qword [rcx + 0x38], rdx
lea rdi, [rsp + 0x104]
xor r12d, r12d
mov r8d, 0x118
mov rcx, rdi
xor edx, edx
call fcn.140111cd0
mov dword [rdi - 4], 0x11c
mov byte [rdi + 0x116], 1
xor ecx, ecx
mov edx, 0x80
mov r8b, 1
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
lea r14, [rsp + 0x100]
mov rcx, r14
mov edx, 0x80
mov r8, rax
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
sete byte [rsi + 0x4c]
mov dword [rsp + 0xfc], 0
movabs rbx, 0xaaaaaaaaaaaaaaaa
lea rax, [rsp + 0xf0]
mov qword [rax], rbx
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
mov rcx, 0xffffffff80000002
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140247f5a
movaps xmm6, xmmword [0x14029bb90]
lea r14, [rsp + 0x100]
movaps xmmword [r14 + 0x20], xmm6
movaps xmmword [r14 + 0x10], xmm6
movaps xmmword [r14], xmm6
mov dword [r14 + 0x30], 0xaaaaaaaa
lea rax, [0x1402c78e0]
lea rdx, [rsp + 0xe0]
mov qword [rdx], rax
mov qword [rdx + 8], 0xc
lea rdi, [rsp + 0x220]
mov rcx, rdi
call fcn.1400ae6e0
mov rcx, rdi
mov rdx, r14
call fcn.1401efc87
mov ebp, eax
cmp byte [rdi + 0x17], 0
jns 0x140247e4f
mov rcx, qword [rsp + 0x220]
call fcn.14010cc0c
test bpl, bpl
je 0x140248298
mov qword [rsp + 0xd0], rbx
movaps xmmword [rsp + 0xc0], xmm6
mov ebp, dword [rsp + 0x11c]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x220], xmm0
mov qword [rsp + 0x230], 0
test bpl, 1
jne 0x140247f3b
test bpl, 4
jne 0x140247efd
test bpl, 2
jne 0x140247ec5
test bpl, 8
jne 0x140247ee1
test bpl, 0x20
jne 0x140247f1c
movzx ebp, byte [rsp + 0x237]
test bpl, bpl
js 0x140247f97
mov r14d, ebp
and r14d, 0x7f
jmp 0x140247f9f
lea rdx, str.Prerelease_
lea rcx, [rsp + 0x220]
mov r8d, 0xb
call fcn.140090e6c
jmp 0x140247e9c
lea rdx, str.Private_
lea rcx, [rsp + 0x220]
mov r8d, 8
call fcn.140090e6c
jmp 0x140247ea2
lea rdx, str.Patched_
lea rcx, [rsp + 0x220]
mov r8d, 8
call fcn.140090e6c
jmp 0x140247e96
lea rdx, str.Special_
lea rcx, [rsp + 0x220]
mov r8d, 8
call fcn.140090e6c
jmp 0x140247ea8
lea rdx, str.Debug_
lea rcx, [rsp + 0x220]
mov r8d, 6
call fcn.140090e6c
jmp 0x140247e90
mov rdi, qword [rsp + 0xf0]
lea r8, [rsi + 0x40]
lea rdx, str.CurrentMajorVersionNumber
mov rcx, rdi
call fcn.1402485d4
test al, al
jne 0x1402483ff
xor r12d, r12d
test rdi, rdi
je 0x140247de0
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140247de0
mov r14, qword [rsp + 0x228]
test r14, r14
je 0x140248036
mov qword [rsp + 0x50], r12
lea r13, [r14 - 1]
cmp r14, r13
cmovae r14, r13
test bpl, bpl
movabs rbx, 0x7ffffffffffffff7
mov r15, qword [rsp + 0x220]
mov r12, rdi
cmovs r12, r15
cmp r14, rbx
ja 0x1402485be
cmp r14, 0x16
ja 0x1402483af
lea rcx, [rsp + 0xc0]
mov byte [rcx + 0x17], r14b
lea rbx, [rcx + r14]
cmp rcx, r12
ja 0x140248005
cmp rbx, r12
ja 0x1402485c7
test r13, r13
je 0x140248015
mov rdx, r12
mov r8, r14
call fcn.140111620
mov byte [rbx], 0
test bpl, bpl
movabs rbx, 0xaaaaaaaaaaaaaaaa
mov r12, qword [rsp + 0x50]
jns 0x140248056
mov rcx, r15
call fcn.14010cc0c
jmp 0x140248056
mov rax, qword [rsp + 0x230]
mov qword [rsp + 0xd0], rax
movaps xmm0, xmmword [rsp + 0x220]
movaps xmmword [rsp + 0xc0], xmm0
mov qword [rsp + 0x230], rbx
movaps xmmword [rsp + 0x220], xmm6
mov eax, dword [rsp + 0x120]
not eax
test eax, 0x40004
je 0x1402480b3
lea rax, [rsp + 0x227]
mov byte [rax + 0x10], 7
lea rcx, [0x1402a5756]
cmp rdi, rcx
ja 0x140248097
cmp rax, rcx
ja 0x1402485c4
mov ecx, dword [0x1402a5759]
mov dword [rsp + 0x223], ecx
mov ecx, dword [0x1402a5756]
mov dword [rsp + 0x220], ecx
jmp 0x1402480fa
lea rax, [rsp + 0x22a]
mov byte [rax + 0xd], 0xa
lea rcx, str.Windows_NT
lea rdx, [rsp + 0x220]
cmp rdx, rcx
ja 0x1402480dc
cmp rax, rcx
ja 0x1402485c1
movzx ecx, word [0x1402aa954]
mov word [rsp + 0x228], cx
mov rcx, qword [str.Windows_NT]
mov qword [rsp + 0x220], rcx
mov byte [rax], 0
test r12b, r12b
jne 0x140248131
mov eax, dword [rsp + 0x108]
mov ecx, eax
shr ecx, 0x10
mov dword [rsi + 0x40], ecx
mov ecx, 0xffff
and eax, ecx
mov dword [rsi + 0x44], eax
mov r8d, dword [rsp + 0x10c]
mov eax, r8d
shr eax, 0x10
mov dword [rsi + 0x48], eax
and r8d, ecx
jmp 0x140248139
mov r8d, dword [rsp + 0xfc]
lea rdx, [0x1402a5e0f]
lea rcx, [rsp + 0xa8]
call fcn.140091450
lea r14, [rsi + 0x20]
cmp byte [rsi + 0x37], 0
jns 0x14024815f
mov rcx, qword [r14]
call fcn.14010cc0c
mov rax, qword [rsp + 0xb8]
mov qword [r14 + 0x10], rax
movups xmm0, xmmword [rsp + 0xa8]
movups xmmword [r14], xmm0
movzx eax, byte [rsp + 0xd7]
test al, al
js 0x14024818a
mov ebx, eax
and ebx, 0x7f
jmp 0x140248192
mov rbx, qword [rsp + 0xc8]
test rbx, rbx
jne 0x1402482e9
lea rax, [0x1402a1d44]
cmp byte [rsi + 0x37], 0
jns 0x1402481ab
mov r14, qword [r14]
mov ecx, dword [rsi + 0x48]
mov r9d, dword [rsi + 0x40]
mov edx, dword [rsi + 0x44]
cmp byte [rsp + 0x237], 0
jns 0x1402481c7
mov rdi, qword [rsp + 0x220]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], edx
lea rdx, str._s__u._u._u._s_s
lea rcx, [rsp + 0xa8]
mov r8, rdi
call fcn.140091450
lea rdi, [rsi + 8]
cmp byte [rsi + 0x1f], 0
jns 0x140248202
mov rcx, qword [rdi]
call fcn.14010cc0c
mov rax, qword [rsp + 0xb8]
mov qword [rdi + 0x10], rax
xor eax, eax
movups xmm0, xmmword [rsp + 0xa8]
movups xmmword [rdi], xmm0
mov byte [rsp + 0xbf], al
mov byte [rsp + 0xa8], al
test rbx, rbx
je 0x14024826a
cmp byte [rsp + 0xa7], 0
jns 0x140248245
mov rcx, qword [rsp + 0x90]
call fcn.14010cc0c
cmp byte [rsp + 0x87], 0
jns 0x140248259
mov rcx, qword [rsp + 0x70]
call fcn.14010cc0c
cmp byte [rsp + 0x6f], 0
jns 0x14024826a
mov rcx, qword [rsp + 0x58]
call fcn.14010cc0c
cmp byte [rsp + 0x237], 0
jns 0x140248281
mov rcx, qword [rsp + 0x220]
call fcn.14010cc0c
cmp byte [rsp + 0xd7], 0
jns 0x140248298
mov rcx, qword [rsp + 0xc0]
call fcn.14010cc0c
lea rcx, [rsi + 0x50]
mov dword [rsi + 0x50], 0x68
mov edx, 0x68
call sub.KERNEL32.dll_K32GetPerformanceInfo
add rsi, 0xb8
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov rcx, qword [rsp + 0x238]
xor rcx, rsp
call fcn.14010fba0
movaps xmm6, xmmword [rsp + 0x240]
add rsp, 0x258
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rdx, [rsp + 0x58]
mov byte [rdx + 0x17], 2
lea rcx, [0x1402a21b3]
cmp rdx, rcx
ja 0x14024830c
lea rdx, [rsp + 0x5a]
cmp rdx, rcx
ja 0x1402485ca
mov word [rsp + 0x58], 0x2820
mov byte [rsp + 0x5a], 0
test al, al
js 0x140248326
lea rdx, [rsp + 0xc0]
jmp 0x14024832e
mov rdx, qword [rsp + 0xc0]
lea rcx, [rsp + 0x58]
mov r8, rbx
call fcn.140090e6c
movups xmm0, xmmword [rax]
lea rcx, [rsp + 0x70]
movaps xmmword [rcx], xmm0
mov rdx, qword [rax + 0x10]
mov qword [rcx + 0x10], rdx
xor r15d, r15d
mov qword [rax + 0x10], r15
xorps xmm6, xmm6
movups xmmword [rax], xmm6
lea rdx, [0x1402a1dd0]
mov r8d, 1
call fcn.140090e6c
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x90], xmm0
mov rcx, qword [rax + 0x10]
mov qword [rsp + 0xa0], rcx
mov qword [rax + 0x10], r15
movups xmmword [rax], xmm6
cmp byte [rsp + 0xa7], 0
js 0x1402483a2
lea rax, [rsp + 0x90]
jmp 0x1402481a2
mov rax, qword [rsp + 0x90]
jmp 0x1402481a2
mov rax, r14
and rax, 0xfffffffffffffff8
add rax, 8
mov rcx, r14
or rcx, 7
cmp rcx, 0x17
cmove rcx, rax
inc rcx
mov qword [rsp + 0x48], rcx
call fcn.14010cc14
mov rcx, rax
mov qword [rsp + 0xc0], rax
add rbx, 9
or rbx, qword [rsp + 0x48]
mov qword [rsp + 0xd0], rbx
mov qword [rsp + 0xc8], r14
jmp 0x140247ff3
lea r8, [rsi + 0x44]
mov rcx, qword [rsp + 0xf0]
lea rdx, str.CurrentMinorVersionNumber
call fcn.1402485d4
test al, al
je 0x140247f7d
mov rcx, qword [rsp + 0xf0]
mov eax, 0xaaaaaaaa
lea rdx, [rsp + 0x220]
mov dword [rdx + 7], eax
mov qword [rdx], rbx
lea r9, [rsp + 0xc0]
mov dword [r9], eax
lea rax, [rsp + 0xa8]
mov dword [rax], 0xa
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
lea rdx, str.CurrentBuildNumber
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140247f7d
cmp dword [rsp + 0xc0], 1
jne 0x140247f7d
mov rbp, rbx
movabs r13, 0x7ffffffffffffff7
mov eax, dword [rsp + 0xa8]
mov byte [rsp + rax + 0x220], 0
mov dword [rsp + 0x90], 0xaaaaaaaa
lea r15, [rsp + 0x220]
mov rcx, r15
call fcn.14012f6e0
cmp rax, r13
ja 0x1402485cd
mov rbx, rax
cmp rax, 0x16
ja 0x140248541
mov byte [rsp + 0x117], bl
lea r12, [r14 + rbx]
cmp r12, r15
seta al
cmp r14, r15
ja 0x1402484ea
test al, al
jne 0x1402485d0
test rbx, rbx
je 0x140248502
lea rdx, [rsp + 0x220]
mov rcx, r14
mov r8, rbx
call fcn.140111620
mov byte [r12], 0
lea r14, [rsp + 0x100]
lea rdx, [rsp + 0x90]
mov rcx, r14
call fcn.14004ce24
mov ebx, eax
cmp byte [r14 + 0x17], 0
jns 0x140248535
mov rcx, qword [rsp + 0x100]
call fcn.14010cc0c
test bl, bl
jne 0x14024858d
mov rbx, rbp
jmp 0x140247f7d
mov rax, rbx
and rax, 0xfffffffffffffff8
add rax, 8
mov r12, rbx
or r12, 7
cmp r12, 0x17
cmove r12, rax
inc r12
mov rcx, r12
call fcn.14010cc14
mov r14, rax
mov qword [rsp + 0x100], rax
add r13, 9
or r13, r12
mov qword [rsp + 0x110], r13
mov qword [rsp + 0x108], rbx
jmp 0x1402484d3
mov eax, dword [rsp + 0x90]
mov dword [rsi + 0x48], eax
mov rcx, qword [rsp + 0xf0]
lea rdx, [0x1402a592e]
lea r8, [rsp + 0xfc]
call fcn.1402485d4
mov r12d, eax
mov rbx, rbp
jmp 0x140247f80
int3
int3
int3
int3
int3
int3
int3