joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14048ebc7
Capabilities:
Encode data using xor

Disassembly:
xor edx, edx
test r10, r10
push 0xffffffff8f38933f
lea rsp, [rsp + 0x10]
je 0x14048ec3e
mov eax, 0x2b0569b
push r9
lea rax, [rax + rax*4 + 0x421f1225]
lea rax, [0x1404811b0]
movzx r9d, byte [rbx]
push 0xffffffffc00ae400
xor r9d, edx
shr word [rsp], 3
and r9d, 0xff
mov r9d, dword [rax + r9*4]
shr edx, 8
xor edx, r9d
dec byte [rsp + 3]
inc rbx
xor edx, 0xf6a9fc2c
dec r10
lea rsp, [rsp + 8]
jne 0x14048ebf2
push 0x7522dc86
mov r9, qword [rsp + 8]
lea rsp, [rsp + 0x10]
push 0xffffffffa101a42b
not edx
mov dword [r8], edx
lea rsp, [rsp + 8]
jmp fcn.14046f1e1
Function at 0x45e200
Capabilities:
Parse pe header
Terminate process

Disassembly:
sub rsp, 0x58
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rdi
cmp word [0x00400000], 0x5a4d
je 0x45e221
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x45e29d
movsxd rax, dword [0x0040003c]
lea rcx, [0x00400000]
add rax, rcx
cmp dword [rax], 0x4550
je 0x45e242
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x45e29d
movzx ecx, word [rax + 0x18]
cmp ecx, 0x10b
je 0x45e280
cmp ecx, 0x20b
je 0x45e25e
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x45e29d
cmp dword [rax + 0x84], 0xe
ja 0x45e26f
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x45e29d
xor ebx, ebx
cmp dword [rax + 0xf8], ebx
setne bl
mov dword [rsp + 0x60], ebx
jmp 0x45e29d
cmp dword [rax + 0x74], 0xe
ja 0x45e28e
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x45e29d
xor ebx, ebx
cmp dword [rax + 0xe8], ebx
setne bl
mov dword [rsp + 0x60], ebx
mov ecx, 1
call qword [sym.imp.msvcrt.dll___set_app_type]
mov qword [0x00483dc8], 0xffffffffffffffff
mov qword [0x00483dd0], 0xffffffffffffffff
mov rcx, qword [sym.imp.msvcrt.dll__fmode]
mov eax, dword [0x00481da4]
mov dword [rcx], eax
mov rcx, qword [sym.imp.msvcrt.dll__commode]
mov eax, dword [0x00481da0]
mov dword [rcx], eax
call fcn.0045d2e0
cmp dword [0x004817b0], 0
jne 0x45e2f7
lea rcx, [fcn.0045d2e0]
call qword [sym.imp.msvcrt.dll___setusermatherr]
lea rdx, [0x00460498]
lea rcx, [0x00460490]
call sub.msvcrt.dll__initterm
mov r11d, dword [0x00481d9c]
mov dword [rsp + 0x68], r11d
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, dword [0x00481d98]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
call qword [sym.imp.msvcrt.dll___getmainargs]
lea rdx, [0x00460488]
lea rcx, [0x00460430]
call sub.msvcrt.dll__initterm
mov r11, qword [rsp + 0x38]
mov rax, qword [sym.imp.msvcrt.dll___initenv]
mov qword [rax], r11
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x30]
call fcn.0045ae04
mov edi, eax
mov dword [rsp + 0x34], eax
test ebx, ebx
jne 0x45e383
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
call qword [sym.imp.msvcrt.dll__cexit]
jmp 0x45e3a4
mov eax, edi
mov rbx, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x58
ret

Function at 0x100403a20
Capabilities:
Encode data using xor

Disassembly:
xor al, 0x6c
xor al, 0x64
xor al, 0x67
xor al, 0x41
xor al, 0x3e
xor al, 0x7d
xor al, 0xa2
xor al, 0x9a
xor al, 0xa3
xor al, 0x88
xor al, 0x9d
xor al, 0xa4
xor al, 0x71
xor al, 0x74
xor al, 0x59
xor al, 0x87
xchg dword [rbp*4 - 0x57cb58cc], esi
xor al, 0x99
xor al, 0xa1
xor al, 0x86
xor al, 0xa3
xor al, 0xa3
movabs dword [0xa73490345934a834], eax
xor al, 0xad
xor al, 0xa7
xor al, 0xa8
xor al, 0x99
cdq
xor al, 0xa1
xor al, 0x67
xor al, 0x66
xor al, 0x90
xor al, 0xa7
xor al, 0x9c
xor al, 0x99
xor al, 0xa0
xor al, 0xa0
xor al, 0x67
xor al, 0x66
xor al, 0x62
Function at 0x140001c40
Capabilities:
Lock the desktop

Disassembly:
push rdi
sub rsp, 0x30
mov rdi, rcx
call qword [sym.imp.USER32.dll_LockWorkStation]
test eax, eax
je 0x140001c5b
mov al, 1
add rsp, 0x30
pop rdi
ret
mov qword [rsp + 0x40], rbx
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140001c73
xor ecx, ecx
call sym.MercyssMercyr.exe_PhGetNtMessage
jmp 0x140001c7a
mov ecx, eax
call sym.MercyssMercyr.exe_PhGetWin32Message
lea r9, str.Unable_to_lock_the_computer
mov rbx, rax
mov edx, 0x10
mov rcx, rdi
test rax, rax
jne 0x140001caa
lea r8, [0x1401339b8]
call sym.MercyssMercyr.exe_PhShowMessage
mov rbx, qword [rsp + 0x40]
xor al, al
add rsp, 0x30
pop rdi
ret
mov rax, qword [rbx + 8]
lea r8, str._s:__s
mov qword [rsp + 0x20], rax
call sym.MercyssMercyr.exe_PhShowMessage
lea rcx, [rbx - 0x10]
or eax, 0xffffffff
lock xadd dword [rcx + 8], eax
sub eax, 1
jne 0x140001cd5
call fcn.1400ae900
xor al, al
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140001cf0
Capabilities:
Shutdown system

Disassembly:
push rdi
sub rsp, 0x30
mov rdi, rcx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x140001d0f
mov al, 1
add rsp, 0x30
pop rdi
ret
mov qword [rsp + 0x40], rbx
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140001d27
xor ecx, ecx
call sym.MercyssMercyr.exe_PhGetNtMessage
jmp 0x140001d2e
mov ecx, eax
call sym.MercyssMercyr.exe_PhGetWin32Message
lea r9, str.Unable_to_log_off_the_computer
mov rbx, rax
mov edx, 0x10
mov rcx, rdi
test rax, rax
jne 0x140001d5e
lea r8, [0x1401339b8]
call sym.MercyssMercyr.exe_PhShowMessage
mov rbx, qword [rsp + 0x40]
xor al, al
add rsp, 0x30
pop rdi
ret
mov rax, qword [rbx + 8]
lea r8, str._s:__s
mov qword [rsp + 0x20], rax
call sym.MercyssMercyr.exe_PhShowMessage
lea rcx, [rbx - 0x10]
or eax, 0xffffffff
lock xadd dword [rcx + 8], eax
sub eax, 1
jne 0x140001d89
call fcn.1400ae900
xor al, al
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140001e40
Capabilities:
Shutdown system

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
mov ebx, edx
lea rcx, str.EnableWarnings
call sym.MercyssMercyr.exe_PhGetIntegerSetting
test eax, eax
je 0x140001e85
xor r9d, r9d
mov byte [rsp + 0x20], 0
lea r8, str.the_computer
mov rcx, rdi
lea rdx, str.restart
call sym.MercyssMercyr.exe_PhShowConfirmMessage
test al, al
je 0x140001f18
or ebx, 2
xor edx, edx
mov ecx, ebx
call qword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x140001ea3
mov al, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140001eb6
xor ecx, ecx
call sym.MercyssMercyr.exe_PhGetNtMessage
jmp 0x140001ebd
mov ecx, eax
call sym.MercyssMercyr.exe_PhGetWin32Message
lea r9, str.Unable_to_restart_the_computer
mov rbx, rax
mov edx, 0x10
mov rcx, rdi
test rax, rax
jne 0x140001eed
lea r8, [0x1401339b8]
call sym.MercyssMercyr.exe_PhShowMessage
xor al, al
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rax, qword [rbx + 8]
lea r8, str._s:__s
mov qword [rsp + 0x20], rax
call sym.MercyssMercyr.exe_PhShowMessage
lea rcx, [rbx - 0x10]
or eax, 0xffffffff
lock xadd dword [rcx + 8], eax
sub eax, 1
jne 0x140001f18
call fcn.1400ae900
xor al, al
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140001f30
Capabilities:
Shutdown system

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
mov ebx, edx
lea rcx, str.EnableWarnings
call sym.MercyssMercyr.exe_PhGetIntegerSetting
test eax, eax
je 0x140001f75
xor r9d, r9d
mov byte [rsp + 0x20], 0
lea r8, str.the_computer
mov rcx, rdi
lea rdx, str.shut_down
call sym.MercyssMercyr.exe_PhShowConfirmMessage
test al, al
je 0x140002019
mov ecx, ebx
xor edx, edx
or ecx, 8
call qword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x140001f93
mov al, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
or ebx, 1
xor edx, edx
mov ecx, ebx
call qword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x140001f86
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140001fb7
xor ecx, ecx
call sym.MercyssMercyr.exe_PhGetNtMessage
jmp 0x140001fbe
mov ecx, eax
call sym.MercyssMercyr.exe_PhGetWin32Message
lea r9, str.Unable_to_shut_down_the_computer
mov rbx, rax
mov edx, 0x10
mov rcx, rdi
test rax, rax
jne 0x140001fee
lea r8, [0x1401339b8]
call sym.MercyssMercyr.exe_PhShowMessage
xor al, al
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rax, qword [rbx + 8]
lea r8, str._s:__s
mov qword [rsp + 0x20], rax
call sym.MercyssMercyr.exe_PhShowMessage
lea rcx, [rbx - 0x10]
or eax, 0xffffffff
lock xadd dword [rcx + 8], eax
sub eax, 1
jne 0x140002019
call fcn.1400ae900
xor al, al
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140002bd0
Capabilities:
Terminate process

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], r9
mov qword [r11 + 0x18], r8
mov qword [r11 + 8], rcx
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x78
mov rax, qword [rdx + 0x20]
lea r8, [r11 - 0x60]
mov dword [rsp + 0x38], 0x30
mov rsi, r9
mov qword [r11 - 0x70], rax
lea r9, [r11 - 0x70]
xor eax, eax
mov rbp, rdx
mov qword [r11 - 0x58], rax
mov rdi, rcx
mov dword [rsp + 0x50], eax
lea rcx, [r11 - 0x78]
xorps xmm0, xmm0
mov qword [r11 - 0x50], rax
lea edx, [rax + 1]
mov qword [r11 - 0x68], rax
movdqu xmmword [rsp + 0x58], xmm0
call qword [sym.imp.ntdll.dll_NtOpenProcess]
mov ebx, eax
cmp eax, 0xc0000022
jne 0x140002c58
cmp byte [0x14015e000], 0
je 0x140002c58
lea r8, [rsp + 0x28]
mov edx, 1
lea rcx, [rsp + 0x20]
call fcn.1400c02c0
mov ebx, eax
test ebx, ebx
js 0x140002ca7
cmp byte [0x14015e000], 0
mov rdi, qword [rsp + 0x20]
je 0x140002c80
mov edx, 1
mov rcx, rdi
call fcn.1400c0500
mov ebx, eax
cmp eax, 0xc00000bb
jne 0x140002c90
mov edx, 1
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtTerminateProcess]
mov ebx, eax
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntdll.dll_NtClose]
test ebx, ebx
jns 0x140002cf8
mov rdi, qword [rsp + 0xa0]
cmp qword [rbp + 0x20], 0
lea rdx, str.terminate
mov r8, qword [rbp + 0x30]
mov byte [rsi], 0
mov r8, qword [r8 + 8]
jl 0x140002cd2
mov r9d, dword [rbp + 0x20]
lea rcx, str.Unable_to__s__s__PID__u_
call fcn.1400015b0
jmp 0x140002cde
lea rcx, str.Unable_to__s__s
call fcn.1400015b0
mov rdx, qword [rax + 8]
xor r9d, r9d
mov r8d, ebx
mov rcx, rdi
call sym.MercyssMercyr.exe_PhShowContinueStatus
test al, al
je 0x140002d8f
mov rbx, qword [rsp + 0xb0]
or esi, 0xffffffff
mov rcx, qword [rbx + 0x50]
mov rax, qword [rbp + 0x20]
cmp rcx, rax
je 0x140002d66
cmp qword [rbx + 0x58], rax
jne 0x140002d66
call sym.MercyssMercyr.exe_PhReferenceProcessItem
mov rdi, rax
test rax, rax
je 0x140002d66
mov rcx, qword [rbp + 0x40]
cmp qword [rax + 0x40], rcx
jl 0x140002d51
mov r9, qword [rsp + 0xb8]
mov rdx, rax
mov r8, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0xa0]
call fcn.140002bd0
test al, al
je 0x140002d7c
lea rcx, [rdi - 0x10]
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140002d66
call fcn.1400ae900
mov eax, dword [rbx]
test eax, eax
je 0x140002d71
add rbx, rax
jne 0x140002d03
mov al, 1
add rsp, 0x78
pop rdi
pop rsi
pop rbp
pop rbx
ret
lea rcx, [rdi - 0x10]
lock xadd dword [rcx + 8], esi
cmp esi, 1
jne 0x140002d8f
call fcn.1400ae900
xor al, al
add rsp, 0x78
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140004810
Capabilities:
Start service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rax, qword [rdx + 0x10]
mov rsi, rdx
mov r14, rcx
mov r15d, 1
mov r8d, r15d
xor edx, edx
xor ecx, ecx
xor bl, bl
mov rbp, qword [rax + 8]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
je 0x14000489c
lea r8d, [r15 + 0xf]
mov rdx, rbp
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rcx, rdi
mov rbp, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rbp, rbp
je 0x14000489c
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
movzx ebx, bl
mov rcx, rbp
test eax, eax
cmovne ebx, r15d
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test bl, bl
jne 0x140004972
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test eax, eax
jle 0x1400048b1
movzx edi, ax
or edi, 0xc0070000
mov rax, qword [rsi + 0x10]
lea rcx, str.Unable_to_start
mov rdx, qword [rax + 8]
call sym.MercyssMercyr.exe_PhConcatStrings2
mov rcx, rax
call sym.MercyssMercyr.exe_PhAutoDereferenceObject
lea r9, [rsp + 0x48]
mov r8d, edi
mov rcx, r14
mov rdx, qword [rax + 8]
call fcn.140001780
test al, al
je 0x140004945
cmp byte [rsp + 0x48], 0
je 0x140004972
mov rcx, qword [rsi + 0x10]
mov edx, r15d
mov rcx, qword [rcx + 8]
call fcn.140060a70
mov edi, eax
test eax, eax
js 0x140004911
movzx ebx, r15b
call sym.MercyssMercyr.exe_PhUiDisconnectFromPhSvc
jmp 0x140004972
mov r8, qword [rsi + 0x10]
lea rdx, str.start
lea rcx, str.Unable_to__s__s
mov r8, qword [r8 + 8]
call fcn.1400015b0
xor r9d, r9d
mov r8d, edi
mov rcx, r14
mov rdx, qword [rax + 8]
call sym.MercyssMercyr.exe_PhShowStatus
call sym.MercyssMercyr.exe_PhUiDisconnectFromPhSvc
jmp 0x140004972
mov r8, qword [rsi + 0x10]
lea rdx, str.start
lea rcx, str.Unable_to__s__s
mov r8, qword [r8 + 8]
call fcn.1400015b0
xor r9d, r9d
mov r8d, edi
mov rcx, r14
mov rdx, qword [rax + 8]
call sym.MercyssMercyr.exe_PhShowStatus
mov rbp, qword [rsp + 0x50]
movzx eax, bl
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x140004990
Capabilities:
Pause service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rax, qword [rdx + 0x10]
mov rsi, rdx
mov r14, rcx
mov r15d, 1
mov r8d, r15d
xor edx, edx
xor ecx, ecx
xor bl, bl
mov rbp, qword [rax + 8]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
je 0x140004a20
lea r8d, [r15 + 0x3f]
mov rdx, rbp
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rcx, rdi
mov rbp, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rbp, rbp
je 0x140004a20
lea r8, [rsp + 0x20]
mov rcx, rbp
lea edx, [r15 + 2]
call qword [sym.imp.ADVAPI32.dll_ControlService]
movzx ebx, bl
mov rcx, rbp
test eax, eax
cmovne ebx, r15d
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test bl, bl
jne 0x140004af8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test eax, eax
jle 0x140004a35
movzx edi, ax
or edi, 0xc0070000
mov rax, qword [rsi + 0x10]
lea rcx, str.Unable_to_continue
mov rdx, qword [rax + 8]
call sym.MercyssMercyr.exe_PhConcatStrings2
mov rcx, rax
call sym.MercyssMercyr.exe_PhAutoDereferenceObject
lea r9, [rsp + 0x68]
mov r8d, edi
mov rcx, r14
mov rdx, qword [rax + 8]
call fcn.140001780
test al, al
je 0x140004acb
cmp byte [rsp + 0x68], 0
je 0x140004af8
mov rcx, qword [rsi + 0x10]
mov edx, 2
mov rcx, qword [rcx + 8]
call fcn.140060a70
mov edi, eax
test eax, eax
js 0x140004a97
movzx ebx, r15b
call sym.MercyssMercyr.exe_PhUiDisconnectFromPhSvc
jmp 0x140004af8
mov r8, qword [rsi + 0x10]
lea rdx, str.continue
lea rcx, str.Unable_to__s__s
mov r8, qword [r8 + 8]
call fcn.1400015b0
xor r9d, r9d
mov r8d, edi
mov rcx, r14
mov rdx, qword [rax + 8]
call sym.MercyssMercyr.exe_PhShowStatus
call sym.MercyssMercyr.exe_PhUiDisconnectFromPhSvc
jmp 0x140004af8
mov r8, qword [rsi + 0x10]
lea rdx, str.continue
lea rcx, str.Unable_to__s__s
mov r8, qword [r8 + 8]
call fcn.1400015b0
xor r9d, r9d
mov r8d, edi
mov rcx, r14
mov rdx, qword [rax + 8]
call sym.MercyssMercyr.exe_PhShowStatus
mov rbp, qword [rsp + 0x70]
movzx eax, bl
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x140004b20
Capabilities:
Stop service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rax, qword [rdx + 0x10]
mov rsi, rdx
mov r14, rcx
mov r15d, 1
mov r8d, r15d
xor edx, edx
xor ecx, ecx
xor bl, bl
mov rbp, qword [rax + 8]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
je 0x140004bb0
lea r8d, [r15 + 0x3f]
mov rdx, rbp
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rcx, rdi
mov rbp, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rbp, rbp
je 0x140004bb0
lea r8, [rsp + 0x20]
mov rcx, rbp
lea edx, [r15 + 1]
call qword [sym.imp.ADVAPI32.dll_ControlService]
movzx ebx, bl
mov rcx, rbp
test eax, eax
cmovne ebx, r15d
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test bl, bl
jne 0x140004c88
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test eax, eax
jle 0x140004bc5
movzx edi, ax
or edi, 0xc0070000
mov rax, qword [rsi + 0x10]
lea rcx, str.Unable_to_pause
mov rdx, qword [rax + 8]
call sym.MercyssMercyr.exe_PhConcatStrings2
mov rcx, rax
call sym.MercyssMercyr.exe_PhAutoDereferenceObject
lea r9, [rsp + 0x68]
mov r8d, edi
mov rcx, r14
mov rdx, qword [rax + 8]
call fcn.140001780
test al, al
je 0x140004c5b
cmp byte [rsp + 0x68], 0
je 0x140004c88
mov rcx, qword [rsi + 0x10]
mov edx, 3
mov rcx, qword [rcx + 8]
call fcn.140060a70
mov edi, eax
test eax, eax
js 0x140004c27
movzx ebx, r15b
call sym.MercyssMercyr.exe_PhUiDisconnectFromPhSvc
jmp 0x140004c88
mov r8, qword [rsi + 0x10]
lea rdx, str.pause
lea rcx, str.Unable_to__s__s
mov r8, qword [r8 + 8]
call fcn.1400015b0
xor r9d, r9d
mov r8d, edi
mov rcx, r14
mov rdx, qword [rax + 8]
call sym.MercyssMercyr.exe_PhShowStatus
call sym.MercyssMercyr.exe_PhUiDisconnectFromPhSvc
jmp 0x140004c88
mov r8, qword [rsi + 0x10]
lea rdx, str.pause
lea rcx, str.Unable_to__s__s
mov r8, qword [r8 + 8]
call fcn.1400015b0
xor r9d, r9d
mov r8d, edi
mov rcx, r14
mov rdx, qword [rax + 8]
call sym.MercyssMercyr.exe_PhShowStatus
mov rbp, qword [rsp + 0x70]
movzx eax, bl
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x140004e40
Capabilities:
Delete service

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0x30
mov r8, qword [rdx + 0x10]
lea r9, str.Deleting_a_service_can_prevent_the_system_from_starting_or_functioning_properly.
mov rsi, rdx
mov byte [rsp + 0x20], 1
lea rdx, [0x14010ceb8]
mov r14, rcx
xor dil, dil
mov r8, qword [r8 + 8]
call sym.MercyssMercyr.exe_PhShowConfirmMessage
test al, al
jne 0x140004e7f
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
mov rax, qword [rsi + 0x10]
xor edx, edx
mov qword [rsp + 0x50], rbx
xor ecx, ecx
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], r15
mov r15d, 1
mov rbp, qword [rax + 8]
mov r8d, r15d
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
je 0x140004ef9
mov r8d, 0x10000
mov rdx, rbp
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rcx, rbx
mov rbp, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rbp, rbp
je 0x140004ef9
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_DeleteService]
movzx edi, dil
mov rcx, rbp
test eax, eax
cmovne edi, r15d
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test dil, dil
jne 0x140004fd1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x140004f0e
movzx ebx, ax
or ebx, 0xc0070000
mov rax, qword [rsi + 0x10]
lea rcx, str.Unable_to_delete
mov rdx, qword [rax + 8]
call sym.MercyssMercyr.exe_PhConcatStrings2
mov rcx, rax
call sym.MercyssMercyr.exe_PhAutoDereferenceObject
lea r9, [rsp + 0x58]
mov r8d, ebx
mov rcx, r14
mov rdx, qword [rax + 8]
call fcn.140001780
test al, al
je 0x140004fa4
cmp byte [rsp + 0x58], 0
je 0x140004fd1
mov rcx, qword [rsi + 0x10]
mov edx, 5
mov rcx, qword [rcx + 8]
call fcn.140060a70
mov ebx, eax
test eax, eax
js 0x140004f70
movzx edi, r15b
call sym.MercyssMercyr.exe_PhUiDisconnectFromPhSvc
jmp 0x140004fd1
mov r8, qword [rsi + 0x10]
lea rdx, [0x14010ceb8]
lea rcx, str.Unable_to__s__s
mov r8, qword [r8 + 8]
call fcn.1400015b0
xor r9d, r9d
mov r8d, ebx
mov rcx, r14
mov rdx, qword [rax + 8]
call sym.MercyssMercyr.exe_PhShowStatus
call sym.MercyssMercyr.exe_PhUiDisconnectFromPhSvc
jmp 0x140004fd1
mov r8, qword [rsi + 0x10]
lea rdx, [0x14010ceb8]
lea rcx, str.Unable_to__s__s
mov r8, qword [r8 + 8]
call fcn.1400015b0
xor r9d, r9d
mov r8d, ebx
mov rcx, r14
mov rdx, qword [rax + 8]
call sym.MercyssMercyr.exe_PhShowStatus
mov r15, qword [rsp + 0x68]
movzx eax, dil
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x140005470
Capabilities:
Suspend thread

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rdi, rdx
xor r15b, r15b
xor edx, edx
mov r12d, r8d
mov r13, rcx
mov sil, 1
mov r14d, edx
test r8d, r8d
je 0x140005678
mov qword [rsp + 0x150], rbx
nop dword [rax]
mov rax, qword [rdi]
lea r9, [rsp + 0x20]
mov qword [rsp + 0x20], rdx
lea r8, [rsp + 0x30]
mov qword [rsp + 0x38], rdx
xorps xmm0, xmm0
mov dword [rsp + 0x48], edx
mov rcx, qword [rax]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp + 0x68]
mov qword [rsp + 0x40], rdx
mov edx, 2
mov dword [rsp + 0x30], 0x30
movdqu xmmword [rsp + 0x50], xmm0
call qword [sym.imp.ntdll.dll_NtOpenThread]
mov ebx, eax
cmp eax, 0xc0000022
jne 0x14000551f
cmp byte [0x14015e000], 0
je 0x14000551f
lea r8, [rsp + 0x20]
mov edx, 2
lea rcx, [rbp + 0x68]
call fcn.1400c0680
mov ebx, eax
test ebx, ebx
js 0x140005543
mov rcx, qword [rbp + 0x68]
xor edx, edx
call qword [sym.imp.ntdll.dll_NtSuspendThread]
mov rcx, qword [rbp + 0x68]
mov ebx, eax
call qword [sym.imp.ntdll.dll_NtClose]
test ebx, ebx
jns 0x140005644
xor sil, sil
test r15b, r15b
jne 0x140005615
mov rax, qword [rdi]
lea rcx, str.Unable_to_suspend_thread__u
mov edx, dword [rax]
call fcn.1400015b0
lea r9, [rbp + 0x60]
mov r8d, ebx
mov rcx, r13
mov rdx, qword [rax + 8]
call fcn.140001780
test al, al
je 0x140005615
cmp byte [rbp + 0x60], r15b
je 0x140005610
mov rcx, qword [0x14015f1c0]
test rcx, rcx
jne 0x1400055c8
mov ebx, 0xc0000037
mov rax, qword [rdi]
lea rdx, str.suspend
lea rcx, str.Unable_to__s_thread__u
mov r8d, dword [rax]
call fcn.1400015b0
xor r9d, r9d
mov r8d, ebx
mov rcx, r13
mov rdx, qword [rax + 8]
call sym.MercyssMercyr.exe_PhShowContinueStatus
call sym.MercyssMercyr.exe_PhUiDisconnectFromPhSvc
jmp 0x140005644
mov rax, qword [rdi]
lea r8, [rsp + 0x60]
mov dword [rbp - 0x78], 0xa
mov qword [rbp - 0x68], 2
mov qword [rsp + 0x60], 0xb00088
mov rdx, qword [rax]
mov qword [rbp - 0x70], rdx
lea rdx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_NtRequestWaitReplyPort]
mov ebx, dword [rbp - 0x74]
test eax, eax
cmovs ebx, eax
test ebx, ebx
js 0x140005596
mov sil, 1
call sym.MercyssMercyr.exe_PhUiDisconnectFromPhSvc
jmp 0x140005644
mov r15b, 1
jmp 0x140005644
mov rax, qword [rdi]
lea rdx, str.suspend
lea rcx, str.Unable_to__s_thread__u
mov r8d, dword [rax]
call fcn.1400015b0
xor r9d, r9d
mov r8d, ebx
mov rcx, r13
mov rdx, qword [rax + 8]
call sym.MercyssMercyr.exe_PhShowContinueStatus
test al, al
je 0x140005659
inc r14d
add rdi, 8
mov edx, 0
cmp r14d, r12d
jb 0x1400054b0
mov rbx, qword [rsp + 0x150]
movzx eax, sil
add rsp, 0x110
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
movzx eax, sil
jmp 0x140005665