Function at 0x14001babc
Capabilities:
Check os version

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xad8]
sub rsp, 0xba0
movaps xmmword [rax - 0x48], xmm6
mov rax, qword [0x1400cc0b8]
xor rax, rsp
mov qword [rbp + 0xa80], rax
mov rbx, r8
mov qword [rsp + 0x78], rbx
mov rdi, rdx
mov qword [rbp - 0x60], rdx
mov r13, rcx
mov qword [rbp - 0x68], rcx
xor r15d, r15d
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x80], xmm0
xorps xmm6, xmm6
movdqa xmmword [rsp + 0x60], xmm6
mov dword [rsp + 0x70], r15d
lea rsi, [r8 + 0xf8]
mov qword [rbp - 0x58], rsi
mov rdx, rsi
cmp qword [rsi + 0x18], 8
jb 0x14001bb38
mov rdx, qword [rsi]
lea rcx, str.Injecting_image__ls
call fcn.1400196f4
lea rdx, [rdi + 0x58]
lea rcx, [rbp + 0x110]
call fcn.140027cc0
nop
mov r9, rbx
lea r8, [rsp + 0x70]
mov rdx, rax
mov rcx, r13
call fcn.14001b05c
mov r14d, eax
mov rdx, qword [rbp + 0x128]
cmp rdx, 0x10
jb 0x14001bbac
inc rdx
mov rcx, qword [rbp + 0x110]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001bba7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001c661
call fcn.14006c550
or r12, 0xffffffffffffffff
test r14d, r14d
jns 0x14001bbbe
lea rcx, str.Image_init_routine_check_failed__status:_0x_X
jmp 0x14001bbea
mov eax, dword [rdi + 0xa4]
cmp eax, 2
jb 0x14001bbce
cmp eax, 5
jne 0x14001bbf7
mov r8, rbx
mov rdx, rdi
mov rcx, r13
call fcn.14001a6d8
mov r14d, eax
test eax, eax
jns 0x14001bbf7
lea rcx, str.Context_validation_failed__status:_0x_X
mov edx, r14d
call fcn.1400196b8
jmp 0x14001bd62
or r12, 0xffffffffffffffff
cmp byte [rdi + 0xb4], r15b
je 0x14001bd76
cmp dword [rdi + 0xa4], 2
jae 0x14001bd76
lea rcx, str.Searching_for_thread_to_hijack
call fcn.14001976c
lea rcx, [r13 + 0x130]
lea rdx, [rbp + 0x38]
call fcn.140035e80
mov r15, qword [rax]
mov rcx, qword [rax + 8]
xor edx, edx
mov qword [rax], rdx
mov qword [rax + 8], rdx
mov qword [rbp - 0x80], r15
mov qword [rbp - 0x78], rcx
mov rbx, qword [rbp + 0x40]
test rbx, rbx
je 0x14001bc83
mov eax, r12d
lock xadd dword [rbx + 8], eax
add eax, r12d
jne 0x14001bc7d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r12d
lock xadd dword [rbx + 0xc], eax
add eax, r12d
jne 0x14001bc7d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
movdqa xmm6, xmmword [rsp + 0x60]
xor ebx, ebx
test r15, r15
jne 0x14001bd6c
xorps xmm0, xmm0
movups xmmword [rbp + 0x90], xmm0
mov qword [rbp + 0xa0], rbx
mov qword [rbp + 0xa8], rbx
lea r8d, [rbx + 5]
lea rdx, [0x1400b11f8]
lea rcx, [rbp + 0x90]
call fcn.140009374
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0xf0], xmm0
mov qword [rbp + 0x100], rbx
mov qword [rbp + 0x108], rbx
lea r8d, [rbx + 0x2b]
lea rdx, str.Failed_to_get_suitable_thread_for_execution
lea rcx, [rbp + 0xf0]
call fcn.140009374
nop
mov rcx, qword [r13]
lea r8, [rbp + 0x90]
lea rdx, [rbp + 0xf0]
mov rcx, qword [rcx]
call fcn.140014754
nop
lea rcx, [rbp + 0xf0]
call fcn.140007668
nop
mov rdx, qword [rbp + 0xa8]
cmp rdx, 8
jb 0x14001bd5c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x90]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001bd57
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001c667
call fcn.14006c550
mov r14d, 0xc0000225
mov r15, qword [rsp + 0x68]
jmp 0x14001c513
mov rbx, qword [rsp + 0x78]
xor r15d, r15d
jmp 0x14001bd85
movdqa xmm0, xmmword [rbp - 0x80]
psrldq xmm0, 8
movq qword [rbp - 0x78], xmm0
mov ecx, dword [rdi + 0xa4]
mov eax, ecx
test ecx, ecx
je 0x14001bfed
sub eax, 1
je 0x14001bf4c
sub eax, 1
je 0x14001bdce
sub eax, 1
je 0x14001bdce
sub eax, 1
je 0x14001bdce
cmp eax, 1
jne 0x14001bf34
call fcn.1400147cc
mov rdx, rsi
mov rcx, rax
call fcn.140029c70
mov r14d, eax
jmp 0x14001bf34
cmp ecx, 4
jne 0x14001be09
call fcn.1400147cc
lea rcx, [rdi + 0x78]
mov qword [rsp + 0x28], rcx
mov ecx, dword [rsp + 0x70]
mov dword [rsp + 0x20], ecx
mov r9d, dword [rdi + 0x9c]
mov r8, rsi
mov edx, dword [rdi + 0xc0]
mov rcx, rax
call fcn.140029940
mov r14d, eax
jmp 0x14001bf20
call fcn.1400147cc
mov rbx, rax
mov r15b, byte [rdi + 0xb6]
mov r13b, byte [rdi + 0xb5]
xor ecx, ecx
mov r14d, ecx
cmp dword [rdi + 0xa4], 2
setne r14b
mov eax, dword [rdi + 0xc0]
mov dword [rbp - 0x70], eax
mov dword [rbp + 0x48], ecx
xor edx, edx
mov r8d, 0x828
lea rcx, [rbp + 0x150]
call fcn.14006f000
cmp qword [rbx], r12
jne 0x14001be5f
mov r14d, 0xc00000c0
jmp 0x14001bf20
mov r8, rsi
cmp qword [rsi + 0x18], 8
jb 0x14001be6c
mov r8, qword [rsi]
mov edx, 0x200
lea rcx, [rbp + 0x154]
call fcn.14007f858
lea r8, [rdi + 0x78]
cmp qword [r8 + 0x18], 8
jb 0x14001be8b
mov r8, qword [r8]
mov edx, 0x200
lea rcx, [rbp + 0x554]
call fcn.14007f858
mov dword [rbp + 0x150], r14d
mov eax, dword [rbp - 0x70]
mov dword [rbp + 0x958], eax
mov eax, dword [rsp + 0x70]
mov dword [rbp + 0x954], eax
mov byte [rbp + 0x95c], 1
mov byte [rbp + 0x95d], r13b
mov byte [rbp + 0x95e], r15b
xor r15d, r15d
mov qword [rsp + 0x38], r15
lea rax, [rbp + 0x48]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
mov r9d, 0x828
lea r8, [rbp + 0x150]
mov edx, 0x8005e02c
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x14001bf1d
mov rax, qword gs:[0x30]
mov r14d, dword [rax + 0x1250]
movdqa xmm6, xmmword [rsp + 0x60]
jmp 0x14001bf20
mov r14d, r15d
test r14d, r14d
jns 0x14001bf34
mov edx, r14d
lea rcx, str.Failed_to_inject_image_using_kernel_injection__status:_0x_X
call fcn.1400196b8
movdqa xmm0, xmm6
psrldq xmm0, 8
movq r15, xmm0
movq r13, xmm6
jmp 0x14001c0c9
mov edx, dword [rdi + 0x9c]
lea rcx, [r13 + 0x2e8]
mov eax, edx
or eax, 0x40
cmp byte [rbx + 0x1a], r15b
cmove eax, edx
lea rdx, [0x14001c694]
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov r8, rsi
lea rdx, [rbp - 0x10]
call fcn.14002af50
nop
mov edx, dword [rbp - 0x10]
test edx, edx
jns 0x14001bfb1
mov r14d, edx
lea rcx, str.Failed_to_inject_image_using_manual_map__status:_0x_X
call fcn.1400196b8
movdqa xmm0, xmm6
psrldq xmm0, 8
movq r15, xmm0
movq r13, xmm6
mov rbx, qword [rbp]
jmp 0x14001bfe3
cmp byte [rbp + 8], r15b
je 0x14001c66d
mov rbx, qword [rbp]
test rbx, rbx
je 0x14001bfcc
lock inc dword [rbx + 8]
mov rbx, qword [rbp]
mov r13, qword [rbp - 8]
mov qword [rsp + 0x60], r13
mov r15, rbx
mov qword [rsp + 0x68], rbx
movdqa xmm6, xmmword [rsp + 0x60]
xor eax, eax
cmp byte [rbp + 8], al
jmp 0x14001c087
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x40], xmm0
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x14001c008
lock inc dword [rcx + 8]
movdqa xmm6, xmmword [rsp + 0x60]
movaps xmm0, xmmword [rbp - 0x80]
movdqa xmmword [rbp - 0x40], xmm0
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
mov r9, rbx
mov r8, rdi
lea rdx, [rbp + 0x10]
mov rcx, r13
call fcn.14001c734
nop
mov eax, dword [rbp + 0x10]
test eax, eax
jns 0x14001c050
mov r14d, eax
movdqa xmm0, xmm6
psrldq xmm0, 8
movq r15, xmm0
movq r13, xmm6
mov rbx, qword [rbp + 0x20]
jmp 0x14001c082
cmp byte [rbp + 0x28], r15b
je 0x14001c673
mov rbx, qword [rbp + 0x20]
test rbx, rbx
je 0x14001c06b
lock inc dword [rbx + 8]
mov rbx, qword [rbp + 0x20]
mov r13, qword [rbp + 0x18]
mov qword [rsp + 0x60], r13
mov r15, rbx
mov qword [rsp + 0x68], rbx
movdqa xmm6, xmmword [rsp + 0x60]
xor eax, eax
cmp byte [rbp + 0x28], al
je 0x14001c0c9
test rbx, rbx
je 0x14001c0c9
mov eax, r12d
lock xadd dword [rbx + 8], eax
add eax, r12d
jne 0x14001c0b9
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r12d
lock xadd dword [rbx + 0xc], eax
add eax, r12d
jne 0x14001c0b9
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
movdqa xmm6, xmmword [rsp + 0x60]
mov r13, qword [rsp + 0x60]
mov r15, qword [rsp + 0x68]
mov qword [rbp - 0x70], r13
mov rdx, qword [rsp + 0x78]
xor r8d, r8d
cmp byte [rdx + 0x1b], r8b
jne 0x14001c5b7
test r13, r13
jne 0x14001c5b7
cmp dword [rdi + 0xa4], 2
jae 0x14001c5b7
test r14d, r14d
js 0x14001c10f
mov edx, r14d
lea rcx, str.Invalid_failure_status:_0x_X
call fcn.1400196b8
mov r14d, 0xc0000135
xor edx, edx
mov r8d, 0x100
lea rcx, [rbp + 0x980]
call fcn.14006f000
mov r8, rsi
cmp qword [rsi + 0x18], 8
jb 0x14001c130
mov r8, qword [rsi]
mov r9d, r14d
lea rdx, str.Failed_to_inject_image__ls._nError_code_0x_X
lea rcx, [rbp + 0x980]
call qword [sym.imp.USER32.dll_wsprintfW]
xorps xmm0, xmm0
movups xmmword [rbp + 0xb0], xmm0
xor ebx, ebx
mov qword [rbp + 0xc0], rbx
mov qword [rbp + 0xc8], rbx
lea r8d, [rbx + 5]
lea rdx, [0x1400b1390]
lea rcx, [rbp + 0xb0]
call fcn.140009374
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x70], xmm0
mov qword [rbp + 0x80], rbx
mov qword [rbp + 0x88], rbx
lea rax, [rbp + 0x980]
mov r8, r12
inc r8
cmp word [rax + r8*2], bx
jne 0x14001c198
lea rdx, [rbp + 0x980]
lea rcx, [rbp + 0x70]
call fcn.140009374
nop
mov rbx, qword [rbp - 0x68]
mov rcx, qword [rbx]
lea r8, [rbp + 0xb0]
lea rdx, [rbp + 0x70]
mov rcx, qword [rcx]
call fcn.140014754
nop
mov rdx, qword [rbp + 0x88]
cmp rdx, 8
jb 0x14001c211
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001c20c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001c679
call fcn.14006c550
xor r8d, r8d
mov qword [rbp + 0x80], r8
mov qword [rbp + 0x88], 7
mov word [rbp + 0x70], r8w
mov rdx, qword [rbp + 0xc8]
cmp rdx, 8
jb 0x14001c274
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xb0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001c26c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001c67f
call fcn.14006c550
xor r8d, r8d
test r14d, r14d
js 0x14001c513
mov rdx, qword [rsp + 0x78]
test r13, r13
setne al
mov byte [rsp + 0x50], al
cmp qword [rbp - 0x70], r8
je 0x14001c34d
cmp dword [rdi + 0xa4], r8d
jne 0x14001c34d
cmp byte [rdi + 0xb6], r8b
je 0x14001c34d
mov edi, dword [rdx + 0x40]
mov dword [rsp + 0x78], r8d
mov ecx, edi
call fcn.14006c594
mov rsi, rax
mov r8d, edi
xor edx, edx
mov rcx, rax
call fcn.14006f000
mov qword [rbp + 0x30], rsi
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 0x40
mov r8d, edi
mov rdx, qword [r13]
lea rcx, [rbx + 0xb0]
call fcn.140045580
mov rax, qword [rbx + 0x120]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
and qword [rsp + 0x20], 0
mov r9d, edi
mov r8, rsi
mov rdx, qword [r13]
call qword [rax + 0x20]
and qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x78]
mov r8d, edi
mov rdx, qword [r13]
lea rcx, [rbx + 0xb0]
call fcn.140045580
nop
mov rcx, rsi
call fcn.14006c550
mov rdi, qword [rbp - 0x60]
mov rsi, qword [rbp - 0x58]
mov al, byte [rsp + 0x50]
xor r8d, r8d
test al, al
je 0x14001c513
cmp dword [rdi + 0xa4], r8d
jne 0x14001c513
cmp byte [rdi + 0xb5], r8b
je 0x14001c513
mov rbx, qword [rbp - 0x68]
mov rcx, qword [rbx + 0x28]
add rcx, 0x360
mov rdx, r13
call fcn.140052880
xor r8d, r8d
test al, al
jne 0x14001c513
mov r14d, 0x65b
xorps xmm0, xmm0
movups xmmword [rbp + 0xd0], xmm0
mov qword [rbp + 0xe0], r8
mov qword [rbp + 0xe8], r8
mov r8d, 5
lea rdx, [0x1400b13a0]
lea rcx, [rbp + 0xd0]
call fcn.140009374
nop
mov rcx, qword [rsi + 0x10]
movabs rax, 0x7ffffffffffffffe
sub rax, rcx
cmp rax, 0x19
jb 0x14001c685
cmp qword [rsi + 0x18], 8
jb 0x14001c3ee
mov rsi, qword [rsi]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], 0x19
lea r9, str.Failed_to_unlink_module_
lea rcx, [rbp + 0x130]
call fcn.14001de74
nop
mov r8d, 1
lea rdx, [0x1400af914]
lea rcx, [rbp + 0x130]
call fcn.140009ff0
xorps xmm0, xmm0
movups xmmword [rbp + 0x50], xmm0
xor edi, edi
mov qword [rbp + 0x60], rdi
mov qword [rbp + 0x68], rdi
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x50], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x60], xmm1
mov qword [rax + 0x10], rdi
lea esi, [rdi + 7]
mov qword [rax + 0x18], rsi
mov word [rax], di
mov rax, qword [rbx]
lea r8, [rbp + 0xd0]
lea rdx, [rbp + 0x50]
mov rcx, qword [rax]
call fcn.140014754
nop
mov rdx, qword [rbp + 0x68]
cmp rdx, 8
jb 0x14001c4b3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001c4ae
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001c68b
call fcn.14006c550
mov qword [rbp + 0x60], rdi
mov qword [rbp + 0x68], rsi
mov word [rbp + 0x50], di
lea rcx, [rbp + 0x130]
call fcn.140007668
nop
mov rdx, qword [rbp + 0xe8]
cmp rdx, 8
jb 0x14001c513
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xd0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001c50d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001c65b
call fcn.14006c550
nop
test r15, r15
je 0x14001c54c
mov eax, r12d
lock xadd dword [r15 + 8], eax
add eax, r12d
jne 0x14001c54c
mov rbx, qword [rsp + 0x68]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r12d
lock xadd dword [rbx + 0xc], eax
add eax, r12d
jne 0x14001c54c
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x14001c585
mov eax, r12d
lock xadd dword [rcx + 8], eax
add eax, r12d
jne 0x14001c585
mov rbx, qword [rbp - 0x78]
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx]
mov ecx, r12d
lock xadd dword [rbx + 0xc], ecx
add ecx, r12d
jne 0x14001c585
mov rcx, qword [rbp - 0x78]
mov rdx, qword [rcx]
call qword [rdx + 8]
mov eax, r14d
mov rcx, qword [rbp + 0xa80]
xor rcx, rsp
call fcn.14006c530
lea r11, [rsp + 0xba0]
mov rbx, qword [r11 + 0x58]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
test r14d, r14d
js 0x14001c10f
cmp dword [rdi + 0xa4], 2
jae 0x14001c652
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x30], xmm0
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x14001c5f2
lock inc dword [rcx + 8]
mov r15, qword [rsp + 0x68]
mov r13, qword [rsp + 0x60]
movdqa xmm6, xmmword [rsp + 0x60]
movaps xmm0, xmmword [rbp - 0x80]
movdqa xmmword [rbp - 0x30], xmm0
mov eax, dword [rsp + 0x70]
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x20], xmm0
test r15, r15
je 0x14001c621
lock inc dword [r15 + 8]
mov r15, qword [rsp + 0x68]
mov r13, qword [rsp + 0x60]
movdqa xmm6, xmmword [rsp + 0x60]
movdqa xmmword [rbp - 0x20], xmm6
lea rcx, [rbp - 0x30]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x20]
mov r8, rdx
mov rdx, rdi
mov rbx, qword [rbp - 0x68]
mov rcx, rbx
call fcn.14001cafc
mov r14d, eax
jmp 0x14001c271
mov rbx, qword [rbp - 0x68]
jmp 0x14001c282
call fcn.14007d788
int3
call fcn.14007d788
int3
call fcn.14007d788
nop
call fcn.1400197ec
nop
call fcn.1400197ec
nop
call fcn.14007d788
nop
call fcn.14007d788
nop
call fcn.1400012b0
nop
call fcn.14007d788
int3