Function at 0x140031c10
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x4e0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
mov rax, qword [0x1400d2478]
xor rax, rsp
mov qword [rsp + 0x4d0], rax
mov rbx, rcx
mov qword [rsp + 0x68], rcx
mov r13, qword [rsp + 0x530]
lea rsi, [rcx + 0x418]
mov qword [rsi + 0x20], 7
xor r15d, r15d
mov qword [rsi + 0x18], r15
mov word [rsi + 8], r15w
mov qword [rcx + 0x468], 7
mov qword [rcx + 0x460], r15
mov word [rcx + 0x450], r15w
mov byte [rcx + 4], 1
mov byte [rcx + 5], 1
mov dword [rcx], 1
mov byte [rcx + 6], 1
lea rbp, [rcx + 8]
mov word [rbp], r15w
mov word [rcx + 0x210], r15w
movzx eax, byte [rsp + 0x548]
mov byte [rcx + 0x440], al
mov word [r11 - 0x448], r15w
xor edx, edx
mov r8d, 0x206
lea rcx, [r11 - 0x446]
call fcn.1400719a0
mov r8d, 0x104
lea rdx, [rsp + 0xc0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x140031da6
mov qword [rsp + 0xb8], 7
mov qword [rsp + 0xb0], r15
mov word [rsp + 0xa0], r15w
lea edx, [r15 + 0x5c]
lea rcx, [rsp + 0xc0]
call fcn.1400654a8
test rax, rax
je 0x140031d62
lea edx, [r15 + 0x5c]
lea rcx, [rsp + 0xc0]
call fcn.1400654a8
lea rdx, [rax + 2]
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x98]
call fcn.140001870
lea r8, [rsp + 0xa0]
cmp qword [rsp + 0xb8], 8
cmovae r8, qword [rsp + 0xa0]
mov edx, 0x104
lea rcx, [rbx + 0x210]
call fcn.140065de0
nop
cmp qword [rsp + 0xb8], 8
jb 0x140031da6
mov rcx, qword [rsp + 0xa0]
call fcn.140065920
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SoftwarePanda_SoftwareLog
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400320ef
mov dword [rsp + 0x48], r15d
mov dword [rsp + 0x30], 4
mov dword [rsp + 0x34], 4
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
lea rdx, str.Active
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140031e28
cmp dword [rsp + 0x50], eax
setne al
mov byte [rbx + 4], al
jmp 0x140031e2c
mov byte [rbx + 4], 1
cmp byte [rbx + 4], 0
je 0x1400320e4
cmp r15w, word [rbx + 0x210]
je 0x1400320e4
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rbx + 0x210]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400320e4
mov dword [rsp + 0x30], 4
mov dword [rsp + 0x34], 4
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
lea rdx, str.Active
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140031ebf
cmp dword [rsp + 0x48], eax
setne al
mov byte [rbx + 5], al
jmp 0x140031ec3
mov byte [rbx + 5], 1
cmp byte [rbx + 5], 0
je 0x1400320d9
mov dword [rsp + 0x38], r15d
mov dword [rsp + 0x30], 4
mov dword [rsp + 0x34], 4
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
lea rdx, str.DebugString
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140031f1d
cmp dword [rsp + 0x38], eax
je 0x140031f1d
or dword [rbx], 4
mov dword [rsp + 0x30], 4
mov dword [rsp + 0x34], 4
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
lea rdx, str.MessageBox
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140031f68
cmp dword [rsp + 0x38], eax
je 0x140031f68
or dword [rbx], 2
mov dword [rsp + 0x30], 4
mov dword [rsp + 0x34], 4
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
lea rdx, str.MSILog
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140031fb3
cmp dword [rsp + 0x38], eax
je 0x140031fb3
or dword [rbx], 8
mov dword [rsp + 0x30], 4
mov dword [rsp + 0x34], 4
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
lea rdx, str.LogFile
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140031ffe
cmp dword [rsp + 0x38], eax
je 0x140031ffe
or dword [rbx], 1
test byte [rbx], 1
je 0x140032082
mov dword [rsp + 0x30], 1
mov word [rsp + 0xc0], r15w
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0xc2]
call fcn.1400719a0
mov dword [rsp + 0x34], 0x208
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
lea rdx, str.LogFilePath
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140032082
lea r8, [rsp + 0xc0]
mov edx, 0x104
mov rcx, rbp
call fcn.140065de0
mov byte [rbx + 0x440], 0
mov dword [rsp + 0x4c], r15d
mov dword [rsp + 0x30], 4
mov dword [rsp + 0x34], 4
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
lea rdx, str.Append
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400320d5
cmp dword [rsp + 0x4c], eax
setne al
mov byte [rbx + 6], al
jmp 0x1400320d9
mov byte [rbx + 6], 1
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor r8d, r8d
lea rdx, [0x1400ad318]
mov rcx, rsi
call fcn.140001870
xor r8d, r8d
lea rdx, [0x1400ad318]
lea rcx, [rbx + 0x448]
call fcn.140001870
mov byte [rbx + 0x470], 0
mov rcx, rsi
call fcn.14002a0e0
test al, al
je 0x14003223e
lea rdx, [0x1400ad338]
mov rcx, rsi
call fcn.140011dd0
mov r8d, FDIDestroy
lea rdx, str.Panda_SecurityPSLogs
mov rcx, rsi
call fcn.14000a130
cmp qword [rsi + 0x20], 8
jb 0x14003215f
mov rdx, qword [rsi + 8]
jmp 0x140032163
lea rdx, [rsi + 8]
mov rcx, rbx
call fcn.140031b00
cmp qword [rsi + 0x20], 8
jb 0x140032178
mov rdx, qword [rsi + 8]
jmp 0x14003217c
lea rdx, [rsi + 8]
mov qword [rsp + 0xb8], 7
mov qword [rsp + 0xb0], r15
mov word [rsp + 0xa0], r15w
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x98]
call fcn.140001870
lea rdx, [rsp + 0x98]
xor ecx, ecx
call fcn.14005ed80
cmp qword [rsi + 0x20], 8
jb 0x1400321d5
mov rcx, qword [rsi + 8]
jmp 0x1400321d9
lea rcx, [rsi + 8]
mov edx, 2
call fcn.140067f44
cmp eax, 0xffffffff
je 0x14003222c
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rsi
lea rcx, [rbx + 0x448]
call fcn.140001500
lea rdx, [0x1400ad338]
lea rcx, [rbx + 0x448]
call fcn.140011dd0
mov r8d, 0xa
lea rdx, str.Resume.log
lea rcx, [rbx + 0x448]
call fcn.14000a130
jmp 0x14003223e
xor r8d, r8d
lea rdx, [0x1400ad318]
mov rcx, rsi
call fcn.140001870
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbp
repne scasw ax, word [rdi]
not rcx
cmp rcx, 1
jne 0x1400322b5
test r13, r13
jne 0x1400322a5
cmp qword [rbx + 0x430], rax
je 0x140032281
cmp qword [rsi + 0x20], 8
jb 0x14003226e
mov r8, qword [rsi + 8]
jmp 0x140032272
lea r8, [rsi + 8]
mov edx, 0x104
mov rcx, rbp
call fcn.140065de0
jmp 0x1400322b5
mov rdx, rbp
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea r8, str.PSLogs
mov edx, 0x104
mov rcx, rbp
call fcn.140065928
jmp 0x1400322b5
mov r8, r13
mov edx, 0x104
mov rcx, rbp
call fcn.140065de0
mov word [rsp + 0xc0], r15w
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0xc2]
call fcn.1400719a0
cmp byte [rbx + 0x440], 0
jne 0x1400322e1
mov rdi, rbp
jmp 0x14003231a
lea rcx, [rsp + 0xc0]
mov rdx, rbp
mov r8d, 0x208
call fcn.140071590
mov edx, 0x5c
lea rcx, [rsp + 0xc0]
call fcn.1400654a8
test rax, rax
je 0x140032359
mov word [rax], r15w
lea rdi, [rsp + 0xc0]
test rdi, rdi
je 0x140032359
mov rdx, rdi
mov rcx, rbx
call fcn.140031b00
xor edx, edx
mov rcx, rdi
call fcn.140067f44
cmp eax, 0xffffffff
setne sil
mov edx, 2
mov rcx, rdi
call fcn.140067f44
cmp eax, 0xffffffff
setne al
test sil, sil
je 0x14003235e
test al, al
jne 0x140032361
jmp 0x14003235e
xor al, al
xor sil, sil
and dword [rbx], 0xfffffffe
test sil, sil
je 0x140032554
test al, al
je 0x14003254f
cmp byte [rbx + 0x440], 0
jne 0x1400323e8
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbp
repne scasw ax, word [rdi]
not rcx
cmp word [rbx + rcx*2 + 4], 0x5c
je 0x1400323a6
lea r8, [0x1400ad338]
mov edx, 0x104
mov rcx, rbp
call fcn.140065928
lea r8, [rbx + 0x210]
mov edx, 0x104
mov rcx, rbp
call fcn.140065928
mov edx, 0x2e
mov rcx, rbp
call fcn.1400654a8
test rax, rax
je 0x1400323d4
mov ecx, 0x5f
mov word [rax], cx
lea r8, str..log
mov edx, 0x104
mov rcx, rbp
call fcn.140065928
mov qword [rsp + 0xb8], 7
mov qword [rsp + 0xb0], r15
mov word [rsp + 0xa0], r15w
xor r8d, r8d
lea rdx, [0x1400ad318]
lea rcx, [rsp + 0x98]
call fcn.140001870
nop
mov word [rsp + 0xc0], r15w
xor edx, edx
mov r8d, 0x40e
lea rcx, [rsp + 0xc2]
call fcn.1400719a0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r9d, eax
mov qword [rsp + 0x20], rbp
lea r8, str._n_PS__PID:_04i__CLOG::Opening_LogFile:___s_
mov edx, 0x208
lea rcx, [rsp + 0xc0]
call fcn.140066ef4
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0xc0]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x98]
call fcn.140001870
xor edx, edx
lea rcx, [rsp + 0x70]
call fcn.140007910
cmp qword [rax + 0x20], 8
jb 0x1400324a8
mov r9, qword [rax + 8]
jmp 0x1400324ac
lea r9, [rax + 8]
lea r8, str.__tCalling_Module:___s__
mov edx, 0x208
lea rcx, [rsp + 0xc0]
call fcn.140066ef4
cmp qword [rsp + 0x90], 8
jb 0x1400324da
mov rcx, qword [rsp + 0x78]
call fcn.140065920
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0xc0]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x98]
call fcn.14000a130
lea rdx, [rsp + 0xa0]
cmp qword [rsp + 0xb8], 8
cmovae rdx, qword [rsp + 0xa0]
mov rcx, rbx
call fcn.140032aa0
or dword [rbx], 1
cmp qword [rsp + 0xb8], 8
jb 0x14003254a
mov rcx, qword [rsp + 0xa0]
call fcn.140065920
nop
mov rax, rbx
jmp 0x140032557
mov rax, rbx
jmp 0x140032557
mov rax, rbx
jmp 0x140032557
mov rax, rbx
mov rcx, qword [rsp + 0x4d0]
xor rcx, rsp
call fcn.140064b70
lea r11, [rsp + 0x4e0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret