Function at 0x140083060
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rdi
sub rsp, 0x478
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0xb2
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x1401a7008]
xor rax, rbp
mov qword [rbp + 0x438], rax
lea rcx, [0x1401b9255]
call fcn.14007a304
mov qword [rbp + 8], 0
xor eax, eax
mov word [rbp + 0x284], ax
mov byte [rbp + 0x2a4], 1
lea r9, [0x1401aab30]
lea r8, str.SYSTEMCurrentControlSetServicesEventLogApplicationWPTitSvc_64__s
mov edx, 0x100
lea rcx, [rbp + 0x70]
call fcn.140078009
lea rax, [rbp + 8]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rbp + 0x70]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1400830ff
xor al, al
jmp 0x1400832b8
mov dword [rbp + 0x24], 0x100
lea rax, [rbp + 0x24]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x44]
xor r8d, r8d
lea rdx, str.EventMessageFile
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14008313b
mov byte [rbp + 0x2a4], 0
movzx eax, byte [rbp + 0x2a4]
test eax, eax
je 0x140083170
mov r8d, 2
xor edx, edx
lea rcx, [rbp + 0x70]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov qword [0x1401aaa00], rax
cmp qword [0x1401aaa00], 0
jne 0x140083170
mov byte [rbp + 0x2a4], 0
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, byte [rbp + 0x2a4]
test eax, eax
jne 0x140083191
movzx eax, byte [rbp + 0x2a4]
jmp 0x1400832b8
lea r9, [0x1401aab30]
lea r8, str.GlobalWestern_adWISE_Pipe_Service_x64__s_Log_Files_Write_FM
mov edx, 0x100
lea rcx, [rbp + 0x70]
call fcn.140078009
lea r8, [rbp + 0x70]
xor edx, edx
mov ecx, 0xf001f
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov qword [0x1401aa7b8], rax
cmp qword [0x1401aa7b8], 0
jne 0x1400831d8
mov byte [rbp + 0x2a4], 0
jmp 0x140083211
mov qword [rsp + 0x20], 0x818
xor r9d, r9d
xor r8d, r8d
mov edx, 2
mov rcx, qword [0x1401aa7b8]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [0x1401aa7c0], rax
cmp qword [0x1401aa7c0], 0
jne 0x140083211
mov byte [rbp + 0x2a4], 0
movzx eax, byte [rbp + 0x2a4]
test eax, eax
je 0x140083261
lea r9, [0x1401aab30]
lea r8, str.GlobalWestern_adWISE_Pipe_Service_x64__s_Log_Files_Write_Go
mov edx, 0x100
lea rcx, [rbp + 0x70]
call fcn.140078009
lea r8, [rbp + 0x70]
xor edx, edx
mov ecx, 0x100002
call qword [sym.imp.KERNEL32.dll_OpenEventW]
mov qword [0x1401aa7b0], rax
cmp qword [0x1401aa7b0], 0
jne 0x140083261
mov byte [rbp + 0x2a4], 0
movzx eax, byte [rbp + 0x2a4]
test eax, eax
je 0x1400832b1
lea r9, [0x1401aab30]
lea r8, str.GlobalWestern_adWISE_Pipe_Service_x64__s_Log_Files_Write_MX
mov edx, 0x100
lea rcx, [rbp + 0x70]
call fcn.140078009
lea r8, [rbp + 0x70]
xor edx, edx
mov ecx, 0x100001
call qword [sym.imp.KERNEL32.dll_OpenMutexW]
mov qword [0x1401aa7a8], rax
cmp qword [0x1401aa7a8], 0
jne 0x1400832b1
mov byte [rbp + 0x2a4], 0
movzx eax, byte [rbp + 0x2a4]
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x140172130]
call fcn.140079a35
mov rax, rdi
mov rcx, qword [rbp + 0x438]
xor rcx, rbp
call fcn.140078919
lea rsp, [rbp + 0x448]
pop rdi
pop rbp
ret