Function at 0x140003a70
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 [0x140016018]
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 0x140003dea
add rcx, 8
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop dword [rax + rax]
cmp dword [rdi + 0x30], 6
jge 0x140003aed
mov ebx, 0x8007139f
jmp 0x140003dbe
test rbx, rbx
je 0x140003db9
test rsi, rsi
je 0x140003db9
mov rdx, qword [rdi + 0x40]
sub rdx, rbx
movzx eax, word [rbx]
movzx ecx, word [rbx + rdx]
sub eax, ecx
jne 0x140003b19
add rbx, 2
test ecx, ecx
jne 0x140003b06
test eax, eax
je 0x140003b27
mov ebx, 0x80070005
jmp 0x140003dbe
mov r8, rsi
lea rcx, [rsp + 0x70]
mov edx, 0x104
call fcn.140001be4
test eax, eax
js 0x140003db9
movzx eax, word [rsp + 0x70]
lea rcx, [rsp + 0x70]
jmp 0x140003b62
cmp ax, 0x2f
jne 0x140003b5b
mov eax, 0x5c
mov word [rcx], ax
add rcx, 2
movzx eax, word [rcx]
test ax, ax
jne 0x140003b4d
lea rcx, [rsp + 0x70]
call fcn.1400088f0
test eax, eax
js 0x140003db9
lea rcx, [rsp + 0x70]
call fcn.1400089a0
test eax, eax
js 0x140003db9
lea rdx, [rsp + 0x70]
mov rcx, rdi
call fcn.140001f28
mov ebx, eax
test eax, eax
js 0x140003dbe
cmp dword [rdi + 0x8c], r13d
jne 0x140003bbd
lea rcx, [rsp + 0x70]
call fcn.140009348
test eax, eax
je 0x140003b1d
cmp dword [rbp + 0x800], r13d
je 0x140003d3e
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.14000ab1c
mov ebx, eax
test eax, eax
jne 0x140003dbe
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]
nop dword [rax + rax]
test eax, eax
je 0x140003c55
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140003dbe
mov r9d, esi
lea r8, str.ICDRegOCX_u
mov edx, 0x104
lea rcx, [rbp + 0x180]
call fcn.140001c70
inc esi
mov ebx, eax
test eax, eax
js 0x140003dbe
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]
nop dword [rax + rax]
test eax, eax
jne 0x140003cb3
test esi, esi
je 0x140003cb7
jmp 0x140003c55
test esi, esi
jne 0x140003cc1
mov ebx, 0x800703f5
jmp 0x140003dbe
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.140001c70
mov ebx, eax
test eax, eax
js 0x140003dbe
lea rcx, [rbp + 0x390]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r13w
jne 0x140003cf3
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]
nop dword [rax + rax]
test eax, eax
je 0x140003db0
jmp 0x140003c42
xor edx, edx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
nop dword [rax + rax]
mov r14, rax
test rax, rax
jne 0x140003d6e
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
jmp 0x140003c42
lea rdx, str.DllRegisterServer
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x140003d5d
test r12d, r12d
je 0x140003da1
call fcn.14000ab6c
mov r15d, eax
test eax, eax
je 0x140003da1
mov ebx, eax
jmp 0x140003dbe
mov rax, rbx
call qword [0x140012988]
mov ebx, eax
test eax, eax
js 0x140003dbe
mov dword [rdi + 0x30], 8
jmp 0x140003dbe
mov ebx, 0x80070057
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140003dd4
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
test r14, r14
je 0x140003def
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop dword [rax + rax]
jmp 0x140003def
mov ebx, 0x8007000e
test r12d, r12d
je 0x140003e28
test r15d, r15d
jne 0x140003e28
xor edx, edx
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOverridePredefKey]
nop dword [rax + rax]
xor edx, edx
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOverridePredefKey]
nop dword [rax + rax]
call fcn.14000acf8
cmp dword [rdi], r13d
je 0x140003e3d
lea rcx, [rdi + 8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp + 0x7a0]
xor rcx, rsp
call fcn.14000f1e0
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