Function at 0x140003480
Capabilities:
Check os version
Copy file
Create directory
Delete file
Extract resource via kernel32 functions
Get common file path
Get file version info
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x570
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
mov rax, qword [0x14006d030]
xor rax, rsp
mov qword [rsp + 0x540], rax
mov rdi, rdx
mov qword [rsp + 0x98], rdx
xor r14d, r14d
mov dword [rsp + 0xc0], r14d
cmp ecx, 3
jne 0x140003ae1
lea rdx, [0x140063d10]
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x140004a3e
cmp qword [rdi + 8], r14
je 0x140004a3e
mov edx, pe_nt_image_headers64
lea rcx, [rsp + 0x340]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xorps xmm0, xmm0
movups xmmword [rsp + 0x130], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x140], xmm1
lea r8d, [r14 + 0x27]
lea rdx, str.SecurityHealthSecurityHealthSetup.exe
lea rcx, [rsp + 0x130]
call fcn.140006880
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x68], xmm1
lea rcx, [rsp + 0x340]
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140003560
mov r8, rax
lea rdx, [rsp + 0x340]
lea rcx, [rsp + 0x58]
call fcn.140006880
nop
lea r9, [rsp + 0x130]
lea r8, [rsp + 0x58]
lea rcx, [rsp + 0xd0]
call fcn.1400072b0
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x1400035de
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400035d8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004fe3
call fcn.14002fb64
nop
mov rdx, qword [rsp + 0x148]
cmp rdx, 8
jb 0x140003626
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x130]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003621
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004fe9
call fcn.14002fb64
lea rdx, [rsp + 0xd0]
cmp qword [rsp + 0xe8], 8
cmovae rdx, qword [rsp + 0xd0]
xor r8d, r8d
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x140004fef
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
je 0x14000500b
mov r8d, pe_nt_image_headers64
lea rdx, str.securityhealthservice
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
je 0x140005019
lea r8, [rsp + 0x1e0]
mov edx, 0xca
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x140005032
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea rcx, str.test
call fcn.1400033b0
mov dword [rsp + 0xc4], r14d
mov qword [rsp + 0xa0], r14
lea rcx, [rsp + 0xd0]
cmp qword [rsp + 0xe8], 8
cmovae rcx, qword [rsp + 0xd0]
lea rdx, [rsp + 0xc4]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
mov ecx, eax
call fcn.140036ec4
mov rdi, rax
lea rcx, [rsp + 0xd0]
cmp qword [rsp + 0xe8], 8
cmovae rcx, qword [rsp + 0xd0]
mov r9, rax
mov r8d, ebx
mov edx, dword [rsp + 0xc4]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x140005076
lea r9, [rsp + 0x158]
lea r8, [rsp + 0xa0]
lea rdx, str.StringFileInfo040904B0FileVersion
mov rcx, rdi
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x1400039ba
mov rcx, qword [rsp + 0xa0]
call fcn.1400033b0
mov ebx, r14d
mov esi, 0xa
mov r12d, 0x16d
lea r15, [0x14006dc70]
lea rdx, [rsp + 0xd0]
cmp qword [rsp + 0xe8], 8
cmovae rdx, qword [rsp + 0xd0]
xorps xmm0, xmm0
movups xmmword [rsp + 0xf0], xmm0
mov qword [rsp + 0x100], r14
mov qword [rsp + 0x108], r14
mov r8, qword [rsp + 0xe0]
lea rcx, [rsp + 0xf0]
call fcn.140006880
nop
lea rcx, [rsp + 0xf0]
cmp qword [rsp + 0x108], 8
cmovae rcx, qword [rsp + 0xf0]
mov r9d, 0xffffffff
mov r8d, 3
lea rdx, [rsp + 0x1c0]
call fcn.14000e794
mov r8d, eax
test eax, eax
jne 0x140003864
mov edx, dword [rsp + 0x1d0]
test dl, 1
mov ecx, 0x1ff
cmovne ecx, r12d
mov dword [rsp + 0x1a4], ecx
bt edx, 0xa
jae 0x140003856
mov eax, dword [rsp + 0x1d4]
cmp eax, 0xa000000c
jne 0x14000384b
lea eax, [r8 + 4]
jmp 0x14000388b
cmp eax, 0xa0000003
jne 0x140003856
mov eax, esi
jmp 0x14000388b
movzx eax, dl
and eax, 0x10
or eax, 0x20
shr eax, 4
jmp 0x14000388b
mov dword [rsp + 0x1a4], 0xffff
sub eax, 2
je 0x140003886
sub eax, 1
je 0x140003886
sub eax, 0x32
je 0x140003886
cmp eax, 0x46
mov eax, r14d
jne 0x14000388b
mov eax, 1
mov dword [rsp + 0xb0], r8d
mov qword [rsp + 0xb8], r15
movaps xmm0, xmmword [rsp + 0xb0]
movdqa xmmword [rsp + 0x1a0], xmm0
test eax, eax
je 0x140003a85
cmp eax, 1
je 0x140003a8e
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov dword [rsp + 0xc0], r14d
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindows_Security_HealthPlatform
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140003959
mov dword [rsp + 0x150], 4
mov dword [rsp + 0xc8], r14d
lea rax, [rsp + 0x150]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xc8]
xor r8d, r8d
lea rdx, str.Registered
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0xc0], 1
je 0x140003a13
mov rdx, qword [rsp + 0x108]
cmp rdx, 8
jb 0x1400039af
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0xf0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400039aa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000505a
call fcn.14002fb64
inc ebx
cmp ebx, 0xf
jl 0x140003792
mov rcx, rdi
call fcn.140036a94
nop
mov rdx, qword [rsp + 0xe8]
cmp rdx, 8
jb 0x140004faa
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0xd0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003ad7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005054
jmp 0x140003ad7
lea rcx, [rsp + 0xd0]
cmp qword [rsp + 0xe8], 8
cmovae rcx, qword [rsp + 0xd0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
mov rdx, qword [rsp + 0x108]
cmp rdx, 8
jb 0x1400039ba
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0xf0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003a7b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000505a
call fcn.14002fb64
jmp 0x1400039ba
test r8d, r8d
jne 0x140005060
mov rdx, qword [rsp + 0x108]
cmp rdx, 8
jb 0x1400039ba
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0xf0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003a7b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000505a
jmp 0x140003a7b
call fcn.14002fb64
jmp 0x140004faa
cmp ecx, 2
jne 0x140004a3e
mov r13d, r14d
lea rsi, str.SecurityHealthAgent.dll
mov qword [rsp + 0xa0], rsi
mov r15, 0xffffffffffffffff
mov eax, 0xa
mov r8d, eax
mov rdx, qword [rsi]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0xb0], rax
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rsp + 0xc8], eax
mov rdx, qword [rdi + 8]
xorps xmm0, xmm0
movups xmmword [rsp + 0x160], xmm0
mov qword [rsp + 0x170], r14
mov qword [rsp + 0x178], r14
mov r8, r15
nop dword [rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x140003b70
lea rcx, [rsp + 0x160]
call fcn.140006880
nop
lea rdx, [rsp + 0x160]
cmp qword [rsp + 0x178], 8
setae cl
mov r9, qword [rsp + 0x160]
cmovae rdx, r9
mov rax, qword [rsp + 0x170]
lea rdi, [rdx + rax*2]
lea rdx, [rsp + 0x160]
test cl, cl
je 0x140003bc7
lea rbx, [r9 + rax*2]
jmp 0x140003bd3
lea rbx, [rdx + rax*2]
lea r9, [rsp + 0x160]
mov r8d, 0x22
mov rdx, rbx
mov rcx, r9
call fcn.14000e4e0
mov r10, rax
cmp rax, rbx
je 0x140003c0f
add rax, 2
cmp rax, rbx
je 0x140003c0f
movzx ecx, word [rax]
cmp cx, 0x22
je 0x140003c06
mov word [r10], cx
add r10, 2
add rax, 2
cmp rax, rbx
jne 0x140003bf5
lea rcx, [rsp + 0x160]
cmp qword [rsp + 0x178], 8
setae r8b
cmovae rcx, qword [rsp + 0x160]
mov r9, r10
sub r9, rcx
sar r9, 1
sub rdi, r10
sar rdi, 1
mov rbx, qword [rsp + 0x170]
mov rax, rbx
sub rax, r9
cmp rax, rdi
cmovb rdi, rax
lea rax, [rsp + 0x160]
test r8b, r8b
cmovne rax, qword [rsp + 0x160]
lea rcx, [rax + r9*2]
sub rbx, rdi
lea rdx, [rcx + rdi*2]
mov r8, rbx
sub r8, r9
lea r8, [r8*2 + 2]
call fcn.140031990
mov qword [rsp + 0x170], rbx
mov rdx, qword [rsi]
xorps xmm0, xmm0
movups xmmword [rsp + 0x180], xmm0
mov qword [rsp + 0x190], r14
mov qword [rsp + 0x198], r14
mov r8, r15
nop dword [rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x140003cb0
lea rcx, [rsp + 0x180]
call fcn.140006880
nop
mov r15, qword [rsp + 0x170]
movabs rcx, 0x7ffffffffffffffe
mov rax, rcx
sub rax, r15
cmp rax, 1
jb 0x140005100
lea r12, [rsp + 0x160]
cmp qword [rsp + 0x178], 8
cmovae r12, qword [rsp + 0x160]
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], r14
lea rsi, [r15 + 1]
mov ebx, 7
lea rdi, [rsp + 0x38]
cmp rsi, rbx
jbe 0x140003db6
mov rbx, rsi
or rbx, 7
movabs rax, 0x7fffffffffffffff
cmp rbx, rcx
jbe 0x140003d4d
mov rbx, rcx
lea rcx, [rax + rax]
jmp 0x140003d73
cmp rbx, 0xa
mov ecx, 0xa
cmovb rbx, rcx
lea rcx, [rbx + 1]
cmp rcx, rax
ja 0x14000509a
add rcx, rcx
cmp rcx, 0x1000
jb 0x140003d9f
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14000509a
mov rcx, rax
call fcn.14002fb20
test rax, rax
je 0x1400050a0
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x140003db1
test rcx, rcx
je 0x140003dae
call fcn.14002fb20
mov rdi, rax
jmp 0x140003db1
mov rdi, r14
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rbx
lea rbx, [r15 + r15]
mov r8, rbx
mov rdx, r12
mov rcx, rdi
call fcn.140031990
mov word [rdi + rbx], 0x5c
mov word [rdi + rsi*2], r14w
mov edi, dword [rsp + 0xc0]
bts edi, 7
lea r9, [rsp + 0x180]
lea r8, [rsp + 0x38]
lea rcx, [rsp + 0x130]
call fcn.1400072b0
bts edi, 8
mov dword [rsp + 0xc0], edi
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x140003e50
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003e4a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400050a0
call fcn.14002fb64
nop
mov rdx, qword [rsp + 0x198]
cmp rdx, 8
jb 0x140003e98
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x180]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003e93
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400050a6
call fcn.14002fb64
lea rdx, [rsp + 0x130]
cmp qword [rsp + 0x148], 8
cmovae rdx, qword [rsp + 0x130]
lea r8, [0x140063e40]
lea rcx, [rsp + 0xa8]
call fcn.1400362d4
mov r9, qword [rsp + 0xa8]
test r9, r9
je 0x140003efa
mov edx, dword [rsp + 0xc8]
mov r8d, 1
mov rcx, qword [rsp + 0xb0]
call fcn.1400368c0
mov rcx, qword [rsp + 0xa8]
call fcn.1400364b8
mov rdx, qword [rsp + 0x148]
cmp rdx, 8
jb 0x140003f42
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x130]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003f3d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400050a6
call fcn.14002fb64
mov qword [rsp + 0x140], r14
mov qword [rsp + 0x148], 7
mov word [rsp + 0x130], r14w
mov rdx, qword [rsp + 0x178]
cmp rdx, 8
jb 0x140003fa7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x160]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003fa2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400050ac
call fcn.14002fb64
inc r13d
mov rsi, qword [rsp + 0xa0]
add rsi, 8
mov qword [rsp + 0xa0], rsi
cmp r13d, 8
jae 0x140003fd1
mov rdi, qword [rsp + 0x98]
jmp 0x140003afc
mov dword [rsp + 0xc0], r14d
mov rcx, r14
mov qword [rsp + 0x158], rcx
movzx ebx, byte [rsp + 0x30]
movzx edi, byte [rsp + 0x30]
movzx esi, byte [rsp + 0x30]
lea rax, [0x140000000]
mov r13d, r14d
mov dword [rsp + 0xc4], r14d
mov r15, r14
mov qword [rsp + 0x150], r14
mov r12, 0xffffffffffffffff
nop word [rax + rax]
mov rdx, qword [rax + rcx*8 + 0x63f10]
xorps xmm0, xmm0
movups xmmword [rsp + 0x1a0], xmm0
mov qword [rsp + 0x1b0], r14
mov qword [rsp + 0x1b8], r14
mov r8, r12
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x140004050
lea rcx, [rsp + 0x1a0]
call fcn.140006880
nop
lea rdx, [0x140000000]
mov rdx, qword [rdx + r15*8 + 0x63f00]
xorps xmm0, xmm0
movups xmmword [rsp + 0xd0], xmm0
mov qword [rsp + 0xe0], r14
mov qword [rsp + 0xe8], r14
mov r8, r12
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x1400040a0
lea rcx, [rsp + 0xd0]
call fcn.140006880
nop
mov rcx, qword [rsp + 0xe0]
mov rdx, qword [rsp + 0xe8]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x140004107
lea rax, [rcx + 1]
mov qword [rsp + 0xe0], rax
lea rax, [rsp + 0xd0]
cmp rdx, 8
cmovae rax, qword [rsp + 0xd0]
mov dword [rax + rcx*2], 0x28
lea rax, [rsp + 0xd0]
jmp 0x14000412d
mov qword [rsp + 0x20], 1
lea r9, [0x140063e4c]
movzx r8d, dil
mov edx, 1
lea rcx, [rsp + 0xd0]
call fcn.1400066a0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x58], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x68], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 7
mov word [rax], r14w
lea r9, [rsp + 0x1a0]
lea r8, [rsp + 0x58]
lea rcx, [rsp + 0x110]
call fcn.1400072b0
nop
mov rcx, qword [rsp + 0x120]
mov rdx, qword [rsp + 0x128]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x1400041b7
lea rax, [rcx + 1]
mov qword [rsp + 0x120], rax
lea rax, [rsp + 0x110]
cmp rdx, 8
cmovae rax, qword [rsp + 0x110]
mov dword [rax + rcx*2], 0x29
lea rax, [rsp + 0x110]
jmp 0x1400041dd
mov qword [rsp + 0x20], 1
lea r9, [0x140063e48]
movzx r8d, bl
mov edx, 1
lea rcx, [rsp + 0x110]
call fcn.1400066a0
xorps xmm0, xmm0
movups xmmword [rsp + 0x130], xmm0
mov qword [rsp + 0x140], r14
mov qword [rsp + 0x148], r14
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x130], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x140], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 7
mov word [rax], r14w
mov rdx, qword [rsp + 0x128]
cmp rdx, 8
jb 0x140004267
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x110]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004262
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400050b2
call fcn.14002fb64
mov qword [rsp + 0x120], r14
mov qword [rsp + 0x128], 7
mov word [rsp + 0x110], r14w
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x1400042c7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400042c1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400050b8
call fcn.14002fb64
nop
mov rdx, qword [rsp + 0xe8]
cmp rdx, 8
jb 0x14000430f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0xd0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000430a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400050be
call fcn.14002fb64
mov qword [rsp + 0xe0], r14
mov qword [rsp + 0xe8], 7
mov word [rsp + 0xd0], r14w
mov rdx, qword [rsp + 0x1b8]
cmp rdx, 8
jb 0x140004374
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x1a0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000436f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400050c4
call fcn.14002fb64
lea rdx, [rsp + 0x130]
cmp qword [rsp + 0x148], 8
cmovae rdx, qword [rsp + 0x130]
xor ecx, ecx
lea r8d, [rcx + 0xa]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov r15, rax
test rax, rax
je 0x140004996
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140004996
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0x1a0], rax
mov rdx, r15
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rsp + 0xc8], eax
mov rdx, qword [rsp + 0x158]
lea r15, [0x140000000]
mov rdx, qword [r15 + rdx*8 + 0x63f10]
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x70], r14
mov r8, r12
nop dword [rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x140004410
lea rcx, [rsp + 0x58]
call fcn.140006880
nop
mov rax, qword [rsp + 0x98]
mov rax, qword [rax + 8]
lea rdx, [0x140063e50]
test rax, rax
cmovne rdx, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0xf0], xmm0
mov qword [rsp + 0x100], r14
mov qword [rsp + 0x108], r14
mov r8, r12
nop
inc r8
cmp word [rdx + r8*2], 0
jne 0x140004460
lea rcx, [rsp + 0xf0]
call fcn.140006880
nop
mov rcx, qword [rsp + 0x100]
mov rdx, qword [rsp + 0x108]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x1400044c7
lea rax, [rcx + 1]
mov qword [rsp + 0x100], rax
lea rax, [rsp + 0xf0]
cmp rdx, 8
cmovae rax, qword [rsp + 0xf0]
mov dword [rax + rcx*2], 0x5c
lea rax, [rsp + 0xf0]
jmp 0x1400044ed
mov qword [rsp + 0x20], 1
lea r9, [0x140063e3c]
movzx r8d, sil
mov edx, 1
lea rcx, [rsp + 0xf0]
call fcn.1400066a0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x1c0], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x1d0], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 7
mov word [rax], r14w
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x1c0]
lea rcx, [rsp + 0x180]
call fcn.1400072b0
nop
mov rdx, qword [rsp + 0x1d8]
cmp rdx, 8
jb 0x140004578
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x1c0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004572
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400050ca
call fcn.14002fb64
nop
mov rdx, qword [rsp + 0x108]
cmp rdx, 8
jb 0x1400045c0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0xf0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400045bb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400050d0
call fcn.14002fb64
mov qword [rsp + 0x100], r14
mov qword [rsp + 0x108], 7
mov word [rsp + 0xf0], r14w
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x14000461f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000461a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400050d6
call fcn.14002fb64
lea rcx, [rsp + 0x180]
cmp qword [rsp + 0x198], 8
cmovae rcx, qword [rsp + 0x180]
call fcn.1400361dc
test eax, eax
je 0x140004665
call fcn.140036a38
mov rcx, rax
call fcn.140036a58
test eax, eax
jne 0x14000494d
call fcn.140036a38
cmp dword [rax], 0x11
jne 0x14000494d
mov rdx, qword [rsp + 0x150]
mov rdx, qword [r15 + rdx*8 + 0x63f00]
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x70], r14
mov r8, r12
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x140004690
lea rcx, [rsp + 0x58]
call fcn.140006880
nop
mov rdx, qword [rsp + 0x190]
mov qword [rsp + 0xa8], rdx
movabs rcx, 0x7ffffffffffffffe
mov rax, rcx
sub rax, rdx
cmp rax, 1
jb 0x1400050f4
lea rax, [rsp + 0x180]
cmp qword [rsp + 0x198], 8
cmovae rax, qword [rsp + 0x180]
mov qword [rsp + 0xa0], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], r14
lea r13, [rdx + 1]
mov r15d, 7
lea r12, [rsp + 0x38]
cmp r13, r15
jbe 0x1400047cf
mov r15, r13
or r15, 7
cmp r15, rcx
jbe 0x14000473b
mov r15, rcx
movabs rax, 0x7fffffffffffffff
lea rcx, [rax + rax]
jmp 0x14000476b
cmp r15, 0xa
mov ecx, 0xa
cmovb r15, rcx
lea rcx, [r15 + 1]
movabs r8, 0x7fffffffffffffff
cmp rcx, r8
ja 0x1400050dc
add rcx, rcx
cmp rcx, 0x1000
jb 0x1400047a8
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x1400050dc
mov rcx, rax
call fcn.14002fb20
test rax, rax
je 0x1400050e2
lea r12, [rax + 0x27]
and r12, 0xffffffffffffffe0
mov qword [r12 - 8], rax
mov rdx, qword [rsp + 0xa8]
mov rax, qword [rsp + 0xa0]
jmp 0x1400047ca
test rcx, rcx
je 0x1400047c7
call fcn.14002fb20
mov r12, rax
mov rdx, qword [rsp + 0xa8]
mov rax, qword [rsp + 0xa0]
jmp 0x1400047ca
mov r12, r14
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x50], r15
lea r15, [rdx + rdx]
mov r8, r15
mov rdx, rax
mov rcx, r12
call fcn.140031990
mov word [r15 + r12], 0x5c
mov word [r12 + r13*2], r14w
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
lea rcx, [rsp + 0x110]
call fcn.1400072b0
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x140004852
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000484c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400050e2
call fcn.14002fb64
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x140004894
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000488f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400050e8
call fcn.14002fb64
lea rdx, [rsp + 0x110]
cmp qword [rsp + 0x128], 8
cmovae rdx, qword [rsp + 0x110]
lea r8, [0x140063e40]
lea rcx, [rsp + 0xb0]
call fcn.1400362d4
mov r9, qword [rsp + 0xb0]
test r9, r9
je 0x1400048f6
mov edx, dword [rsp + 0xc8]
mov r8d, 1
mov rcx, qword [rsp + 0x1a0]
call fcn.1400368c0
mov rcx, qword [rsp + 0xb0]
call fcn.1400364b8
mov rdx, qword [rsp + 0x128]
cmp rdx, 8
jb 0x14000493e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x110]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004939
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400050e8
call fcn.14002fb64
mov r13d, dword [rsp + 0xc4]
mov r12, 0xffffffffffffffff
mov rdx, qword [rsp + 0x198]
cmp rdx, 8
jb 0x140004996
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x180]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004990
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400050ee
call fcn.14002fb64
nop
mov rdx, qword [rsp + 0x148]
cmp rdx, 8
jb 0x1400049de
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x130]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400049d9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400050fa
call fcn.14002fb64
inc r13d
mov dword [rsp + 0xc4], r13d
mov r15, qword [rsp + 0x150]
inc r15
mov qword [rsp + 0x150], r15
cmp r13d, 2
mov rcx, qword [rsp + 0x158]
lea rax, [0x140000000]
jb 0x140004020
mov eax, dword [rsp + 0xc0]
inc eax
mov dword [rsp + 0xc0], eax
inc rcx
mov qword [rsp + 0x158], rcx
cmp eax, 0x2a
jae 0x140004faa
jmp 0x140003ff3
mov dword [rsp + 0x220], 0x11c
mov dword [rsp + 0x22c], 0x1869f
mov r8b, 5
mov edx, 4
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov r8, rax
mov edx, 4
lea rcx, [rsp + 0x220]
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x140004f3b
call fcn.140002d20
mov r12d, eax
lea rdx, [rsp + 0x340]
mov ecx, pe_nt_image_headers64
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
mov r8d, pe_nt_image_headers64
lea rdx, [rsp + 0x340]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x68], xmm1
lea rax, [rsp + 0x340]
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x140004ae0
lea rdx, [rsp + 0x340]
lea rcx, [rsp + 0x58]
call fcn.140006880
nop
mov rdx, qword [rdi]
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x88], xmm1
inc rbx
cmp word [rdx + rbx*2], 0
jne 0x140004b15
mov r8, rbx
lea rcx, [rsp + 0x78]
call fcn.140006880
nop
mov rcx, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x90]
mov rax, rdx
sub rax, rcx
cmp rax, 2
jb 0x140004b78
lea rax, [rcx + 2]
mov qword [rsp + 0x88], rax
lea rax, [rsp + 0x78]
cmp rdx, 8
cmovae rax, qword [rsp + 0x78]
mov dword [rax + rcx*2], 0x220020
mov word [rax + rcx*2 + 4], r14w
lea rax, [rsp + 0x78]
jmp 0x140004b9d
mov qword [rsp + 0x20], 2
lea r9, [0x140063e64]
movzx r8d, byte [rsp + 0x30]
mov edx, 2
lea rcx, [rsp + 0x78]
call fcn.1400066a0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x1c0], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x1d0], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 7
mov word [rax], r14w
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x1c0]
lea rcx, [rsp + 0x38]
call fcn.1400072b0
nop
mov rdi, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
sub rax, rdi
cmp rax, 5
jb 0x140004c2d
lea rax, [rdi + 5]
mov qword [rsp + 0x48], rax
lea rbx, [rsp + 0x38]
cmp rcx, 8
cmovae rbx, qword [rsp + 0x38]
lea rcx, [rbx + rdi*2]
mov r8d, 0xa
lea rdx, str.__nul
call fcn.140031990
mov word [rbx + rdi*2 + 0xa], r14w
lea rax, [rsp + 0x38]
jmp 0x140004c52
mov qword [rsp + 0x20], 5
lea r9, str.__nul
movzx r8d, byte [rsp + 0x30]
mov edx, 5
lea rcx, [rsp + 0x38]
call fcn.1400066a0
movups xmm7, xmmword [rax]
movups xmmword [rsp + 0x1e0], xmm7
movups xmm6, xmmword [rax + 0x10]
movups xmmword [rsp + 0x1f0], xmm6
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 7
mov word [rax], r14w
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x140004cbb
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004cb6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005106
call fcn.14002fb64
movdqa xmm0, xmmword [0x140064150]
movdqu xmmword [rsp + 0x48], xmm0
mov word [rsp + 0x38], r14w
mov rdx, qword [rsp + 0x1d8]
cmp rdx, 8
jb 0x140004d18
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x1c0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004d12
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000510c
call fcn.14002fb64
nop
mov rdx, qword [rsp + 0x90]
cmp rdx, 8
jb 0x140004d5d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004d58
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005112
call fcn.14002fb64
movdqa xmm0, xmmword [0x140064150]
movdqu xmmword [rsp + 0x88], xmm0
mov word [rsp + 0x78], r14w
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x140004db6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004db1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005118
call fcn.14002fb64
xorps xmm0, xmm0
movups xmmword [rsp + 0x110], xmm0
mov qword [rsp + 0x120], r14
mov qword [rsp + 0x128], r14
lea rsi, [rsp + 0x1e0]
movq rdi, xmm7
movdqa xmm0, xmm6
psrldq xmm0, 8
movq r15, xmm0
cmp r15, 8
cmovae rsi, rdi
movabs r13, 0x7ffffffffffffffe
movq rbx, xmm6
cmp rbx, r13
ja 0x14000511e
mov qword [rsp + 0x128], 7
cmp rbx, 8
jae 0x140004e36
mov qword [rsp + 0x120], rbx
movups xmm0, xmmword [rsi]
movups xmmword [rsp + 0x110], xmm0
jmp 0x140004ee9
mov rax, rbx
or rax, 7
cmp rax, r13
jbe 0x140004e52
movabs rax, 0x7fffffffffffffff
lea rcx, [rax + rax]
jmp 0x140004e85
mov r13, rax
cmp rax, 0xa
mov eax, 0xa
cmovb r13, rax
lea rcx, [r13 + 1]
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x140005123
add rcx, rcx
cmp rcx, 0x1000
jb 0x140004eb1
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140005128
mov rcx, rax
call fcn.14002fb20
test rax, rax
je 0x14000512d
lea r14, [rax + 0x27]
and r14, 0xffffffffffffffe0
mov qword [r14 - 8], rax
jmp 0x140004ebe
test rcx, rcx
je 0x140004ebe
call fcn.14002fb20
mov r14, rax
mov qword [rsp + 0x110], r14
mov qword [rsp + 0x120], rbx
mov qword [rsp + 0x128], r13
lea r8, [rbx*2 + 2]
mov rdx, rsi
mov rcx, r14
call fcn.140031990
lea rdx, [rsp + 0x110]
mov ecx, r12d
call fcn.140002f30
nop
cmp r15, 8
jb 0x140004faa
lea rdx, [r15*2 + 2]
mov rax, rdi
cmp rdx, 0x1000
jb 0x140004f31
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005133
mov rcx, rdi
call fcn.14002fb64
jmp 0x140004faa
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
je 0x140005139
mov r8d, pe_nt_image_headers64
lea rdx, str.securityhealthservice
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
je 0x140005147
lea r8, [rsp + 0x1e0]
mov edx, 0xce
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x140005160
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
xor eax, eax
mov rcx, qword [rsp + 0x540]
xor rcx, rsp
call fcn.14002fb00
lea r11, [rsp + 0x570]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
call fcn.140036e4c
nop
call fcn.140036e4c
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rcx, str.CopyError
call fcn.1400033b0
mov ecx, ebx
call fcn.1400361d0
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400361d0
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, ebx
call fcn.1400361d0
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, ebx
call fcn.1400361d0
nop
call fcn.140036e4c
nop
call fcn.140036e4c
nop
lea r8, [rsp + 0xf0]
lea rdx, [rsp + 0x1a0]
call fcn.1400028a0
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rcx, str.VersionError
call fcn.1400033b0
mov rcx, rdi
call fcn.140036a94
mov ecx, ebx
call fcn.1400361d0
nop
call fcn.140001170
int3
call fcn.140036e4c
nop
call fcn.140036e4c
nop
call fcn.140036e4c
nop
call fcn.140036e4c
nop
call fcn.140036e4c
nop
call fcn.140036e4c
nop
call fcn.140036e4c
nop
call fcn.140036e4c
nop
call fcn.140036e4c
nop
call fcn.140036e4c
nop
call fcn.140001170
int3
call fcn.140036e4c
nop
call fcn.140036e4c
nop
call fcn.140036e4c
nop
call fcn.140001210
nop
call fcn.140036e4c
nop
call fcn.140001210
nop
call fcn.140036e4c
nop
call fcn.140036e4c
nop
call fcn.140036e4c
nop
call fcn.140036e4c
int3
call fcn.140001210
call fcn.140001170
call fcn.140001170
call fcn.140036e4c
nop
call fcn.140036e4c
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400361d0
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, ebx
call fcn.1400361d0
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, ebx
call fcn.1400361d0
int3