Function at 0x140006b64
Capabilities:
Access peb ldr_data
Read file on windows
Set registry value
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x458]
sub rsp, 0x530
mov rax, qword [0x14006f5c0]
xor rax, rsp
mov qword [rbp + 0x420], rax
mov rax, qword gs:[0x30]
mov r8, rcx
mov rcx, qword [rax + 0x60]
movzx edx, word [rcx + 0x118]
movzx eax, word [rcx + 0x11c]
shl edx, 0x10
or edx, eax
cmp edx, 0x60001
jb 0x1400075a9
cmp edx, 0x60002
je 0x1400075a9
xor r12d, r12d
test r8, r8
je 0x140006bea
or edx, 0xffffffff
mov rcx, r8
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call fcn.140006434
mov r14, rax
test rax, rax
jne 0x140006c04
call fcn.14001b570
mov r15d, eax
jmp 0x140006f1e
call fcn.140001b5c
test rax, rax
je 0x1400075de
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
add rax, 0x18
mov qword [rbp - 0x40], rax
call fcn.140001b5c
test rax, rax
je 0x1400075de
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
add rax, 0x18
lea rdx, [rbp - 0x58]
lea rcx, [rbp - 0x40]
mov qword [rbp - 0x58], rax
call fcn.140004db4
or r13, 0xffffffffffffffff
mov r15d, eax
test eax, eax
jne 0x140006ecb
lea rdx, [0x140063618]
lea rcx, [rsp + 0x70]
call fcn.14001d65c
mov rbx, qword [rsp + 0x70]
test rbx, rbx
je 0x1400075de
mov rcx, qword [rbp - 0x58]
mov rdx, rbx
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jne 0x140006c96
mov r15d, r12d
jmp 0x140006eaf
mov rcx, qword [rbp - 0x40]
lea rdx, [rsp + 0x78]
mov dword [rsp + 0x78], r12d
call fcn.140005088
mov r15d, eax
test eax, eax
jne 0x140006eaf
cmp dword [rsp + 0x78], r12d
jne 0x140006cc6
mov r15d, 0x80004005
jmp 0x140006eaf
call fcn.140001b5c
test rax, rax
je 0x1400075de
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
add rax, 0x18
lea rdx, [rbp - 0x60]
lea rcx, str._SystemDrive_360SysRt360PatchMgr64.exe
mov qword [rbp - 0x60], rax
call fcn.14001bdc4
mov rbx, qword [rbp - 0x60]
test eax, eax
je 0x140006d13
movzx r15d, ax
or r15d, 0x80070000
test eax, eax
cmovle r15d, eax
jmp 0x140006e8e
cmp dword [rbx - 0x10], r12d
jne 0x140006d24
mov r15d, 0x80004005
jmp 0x140006e8e
mov rcx, rbx
call fcn.14001b414
call fcn.140001b5c
test rax, rax
je 0x1400075de
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
lea rdx, [rbp - 0x48]
xor ecx, ecx
add rax, 0x18
mov qword [rbp - 0x48], rax
call fcn.14001bfb4
test eax, eax
je 0x140006d70
movzx r15d, ax
or r15d, 0x80070000
test eax, eax
cmovle r15d, eax
jmp 0x140006e6a
mov rcx, qword [rbp - 0x48]
xor r9d, r9d
mov qword [rsp + 0x30], r12
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x12000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 5]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, r13
jne 0x140006db0
call fcn.14001b570
mov r15d, eax
jmp 0x140006e6a
mov qword [rsp + 0x30], r12
xor r9d, r9d
mov dword [rsp + 0x28], 0x12000080
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
mov r15d, 0x400
jmp 0x140006e19
mov r8d, dword [rsp + 0x58]
mov rcx, rdi
test r8d, r8d
je 0x140006f31
lea r9, [rbp - 0x50]
mov qword [rsp + 0x20], r12
lea rdx, [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140006e37
mov eax, dword [rbp - 0x50]
cmp dword [rsp + 0x58], eax
jne 0x140006f26
lea r9, [rsp + 0x58]
mov qword [rsp + 0x20], r12
mov r8d, r15d
lea rdx, [rbp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140006de4
call fcn.14001b570
mov r15d, eax
cmp rdi, r13
je 0x140006e57
mov rcx, rdi
call qword [fcn.140037368]
test eax, eax
jne 0x140006e57
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
call qword [fcn.140037368]
test eax, eax
jne 0x140006e6a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, qword [rbp - 0x48]
mov eax, r13d
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
add eax, r13d
test eax, eax
jg 0x140006e8a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rbx, qword [rbp - 0x60]
lea rdx, [rbx - 0x18]
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
test eax, eax
jg 0x140006eaa
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rbx, qword [rsp + 0x70]
lea rdx, [rbx - 0x18]
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
test eax, eax
jg 0x140006ecb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdx, qword [rbp - 0x58]
mov eax, r13d
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
add eax, r13d
test eax, eax
jg 0x140006eeb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdx, qword [rbp - 0x40]
mov eax, r13d
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
add eax, r13d
test eax, eax
jg 0x140006f0b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, r14
call qword [fcn.140037368]
test eax, eax
jne 0x140006f1e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, r15d
jmp 0x1400075ae
mov r15d, 0x80004005
jmp 0x140006e3f
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
cmp rdi, r13
je 0x140006f4f
mov rcx, rdi
call qword [fcn.140037368]
test eax, eax
jne 0x140006f4f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
call qword [fcn.140037368]
test eax, eax
jne 0x140006f62
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathSkipRootW]
xor r15d, r15d
mov r12, rax
test rax, rax
jne 0x140006f81
mov r15d, 0x80004005
jmp 0x140006e6a
sub r12, 2
lea rcx, [rbp - 0x30]
mov r8, r12
mov rdx, rbx
sub r8, rbx
sar r8, 1
call fcn.140019624
test r12, r12
je 0x140006fae
mov rax, r13
inc rax
cmp word [r12 + rax*2], r15w
jne 0x140006fa2
jmp 0x140006fb1
mov eax, r15d
lea esi, [rax*2 + 0x240]
test sil, 7
je 0x140006fc4
and esi, 0xfffffff8
add esi, 8
call fcn.140001b5c
test rax, rax
je 0x1400075de
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
lea rdi, [rax + 0x18]
mov qword [rsp + 0x50], rdi
test esi, esi
js 0x1400075e9
mov ecx, dword [rdi - 0xc]
mov r13d, 1
mov edx, r13d
sub ecx, esi
sub edx, dword [rdi - 8]
or edx, ecx
jge 0x140007012
mov edx, esi
lea rcx, [rsp + 0x50]
call fcn.140001690
mov rdi, qword [rsp + 0x50]
lea rdx, [rbp - 0x30]
mov dword [rdi], 3
lea rcx, [rbp]
call fcn.14001a8f4
mov rcx, rax
mov rdx, rdi
call fcn.1400060a4
test eax, eax
je 0x14000704a
movzx r15d, ax
or r15d, 0x80070000
test eax, eax
cmovle r15d, eax
jmp 0x140007560
lea r8, [rdi + 0x14]
mov rcx, rbx
call fcn.14001b26c
mov r15d, eax
test eax, eax
jne 0x140007560
lea rcx, [rdi + 0x24]
mov r8, r12
mov edx, 0x104
call fcn.140050560
xor r12d, r12d
test eax, eax
je 0x140007084
mov r15d, 0x8000ffff
jmp 0x140007560
mov ebx, esi
and ebx, 0xfffffff8
je 0x14000709c
mov rcx, rdi
call fcn.140005680
add rdi, 8
sub ebx, 8
jne 0x14000708b
lea r8, [rbp - 0x58]
mov qword [rbp - 0x78], r12
lea rdx, str.BCD00000000Objects_
mov qword [rsp + 0x60], r12
lea rcx, [rbp - 0x28]
call fcn.140010b24
lea rcx, [rbp - 0x78]
mov edi, 4
mov qword [rsp + 0x20], rcx
mov r15, 0xffffffff80000002
mov rcx, r15
mov r9d, 0x20019
mov rdx, qword [rax]
mov r8d, edi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rdx, qword [rbp - 0x28]
mov ebx, eax
add rdx, 0xffffffffffffffe8
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, r13d
jg 0x140007104
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
test ebx, ebx
je 0x14000711e
movzx r15d, bx
or r15d, 0x80070000
test ebx, ebx
cmovle r15d, ebx
jmp 0x140007529
lea r8, [rsp + 0x70]
lea rdx, str.BCD00000000Objects_
lea rcx, [rbp - 0x20]
call fcn.140010b24
mov qword [rsp + 0x40], r12
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x38], rcx
xor r9d, r9d
mov qword [rsp + 0x30], r12
xor r8d, r8d
mov rdx, qword [rax]
mov rcx, r15
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov rdx, qword [rbp - 0x20]
mov ebx, eax
add rdx, 0xffffffffffffffe8
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, r13d
jg 0x140007186
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
test ebx, ebx
jne 0x140007108
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rbp - 0x78]
call fcn.14001ca38
mov rdi, qword [rsp + 0x50]
test eax, eax
jne 0x1400071cb
mov rcx, qword [rsp + 0x60]
lea r9d, [rbx + 3]
mov dword [rsp + 0x28], esi
lea rdx, str.Custom
xor r8d, r8d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1400071e1
movzx r15d, ax
or r15d, 0x80070000
test eax, eax
cmovle r15d, eax
jmp 0x14000752e
mov rcx, qword [rsp + 0x60]
lea r9, str.360Fix
lea rdx, str.Elements12000004
call fcn.14001c6f8
lea rcx, [rbp + 8]
call fcn.1400047d0
mov r15d, eax
test eax, eax
jne 0x14000752e
call fcn.140001b5c
test rax, rax
je 0x1400075de
mov r8, qword [rax]
mov rcx, rax
call qword [r8 + 0x18]
lea rdx, [rbp + 8]
mov qword [rsp + 0x68], r12
add rax, 0x18
lea rcx, [rbp - 8]
mov qword [rbp - 0x68], rax
call fcn.14001d65c
mov r8, rax
lea rdx, str.BCD00000000Objects_
lea rcx, [rbp - 0x10]
call fcn.140010b24
mov rdx, rax
lea r8, str.Elements14000008
lea rcx, [rbp - 0x18]
call fcn.140010bd8
lea rcx, [rsp + 0x68]
mov r9d, 0x2001f
mov qword [rsp + 0x20], rcx
lea r8d, [r15 + 4]
mov rcx, 0xffffffff80000002
mov rdx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rdx, qword [rbp - 0x18]
mov ebx, eax
add rdx, 0xffffffffffffffe8
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, r13d
jg 0x1400072aa
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov rdx, qword [rbp - 0x10]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, r13d
jg 0x1400072c8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdx, qword [rbp - 8]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, r13d
jg 0x1400072e6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
test ebx, ebx
je 0x140007300
movzx r15d, bx
or r15d, 0x80070000
test ebx, ebx
cmovle r15d, ebx
jmp 0x1400074f1
mov rcx, qword [rsp + 0x68]
lea r8, [rbp - 0x68]
lea rdx, str.Element
call fcn.14001c3c0
test eax, eax
je 0x14000732f
movzx r15d, ax
or r15d, 0x80070000
test eax, eax
cmovle r15d, eax
jmp 0x1400074f1
mov rdi, qword [rbp - 0x68]
mov rdx, qword [rsp + 0x70]
mov rcx, rdi
call fcn.14001d3cc
test rax, rax
jne 0x140007437
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x70]
call fcn.14001a8f4
xor edx, edx
lea rcx, [rbp - 0x70]
call fcn.14001a668
mov rbx, qword [rbp - 0x70]
mov esi, dword [rdi - 0x10]
movsxd r15, dword [rbx - 0x10]
add esi, r15d
js 0x1400075e9
mov eax, dword [rbx - 0xc]
sub r13d, dword [rbx - 8]
sub eax, esi
or r13d, eax
jge 0x140007393
mov edx, esi
lea rcx, [rbp - 0x70]
call fcn.1400020a8
mov rbx, qword [rbp - 0x70]
cmp esi, dword [rbx - 0xc]
jg 0x1400075e9
mov rdx, qword [rbp - 0x68]
lea rcx, [rbx + r15*2]
mov dword [rbx - 0x10], esi
movsxd rax, esi
mov word [rbx + rax*2], r12w
movsxd r8, dword [rdi - 0x10]
add r8, r8
call sub.msvcrt.dll_memcpy
mov eax, dword [rbx - 0x10]
lea rdx, str.Element
mov rcx, qword [rsp + 0x68]
mov r9d, 7
xor r8d, r8d
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea rdx, [rbx - 0x18]
test eax, eax
je 0x140007421
movzx r15d, ax
or r15d, 0x80070000
test eax, eax
cmovle r15d, eax
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400074f1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x1400074f1
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140007437
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov rdx, qword [0x140071ca0]
lea rax, [rbp - 0x80]
mov rcx, qword [0x14006f5e0]
xor r9d, r9d
mov qword [rsp + 0x40], r12
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x20206
mov dword [rsp + 0x20], 4
mov qword [rbp - 0x80], r12
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1400074d6
mov rcx, qword [rbp - 0x80]
lea rax, [rbp - 0x38]
mov qword [rsp + 0x40], r12
lea rdx, [0x14005b308]
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], r12
xor r8d, r8d
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], 5
mov qword [rbp - 0x38], r12
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x1400074d6
call qword [0x140057c38]
mov rcx, qword [rbp - 0x80]
mov r15d, r12d
test rcx, rcx
je 0x1400074f1
call qword [0x140057c38]
neg eax
sbb rcx, rcx
and qword [rbp - 0x80], rcx
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14000750b
call qword [0x140057c38]
neg eax
sbb rcx, rcx
and qword [rsp + 0x68], rcx
mov rdx, qword [rbp - 0x68]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140007529
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdi, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140007548
call qword [0x140057c38]
neg eax
sbb rcx, rcx
and qword [rsp + 0x60], rcx
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x140007560
call qword [0x140057c38]
neg eax
sbb rcx, rcx
and qword [rbp - 0x78], rcx
or r13, 0xffffffffffffffff
lea rdx, [rdi - 0x18]
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
test eax, eax
jg 0x140007580
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdx, qword [rbp - 0x30]
mov eax, r13d
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
add eax, r13d
test eax, eax
jg 0x140006e6a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x140006e6a
mov eax, 0x80004001
mov rcx, qword [rbp + 0x420]
xor rcx, rsp
call fcn.1400408d0
lea r11, [rsp + 0x530]
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
mov ecx, 0x80004005
call fcn.140002198
int3
mov ecx, 0x80070057
call fcn.140002198
int3