Function at 0x1400a22c0
Capabilities:
Get system information on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x138]
sub rsp, 0x238
mov rax, qword [0x140237008]
xor rax, rsp
mov qword [rbp + 0x110], rax
mov rbx, rdx
mov qword [rbp - 0x70], rdx
mov edx, 0x402
mov qword [rsp + 0x70], rcx
mov rdi, rcx
call qword [sym.imp.USER32.dll_GetDlgItem]
nop
test rax, rax
je 0x1400a231c
xor r8d, r8d
lea r9, [0x1401dd9b0]
mov rcx, rax
lea edx, [r8 + 0xc]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rax, qword [rbx + 0x20]
xor esi, esi
cmp byte [0x140240e3f], sil
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rsi
je 0x1400a2379
lea rax, [rbp + 0x30]
mov dword [rbp - 0x60], 0x400
mov qword [rbp - 0x68], rax
lea rcx, [rbp - 0x50]
lea rax, [rbp - 0x80]
mov dword [rbp - 0x50], esi
mov qword [rbp - 0x58], rax
call fcn.14011f9e0
mov dword [rsp + 0x48], esi
lea rax, [rbp - 0x68]
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x38], 0x20
mov qword [rsp + 0x30], rax
lea rax, [rbp + 8]
jmp 0x1400a2403
xorps xmm0, xmm0
mov dword [rbp - 0x28], 0x30
lea r9, [rbp - 0x80]
mov qword [rbp - 0x20], rsi
lea r8, [rbp - 0x28]
mov dword [rbp - 0x10], esi
mov edx, 0x400
mov qword [rbp - 0x18], rsi
lea rcx, [rbp + 0x30]
movdqu xmmword [rbp - 8], xmm0
call qword [sym.imp.ntdll.dll_NtOpenProcess]
cmp eax, 0xc0000022
jne 0x1400a2426
cmp byte [0x140240e3f], sil
je 0x1400a293d
lea rax, ds:[rbp + 0x30]
mov dword [rbp - 0x40], 0x400
mov qword [rbp - 0x48], rax
lea rcx, [rbp - 0x30]
lea rax, [rbp - 0x80]
mov dword [rbp - 0x30], esi
mov qword [rbp - 0x38], rax
call fcn.14011f9e0
mov dword [rsp + 0x48], esi
lea rax, [rbp - 0x48]
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x38], 0x20
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x18]
mov rcx, qword [0x140241b70]
xor r9d, r9d
mov dword [rsp + 0x28], 0x999920cb
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
test eax, eax
js 0x1400a293d
mov rcx, qword [rbp + 0x30]
lea rdx, [rbp + 0x40]
call fcn.140085d20
mov dword ds:[rsp + 0x78], eax
test eax, eax
js 0x1400a292c
mov rdx, qword [0x1402418e8]
mov ecx, 0x76
mov qword [rsp + 0x270], r12
mov qword [rsp + 0x230], r13
mov qword [rsp + 0x228], r14
mov qword [rsp + 0x220], r15
mov qword [rsp + 0x50], 0x64
call sym.ProcessHacker.exe_PhCreateObject
mov r12d, 4
mov qword [rsp + 0x58], rax
mov rbx, rax
lea r15, [rbp + 0x40]
mov r14d, esi
lea rcx, [rax + 0x10]
mov qword [rax + 8], rcx
lea r13d, [r12 - 5]
mov word [rcx + 0x64], si
mov qword [rax], rsi
mov rcx, qword [rax + 8]
mov word [rcx], si
nop word [rax + rax]
mov rdx, qword [r15]
test rdx, rdx
je 0x1400a266a
xor r9d, r9d
lea r8, [rbp + 0x28]
mov ecx, r14d
call fcn.140086220
nop dword [rax + rax]
test al, al
je 0x1400a266a
mov r8, qword [rbp + 0x28]
mov rdi, qword [r8]
mov rsi, qword [r8 + 8]
test rdi, rdi
je 0x1400a2551
mov rcx, qword ds:[rbx]
add rcx, rdi
cmp qword [rsp + 0x50], rcx
jae 0x1400a2524
lfence
mov rax, qword [rsp + 0x58]
lea rcx, [rsp + 0x50]
mov rdx, qword [rax]
add rdx, rdi
call fcn.1400ffce0
mov rbx, qword [rsp + 0x58]
test rsi, rsi
je 0x1400a253b
mov rcx, qword [rbx + 8]
mov r8, rdi
add rcx, qword [rbx]
mov rdx, rsi
call fcn.140188690
add qword [rbx], rdi
mov rcx, qword [rbx]
xor esi, esi
mov rax, qword [rbx + 8]
mov word [rcx + rax], si
mov r8, qword [rbp + 0x28]
jmp 0x1400a2553
xor esi, esi
cmp byte [0x140244611], 1
nop word [rax + rax]
jb 0x1400a25f2
lea r9, [0x1401ea904]
xorps xmm1, xmm1
mov rax, r9
mov rcx, r9
and rax, 0xfffffffffffffff1
and ecx, 0xf
je 0x1400a25a0
xorps xmm0, xmm0
pcmpeqw xmm0, xmmword [rax]
pmovmskb edx, xmm0
sar edx, cl
bsf ecx, edx
mov dword [rsp + 0x60], ecx
je 0x1400a259c
mov eax, ecx
shr rax, 1
jmp 0x1400a25e7
add rax, 0x10
xorps xmm0, xmm0
pcmpeqw xmm0, xmmword [rax]
pmovmskb ecx, xmm0
bsf edx, ecx
mov dword [rsp + 0x60], edx
jne 0x1400a25d9
nop dword [rax]
nop dword [rax + rax]
add rax, 0x10
movdqa xmm0, xmm1
pcmpeqw xmm0, xmmword [rax]
pmovmskb ecx, xmm0
bsf edx, ecx
mov dword [rsp + 0x60], edx
je 0x1400a25c0
sub rax, r9
mov ecx, edx
sar rax, 1
shr rcx, 1
add rax, rcx
lea rdi, [rax + rax]
test rdi, rdi
je 0x1400a264c
jmp 0x1400a25f5
mov rdi, r12
mov rcx, qword ds:[rbx]
add rcx, rdi
cmp qword [rsp + 0x50], rcx
jae 0x1400a2624
lfence
mov rax, qword [rsp + 0x58]
lea rcx, [rsp + 0x50]
mov rdx, qword [rax]
add rdx, rdi
call fcn.1400ffce0
mov rbx, qword [rsp + 0x58]
mov rcx, qword [rbx]
lea rdx, [0x1401ea904]
add rcx, qword [rbx + 8]
mov r8, rdi
call fcn.140188690
add qword [rbx], rdi
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
mov word [rcx + rax], si
mov r8, qword [rbp + 0x28]
lea rcx, [r8 - 0x10]
mov eax, r13d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400a2665
nop dword [rax]
call fcn.1400fbcc0
mov rbx, qword [rsp + 0x58]
inc r14d
add r15, 8
cmp r14d, 0x11
jl 0x1400a24c0
mov rax, qword [rbp - 0x70]
mov r15, qword [rsp + 0x220]
mov r14, qword [rsp + 0x228]
cmp qword [rax + 0x20], r12
jne 0x1400a2854
xor r9d, r9d
lea rdx, [rbp + 0x38]
mov r8d, r12d
mov ecx, 0xdd
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
js 0x1400a2854
mov eax, dword ds:[rbp + 0x38]
lea r8, [rbp + 0x28]
mov ecx, eax
lea rdx, [rbp + 0x3c]
shr ecx, 4
and eax, 0x100
and ecx, 0x30
xor r9d, r9d
or ecx, eax
shr ecx, 4
mov dword [rbp + 0x3c], ecx
lea ecx, [r9 + 0xf]
call fcn.140086220
test al, al
je 0x1400a2854
mov r8, qword [rbp + 0x28]
mov rdi, qword [r8]
mov rsi, qword [r8 + 8]
test rdi, rdi
je 0x1400a2759
mov rcx, qword [rbx]
add rcx, rdi
cmp qword [rsp + 0x50], rcx
jae 0x1400a272a
lfence
mov rax, qword [rsp + 0x58]
lea rcx, [rsp + 0x50]
mov rdx, qword [rax]
add rdx, rdi
call fcn.1400ffce0
mov rbx, qword [rsp + 0x58]
test rsi, rsi
je 0x1400a2745
mov rcx, qword ds:[rbx + 8]
mov r8, rdi
add rcx, qword [rbx]
mov rdx, rsi
call fcn.140188690
add qword [rbx], rdi
mov rcx, qword [rbx]
xor edi, edi
mov rax, qword [rbx + 8]
mov word [rcx + rax], di
mov r8, qword [rbp + 0x28]
cmp byte [0x140244611], 1
lea rsi, [0x1401ea904]
jb 0x1400a27e5
mov rdx, rsi
mov rcx, rsi
and rdx, 0xfffffffffffffff1
xorps xmm1, xmm1
and ecx, 0xf
je 0x1400a279c
xorps xmm0, xmm0
pcmpeqw xmm0, xmmword [rdx]
pmovmskb eax, xmm0
sar eax, cl
bsf ecx, eax
mov dword [rsp + 0x64], ecx
je 0x1400a2798
mov edx, ecx
shr rdx, 1
jmp 0x1400a27d7
add rdx, 0x10
xorps xmm0, xmm0
pcmpeqw xmm0, xmmword [rdx]
pmovmskb eax, xmm0
bsf ecx, eax
mov dword [rsp + 0x64], ecx
jne 0x1400a27c9
add rdx, 0x10
movdqa xmm0, xmm1
pcmpeqw xmm0, xmmword [rdx]
pmovmskb eax, xmm0
bsf ecx, eax
mov dword [rsp + 0x64], ecx
je 0x1400a27b0
sub rdx, rsi
mov eax, ecx
sar rdx, 1
shr rax, 1
add rdx, rax
lea r12, ds:[rdx + rdx]
test r12, r12
je 0x1400a2837
mov rcx, qword [rbx]
add rcx, r12
cmp qword [rsp + 0x50], rcx
jae 0x1400a280f
lfence
mov rax, qword [rsp + 0x58]
lea rcx, [rsp + 0x50]
mov rdx, qword [rax]
add rdx, r12
call fcn.1400ffce0
mov rbx, qword [rsp + 0x58]
mov rcx, qword ds:[rbx]
mov r8, r12
add rcx, qword [rbx + 8]
mov rdx, rsi
call fcn.140188690
add qword [rbx], r12
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
mov word [rcx + rax], di
mov r8, qword [rbp + 0x28]
lea rcx, [r8 - 0x10]
mov eax, r13d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400a284d
call fcn.1400fbcc0
mov rbx, qword [rsp + 0x58]
jmp 0x1400a2856
xor edi, edi
mov r9, qword [rbx]
mov r12, qword [rsp + 0x270]
test r9, r9
je 0x1400a28fb
mov rax, qword [rbx + 8]
mov rcx, r9
and rcx, 0xfffffffffffffffe
mov r8, r9
sub rcx, 4
shr r9, 1
sub r8, rcx
add rcx, rax
sub r8, 4
lea rdx, [rax + r9*2]
call fcn.140188690
add qword [rbx], 0xfffffffffffffffc
mov edx, 0x402
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
mov word [rcx + rax], di
mov rcx, qword [rsp + 0x70]
mov rdi, qword [rbx + 8]
call qword [sym.imp.USER32.dll_GetDlgItem]
test rax, rax
je 0x1400a28cd
xor r8d, r8d
mov r9, rdi
mov rcx, rax
lea edx, [r8 + 0xc]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rdi, qword [rsp + 0x70]
lea rcx, [rbx - 0x10]
lock xadd dword [rcx + 8], r13d
cmp r13d, 1
mov r13, qword [rsp + 0x230]
jne 0x1400a292c
call fcn.1400fbcc0
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.ntdll.dll_NtClose]
jmp 0x1400a2956
mov rdi, qword [rsp + 0x70]
mov edx, 0x402
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetDlgItem]
test rax, rax
je 0x1400a28d2
xor r8d, r8d
lea r9, str.None
mov rcx, rax
lea edx, [r8 + 0xc]
call qword [sym.imp.USER32.dll_SendMessageW]
jmp 0x1400a28d2
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.ntdll.dll_NtClose]
cmp dword [rsp + 0x78], 0
jge 0x1400a2956
mov edx, 0x438
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_EnableWindow]
mov rcx, qword [rbp + 0x110]
xor rcx, rsp
call fcn.1401848a0
add rsp, 0x238
pop rdi
pop rsi
pop rbx
pop rbp
ret