Function at 0x140003524
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 [0x140018018]
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 0x1400038bb
add rcx, 8
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop dword [rax + rax]
cmp dword [rdi + 0x30], 6
jge 0x1400035a1
mov ebx, 0x8007139f
jmp 0x1400038c0
test rbx, rbx
je 0x1400038b4
test rsi, rsi
je 0x1400038b4
mov rdx, qword [rdi + 0x40]
sub rdx, rbx
movzx eax, word [rbx]
movzx ecx, word [rbx + rdx]
sub eax, ecx
jne 0x1400035cd
add rbx, 2
test ecx, ecx
jne 0x1400035ba
test eax, eax
je 0x1400035db
mov ebx, 0x80070005
jmp 0x1400038c0
lea rax, [rsp + 0x70]
mov edx, 0x104
sub rsi, rax
lea rcx, [rsp + 0x70]
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x14000360f
movzx eax, word [rsi + rcx]
test ax, ax
je 0x14000360f
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x1400035ed
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r13w
je 0x1400038b4
movzx eax, word [rsp + 0x70]
lea rcx, [rsp + 0x70]
jmp 0x140003645
cmp ax, 0x2f
jne 0x14000363e
mov eax, 0x5c
mov word [rcx], ax
add rcx, 2
movzx eax, word [rcx]
test ax, ax
jne 0x140003630
lea rcx, [rsp + 0x70]
call fcn.140006e44
test eax, eax
js 0x1400038b4
lea rcx, [rsp + 0x70]
call fcn.14000a140
test eax, eax
js 0x1400038b4
lea rdx, [rsp + 0x70]
mov rcx, rdi
call fcn.140002d9c
mov ebx, eax
test eax, eax
js 0x1400038c0
cmp dword [rdi + 0x8c], r13d
jne 0x1400036a0
lea rcx, [rsp + 0x70]
call fcn.14000748c
test eax, eax
je 0x1400035d1
cmp dword [rbp + 0x800], r13d
je 0x14000382b
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.14000b970
mov ebx, eax
test eax, eax
jne 0x1400038c0
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 0x14000373b
jle 0x1400038c0
movzx ebx, ax
or ebx, 0x80070000
jmp 0x1400038c0
mov r9d, esi
lea r8, str.ICDRegOCX_u
mov edx, 0x104
lea rcx, [rbp + 0x180]
inc esi
call fcn.140004494
mov ebx, eax
test eax, eax
js 0x1400038c0
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 0x140003799
test esi, esi
je 0x14000379d
jmp 0x14000373b
test esi, esi
jne 0x1400037a7
mov ebx, 0x800703f5
jmp 0x1400038c0
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.140004494
mov ebx, eax
test eax, eax
js 0x1400038c0
lea rcx, [rbp + 0x390]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r13w
jne 0x1400037d9
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 0x1400038ab
jg 0x14000372d
jmp 0x14000388e
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 0x14000385f
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jmp 0x140003727
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 0x14000384a
test r12d, r12d
je 0x140003892
call fcn.14000b9c0
mov r15d, eax
test eax, eax
je 0x140003892
mov ebx, eax
jmp 0x1400038c0
movabs r10, 0xd43837ae10dbc970
mov rax, rbx
call qword [0x1400139c0]
mov ebx, eax
test eax, eax
js 0x1400038c0
mov dword [rdi + 0x30], 8
jmp 0x1400038c0
mov ebx, 0x80070057
jmp 0x1400038c0
mov ebx, 0x8007000e
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400038d6
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
test r14, r14
je 0x1400038ea
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop dword [rax + rax]
test r12d, r12d
je 0x140003923
test r15d, r15d
jne 0x140003923
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.14000baa4
cmp dword [rdi], r13d
je 0x140003938
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.140001580
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