Function at 0x1400034e4
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 [0x140017018]
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 0x1400038a5
add rcx, 8
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop dword [rax + rax]
cmp dword [rdi + 0x30], 6
jge 0x140003561
mov ebx, 0x8007139f
jmp 0x140003879
test rbx, rbx
je 0x140003874
test rsi, rsi
je 0x140003874
mov rdx, qword [rdi + 0x40]
sub rdx, rbx
movzx eax, word [rbx]
movzx ecx, word [rbx + rdx]
sub eax, ecx
jne 0x14000358d
add rbx, 2
test ecx, ecx
jne 0x14000357a
test eax, eax
je 0x14000359b
mov ebx, 0x80070005
jmp 0x140003879
lea rax, [rsp + 0x70]
mov edx, 0x104
sub rsi, rax
lea rcx, [rsp + 0x70]
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x1400035cf
movzx eax, word [rsi + rcx]
test ax, ax
je 0x1400035cf
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x1400035ad
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r13w
je 0x140003874
movzx eax, word [rsp + 0x70]
lea rcx, [rsp + 0x70]
jmp 0x140003605
cmp ax, 0x2f
jne 0x1400035fe
mov eax, 0x5c
mov word [rcx], ax
add rcx, 2
movzx eax, word [rcx]
test ax, ax
jne 0x1400035f0
lea rcx, [rsp + 0x70]
call fcn.140006e14
test eax, eax
js 0x140003874
lea rcx, [rsp + 0x70]
call fcn.140009f8c
test eax, eax
js 0x140003874
lea rdx, [rsp + 0x70]
mov rcx, rdi
call fcn.140002d5c
mov ebx, eax
test eax, eax
js 0x140003879
cmp dword [rdi + 0x8c], r13d
jne 0x140003660
lea rcx, [rsp + 0x70]
call fcn.14000744c
test eax, eax
je 0x140003591
cmp dword [rbp + 0x800], r13d
je 0x1400037eb
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.14000b79c
mov ebx, eax
test eax, eax
jne 0x140003879
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]
mov ebx, eax
test eax, eax
je 0x1400036fb
jle 0x140003879
movzx ebx, ax
or ebx, 0x80070000
jmp 0x140003879
mov r9d, esi
lea r8, str.ICDRegOCX_u
mov edx, 0x104
lea rcx, [rbp + 0x180]
inc esi
call fcn.140004454
mov ebx, eax
test eax, eax
js 0x140003879
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 0x140003759
test esi, esi
je 0x14000375d
jmp 0x1400036fb
test esi, esi
jne 0x140003767
mov ebx, 0x800703f5
jmp 0x140003879
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.140004454
mov ebx, eax
test eax, eax
js 0x140003879
lea rcx, [rbp + 0x390]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r13w
jne 0x140003799
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 0x14000386b
jg 0x1400036ed
jmp 0x14000384e
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 0x14000381f
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jmp 0x1400036e7
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 0x14000380a
test r12d, r12d
je 0x140003852
call fcn.14000b7ec
mov r15d, eax
test eax, eax
je 0x140003852
mov ebx, eax
jmp 0x140003879
movabs r10, 0xd43837ae10dbc970
mov rax, rbx
call qword [0x1400139b8]
mov ebx, eax
test eax, eax
js 0x140003879
mov dword [rdi + 0x30], 8
jmp 0x140003879
mov ebx, 0x80070057
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14000388f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
test r14, r14
je 0x1400038aa
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop dword [rax + rax]
jmp 0x1400038aa
mov ebx, 0x8007000e
test r12d, r12d
je 0x1400038e3
test r15d, r15d
jne 0x1400038e3
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.14000b8d0
cmp dword [rdi], r13d
je 0x1400038f8
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.140001560
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