Function at 0x14000e320
Capabilities:
Create thread
Enumerate process modules
Get common file path
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
lea rbp, [rsp - 0x1c10]
mov eax, 0x1d10
call fcn.1401539b0
sub rsp, rax
mov rax, qword [0x140214eb8]
xor rax, rsp
mov qword [rbp + 0x1c00], rax
mov r13d, 1
lea rdx, str.Log
lea rcx, [rbp - 0x78]
mov r8d, r13d
call fcn.140001060
xor r12d, r12d
cmp dword [rbp - 0x70], r13d
jne 0x14000e5b0
mov rcx, qword [rbp - 0x78]
lea rax, [rsp + 0x40]
lea rdx, [0x1401d8bd0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x44]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x40], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000e5b0
cmp dword [rsp + 0x44], r13d
jne 0x14000e5b0
lea rcx, [rbp + 0x12b2]
xor edx, edx
mov r8d, 0x206
mov word [rbp + 0x12b0], r12w
call fcn.140152380
lea rdx, [rbp + 0x12b0]
mov qword [rsp + 0x20], rdx
lea edx, [r13 + 0x22]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x14000e5b0
lea rcx, [rbp + 0x16d2]
xor edx, edx
mov r8d, 0x206
mov word [rbp + 0x16d0], r12w
call fcn.140152380
lea rcx, [rbp + 0x18e2]
xor edx, edx
mov r8d, 0x206
mov word [rbp + 0x18e0], r12w
call fcn.140152380
lea r9, str.OEMPower_ManagementLog
lea r8, [rbp + 0x12b0]
lea rdx, str._s_s_
lea rcx, [rbp + 0x16d0]
call fcn.140008830
mov qword [rsp + 0x38], r12
lea rax, [rbp + 0x1af0]
mov qword [rsp + 0x30], r12
lea r8, [rbp + 0x16d0]
or r9d, 0xffffffff
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], 0x104
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea rcx, [rbp + 0x1af0]
call qword [sym.imp.dbghelp.dll_MakeSureDirectoryPathExists]
lea rbx, str.ePowerSvc_Main
lea r9, [rbp + 0x16d0]
lea r8, str._s_s.txt
lea rcx, [rbp + 0x18e0]
mov edx, 0x104
mov qword [rsp + 0x20], rbx
call fcn.14014e4f0
lea ecx, [r13 + 0x47]
call fcn.140014a14
mov rdi, rax
test rax, rax
je 0x14000e50c
lea r8d, [r13 + 0xd]
lea rcx, [rbp - 0x10]
mov rdx, rbx
mov qword [rbp + 8], 7
mov qword [rbp], r12
mov word [rbp - 0x10], r12w
call fcn.140008390
lea rdx, [rbp - 0x10]
mov rcx, rdi
call fcn.140012af0
jmp 0x14000e50f
mov rax, r12
mov ecx, 0x98
mov qword [0x140222938], rax
call fcn.140014a14
mov rbx, rax
test rax, rax
je 0x14000e59e
lea rdx, str._d__t___s___e___m
lea rcx, [rbp - 0x10]
mov r8d, 0x14
mov qword [rbp + 8], 7
mov qword [rbp], r12
mov word [rbp - 0x10], r12w
call fcn.140008390
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rbp + 0x18e0]
lea rdx, [rbp + 0x18e0]
mov qword [rsp + 0x60], 7
repne scasw ax, word [rdi]
mov qword [rsp + 0x58], r12
mov word [rsp + 0x48], r12w
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x48]
call fcn.140008390
lea r8, [rbp - 0x10]
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.140010240
jmp 0x14000e5a1
mov rax, r12
mov rcx, qword [0x140222938]
mov rdx, rax
call fcn.140012be0
lea rax, str..pipeePower
lea rdx, [0x1401ccb68]
lea rcx, [rsp + 0x78]
xor r8d, r8d
mov qword [rbp + 0x40], r12
mov qword [rbp + 0x70], 0xffffffffffffffff
mov qword [rbp + 0x68], rax
mov qword [rbp + 0x80], r12
mov qword [rbp + 0x78], r12
mov qword [rbp + 0x48], r12
mov qword [rbp + 0x88], r12
mov dword [rbp + 0x298], r12d
call fcn.140001060
cmp dword [rbp - 0x80], r13d
jne 0x14000e645
mov rcx, qword [rsp + 0x78]
lea rax, [rsp + 0x44]
lea rdx, [0x1401d7b38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x44], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [rbp + 0x2ac]
test eax, eax
cmove ecx, dword [rsp + 0x40]
mov dword [rbp + 0x2ac], ecx
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x14000e655
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rbp + 0x40]
call fcn.14000a5b0
mov edi, eax
test eax, eax
je 0x14000e708
xor r9d, r9d
xor r8d, r8d
mov edx, r13d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbp + 0x80], rax
test rax, rax
jne 0x14000e68a
mov edi, r12d
jmp 0x14000e708
lea rcx, [rbp + 0x40]
call fcn.14000a970
mov edi, eax
test eax, eax
je 0x14000e708
xor r9d, r9d
xor r8d, r8d
mov edx, r13d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbp + 0x78], rax
test rax, rax
jne 0x14000e6b8
mov edi, r12d
jmp 0x14000e708
lea rcx, [rbp + 0x40]
call fcn.14000aab0
mov edi, eax
test eax, eax
je 0x14000e708
mov ecx, 0x28
call fcn.14014f354
mov qword [rbp + 0x48], rax
test rax, rax
jne 0x14000e6df
mov edi, r12d
jmp 0x14000e708
lea rcx, [rbp + 0x40]
call fcn.14000abe0
mov edi, eax
test eax, eax
je 0x14000e708
lea rcx, [rbp + 0x40]
call fcn.14000ad70
mov edi, eax
test eax, eax
je 0x14000e708
lea rcx, [rbp + 0x40]
call fcn.14000aef0
mov edi, eax
cmp dword [0x140222908], r12d
mov esi, r12d
jne 0x14000e753
mov ecx, 0x20
call fcn.140014a14
mov rcx, rax
test rax, rax
je 0x14000e73e
mov rax, qword [rbp + 0x40]
mov dword [rcx + 8], 0xffffffff
mov qword [rcx + 0x10], r12
mov qword [rcx], rax
mov qword [rcx + 0x18], r12
jmp 0x14000e741
mov rcx, r12
mov qword [rbp + 0x88], rcx
call fcn.14000a000
test eax, eax
cmovne esi, r13d
lea rcx, [0x14000dbd0]
xor r8d, r8d
xor edx, edx
call fcn.14014f21c
lea rcx, [rbp + 0x14c2]
xor edx, edx
mov r8d, 0x206
mov word [rbp + 0x14c0], r12w
call fcn.140152380
mov dword [rsp + 0x70], 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r8d, eax
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
lea r9, [rsp + 0x70]
lea r8, [rbp + 0x14c0]
mov rcx, rax
xor edx, edx
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameW]
test eax, eax
je 0x14000e7dc
lea rcx, [rbp + 0x14c0]
mov edx, 0x5c
call fcn.14014f40c
mov rcx, rbx
mov word [rax], r12w
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000e7fe
lea rdx, [rbp + 0x14c0]
mov r8d, 0x104
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rbp + 0x14c0]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test edi, edi
je 0x14000ed34
lea rcx, [rbp + 0x40]
call fcn.14000b350
test eax, eax
je 0x14000ed34
lea rdx, [rbp - 0x10]
lea rcx, [rbp + 0x40]
mov dword [rbp - 0x10], r12d
call fcn.14000b4b0
test eax, eax
je 0x14000ed34
mov eax, dword [rbp - 0x10]
mov ebx, r12d
cmp eax, 0x400
jne 0x14000e8fb
test esi, esi
jne 0x14000ed21
mov ecx, 0x20
mov esi, r13d
call fcn.140014a14
mov rdi, rax
test rax, rax
je 0x14000e876
mov rax, qword [rbp + 0x40]
mov dword [rdi + 8], 0xffffffff
mov qword [rdi + 0x10], r12
mov qword [rdi], rax
mov qword [rdi + 0x18], r12
jmp 0x14000e879
mov rdi, r12
lea rdx, [0x1401ccb68]
lea rcx, [rsp + 0x78]
mov r8d, r13d
mov qword [rbp + 0x88], rdi
call fcn.140001060
cmp dword [rax + 8], esi
jne 0x14000e8d6
lea rcx, [rsp + 0x44]
lea rdx, str.WMI_UID
xor r9d, r9d
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rcx, qword [rax]
mov dword [rsp + 0x44], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000e8d6
mov eax, dword [rsp + 0x40]
mov dword [rdi + 8], eax
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x14000e8e6
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rdi
call fcn.14000a080
test eax, eax
je 0x14000ed34
jmp 0x14000ed21
cmp eax, 0x807
jne 0x14000e953
lea rcx, [rbp + 0x12b2]
xor edx, edx
mov r8d, 0x206
mov word [rbp + 0x12b0], r12w
call fcn.140152380
lea r9, [rbp + 0x14c0]
lea r8, str._sePowerTray.exe
lea rcx, [rbp + 0x12b0]
mov edx, 0x104
call fcn.14014e4f0
lea rcx, [rbp + 0x12b0]
mov edx, 0x2000
call fcn.1400099b0
jmp 0x14000ed21
cmp eax, 0x808
jne 0x14000e9ab
lea rcx, [rbp + 0x12b2]
xor edx, edx
mov r8d, 0x206
mov word [rbp + 0x12b0], r12w
call fcn.140152380
lea r9, [rbp + 0x14c0]
lea r8, str._sePowerWMPRemoteCtrl.exe
lea rcx, [rbp + 0x12b0]
mov edx, 0x104
call fcn.14014e4f0
lea rcx, [rbp + 0x12b0]
mov edx, 0x3000
call fcn.1400099b0
jmp 0x14000ed21
cmp eax, 0x803
jne 0x14000e9c9
mov r8d, dword [rbp - 0xc]
mov edx, dword [rbp + 0x30]
lea rcx, [rbp + 0x40]
call fcn.14000b7a0
mov ebx, eax
jmp 0x14000ed21
cmp eax, 0x999
jne 0x14000e9e0
lea rcx, [rbp + 0x40]
call fcn.14000bb20
mov ebx, eax
jmp 0x14000ed21
cmp eax, 0x300
jne 0x14000e9fa
lea rcx, [rbp + 0x40]
mov edx, r13d
call fcn.14000c160
mov ebx, eax
jmp 0x14000ed21
cmp eax, 0x301
jne 0x14000ea13
lea rcx, [rbp + 0x40]
xor edx, edx
call fcn.14000c160
mov ebx, eax
jmp 0x14000ed21
cmp eax, 0x650
jne 0x14000ea52
movaps xmm0, xmmword [rbp - 0x10]
movaps xmm1, xmmword [rbp]
mov eax, dword [rbp + 0x30]
lea rdx, [rbp - 0x60]
lea rcx, [rbp + 0x40]
mov dword [rbp - 0x20], eax
movaps xmmword [rbp - 0x60], xmm0
movaps xmm0, xmmword [rbp + 0x10]
movaps xmmword [rbp - 0x50], xmm1
movaps xmm1, xmmword [rbp + 0x20]
movaps xmmword [rbp - 0x40], xmm0
movaps xmmword [rbp - 0x30], xmm1
call fcn.14000c380
jmp 0x14000ed21
cmp eax, 0x206
jne 0x14000ea69
lea rcx, [rbp + 0x40]
call fcn.14000c660
mov ebx, eax
jmp 0x14000ed21
cmp eax, 0x651
jne 0x14000eaab
lea r8, [rsp + 0x74]
lea rcx, [rbp + 0x2b0]
mov edx, 0x1000
call qword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
je 0x14000eaa3
lea rdx, [rsp + 0x74]
lea rcx, [rbp + 0x2b0]
call fcn.14000c880
mov ebx, eax
jmp 0x14000ed21
mov ebx, r13d
jmp 0x14000ed21
cmp eax, 0x652
jne 0x14000eac5
mov edx, dword [rbp + 0x1c]
lea rcx, [rbp + 0x40]
call fcn.14000c9b0
mov ebx, eax
jmp 0x14000ed21
cmp eax, 0x653
jne 0x14000eadc
lea rcx, [rbp + 0x40]
call fcn.14000cb90
mov ebx, eax
jmp 0x14000ed21
cmp eax, 0x654
jne 0x14000eaf6
mov edx, dword [rbp + 0xc]
lea rcx, [rbp + 0x40]
call fcn.14000cd70
mov ebx, eax
jmp 0x14000ed21
cmp eax, 0x804
jne 0x14000eb92
lea rcx, [rbp + 0x12b2]
xor edx, edx
mov r8d, 0x206
mov word [rbp + 0x12b0], r12w
call fcn.140152380
lea r9, str.WMIControl.exe__l_on
lea r8, [rbp + 0x14c0]
lea rdx, str._s_s
lea rcx, [rbp + 0x12b0]
call fcn.140008830
mov r8, qword [0x140222938]
lea rcx, [rbp + 0x12b0]
or edx, 0xffffffff
call fcn.14000ed80
cmp eax, r13d
je 0x14000ed21
cmp qword [0x140222938], rbx
je 0x14000ed21
lea rcx, [rbp + 0x2b2]
xor edx, edx
mov r8d, 0x7fe
mov word [rbp + 0x2b0], r12w
call fcn.140152380
lea rdx, str.Set_KB_light_on
jmp 0x14000ecc8
cmp eax, 0x805
jne 0x14000ec2e
lea rcx, [rbp + 0x12b2]
xor edx, edx
mov r8d, 0x206
mov word [rbp + 0x12b0], r12w
call fcn.140152380
lea r9, str.WMIControl.exe__l_off
lea r8, [rbp + 0x14c0]
lea rdx, str._s_s
lea rcx, [rbp + 0x12b0]
call fcn.140008830
mov r8, qword [0x140222938]
lea rcx, [rbp + 0x12b0]
or edx, 0xffffffff
call fcn.14000ed80
cmp eax, r13d
je 0x14000ed21
cmp qword [0x140222938], rbx
je 0x14000ed21
lea rcx, [rbp + 0x2b2]
xor edx, edx
mov r8d, 0x7fe
mov word [rbp + 0x2b0], r12w
call fcn.140152380
lea rdx, str.Set_KB_light_off
jmp 0x14000ecc8
cmp eax, 0x806
jne 0x14000ed21
lea rcx, [rbp + 0x12b2]
xor edx, edx
mov r8d, 0x206
mov word [rbp + 0x12b0], r12w
call fcn.140152380
mov edx, dword [rbp + 0x10]
mov dword [rsp + 0x20], edx
lea r9, str.WMIControl.exe__b
lea r8, [rbp + 0x14c0]
lea rdx, str._s_s__d
lea rcx, [rbp + 0x12b0]
call fcn.140008830
mov r8, qword [0x140222938]
lea rcx, [rbp + 0x12b0]
or edx, 0xffffffff
call fcn.14000ed80
cmp eax, r13d
je 0x14000ed21
cmp qword [0x140222938], rbx
je 0x14000ed21
lea rcx, [rbp + 0x2b2]
xor edx, edx
mov r8d, 0x7fe
mov word [rbp + 0x2b0], r12w
call fcn.140152380
lea rdx, str.Set_Critical_Battery_Level
lea rcx, [rbp + 0x2b0]
call fcn.140008860
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rbp + 0x2b0]
lea rdx, [rbp + 0x2b0]
mov qword [rsp + 0x60], 7
repne scasw ax, word [rdi]
mov qword [rsp + 0x58], r12
mov word [rsp + 0x48], r12w
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x48]
call fcn.140008390
mov rcx, qword [0x140222938]
lea rdx, [rsp + 0x48]
call fcn.140012c90
lea rcx, [rbp + 0x40]
mov edx, ebx
call fcn.14000b620
test eax, eax
jne 0x14000e806
lea rcx, [rbp + 0x40]
call fcn.14000a250
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x14000ed4c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0x1c00]
xor rcx, rsp
call fcn.14014e4d0
lea r11, [rsp + 0x1d10]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rbp
ret