Function at 0x140003774
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value

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 - 0x7d8]
sub rsp, 0x8b0
mov rax, qword [0x140015018]
xor rax, rsp
mov qword [rbp + 0x7a0], rax
xor r13d, r13d
mov r12d, r9d
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
mov r15d, 0x80004005
mov r14d, r13d
mov qword [rsp + 0x50], r13
cmp dword [rcx], r13d
je 0x140003ab8
add rcx, 8
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [rdi + 0x30], 6
jge 0x1400037eb
mov ebx, 0x8007139f
jmp 0x140003a98
test rbx, rbx
je 0x140003a93
test rsi, rsi
je 0x140003a93
mov rdx, qword [rdi + 0x40]
sub rdx, rbx
movzx eax, word [rbx]
movzx ecx, word [rbx + rdx]
sub eax, ecx
jne 0x140003817
add rbx, 2
test ecx, ecx
jne 0x140003804
test eax, eax
je 0x140003825
mov ebx, 0x80070005
jmp 0x140003a98
mov r8, rsi
lea rcx, [rsp + 0x70]
mov edx, 0x104
call fcn.140001bb4
test eax, eax
js 0x140003a93
movzx eax, word [rsp + 0x70]
lea rcx, [rsp + 0x70]
jmp 0x140003860
cmp ax, 0x2f
jne 0x140003859
mov eax, 0x5c
mov word [rcx], ax
add rcx, 2
movzx eax, word [rcx]
test ax, ax
jne 0x14000384b
lea rcx, [rsp + 0x70]
call fcn.140007f10
test eax, eax
js 0x140003a93
lea rcx, [rsp + 0x70]
call fcn.140007fbc
test eax, eax
js 0x140003a93
lea rdx, [rsp + 0x70]
mov rcx, rdi
call fcn.140001e60
mov ebx, eax
test eax, eax
js 0x140003a98
cmp dword [rdi + 0x8c], r13d
jne 0x1400038bb
lea rcx, [rsp + 0x70]
call fcn.1400087f0
test eax, eax
je 0x14000381b
cmp dword [rbp + 0x800], r13d
je 0x140003a2a
xor edx, edx
lea rcx, [rbp + 0x180]
mov r8d, 0x208
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x60], r13
mov esi, r13d
call fcn.140009d14
mov ebx, eax
test eax, eax
jne 0x140003a98
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x40], rax
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], r13d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x14000394d
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140003a98
mov r9d, esi
lea r8, str.ICDRegOCX_u
mov edx, 0x104
lea rcx, [rbp + 0x180]
call fcn.140001c3c
inc esi
mov ebx, eax
test eax, eax
js 0x140003a98
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rdx, [rbp + 0x180]
xor r9d, r9d
mov qword [rsp + 0x20], r13
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400039a5
test esi, esi
je 0x1400039a9
jmp 0x14000394d
test esi, esi
jne 0x1400039b3
mov ebx, 0x800703f5
jmp 0x140003a98
lea r9, [rsp + 0x70]
mov edx, reloc.urlmon.dll_Ordinal_519
lea r8, str.rundll32.exe_IEAdvpack.dll_RegisterOCX__s
lea rcx, [rbp + 0x390]
call fcn.140001c3c
mov ebx, eax
test eax, eax
js 0x140003a98
lea rcx, [rbp + 0x390]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r13w
jne 0x1400039e5
mov rcx, qword [rsp + 0x50]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rdx, [rbp + 0x180]
lea rax, [rbp + 0x390]
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x140003a8a
jmp 0x14000393a
xor edx, edx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov r14, rax
test rax, rax
jne 0x140003a4e
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14000393a
lea rdx, str.DllRegisterServer
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x140003a43
test r12d, r12d
je 0x140003a7b
call fcn.140009d60
mov r15d, eax
test eax, eax
je 0x140003a7b
mov ebx, eax
jmp 0x140003a98
mov rax, rbx
call qword [0x140011990]
mov ebx, eax
test eax, eax
js 0x140003a98
mov dword [rdi + 0x30], 8
jmp 0x140003a98
mov ebx, 0x80070057
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140003aa8
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test r14, r14
je 0x140003abd
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x140003abd
mov ebx, 0x8007000e
test r12d, r12d
je 0x140003aea
test r15d, r15d
jne 0x140003aea
xor edx, edx
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOverridePredefKey]
xor edx, edx
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOverridePredefKey]
call fcn.140009e9c
cmp dword [rdi], r13d
je 0x140003af9
lea rcx, [rdi + 8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
mov rcx, qword [rbp + 0x7a0]
xor rcx, rsp
call fcn.14000e250
lea r11, [rsp + 0x8b0]
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