Function at 0x140006784
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 [0x140011008]
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 qword [rsp + 0x50], r13
mov r14d, r13d
cmp dword [rcx], r13d
je 0x140006ad1
add rcx, 8
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [rdi + 0x30], 6
jge 0x1400067fb
mov ebx, 0x8007139f
jmp 0x140006ab1
test rbx, rbx
je 0x140006aac
test rsi, rsi
je 0x140006aac
mov rdx, qword [rdi + 0x40]
sub rdx, rbx
movzx eax, word [rbx]
movzx ecx, word [rbx + rdx]
sub eax, ecx
jne 0x140006827
add rbx, 2
test ecx, ecx
jne 0x140006814
test eax, eax
je 0x140006835
mov ebx, 0x80070005
jmp 0x140006ab1
lea rcx, [rsp + 0x70]
mov r8, rsi
mov edx, 0x104
call fcn.140004ba4
test eax, eax
js 0x140006aac
lea rax, [rsp + 0x70]
cmp word [rsp + 0x70], r13w
je 0x140006874
cmp word [rax], 0x2f
jne 0x14000686a
mov ecx, 0x5c
mov word [rax], cx
add rax, 2
cmp word [rax], r13w
jne 0x14000685c
lea rcx, [rsp + 0x70]
call fcn.14000ad9c
test eax, eax
js 0x140006aac
lea rcx, [rsp + 0x70]
call fcn.14000ae48
test eax, eax
js 0x140006aac
lea rdx, [rsp + 0x70]
mov rcx, rdi
call fcn.140004ec0
mov ebx, eax
test eax, eax
js 0x140006ab1
cmp dword [rdi + 0x8c], r13d
jne 0x1400068ca
lea rcx, [rsp + 0x70]
call fcn.14000b684
test eax, eax
je 0x14000682b
cmp dword [rbp + 0x800], r13d
je 0x140006a41
lea rcx, [rbp + 0x182]
xor edx, edx
mov r8d, Ordinal_519
mov word [rbp + 0x180], r13w
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x60]
mov esi, r13d
mov qword [rsp + 0x60], r13
call fcn.14000d238
mov ebx, eax
test eax, eax
jne 0x140006ab1
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x58]
lea rdx, [0x1400035f0]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
xor r8d, r8d
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], r13d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x140006964
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140006ab1
lea r8, [0x140003578]
lea rcx, [rbp + 0x180]
mov r9d, esi
mov edx, 0x104
call fcn.140004c20
inc esi
mov ebx, eax
test eax, eax
js 0x140006ab1
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x58]
lea rdx, [rbp + 0x180]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r13
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400069bc
test esi, esi
je 0x1400069c0
jmp 0x140006964
test esi, esi
jne 0x1400069ca
mov ebx, 0x800703f5
jmp 0x140006ab1
lea r9, [rsp + 0x70]
lea r8, [0x140003590]
lea rcx, [rbp + 0x390]
mov edx, reloc.urlmon.dll_Ordinal_519
call fcn.140004c20
mov ebx, eax
test eax, eax
js 0x140006ab1
lea rcx, [rbp + 0x390]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r13w
jne 0x1400069fc
mov rcx, qword [rsp + 0x50]
lea eax, [rax*2 + 2]
lea rdx, [rbp + 0x180]
mov dword [rsp + 0x28], eax
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 0x140006aa3
jmp 0x140006951
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 0x140006a65
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140006951
lea rdx, [0x140003658]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x140006a5a
test r12d, r12d
je 0x140006a92
call fcn.14000d284
mov r15d, eax
test eax, eax
je 0x140006a92
mov ebx, eax
jmp 0x140006ab1
mov rcx, rbx
call qword [0x1400136a0]
call rbx
mov ebx, eax
test eax, eax
js 0x140006ab1
mov dword [rdi + 0x30], 8
jmp 0x140006ab1
mov ebx, 0x80070057
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140006ac1
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test r14, r14
je 0x140006ad6
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x140006ad6
mov ebx, 0x8007000e
test r12d, r12d
je 0x140006b03
test r15d, r15d
jne 0x140006b03
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.14000d3c0
cmp dword [rdi], r13d
je 0x140006b12
lea rcx, [rdi + 8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
mov rcx, qword [rbp + 0x7a0]
xor rcx, rsp
call fcn.14000faa0
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