joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001460
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
lea rcx, [0x140023cf0]
mov rbx, r8
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call fcn.1400012c0
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov byte [0x140023ce8], al
mov sil, 1
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rbx, rax
test rax, rax
je 0x1400015e1
xor edi, edi
cmp dword [rsp + 0x20], edi
jle 0x1400015e1
nop dword [rax]
nop word [rax + rax]
mov rcx, qword [rbx]
lea rdx, str._user
call fcn.140004bd4
test eax, eax
jne 0x1400014d8
xor sil, sil
jmp 0x140001502
mov rcx, qword [rbx]
lea rdx, str._install
call fcn.140004bd4
test eax, eax
je 0x1400015aa
mov rcx, qword [rbx]
lea rdx, str._uninstall
call fcn.140004bd4
test eax, eax
je 0x14000156f
inc edi
add rbx, 8
cmp edi, dword [rsp + 0x20]
jl 0x1400014c0
test sil, sil
jne 0x1400015e1
call fcn.140001360
test al, al
jne 0x14000153e
lea rcx, str.User_does_not_have_admin_rights_r_n
call fcn.1400011a0
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
call fcn.140002940
test al, al
je 0x140001616
call fcn.140002a70
mov rcx, qword [0x140023d20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
call fcn.1400042e0
test al, al
je 0x140001616
lea r8, [0x14001d180]
lea rdx, str.Service_successfully_uninstalled.
mov r9d, 0x40
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
call fcn.1400040e0
test al, al
je 0x140001616
lea r8, [0x14001d180]
lea rdx, str.Service_successfully_installed.
mov r9d, 0x40
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
lea rax, str.HitmanProScheduler
lea rcx, [rsp + 0x28]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x28], rax
lea rax, [0x140003e50]
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x30], rax
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
xor eax, eax
add rsp, 0x50
pop rdi
ret
Function at 0x140001ac0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x100
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x140021170]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov rdi, rcx
mov dword [rsp + 0x58], 0
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.SOFTWAREHitmanPro
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea rsi, vtable.DateTime.0
test eax, eax
jne 0x140001bb2
mov dword [rsp + 0x30], 0x80
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.LastScan
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x140001bb2
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x50], 1
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x70]
call fcn.140001950
test al, al
je 0x140001bb2
mov qword [rdi], rsi
mov rcx, qword [rsp + 0x48]
mov qword [rdi + 8], rcx
mov ecx, dword [rsp + 0x50]
mov dword [rdi + 0x10], ecx
jmp 0x140001bca
mov qword [rdi], rsi
movabs rax, 0x24c85a5ed1c018f0
mov qword [rdi + 8], rax
mov dword [rdi + 0x10], 0
mov rax, rdi
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.140004730
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x140002050
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x460
mov rax, qword [0x140021170]
xor rax, rsp
mov qword [rsp + 0x450], rax
lea rax, [rsp + 0x40]
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
xor ebx, ebx
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov word [0x140023d50], bx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000214b
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
lea r9d, [rbx + 1]
lea rdx, str.HitmanPro38
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140002140
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea rdx, str.UninstallString
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x30], 0x400
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140002135
cmp word [rsp + 0x50], 0x22
jne 0x140002135
lea edx, [rbx + 0x22]
lea rcx, [rsp + 0x52]
call fcn.140005158
test rax, rax
je 0x14000211f
mov word [rax], bx
lea r8, [rsp + 0x52]
lea rcx, [0x140023d50]
mov edx, 0x200
call fcn.1400051e4
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [0x140023d50], bx
jne 0x140002158
xor eax, eax
jmp 0x14000215f
lea rax, [0x140023d50]
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140004730
add rsp, 0x460
pop rbx
ret
Function at 0x1400034b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x140021170]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rax, [rsp + 0x38]
mov edi, 1
lea rdx, str.SOFTWAREHitmanPro
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov r9d, edi
mov qword [rsp + 0x20], rax
xor bl, bl
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000355a
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea rdx, str.SchedulerWhen
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x30], 0x200
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000354f
lea rdx, str.startup
lea rcx, [rsp + 0x40]
call fcn.140004bd4
movzx ebx, bl
test eax, eax
cmove ebx, edi
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140004730
mov rbx, qword [rsp + 0x260]
add rsp, 0x250
pop rdi
ret
Function at 0x140003580
Capabilities:
Acquire debug privileges

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x140021170]
xor rax, rsp
mov qword [rbp - 8], rax
xor ebx, ebx
mov dword [rbp - 0x28], ecx
mov qword [rbp - 0x38], rbx
mov qword [rbp - 0x30], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp - 0x30]
mov edx, 0x201eb
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x140003608
xor ecx, ecx
call fcn.140004a60
lea rcx, [rbp - 0x40]
mov qword [rbp - 0x40], rax
call fcn.140004ac0
lea rcx, str._s_r_n
mov rdx, rax
call fcn.1400011a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [0x14001d978]
lea rcx, str._s___failed_with_error__d_r_n
mov r8d, eax
call fcn.1400011a0
jmp 0x140003775
mov rcx, qword [rbp - 0x30]
lea rax, [rbp - 0x38]
mov r9d, 1
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov edx, 0x2000000
mov dword [rsp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x140003679
xor ecx, ecx
call fcn.140004a60
lea rcx, [rbp - 0x40]
mov qword [rbp - 0x40], rax
call fcn.140004ac0
lea rcx, str._s_r_n
mov rdx, rax
call fcn.1400011a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.DuplicateHandleEx
lea rcx, str._s___failed_with_error__d_r_n
mov r8d, eax
call fcn.1400011a0
jmp 0x140003775
mov rcx, qword [rbp - 0x38]
mov r9d, 4
lea r8, [rbp - 0x28]
lea edx, [r9 + 8]
call qword [sym.imp.ADVAPI32.dll_SetTokenInformation]
xor ecx, ecx
test eax, eax
jne 0x1400036d9
call fcn.140004a60
lea rcx, [rbp - 0x40]
mov qword [rbp - 0x40], rax
call fcn.140004ac0
lea rcx, str._s_r_n
mov rdx, rax
call fcn.1400011a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [0x14001d9a8]
lea rcx, str._s___failed_with_error__d_r_n
mov r8d, eax
call fcn.1400011a0
jmp 0x140003775
lea r8, [rbp - 0x20]
lea rdx, str.SeDebugPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x14000372f
xor ecx, ecx
call fcn.140004a60
lea rcx, [rbp - 0x40]
mov qword [rbp - 0x40], rax
call fcn.140004ac0
lea rcx, str._s_r_n
mov rdx, rax
call fcn.1400011a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.LookupPrivilegeValue
lea rcx, str._s___failed_with_error__d_r_n
mov r8d, eax
call fcn.1400011a0
jmp 0x140003775
mov rax, qword [rbp - 0x20]
mov rcx, qword [rbp - 0x38]
lea r8, [rbp - 0x18]
mov r9d, 0x10
xor edx, edx
mov qword [rsp + 0x28], rbx
mov qword [rbp - 0x14], rax
mov dword [rbp - 0x18], 1
mov dword [rbp - 0xc], 2
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x140003797
lea rcx, [0x14001da00]
call fcn.140001270
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x140003784
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x140003793
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1400037a5
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbp - 0x38]
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140004730
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rbp
ret
Function at 0x140003a20
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xb10
mov rax, qword [0x140021170]
xor rax, rsp
mov qword [rsp + 0xb00], rax
mov edi, ecx
xor ecx, ecx
xor bl, bl
call fcn.140004a60
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x60], rax
call fcn.140004ac0
lea rcx, str._s_r_n
mov rdx, rax
call fcn.1400011a0
mov ecx, edi
call fcn.140002fc0
test al, al
je 0x140003a86
lea rcx, str.Scheduler_already_running_in_session__u_r_n
mov edx, edi
call fcn.1400011a0
jmp 0x140003c3b
mov ecx, edi
call fcn.1400037c0
mov rdi, rax
test rax, rax
je 0x140003c3b
xor edx, edx
lea rcx, [rsp + 0x80]
lea r8d, [rdx + 0x68]
call fcn.1400062d0
xor eax, eax
lea rdx, [rsp + 0xf0]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
lea rax, str.winsta0Default
mov r8d, 0x104
xor ecx, ecx
mov qword [rsp + 0x90], rax
mov dword [rsp + 0x80], 0x68
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x140003b37
xor ecx, ecx
call fcn.140004a60
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x60], rax
call fcn.140004ac0
lea rcx, str._s_r_n
mov rdx, rax
call fcn.1400011a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.GetModuleFileName
lea rcx, str._s___failed_with_error__d_r_n
mov r8d, eax
call fcn.1400011a0
jmp 0x140003c32
lea r9, [rsp + 0xf0]
lea r8, str.__s___user
lea rcx, [rsp + 0x300]
mov edx, 0x400
call fcn.140005250
lea rdx, [rsp + 0x300]
lea rcx, str.CreateProcessAsUser:__ws_r_n
call fcn.1400011a0
lea rax, [rsp + 0x68]
lea r8, [rsp + 0x300]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x80]
xor r9d, r9d
mov qword [rsp + 0x48], rax
xor eax, eax
xor edx, edx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x30
mov rcx, rdi
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x140003c01
xor ecx, ecx
call fcn.140004a60
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x60], rax
call fcn.140004ac0
lea rcx, str._s_r_n
mov rdx, rax
call fcn.1400011a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.CreateProcessAsUser
lea rcx, str._s___failed_with_error__d_r_n
mov r8d, eax
call fcn.1400011a0
jmp 0x140003c32
mov r8d, dword [rsp + 0x78]
lea rdx, [rsp + 0xf0]
lea rcx, str._ws_started_with_PID__u_r_n
call fcn.1400011a0
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, bl
mov rcx, qword [rsp + 0xb00]
xor rcx, rsp
call fcn.140004730
mov rbx, qword [rsp + 0xb28]
add rsp, 0xb10
pop rdi
ret
Function at 0x1400040e0
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push rbx
sub rsp, 0x4b0
mov rax, qword [0x140021170]
xor rax, rsp
mov qword [rsp + 0x4a0], rax
lea rdx, [rsp + 0x80]
mov r8d, 0x104
xor ecx, ecx
xor bl, bl
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1400042cd
lea r9, [rsp + 0x80]
lea r8, str.__s_
lea rcx, [rsp + 0x290]
mov edx, 0x104
mov qword [rsp + 0x4c8], rdi
call fcn.140005250
lea rdx, str.ServicesActive
mov r8d, 0xf003f
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
jne 0x1400041c6
xor ecx, ecx
call fcn.140004a60
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x70], rax
call fcn.140004ac0
lea rcx, str._s_r_n
mov rdx, rax
call fcn.1400011a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.OpenSCManager
lea rcx, str._s___failed_with_error__d_r_n
mov r8d, eax
call fcn.1400011a0
movzx eax, bl
mov rdi, qword [rsp + 0x4c8]
mov rcx, qword [rsp + 0x4a0]
xor rcx, rsp
call fcn.140004730
add rsp, 0x4b0
pop rbx
ret
xor eax, eax
lea r8, [0x14001dcd8]
lea rdx, str.HitmanProScheduler
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rax
lea rax, str.PNP_TDI
mov r9d, 0xf01ff
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x290]
mov rcx, rdi
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 0x10
mov qword [rsp + 0x4c0], rsi
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rsi, rax
test rax, rax
jne 0x14000428a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
je 0x1400042b2
xor ecx, ecx
call fcn.140004a60
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x70], rax
call fcn.140004ac0
lea rcx, str._s_r_n
mov rdx, rax
call fcn.1400011a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.CreateService
lea rcx, str._s___failed_with_error__d_r_n
mov r8d, eax
call fcn.1400011a0
jmp 0x1400042b4
lea rax, str.HitmanPro_Scheduler_controls_scheduled_scans
lea r8, [rsp + 0x70]
mov edx, 1
mov rcx, rsi
mov qword [rsp + 0x70], rax
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov bl, 1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rsi, qword [rsp + 0x4c0]
movzx eax, bl
jmp 0x1400041a5
movzx eax, bl
jmp 0x1400041ad
Function at 0x1400042e0
Capabilities:
Delete service
Stop service

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x50
mov rax, qword [0x140021170]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
xor bl, bl
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
je 0x140004420
lea rdx, str.HitmanProScheduler
mov r8d, 0x10020
mov rcx, rax
mov qword [rsp + 0x60], rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
jne 0x140004352
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jne 0x140004412
mov bl, 1
jmp 0x140004412
lea r8, [rsp + 0x28]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x1400043b7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
je 0x1400043b7
xor ecx, ecx
call fcn.140004a60
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
call fcn.140004ac0
lea rcx, str._s_r_n
mov rdx, rax
call fcn.1400011a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [0x14001dd70]
lea rcx, str._s___failed_with_error__d_r_n
mov r8d, eax
call fcn.1400011a0
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x1400043c8
mov bl, 1
jmp 0x140004409
xor ecx, ecx
call fcn.140004a60
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
call fcn.140004ac0
lea rcx, str._s_r_n
mov rdx, rax
call fcn.1400011a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [0x14001dd80]
lea rcx, str._s___failed_with_error__d_r_n
mov r8d, eax
call fcn.1400011a0
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x60]
movzx eax, bl
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140004730
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rsi
ret
Function at 0x140004440
Capabilities:
Start service

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0x20
mov ebp, ecx
xor ecx, ecx
xor bl, bl
call fcn.140004a60
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x48], rax
call fcn.140004ac0
lea rcx, str._s_r_n
mov rdx, rax
call fcn.1400011a0
lea rcx, str.RestartService_r_n
call fcn.1400011a0
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
jne 0x1400044e1
xor ecx, ecx
call fcn.140004a60
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x48], rax
call fcn.140004ac0
lea rcx, str._s_r_n
mov rdx, rax
call fcn.1400011a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.OpenSCManager_r_n
lea rcx, str._s___failed_with_error__d_r_n
mov r8d, eax
call fcn.1400011a0
movzx eax, bl
add rsp, 0x20
pop rsi
pop rbp
pop rbx
ret
lea rdx, str.HitmanProScheduler
mov r8d, 0x10
mov rcx, rax
mov qword [rsp + 0x40], rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
jne 0x14000454a
xor ecx, ecx
call fcn.140004a60
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x48], rax
call fcn.140004ac0
lea rcx, str._s_r_n
mov rdx, rax
call fcn.1400011a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.OpenService
lea rcx, str._s___failed_with_error__d_r_n
mov r8d, eax
call fcn.1400011a0
jmp 0x1400045d2
lea rax, str.endsession
lea r8, [rsp + 0x48]
mov rcx, rdi
mov qword [rsp + 0x48], rax
xor eax, eax
test ebp, ebp
mov edx, eax
setne dl
test edx, edx
cmove r8, rax
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x1400045c7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
je 0x1400045c7
xor ecx, ecx
call fcn.140004a60
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x50], rax
call fcn.140004ac0
lea rcx, str._s_r_n
mov rdx, rax
call fcn.1400011a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.StartService
lea rcx, str._s___failed_with_error__d_r_n
mov r8d, eax
call fcn.1400011a0
jmp 0x1400045c9
mov bl, 1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x40]
movzx eax, bl
add rsp, 0x20
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400045f0
Capabilities:
Stop service

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x50
mov rax, qword [0x140021170]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ecx, ecx
xor bl, bl
call fcn.140004a60
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
call fcn.140004ac0
lea rcx, str._s_r_n
mov rdx, rax
call fcn.1400011a0
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
je 0x140004700
lea rdx, str.HitmanProScheduler
mov r8d, 0x20
mov rcx, rax
mov qword [rsp + 0x60], rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
jne 0x140004680
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jne 0x1400046f2
mov bl, 1
jmp 0x1400046f2
lea r8, [rsp + 0x28]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x1400046e7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
je 0x1400046e7
xor ecx, ecx
call fcn.140004a60
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
call fcn.140004ac0
lea rcx, str._s_r_n
mov rdx, rax
call fcn.1400011a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [0x14001dd70]
lea rcx, str._s___failed_with_error__d_r_n
mov r8d, eax
call fcn.1400011a0
jmp 0x1400046e9
mov bl, 1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x60]
movzx eax, bl
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140004730
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rsi
ret

Function at 0x140006918
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.140006780
Function at 0x140049f30
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x140049f3d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x140049f4d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140049f35
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x140049f65
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140049f52
sub eax, 3
jb 0x140049f7f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140049fb6
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x140049fa6
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140049fa4
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140049f93
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.140049ef2
jmp 0x140049f3d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x8400
mov dl, 5
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14004a002
cmp rsi, rcx
jae 0x14004a00a
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140049fe9
cmp al, 0x8f
ja 0x140049fe9
cmp byte [rsi - 2], 0xf
je 0x140049fef
sub al, 0xe8
cmp al, 1
ja 0x140049fd3
cmp rsi, rcx
jae 0x14004a00a
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140049fd9
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14004a00a
lodsb al, byte [rsi]
jmp 0x140049fe9
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x47000]
mov eax, dword [rdi]
or eax, eax
je 0x14004a067
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x4a4ec]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14004a017
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14004a061
mov qword [rbx], rax
add rbx, 8
jmp 0x14004a037
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14004a0a1
cmp al, 0xef
ja 0x14004a093
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14004a073
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14004a082
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
mov byte [fcn.14004a120], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.14004a120
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14004a110
sub rsp, 0xffffffffffffff80
jmp 0x1400013f0