joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000b620
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x8a0
mov rax, qword [0x140214eb8]
xor rax, rsp
mov qword [rsp + 0x890], rax
xor eax, eax
mov rbx, rcx
mov rcx, qword [rcx + 0x38]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x60], rcx
mov dword [rsp + 0x30], edx
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [rbx + 0x30]
lea rax, [rsp + 0x48]
lea r9, [rsp + 0x34]
lea rdx, [rsp + 0x30]
mov r8d, 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14000b6d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x14000b6d0
mov rax, qword [rbx + 0x40]
xor r8d, r8d
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x38], rax
mov rax, qword [rbx + 0x38]
lea ecx, [r8 + 2]
or r9d, 0xffffffff
mov qword [rsp + 0x40], rax
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 1
je 0x14000b6d0
xor eax, eax
jmp 0x14000b779
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
cmp qword [rbx], 0
je 0x14000b774
mov qword [rsp + 0x8c0], rdi
lea rcx, [rsp + 0x92]
xor edi, edi
xor edx, edx
mov r8d, 0x7fe
mov word [rsp + 0x90], di
call fcn.140152380
lea rdx, str.ePowerService::WriteNamedPipe___:_SUCCEEDED
lea rcx, [rsp + 0x90]
call fcn.140008860
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x78], rdi
mov word [rsp + 0x68], di
xor eax, eax
lea rdi, [rsp + 0x90]
repne scasw ax, word [rdi]
lea rdx, [rsp + 0x90]
mov qword [rsp + 0x80], 7
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x68]
call fcn.140008390
mov rcx, qword [rbx]
lea rdx, [rsp + 0x68]
call fcn.140012c90
mov rdi, qword [rsp + 0x8c0]
mov eax, 1
mov rcx, qword [rsp + 0x890]
xor rcx, rsp
call fcn.14014e4d0
add rsp, 0x8a0
pop rbx
ret
Function at 0x14000c160
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
lea rbp, [rax - 0x7a8]
sub rsp, 0x890
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x140214eb8]
xor rax, rsp
mov qword [rbp + 0x780], rax
mov esi, edx
mov rbx, rcx
xor r12d, r12d
test edx, edx
jne 0x14000c1c9
cmp qword [rcx], r12
je 0x14000c23c
mov word [rbp - 0x80], r12w
mov r8d, 0x7fe
lea rcx, [rbp - 0x7e]
call fcn.140152380
lea rdx, str.EPOWER_SERVICE_SET_ENHANCE_FEATURE_OFF
jmp 0x14000c1f0
cmp edx, 1
jne 0x14000c23c
cmp qword [rcx], r12
je 0x14000c23c
mov word [rbp - 0x80], r12w
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rbp - 0x7e]
call fcn.140152380
lea rdx, str.EPOWER_SERVICE_SET_ENHANCE_FEATURE_ON
lea rcx, [rbp - 0x80]
call fcn.140008860
or rcx, 0xffffffffffffffff
lea rdi, [rbp - 0x80]
xor eax, eax
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], r12
mov word [rsp + 0x30], r12w
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x30]
call fcn.140008390
lea rdx, [rsp + 0x30]
mov rcx, qword [rbx]
call fcn.140012c90
xor r8d, r8d
lea rdx, [0x1401ccb68]
lea rcx, [rsp + 0x60]
call fcn.140001060
nop
mov dword [rsp + 0x58], esi
mov edi, r12d
cmp dword [rsp + 0x68], 1
jne 0x14000c296
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.EnhanceFlag
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, 1
test eax, eax
cmove edi, ecx
test esi, esi
jne 0x14000c2cb
test edi, edi
jne 0x14000c344
cmp qword [rbx], 0
je 0x14000c344
mov word [rbp - 0x80], r12w
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rbp - 0x7e]
call fcn.140152380
lea rdx, str.EPOWER_SERVICE_SET_ENHANCE_FEATURE_OFF:FAIL
jmp 0x14000c2f7
cmp esi, 1
jne 0x14000c344
test edi, edi
jne 0x14000c344
cmp qword [rbx], 0
je 0x14000c344
mov word [rbp - 0x80], r12w
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rbp - 0x7e]
call fcn.140152380
lea rdx, str.EPOWER_SERVICE_SET_ENHANCE_FEATURE_ON:FAIL
lea rcx, [rbp - 0x80]
call fcn.140008860
or rcx, 0xffffffffffffffff
lea rdi, [rbp - 0x80]
xor eax, eax
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], r12
mov word [rsp + 0x30], r12w
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x30]
call fcn.140008390
lea rdx, [rsp + 0x30]
mov rcx, qword [rbx]
call fcn.140012c90
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14000c354
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rcx, qword [rbp + 0x780]
xor rcx, rsp
call fcn.14014e4d0
lea r11, [rsp + 0x890]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rbp
ret
Function at 0x14000c880
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x250
mov rax, qword [0x140214eb8]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov r13d, dword [rdx]
xor ebx, ebx
mov r12, rcx
shr r13d, 2
test r13d, r13d
je 0x14000c973
movups xmm0, xmmword [str.unknown]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x1f8
movaps xmmword [rsp + 0x30], xmm0
call fcn.140152380
mov r8d, dword [r12]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbp, rax
test rax, rax
je 0x14000c95b
lea r9, [rsp + 0x28]
lea rdx, [rsp + 0x20]
mov r8d, 8
mov rcx, rax
call qword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
je 0x14000c95b
mov rdx, qword [rsp + 0x20]
lea r8, [rsp + 0x30]
mov r9d, 0x208
mov rcx, rbp
call qword [sym.imp.PSAPI.DLL_GetModuleBaseNameW]
lea rsi, [rsp + 0x30]
lea rdi, str.3DMark06.exe
mov ecx, 0xd
repe cmpsw word [rsi], word [rdi]
je 0x14000c9a5
lea rsi, [rsp + 0x30]
lea rdi, str.PCMark05.exe
mov ecx, 0xd
repe cmpsw word [rsi], word [rdi]
je 0x14000c9a5
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
add r12, 4
cmp ebx, r13d
jb 0x14000c8c2
mov eax, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14014e4d0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
xor eax, eax
jmp 0x14000c978
Function at 0x14000c9b0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
lea rbp, [rsp - 0x780]
sub rsp, 0x880
mov rax, qword [0x140214eb8]
xor rax, rsp
mov qword [rbp + 0x770], rax
xor r12d, r12d
mov qword [rsp + 0x8a8], rbx
mov rsi, rcx
mov ebx, edx
cmp qword [rcx], r12
je 0x14000ca5c
lea rcx, [rsp + 0x72]
xor edx, edx
mov r8d, 0x7fe
mov word [rsp + 0x70], r12w
call fcn.140152380
lea rdx, str.EPOWER_SERVICE_SET_DEFAULT_POWER_PLAN_:_BEGIN
lea rcx, [rsp + 0x70]
call fcn.140008860
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x70]
lea rdx, [rsp + 0x70]
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 [rsi]
lea rdx, [rsp + 0x48]
call fcn.140012c90
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.POWRPROF.dll_PowerGetActiveScheme]
cmp ebx, 1
jne 0x14000ca90
lea rdx, [0x1401ccb68]
lea rcx, [rsp + 0x38]
xor r8d, r8d
call fcn.140001060
cmp dword [rax + 8], ebx
jne 0x14000cad9
lea rdx, str.DefaultPowerSchemeAC
jmp 0x14000cab5
test ebx, ebx
jne 0x14000cae9
lea rdx, [0x1401ccb68]
lea rcx, [rsp + 0x38]
xor r8d, r8d
call fcn.140001060
cmp dword [rax + 8], 1
jne 0x14000cad9
lea rdx, str.DefaultPowerSchemeDC
mov rcx, qword [rsp + 0x30]
mov dword [rsp + 0x28], 0x10
mov r9d, 3
mov qword [rsp + 0x20], rcx
mov rcx, qword [rax]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14000cae9
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x8a8]
cmp qword [rsi], r12
je 0x14000cb64
lea rcx, [rsp + 0x72]
xor edx, edx
mov r8d, 0x7fe
mov word [rsp + 0x70], r12w
call fcn.140152380
lea rdx, str.EPOWER_SERVICE_SET_DEFAULT_POWER_PLAN_:_END
lea rcx, [rsp + 0x70]
call fcn.140008860
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x70]
lea rdx, [rsp + 0x70]
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 [rsi]
lea rdx, [rsp + 0x48]
call fcn.140012c90
xor eax, eax
mov rcx, qword [rbp + 0x770]
xor rcx, rsp
call fcn.14014e4d0
mov rsi, qword [rsp + 0x8b0]
add rsp, 0x880
pop r12
pop rdi
pop rbp
ret
Function at 0x14000cb90
Capabilities:
Contain obfuscated stackstrings
Set registry value

Disassembly:
mov r11, rsp
push rbp
lea rbp, [r11 - 0x848]
sub rsp, 0x940
mov rax, qword [0x140214eb8]
xor rax, rsp
mov qword [rbp + 0x830], rax
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
xor esi, esi
mov rbx, rcx
cmp qword [rcx], rsi
je 0x14000cc38
lea rcx, [rbp + 0x32]
xor edx, edx
mov r8d, 0x7fe
mov qword [r11 + 0x20], rdi
mov word [rbp + 0x30], si
call fcn.140152380
lea rdx, str.EPOWER_SERVICE_SAVE_SYSTRAY_FLYOUT
lea rcx, [rbp + 0x30]
call fcn.140008860
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rbp + 0x30]
lea rdx, [rbp + 0x30]
mov qword [rsp + 0x58], 7
repne scasw ax, word [rdi]
mov qword [rsp + 0x50], rsi
mov word [rsp + 0x40], si
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x40]
call fcn.140008390
mov rcx, qword [rbx]
lea rdx, [rsp + 0x40]
call fcn.140012c90
mov rdi, qword [rsp + 0x968]
lea rcx, [rbp - 0x70]
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionAppletsSysTrayBattMeterFlyout
mov r8d, 0x96
mov qword [rsp + 0x30], rsi
call fcn.14014e720
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x20], rdx
lea rdx, [rbp - 0x70]
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rsi, qword [rsp + 0x960]
mov rbx, qword [rsp + 0x958]
test eax, eax
jne 0x14000cd4e
mov rcx, qword [rsp + 0x30]
mov word [rbp - 0x78], ax
lea rax, [rsp + 0x40]
lea rdx, str.8c5e7fda_e8bf_4a96_9a85_a6e23a8c635c
mov r9d, 2
xor r8d, r8d
mov dword [rsp + 0x28], 0x4a
mov dword [rsp + 0x40], 0x630038
mov dword [rsp + 0x44], 0x650035
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x48], 0x660037
mov dword [rsp + 0x4c], 0x610064
mov dword [rsp + 0x50], 0x65002d
mov dword [rsp + 0x54], 0x620038
mov dword [rsp + 0x58], 0x2d0066
mov dword [rsp + 0x5c], 0x610034
mov dword [rsp + 0x60], 0x360039
mov dword [rsp + 0x64], 0x39002d
mov dword [rsp + 0x68], 0x380061
mov dword [rsp + 0x6c], 0x2d0035
mov dword [rsp + 0x70], 0x360061
mov dword [rsp + 0x74], 0x320065
mov dword [rsp + 0x78], 0x610033
mov dword [rsp + 0x7c], 0x630038
mov dword [rbp - 0x80], 0x330036
mov dword [rbp - 0x7c], 0x630035
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 0x830]
xor rcx, rsp
call fcn.14014e4d0
add rsp, 0x940
pop rbp
ret
Function at 0x14000cd70
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
sub rsp, 0x8a8
mov rax, qword [0x140214eb8]
xor rax, rsp
mov qword [rsp + 0x890], rax
cmp qword [rcx], 0
mov qword [r11 + 0x18], rbx
mov dword [rsp + 0x30], edx
mov rbx, rcx
je 0x14000ce29
mov qword [r11 - 8], rdi
lea rcx, [r11 - 0x816]
xor edi, edi
xor edx, edx
mov r8d, 0x7fe
mov word [rsp + 0x90], di
call fcn.140152380
lea rdx, str.EPOWER_SERVICE_STORE_BRIGHTNESS
lea rcx, [rsp + 0x90]
call fcn.140008860
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x50], rdi
mov word [rsp + 0x40], di
xor eax, eax
lea rdi, [rsp + 0x90]
repne scasw ax, word [rdi]
lea rdx, [rsp + 0x90]
mov qword [rsp + 0x58], 7
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x40]
call fcn.140008390
mov rcx, qword [rbx]
lea rdx, [rsp + 0x40]
call fcn.140012c90
mov rdi, qword [rsp + 0x8a0]
lea rcx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GetSystemPowerStatus]
cmp byte [rsp + 0x78], 0
mov rbx, qword [rsp + 0x8c0]
jne 0x14000ce69
lea rdx, [rsp + 0x38]
xor ecx, ecx
call qword [sym.imp.POWRPROF.dll_PowerGetActiveScheme]
mov rcx, qword [rsp + 0x38]
mov edx, 0x15
lea r8d, [rdx - 0x14]
lea r9, [rsp + 0x30]
call qword [sym.imp.PowerSettingControl.dll_ReadPowerSettingValueIndex]
lea rdx, [0x1401ccb68]
lea rcx, [rsp + 0x68]
xor r8d, r8d
call fcn.140001060
mov ecx, dword [rsp + 0x30]
cmp dword [rax + 8], 1
mov dword [rsp + 0x38], ecx
jne 0x14000ceb6
lea rcx, [rsp + 0x38]
mov dword [rsp + 0x28], 4
lea rdx, str.BrightnessAC
mov qword [rsp + 0x20], rcx
mov rcx, qword [rax]
mov r9d, 4
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14000cec6
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rcx, qword [rsp + 0x890]
xor rcx, rsp
call fcn.14014e4d0
add rsp, 0x8a8
ret
Function at 0x14000d790
Capabilities:
Create pipe

Disassembly:
push rbx
sub rsp, 0xa90
mov rax, qword [0x140214eb8]
xor rax, rsp
mov qword [rsp + 0xa80], rax
mov rbx, rcx
call fcn.14000d140
test eax, eax
jne 0x14000d7be
xor eax, eax
jmp 0x14000d8d8
mov rcx, rbx
call fcn.14000d230
test eax, eax
je 0x14000d7b7
mov rcx, rbx
call fcn.14000d310
test eax, eax
je 0x14000d7b7
mov rcx, qword [rbx + 0x28]
lea rax, [rbx + 0x10]
mov qword [rsp + 0xaa8], rdi
xor edi, edi
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x3e8
lea r9d, [rdi + 1]
lea r8d, [rdi + 6]
mov edx, 0x40000003
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov qword [rbx + 0x38], rax
cmp rax, 0xffffffffffffffff
jne 0x14000d821
xor eax, eax
jmp 0x14000d8d0
lea rcx, [rsp + 0x72]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x70], di
call fcn.140152380
mov r8, qword [rbx + 0x28]
lea rdx, str.ePowerService::InitNamedPipe___for__s_:_SUCCEEDED
lea rcx, [rsp + 0x70]
call fcn.140008830
cmp qword [rbx], rdi
je 0x14000d8cb
lea rcx, [rsp + 0x282]
xor edx, edx
mov r8d, 0x7fe
mov word [rsp + 0x280], di
call fcn.140152380
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x280]
call fcn.140008860
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x50], rdi
mov word [rsp + 0x40], di
xor eax, eax
lea rdi, [rsp + 0x280]
repne scasw ax, word [rdi]
lea rdx, [rsp + 0x280]
mov qword [rsp + 0x58], 7
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x40]
call fcn.140008390
mov rcx, qword [rbx]
lea rdx, [rsp + 0x40]
call fcn.140012c90
mov eax, 1
mov rdi, qword [rsp + 0xaa8]
mov rcx, qword [rsp + 0xa80]
xor rcx, rsp
call fcn.14014e4d0
add rsp, 0xa90
pop rbx
ret
Function at 0x14000d900
Capabilities:
Connect pipe

Disassembly:
push rbx
sub rsp, 0x890
mov rax, qword [0x140214eb8]
xor rax, rsp
mov qword [rsp + 0x880], rax
xor eax, eax
mov rbx, rcx
mov rcx, qword [rcx + 0x40]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [rbx + 0x38]
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x14000d99d
mov rax, qword [rbx + 0x48]
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x40], rax
mov rax, qword [rbx + 0x40]
lea ecx, [r8 + 2]
or r9d, 0xffffffff
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 1
je 0x14000d99d
mov rcx, qword [rbx + 0x38]
call qword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
xor eax, eax
jmp 0x14000da39
cmp qword [rbx], 0
je 0x14000da34
mov qword [rsp + 0x8a8], rdi
lea rcx, [rsp + 0x82]
xor edi, edi
xor edx, edx
mov r8d, 0x7fe
mov word [rsp + 0x80], di
call fcn.140152380
lea rdx, str.ePowerService::ConnectNamedPipe___:_SUCCEEDED
lea rcx, [rsp + 0x80]
call fcn.140008860
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x60], rdi
mov word [rsp + 0x50], di
xor eax, eax
lea rdi, [rsp + 0x80]
repne scasw ax, word [rdi]
lea rdx, [rsp + 0x80]
mov qword [rsp + 0x68], 7
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x50]
call fcn.140008390
mov rcx, qword [rbx]
lea rdx, [rsp + 0x50]
call fcn.140012c90
mov rdi, qword [rsp + 0x8a8]
mov eax, 1
mov rcx, qword [rsp + 0x880]
xor rcx, rsp
call fcn.14014e4d0
add rsp, 0x890
pop rbx
ret
Function at 0x14000da60
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x8a0
mov rax, qword [0x140214eb8]
xor rax, rsp
mov qword [rsp + 0x890], rax
xor eax, eax
mov rbx, rcx
mov rcx, qword [rcx + 0x40]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x50], rcx
mov rdi, rdx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [rbx + 0x38]
lea rax, [rsp + 0x38]
lea r9, [rsp + 0x30]
mov r8d, 8
mov rdx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14000db1b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x14000db1b
mov rax, qword [rbx + 0x48]
xor r8d, r8d
lea rdx, [rsp + 0x58]
mov qword [rsp + 0x58], rax
mov rax, qword [rbx + 0x40]
lea ecx, [r8 + 2]
or r9d, 0xffffffff
mov qword [rsp + 0x60], rax
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 1
je 0x14000db1b
mov rcx, qword [rbx + 0x38]
call qword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
xor eax, eax
jmp 0x14000dbaa
cmp qword [rbx], 0
je 0x14000dba5
lea rcx, [rsp + 0x92]
xor edi, edi
xor edx, edx
mov r8d, 0x7fe
mov word [rsp + 0x90], di
call fcn.140152380
lea rdx, str.ePowerService::ReadNamedPipe___:_SUCCEEDED
lea rcx, [rsp + 0x90]
call fcn.140008860
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x78], rdi
mov word [rsp + 0x68], di
xor eax, eax
lea rdi, [rsp + 0x90]
repne scasw ax, word [rdi]
lea rdx, [rsp + 0x90]
mov qword [rsp + 0x80], 7
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x68]
call fcn.140008390
mov rcx, qword [rbx]
lea rdx, [rsp + 0x68]
call fcn.140012c90
mov eax, 1
mov rcx, qword [rsp + 0x890]
xor rcx, rsp
call fcn.14014e4d0
mov rbx, qword [rsp + 0x8c0]
add rsp, 0x8a0
pop rdi
ret
Function at 0x140013f00
Capabilities:
Accept command line arguments

Disassembly:
push rbx
sub rsp, 0x40
lea rax, [0x1401d8bd0]
mov rbx, rdx
mov qword [rsp + 0x20], rax
lea rax, [0x140014080]
mov qword [rsp + 0x28], rax
xor eax, eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
cmp ecx, 1
jle 0x14001400a
mov rdx, qword [rdx + 8]
movzx eax, byte [rdx]
cmp al, 0x2d
je 0x140013f49
cmp al, 0x2f
jne 0x14001400a
lea rcx, str.install
inc rdx
call fcn.1401515b8
test eax, eax
jne 0x140013f66
call fcn.140014470
jmp 0x140014002
mov rdx, qword [rbx + 8]
lea rcx, str.remove
inc rdx
call fcn.1401515b8
test eax, eax
jne 0x140013f84
call fcn.1400146e0
jmp 0x140014002
mov rdx, qword [rbx + 8]
lea rcx, str.debug
inc rdx
call fcn.1401515b8
test eax, eax
jne 0x14001400a
mov dword [0x140222940], 1
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rbx, rax
test rax, rax
jne 0x140013fcf
lea rcx, str.CmdDebugService_CommandLineToArgvW_returned_NULL_n
call fcn.140151600
jmp 0x140014002
lea rdx, str.ePower_Service
lea rcx, str.Debugging__s._n
call fcn.140151600
lea rcx, [0x140014890]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
call fcn.14000e320
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
xor ecx, ecx
call fcn.14015140c
int3
lea rdx, [0x1401da520]
lea rcx, str._s__install__________to_install_the_service_n
call fcn.1401516ac
lea rdx, [0x1401da520]
lea rcx, str._s__remove___________to_remove_the_service_n
call fcn.1401516ac
lea rdx, [0x1401da520]
lea rcx, str._s__debug__params____to_run_as_a_console_app_for_debugging_n
call fcn.1401516ac
lea rcx, str._nStartServiceCtrlDispatcher_being_called._n
call fcn.1401516ac
lea rcx, str.This_may_take_several_seconds.__Please_wait._n
call fcn.1401516ac
lea rcx, [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x140014076
lea rcx, str.StartServiceCtrlDispatcher_failed.
call fcn.140014380
xor eax, eax
add rsp, 0x40
pop rbx
ret
Function at 0x140014380
Capabilities:
Access the windows event log

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x140214eb8]
xor rax, rsp
mov qword [rsp + 0x140], rax
cmp dword [0x140222940], 0
mov rbx, rcx
jne 0x140014456
mov qword [rsp + 0x168], rdi
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [0x1401d8bd0]
xor ecx, ecx
mov dword [0x14022290c], eax
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov edx, dword [0x14022290c]
lea r9, [0x1401d8bd0]
mov dword [rsp + 0x20], edx
lea r8, str._s_error:__d
lea rcx, [rsp + 0x60]
mov edx, 0x69
mov rdi, rax
call fcn.14014e4f0
lea r11, [rsp + 0x60]
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], r11
test rdi, rdi
je 0x14001444e
xor ecx, ecx
mov r9d, 2
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], ecx
mov word [rsp + 0x28], r9w
lea edx, [r9 - 1]
mov qword [rsp + 0x20], rcx
mov rcx, rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rdi, qword [rsp + 0x168]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14014e4d0
add rsp, 0x150
pop rbx
ret
Function at 0x140014470
Capabilities:
Create service
Modify service

Disassembly:
sub rsp, 0x4d8
mov rax, qword [0x140214eb8]
xor rax, rsp
mov qword [rsp + 0x4c0], rax
lea rdx, [rsp + 0xc0]
mov r8d, 0x200
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x1400144d6
call fcn.140014900
lea rdx, str.ePower_Service
lea rcx, str.Unable_to_install__s____s_n
mov r8, rax
call fcn.140151600
mov rcx, qword [rsp + 0x4c0]
xor rcx, rsp
call fcn.14014e4d0
add rsp, 0x4d8
ret
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x4e0], rbx
lea r8d, [rdx + 3]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
je 0x1400146a1
mov qword [rsp + 0x4e8], rsi
xor esi, esi
lea rax, [0x1401ccb68]
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
lea r8, str.ePower_Service
lea rdx, [0x1401d8bd0]
mov r9d, 0xf01ff
mov rcx, rbx
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x4d0], rdi
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rdi, rax
test rax, rax
je 0x140014672
xor eax, eax
lea r8, [rsp + 0x80]
lea edx, [rsi + 1]
mov qword [rsp + 0x78], rax
lea rax, str.ePower_Service2
mov rcx, rdi
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x70], rsi
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
je 0x1400145be
lea rdx, str.ePower_Service
lea rcx, str._s_installed._n
call fcn.140151600
lea rax, str.ePowerSvcStartUp
lea r8, [rsp + 0xa8]
mov edx, 8
mov qword [rsp + 0x78], rax
lea rax, [0x1401ccbb0]
mov rcx, rdi
mov qword [rsp + 0x90], rax
lea rax, [rsp + 0x70]
mov dword [rsp + 0x70], 2
mov qword [rsp + 0xa0], rax
lea rax, [rsp + 0x88]
mov dword [rsp + 0x74], 0x22
mov dword [rsp + 0x88], 0x14
mov dword [rsp + 0x8c], 1
mov dword [rsp + 0x98], 1
mov qword [rsp + 0xb0], rax
mov dword [rsp + 0xa8], 1
mov qword [rsp + 0xb8], rsi
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
je 0x140014667
lea rdx, str.ePower_Service
lea rcx, str._s_installed._n
call fcn.140151600
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140014686
call fcn.140014900
lea rcx, str.CreateService_failed____s_n
mov rdx, rax
call fcn.140151600
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x4d0]
mov rsi, qword [rsp + 0x4e8]
jmp 0x1400146b5
call fcn.140014900
lea rcx, str.OpenSCManager_failed____s_n
mov rdx, rax
call fcn.140151600
mov rbx, qword [rsp + 0x4e0]
mov rcx, qword [rsp + 0x4c0]
xor rcx, rsp
call fcn.14014e4d0
add rsp, 0x4d8
ret