joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140005070
Capabilities:
Start service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rax, qword [rdx + 0x10]
mov rsi, rdx
mov r14, rcx
xor edx, edx
xor ecx, ecx
mov r8d, 1
xor dil, dil
mov rbp, qword [rax + 8]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
je 0x1400050f5
mov r8d, 0x10
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 0x1400050f5
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
mov rcx, rbp
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test ebx, ebx
setne dil
test ebx, ebx
jne 0x140005196
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x14000510a
movzx ebx, ax
or ebx, 0xc0070000
mov rax, qword [rsi + 0x10]
lea rcx, str.Unable_to_start
mov rdx, qword [rax + 8]
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhConcatStrings2
mov rcx, rax
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhAutoDereferenceObject
lea r9, [rsp + 0x58]
mov r8d, ebx
mov rcx, r14
mov rdx, qword [rax + 8]
call fcn.1400015c0
test al, al
je 0x140005181
cmp byte [rsp + 0x58], 0
je 0x140005196
mov rcx, qword [rsi + 0x10]
mov edx, 1
mov rcx, qword [rcx + 8]
call fcn.140078a40
test eax, eax
js 0x140005165
mov dil, 1
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhUiDisconnectFromPhSvc
jmp 0x140005196
mov r9d, eax
lea rdx, str.start
mov r8, rsi
mov rcx, r14
call fcn.140004f60
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhUiDisconnectFromPhSvc
jmp 0x140005196
mov r9d, ebx
lea rdx, str.start
mov r8, rsi
mov rcx, r14
call fcn.140004f60
mov rbx, qword [rsp + 0x50]
movzx eax, dil
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x1400051b0
Capabilities:
Continue service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [rdx + 0x10]
mov rbp, rdx
mov r14, rcx
xor edx, edx
xor ecx, ecx
mov r8d, 1
xor dil, dil
mov rsi, qword [rax + 8]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
jne 0x1400051ef
xor esi, esi
jmp 0x14000520d
mov r8d, 0x40
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rcx, rbx
mov rsi, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rsi, rsi
je 0x14000523e
lea r8, [rsp + 0x30]
mov edx, 3
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test ebx, ebx
setne dil
test ebx, ebx
jne 0x1400052df
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x140005253
movzx ebx, ax
or ebx, 0xc0070000
mov rax, qword [rbp + 0x10]
lea rcx, str.Unable_to_continue
mov rdx, qword [rax + 8]
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhConcatStrings2
mov rcx, rax
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhAutoDereferenceObject
lea r9, [rsp + 0x78]
mov r8d, ebx
mov rcx, r14
mov rdx, qword [rax + 8]
call fcn.1400015c0
test al, al
je 0x1400052ca
cmp byte [rsp + 0x78], 0
je 0x1400052df
mov rcx, qword [rbp + 0x10]
mov edx, 2
mov rcx, qword [rcx + 8]
call fcn.140078a40
test eax, eax
js 0x1400052ae
mov dil, 1
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhUiDisconnectFromPhSvc
jmp 0x1400052df
mov r9d, eax
lea rdx, str.continue
mov r8, rbp
mov rcx, r14
call fcn.140004f60
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhUiDisconnectFromPhSvc
jmp 0x1400052df
mov r9d, ebx
lea rdx, str.continue
mov r8, rbp
mov rcx, r14
call fcn.140004f60
mov rbx, qword [rsp + 0x70]
movzx eax, dil
mov rbp, qword [rsp + 0x80]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
Function at 0x140005300
Capabilities:
Pause service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [rdx + 0x10]
mov rbp, rdx
mov r14, rcx
xor edx, edx
xor ecx, ecx
mov r8d, 1
xor dil, dil
mov rsi, qword [rax + 8]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
jne 0x14000533f
xor esi, esi
jmp 0x14000535d
mov r8d, 0x40
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rcx, rbx
mov rsi, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rsi, rsi
je 0x14000538e
lea r8, [rsp + 0x30]
mov edx, 2
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test ebx, ebx
setne dil
test ebx, ebx
jne 0x14000542f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x1400053a3
movzx ebx, ax
or ebx, 0xc0070000
mov rax, qword [rbp + 0x10]
lea rcx, str.Unable_to_pause
mov rdx, qword [rax + 8]
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhConcatStrings2
mov rcx, rax
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhAutoDereferenceObject
lea r9, [rsp + 0x78]
mov r8d, ebx
mov rcx, r14
mov rdx, qword [rax + 8]
call fcn.1400015c0
test al, al
je 0x14000541a
cmp byte [rsp + 0x78], 0
je 0x14000542f
mov rcx, qword [rbp + 0x10]
mov edx, 3
mov rcx, qword [rcx + 8]
call fcn.140078a40
test eax, eax
js 0x1400053fe
mov dil, 1
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhUiDisconnectFromPhSvc
jmp 0x14000542f
mov r9d, eax
lea rdx, str.pause
mov r8, rbp
mov rcx, r14
call fcn.140004f60
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhUiDisconnectFromPhSvc
jmp 0x14000542f
mov r9d, ebx
lea rdx, str.pause
mov r8, rbp
mov rcx, r14
call fcn.140004f60
mov rbx, qword [rsp + 0x70]
movzx eax, dil
mov rbp, qword [rsp + 0x80]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
Function at 0x140005450
Capabilities:
Stop service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [rdx + 0x10]
mov rbp, rdx
mov r14, rcx
xor edx, edx
xor ecx, ecx
mov r8d, 1
xor dil, dil
mov rsi, qword [rax + 8]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
jne 0x14000548f
xor esi, esi
jmp 0x1400054ad
mov r8d, 0x20
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rcx, rbx
mov rsi, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rsi, rsi
je 0x1400054de
lea r8, [rsp + 0x30]
mov edx, 1
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test ebx, ebx
setne dil
test ebx, ebx
jne 0x14000557f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x1400054f3
movzx ebx, ax
or ebx, 0xc0070000
mov rax, qword [rbp + 0x10]
lea rcx, str.Unable_to_stop
mov rdx, qword [rax + 8]
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhConcatStrings2
mov rcx, rax
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhAutoDereferenceObject
lea r9, [rsp + 0x78]
mov r8d, ebx
mov rcx, r14
mov rdx, qword [rax + 8]
call fcn.1400015c0
test al, al
je 0x14000556a
cmp byte [rsp + 0x78], 0
je 0x14000557f
mov rcx, qword [rbp + 0x10]
mov edx, 4
mov rcx, qword [rcx + 8]
call fcn.140078a40
test eax, eax
js 0x14000554e
mov dil, 1
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhUiDisconnectFromPhSvc
jmp 0x14000557f
mov r9d, eax
lea rdx, str.stop
mov r8, rbp
mov rcx, r14
call fcn.140004f60
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhUiDisconnectFromPhSvc
jmp 0x14000557f
mov r9d, ebx
lea rdx, str.stop
mov r8, rbp
mov rcx, r14
call fcn.140004f60
mov rbx, qword [rsp + 0x70]
movzx eax, dil
mov rbp, qword [rsp + 0x80]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
Function at 0x1400055a0
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 rdi, rdx
mov byte [rsp + 0x20], 1
lea rdx, [0x14013f758]
mov r14, rcx
xor sil, sil
mov r8, qword [r8 + 8]
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhShowConfirmMessage
test al, al
jne 0x1400055df
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
mov rax, qword [rdi + 0x10]
xor edx, edx
mov qword [rsp + 0x50], rbx
xor ecx, ecx
mov qword [rsp + 0x60], rbp
mov r8d, 1
mov rbp, qword [rax + 8]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
je 0x14000564e
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 0x14000564e
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, rbp
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test ebx, ebx
setne sil
test ebx, ebx
jne 0x1400056ef
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x140005663
movzx ebx, ax
or ebx, 0xc0070000
mov rax, qword [rdi + 0x10]
lea rcx, str.Unable_to_delete
mov rdx, qword [rax + 8]
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhConcatStrings2
mov rcx, rax
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhAutoDereferenceObject
lea r9, [rsp + 0x58]
mov r8d, ebx
mov rcx, r14
mov rdx, qword [rax + 8]
call fcn.1400015c0
test al, al
je 0x1400056da
cmp byte [rsp + 0x58], 0
je 0x1400056ef
mov rcx, qword [rdi + 0x10]
mov edx, 5
mov rcx, qword [rcx + 8]
call fcn.140078a40
test eax, eax
js 0x1400056be
mov sil, 1
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhUiDisconnectFromPhSvc
jmp 0x1400056ef
mov r9d, eax
lea rdx, [0x14013f758]
mov r8, rdi
mov rcx, r14
call fcn.140004f60
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhUiDisconnectFromPhSvc
jmp 0x1400056ef
mov r9d, ebx
lea rdx, [0x14013f758]
mov r8, rdi
mov rcx, r14
call fcn.140004f60
mov rbp, qword [rsp + 0x60]
movzx eax, sil
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x140005e10
Capabilities:
Suspend thread

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov rdi, rdx
xor r12b, r12b
xor edx, edx
mov r13d, r8d
mov r15, rcx
mov sil, 1
mov r14d, edx
test r8d, r8d
je 0x140005fe9
mov qword [rsp + 0x160], rbx
nop dword [rax]
mov rax, qword [rdi]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x30], rdx
lea r8, [rsp + 0x40]
mov qword [rsp + 0x48], rdx
xorps xmm0, xmm0
mov dword [rsp + 0x58], edx
mov rcx, qword [rax]
mov qword [rsp + 0x38], rcx
lea rcx, [rbp + 0x78]
mov qword [rsp + 0x50], rdx
mov edx, 2
mov dword [rsp + 0x40], 0x30
movdqu xmmword [rsp + 0x60], xmm0
call qword [sym.imp.ntdll.dll_NtOpenThread]
mov ebx, eax
cmp eax, 0xc0000022
jne 0x140005ebf
cmp byte [0x1401910b4], 0
je 0x140005ebf
lea r8, [rsp + 0x30]
mov edx, 2
lea rcx, [rbp + 0x78]
call fcn.1400ed030
mov ebx, eax
test ebx, ebx
js 0x140005ee3
mov rcx, qword [rbp + 0x78]
xor edx, edx
call qword [sym.imp.ntdll.dll_NtSuspendThread]
mov rcx, qword [rbp + 0x78]
mov ebx, eax
call qword [sym.imp.ntdll.dll_NtClose]
test ebx, ebx
jns 0x140005fb5
xor sil, sil
test r12b, r12b
jne 0x140005f9c
mov rax, qword [rdi]
lea rcx, str.Unable_to_suspend_thread__u
mov edx, dword [rax]
call fcn.1400013f0
lea r9, [rbp + 0x70]
mov r8d, ebx
mov rcx, r15
mov rdx, qword [rax + 8]
call fcn.1400015c0
test al, al
je 0x140005f9c
cmp byte [rbp + 0x70], sil
je 0x140005f97
mov rcx, qword [0x140192230]
test rcx, rcx
jne 0x140005f4c
mov r9d, 0xc0000037
mov r8, qword [rdi]
lea rdx, str.suspend
mov rcx, r15
call fcn.1400059e0
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhUiDisconnectFromPhSvc
jmp 0x140005fb5
mov rax, qword [rdi]
lea r8, [rsp + 0x70]
mov dword [rbp - 0x68], 0xa
mov qword [rbp - 0x58], 2
mov qword [rsp + 0x70], 0xb00088
mov rdx, qword [rax]
mov qword [rbp - 0x60], rdx
lea rdx, [rsp + 0x70]
call qword [sym.imp.ntdll.dll_NtRequestWaitReplyPort]
mov r9d, dword [rbp - 0x64]
test eax, eax
cmovs r9d, eax
test r9d, r9d
js 0x140005f33
mov sil, 1
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhUiDisconnectFromPhSvc
jmp 0x140005fb5
mov r12b, 1
jmp 0x140005fb5
mov r8, qword [rdi]
lea rdx, str.suspend
mov r9d, ebx
mov rcx, r15
call fcn.1400059e0
test al, al
je 0x140005fca
inc r14d
add rdi, 8
mov edx, 0
cmp r14d, r13d
jb 0x140005e50
mov rbx, qword [rsp + 0x160]
movzx eax, sil
add rsp, 0x120
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
movzx eax, sil
jmp 0x140005fd6
Function at 0x140005ff0
Capabilities:
Resume thread

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov rdi, rdx
xor r12b, r12b
xor edx, edx
mov r13d, r8d
mov r15, rcx
mov sil, 1
mov r14d, edx
test r8d, r8d
je 0x1400061c9
mov qword [rsp + 0x160], rbx
nop dword [rax]
mov rax, qword [rdi]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x30], rdx
lea r8, [rsp + 0x40]
mov qword [rsp + 0x48], rdx
xorps xmm0, xmm0
mov dword [rsp + 0x58], edx
mov rcx, qword [rax]
mov qword [rsp + 0x38], rcx
lea rcx, [rbp + 0x78]
mov qword [rsp + 0x50], rdx
mov edx, 2
mov dword [rsp + 0x40], 0x30
movdqu xmmword [rsp + 0x60], xmm0
call qword [sym.imp.ntdll.dll_NtOpenThread]
mov ebx, eax
cmp eax, 0xc0000022
jne 0x14000609f
cmp byte [0x1401910b4], 0
je 0x14000609f
lea r8, [rsp + 0x30]
mov edx, 2
lea rcx, [rbp + 0x78]
call fcn.1400ed030
mov ebx, eax
test ebx, ebx
js 0x1400060c3
mov rcx, qword [rbp + 0x78]
xor edx, edx
call qword [sym.imp.ntdll.dll_NtResumeThread]
mov rcx, qword [rbp + 0x78]
mov ebx, eax
call qword [sym.imp.ntdll.dll_NtClose]
test ebx, ebx
jns 0x140006195
xor sil, sil
test r12b, r12b
jne 0x14000617c
mov rax, qword [rdi]
lea rcx, str.Unable_to_resume_thread__u
mov edx, dword [rax]
call fcn.1400013f0
lea r9, [rbp + 0x70]
mov r8d, ebx
mov rcx, r15
mov rdx, qword [rax + 8]
call fcn.1400015c0
test al, al
je 0x14000617c
cmp byte [rbp + 0x70], sil
je 0x140006177
mov rcx, qword [0x140192230]
test rcx, rcx
jne 0x14000612c
mov r9d, 0xc0000037
mov r8, qword [rdi]
lea rdx, str.resume
mov rcx, r15
call fcn.1400059e0
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhUiDisconnectFromPhSvc
jmp 0x140006195
mov rax, qword [rdi]
lea r8, [rsp + 0x70]
mov dword [rbp - 0x68], 0xa
mov qword [rbp - 0x58], 3
mov qword [rsp + 0x70], 0xb00088
mov rdx, qword [rax]
mov qword [rbp - 0x60], rdx
lea rdx, [rsp + 0x70]
call qword [sym.imp.ntdll.dll_NtRequestWaitReplyPort]
mov r9d, dword [rbp - 0x64]
test eax, eax
cmovs r9d, eax
test r9d, r9d
js 0x140006113
mov sil, 1
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhUiDisconnectFromPhSvc
jmp 0x140006195
mov r12b, 1
jmp 0x140006195
mov r8, qword [rdi]
lea rdx, str.resume
mov r9d, ebx
mov rcx, r15
call fcn.1400059e0
test al, al
je 0x1400061aa
inc r14d
add rdi, 8
mov edx, 0
cmp r14d, r13d
jb 0x140006030
mov rbx, qword [rsp + 0x160]
movzx eax, sil
add rsp, 0x120
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
movzx eax, sil
jmp 0x1400061b6
Function at 0x14000d130
Capabilities:
Log keystrokes via polling

Disassembly:
push rdi
sub rsp, 0x20
mov rdi, rdx
cmp qword [rcx], rdx
jne 0x14000d1a4
cmp dword [rcx + 0x10], 0xffffff65
jne 0x14000d1a4
movzx eax, word [rcx + 0x18]
cmp ax, 0x41
je 0x14000d1a4
cmp ax, 0x43
jne 0x14000d1a4
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x14000d1a4
mov rcx, rdi
mov qword [rsp + 0x38], rbx
call fcn.1400f6ec0
mov rdx, rax
mov rcx, rdi
mov rbx, rax
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhSetClipboardString
lea rcx, [rbx - 0x10]
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
mov rbx, qword [rsp + 0x38]
cmp eax, 1
jne 0x14000d1a4
add rsp, 0x20
pop rdi
jmp fcn.1400d9400
add rsp, 0x20
pop rdi
ret

Function at 0x14000e8f0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0xe0
mov r14, rcx
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000ea7f
lea rdx, str.DebugSetProcessKillOnExit
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
je 0x14000ea7f
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000ea7f
lea rdx, str.DebugActiveProcessStop
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x14000ea7f
mov rcx, qword gs:[0x30]
xorps xmm0, xmm0
xor eax, eax
mov qword [rsp + 0xf0], rbp
mov qword [rsp + 0xf8], rsi
xor r9d, r9d
xor sil, sil
xor r8d, r8d
mov rdx, qword [rcx + 0x60]
mov rcx, qword gs:[0x30]
movzx ebp, byte [rdx + 1]
mov rdx, qword [rcx + 0x60]
mov rcx, r14
mov byte [rdx + 1], sil
xor edx, edx
mov dword [rsp + 0xd4], eax
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], eax
movups xmmword [rsp + 0x74], xmm0
mov dword [rsp + 0x70], 0x68
movups xmmword [rsp + 0x84], xmm0
movups xmmword [rsp + 0x94], xmm0
movups xmmword [rsp + 0xa4], xmm0
movups xmmword [rsp + 0xb4], xmm0
movups xmmword [rsp + 0xc4], xmm0
movups xmmword [rsp + 0x50], xmm0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x14000ea38
xor ecx, ecx
call rdi
mov ecx, dword [rsp + 0x60]
call rbx
mov sil, 1
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14000ea48
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14000ea58
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword gs:[0x30]
movzx eax, sil
mov rsi, qword [rsp + 0xf8]
mov rdx, qword [rcx + 0x60]
mov byte [rdx + 1], bpl
mov rbp, qword [rsp + 0xf0]
jmp 0x14000ea81
xor al, al
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x14000fd10
Capabilities:
Delete registry value
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0xb0
mov r14, rdx
mov rbx, rcx
xor edx, edx
lea rcx, str.RegEdit_RegEdit
xor dil, dil
call qword [sym.imp.USER32.dll_FindWindowW]
mov rsi, rax
test rax, rax
jne 0x14000fd5e
mov rdx, r14
mov rcx, rbx
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhShellOpenKey
mov al, 1
add rsp, 0xb0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rcx, [rbp - 0x29]
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhGetOwnTokenAttributes
test byte [rax + 8], 1
jne 0x14000fd8c
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhUiConnectToPhSvcEx
test al, al
jne 0x14000fd8c
add rsp, 0xb0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov qword [rsp + 0xe0], r15
lea r9, [0x140188028]
xor r15d, r15d
lea rcx, [rbp + 0x7f]
mov qword [rsp + 0x30], r15
mov edx, 0x20006
mov dword [rsp + 0x28], r15d
mov r8, 0xfffffffffffffff7
mov dword [rsp + 0x20], r15d
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhCreateKey
test eax, eax
js 0x14000fef5
movups xmm0, xmmword [str.A_processcheckr]
mov eax, dword [0x140159270]
lea rbx, [rbp + 0x15]
mov dword [rbp + 0xf], eax
mov edi, 0xf
movzx eax, word [0x140159274]
movaps xmmword [rbp - 9], xmm0
movsd xmm0, qword [0x140159268]
movsd qword [rbp + 7], xmm0
mov word [rbp + 0x13], ax
nop
lea rcx, [0x14018ff68]
call qword [sym.imp.ntdll.dll_RtlRandomEx]
mov ecx, eax
lea rbx, [rbx + 2]
mov eax, 0x4ec4ec4f
mul ecx
shr edx, 3
imul eax, edx, 0x1a
sub ecx, eax
add cx, 0x41
mov word [rbx - 2], cx
sub rdi, 1
jne 0x14000fe00
mov rdi, 0xffffffffffffffff
mov word [rbp + 0x33], r15w
mov rax, rdi
lea rcx, [rbp - 9]
inc rax
cmp word [rcx + rax*2], r15w
jne 0x14000fe43
add ax, ax
movzx ecx, ax
mov word [rbp - 0x39], cx
mov qword [rbp - 0x29], rcx
lea eax, [rcx + 2]
mov rcx, r14
mov word [rbp - 0x37], ax
lea rax, [rbp - 9]
mov qword [rbp - 0x31], rax
lea rax, [rbp - 9]
mov qword [rbp - 0x21], rax
call fcn.1400d5af0
mov rcx, qword [rbp + 0x7f]
lea rdx, [rbp - 0x39]
mov rbx, rax
mov r9d, 1
xor r8d, r8d
mov eax, dword [rax]
add eax, 2
mov dword [rsp + 0x28], eax
mov rax, qword [rbx + 8]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtSetValueKey]
lea rcx, [rbx - 0x10]
lock xadd dword [rcx + 8], edi
cmp edi, 1
jne 0x14000feb9
call fcn.1400d9400
lea rcx, [rbp - 0x19]
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhGetOwnTokenAttributes
lea rdx, [rbp - 0x29]
mov rcx, rsi
movzx r8d, byte [rax + 8]
not r8b
and r8b, 1
call fcn.14000f970
mov rcx, qword [rbp + 0x7f]
lea rdx, [rbp - 0x39]
movzx edi, al
call qword [sym.imp.ntdll.dll_NtDeleteValueKey]
mov rcx, qword [rbp + 0x7f]
call qword [sym.imp.ntdll.dll_NtClose]
lea rcx, [rbp - 0x19]
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhGetOwnTokenAttributes
mov r15, qword [rsp + 0xe0]
test byte [rax + 8], 1
jne 0x14000ff11
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhUiDisconnectFromPhSvc
movzx eax, dil
add rsp, 0xb0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14002b270
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword gs:[0x30]
xorps xmm0, xmm0
xor ebx, ebx
mov r9d, 3
mov qword [rsp + 0x28], rbx
mov r8d, 0x1c
mov rcx, qword [rax + 0x60]
mov rdx, qword [rcx + 0x20]
lea rcx, [rsp + 0x40]
movzx eax, word [rdx + 0x70]
mov qword [rsp + 0x40], rax
mov rax, qword [rdx + 0x78]
lea rdx, [0x140188180]
mov qword [rsp + 0x48], rax
xor eax, eax
mov qword [0x140192440], rax
lea rax, [0x14002aae0]
mov qword [rsp + 0x20], rax
movups xmmword [0x1401923e0], xmm0
movups xmmword [0x1401923f0], xmm0
movups xmmword [0x140192400], xmm0
movups xmmword [0x140192410], xmm0
movups xmmword [0x140192420], xmm0
movups xmmword [0x140192430], xmm0
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhParseCommandLine
test al, al
je 0x14002b30f
mov eax, dword [0x1401923e0]
bt eax, 0xe
jae 0x14002b337
lea r8, str.Command_line_options:_n_n_c_n_ctype_command_type_n_cobject_command_object_n_caction_command_action_n_cvalue_command_value_n_debug_n_elevate_n_help_n_hide_n_installkph_n_newinstance_n_nokph_n_noplugins_n_nosettings_n_plugin_pluginname:value_n_priority_rhnl_n_s_n_selectpid_pid_to_select_n_selecttab_name_of_tab_to_select_n_settings_filename_n_sysinfo__section_name__n_uninstallkph_n_v_n
mov edx, 0x40
xor ecx, ecx
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhShowMessage
mov eax, dword [0x1401923e0]
bt eax, 0xe
jae 0x14002b337
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
test al, 0x20
je 0x14002b39c
mov rcx, qword [0x140192450]
lea rdx, str.kprocesscheckr.sys
mov rcx, qword [rcx + 8]
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhConcatStrings2
mov dword [rsp + 0x60], 2
lea r8, [rsp + 0x60]
mov byte [rsp + 0x64], 1
mov rdx, qword [rax + 8]
call fcn.1400eca30
mov ebx, eax
test eax, eax
jns 0x14002b393
test dword [0x1401923e0], 0x2000
jne 0x14002b393
xor r9d, r9d
lea rdx, str.Unable_to_install_Kprocesscheckr
mov r8d, eax
xor ecx, ecx
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhShowStatus
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
test al, 0x40
je 0x14002b3d4
call fcn.1400ecb70
mov ebx, eax
test eax, eax
jns 0x14002b3cb
test dword [0x1401923e0], 0x2000
jne 0x14002b3cb
xor r9d, r9d
lea rdx, str.Unable_to_uninstall_Kprocesscheckr
mov r8d, eax
xor ecx, ecx
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhShowStatus
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
bt eax, 0xc
jae 0x14002b41f
lea rcx, [rsp + 0x40]
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhGetOwnTokenAttributes
test byte [rax + 8], 1
jne 0x14002b419
mov qword [rsp + 0x30], rbx
xor edx, edx
mov dword [rsp + 0x28], ebx
xor ecx, ecx
mov r9d, 1
mov dword [rsp + 0x20], 5
mov r8d, 5
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhShellProcessHacker
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [0x1401923e0]
test al, al
jns 0x14002b42d
add rsp, 0x50
pop rbx
jmp fcn.140014f10
add rsp, 0x50
pop rbx
ret
Function at 0x14007af90
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov eax, dword [rcx]
mov rsi, r8
mov rdi, rcx
test al, 1
jne 0x14007b07b
cmp eax, 0xfffe
ja 0x14007b07b
cmp dword [rcx + 4], 0
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], r14
je 0x14007b052
mov ecx, dword [0x140192220]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, dword [rdi + 4]
mov r14d, dword [rdi]
mov rcx, qword [rax]
mov rdx, qword [rcx + 0x38]
add rbx, rdx
lea rax, [r14 + rbx]
cmp rax, rbx
jb 0x14007b056
cmp rbx, rdx
jb 0x14007b056
cmp rax, qword [rcx + 0x40]
ja 0x14007b056
test bl, 1
jne 0x14007b056
test rbx, rbx
je 0x14007b056
test r14d, r14d
je 0x14007b043
mov rdx, qword [0x140191180]
lea rcx, [r14 + 0x12]
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhCreateObject
mov rdi, rax
xor ecx, ecx
mov r8d, r14d
mov rdx, rbx
mov qword [rax], r14
add rax, 0x10
mov qword [rdi + 8], rax
mov word [rax + r14], cx
mov rcx, qword [rdi + 8]
call fcn.1401317c0
xor eax, eax
mov qword [rsi], rdi
jmp 0x14007b05b
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhReferenceEmptyString
mov rdi, rax
mov qword [rsi], rax
xor eax, eax
jmp 0x14007b05b
test dl, dl
jne 0x14007b070
mov eax, 0xc0000005
mov rbx, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
xor ecx, ecx
mov edi, ecx
mov qword [rsi], rcx
xor eax, eax
jmp 0x14007b05b
mov rsi, qword [rsp + 0x40]
mov eax, 0xc0000206
add rsp, 0x20
pop rdi
ret