joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001754
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
push rbx
push rsi
push rdi
push r14
sub rsp, 0x78
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r14, r9
mov ebx, r8d
mov rsi, rdx
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x30], r9
and qword [rsp + 0x20], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x58], xmm0
mov ecx, ecx
lea rdx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov edi, eax
test eax, eax
jns 0x1400017c0
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
jne 0x1400017c0
mov eax, 0xc0000001
jmp 0x14000182b
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov r8d, 1
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ProbeForRead]
mov r8, rbx
mov rdx, rsi
mov rcx, r14
call fcn.1400022c0
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
jmp 0x14000181e
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, edi
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140002100
add rsp, 0x78
pop r14
pop rdi
pop rsi
pop rbx
ret

Function at 0x140001d80
Capabilities:
Attach user process memory
Find process by pid
Print debug messages

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x70
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r15, r9
mov r14d, r8d
mov rsi, rdx
mov qword [rsp + 0x28], rdx
and qword [rsp + 0x20], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
mov ecx, ecx
lea rdx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov edi, eax
test eax, eax
jns 0x140001ded
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
jne 0x140001ded
mov eax, 0xc0000001
jmp 0x140001e8d
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov r8d, 1
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ProbeForWrite]
mov r8, r14
mov rdx, r15
mov rcx, rsi
call fcn.1400022c0
mov r9d, r14d
mov r8, r15
mov rdx, rsi
lea rcx, [0x140002670]
call sub.ntoskrnl.exe_DbgPrint
mov rdx, rsi
lea rcx, [0x1400026a0]
call sub.ntoskrnl.exe_DbgPrint
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
jmp 0x140001e80
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, edi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140002100
add rsp, 0x70
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x140001ea8
Capabilities:
Attach user process memory
Find process by pid
Print debug messages

Disassembly:
push rbx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x88
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov r15, r9
mov r12d, r8d
mov rbx, rdx
mov edi, ecx
and qword [rsp + 0x38], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
lea rax, [rdx - 0x10001]
movabs rcx, 0x7ffffffefffe
cmp rax, rcx
ja 0x1400020bc
mov r8d, 0x75727766
mov edx, r12d
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rsi, rax
test rax, rax
jne 0x140001f2a
lea rcx, [0x140002720]
jmp 0x1400020c3
mov r8, r12
mov rdx, r15
mov rcx, rsi
call fcn.1400022c0
mov rcx, rdi
lea rdx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov r15d, eax
test eax, eax
jns 0x140001f6c
lea rcx, [0x1400026d0]
call sub.ntoskrnl.exe_DbgPrint
mov edx, 0x75727766
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x1400020c8
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, r12d
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_IoAllocateMdl]
mov rbx, rax
mov qword [rsp + 0x30], rax
test rax, rax
jne 0x140001fb4
lea rcx, [0x140002740]
call sub.ntoskrnl.exe_DbgPrint
xor eax, eax
jmp 0x1400020cd
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_MmProbeAndLockPages]
lea rcx, [0x140002750]
call sub.ntoskrnl.exe_DbgPrint
nop
mov dword [rsp + 0x28], 0x20
and dword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 1]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_MmMapLockedPagesSpecifyCache]
mov rdi, rax
mov qword [rsp + 0x30], rax
test rax, rax
jne 0x14000200e
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_MmUnlockPages]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_IoFreeMdl]
nop
mov r8, r12
mov rdx, rsi
mov rcx, rdi
call fcn.1400022c0
mov r9d, r12d
mov r8, rsi
mov rdx, rdi
lea rcx, [0x1400027a0]
call sub.ntoskrnl.exe_DbgPrint
mov rdx, rdi
lea rcx, [0x1400026a0]
call sub.ntoskrnl.exe_DbgPrint
nop
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_MmUnmapLockedPages]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_MmUnlockPages]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_IoFreeMdl]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov edx, 0x75727766
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, r15d
jmp 0x1400020cd
lea rcx, [0x140002700]
call sub.ntoskrnl.exe_DbgPrint
mov eax, 0xc0000001
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140002100
add rsp, 0x88
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x140004000
Capabilities:
Encode data using xor

Disassembly:
xor rcx, rcx
sub rcx, 0xffffffffffffffc6
lea rax, [entry0]
movabs rbx, 0x11ffe4eba05911d2
xor qword [rax + 0x27], rbx
sub rax, 0xfffffffffffffff8
loop 0x14000401b
pop rcx
fiadd dword [rbx + rbx + 0xc]
invalid
Function at 0x1800643d0
Capabilities:
Allocate thread local storage
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x2f0]
call fcn.180029780
mov rcx, qword [rbx + 0x1f0]
mov rax, qword [rcx]
call qword [rax + 0x18]
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.180063da0
Function at 0x18007f980
Capabilities:
Allocate thread local storage
Get thread local storage value

Disassembly:
mov word [rsp + 0x10], dx
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov rdi, rcx
mov rbx, qword [0x1801298f8]
test rbx, rbx
jne 0x18007f9ca
lea ecx, [rbx + 4]
call fcn.180034390
mov rbx, rax
test rax, rax
je 0x18007f9c1
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
jmp 0x18007f9c3
xor ebx, ebx
mov qword [0x1801298f8], rbx
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
movzx r8d, word [rdi + 0x10]
lea rdx, [rsp + 0x68]
mov rcx, rax
call fcn.18007f400
nop
mov dword [rsp + 0x28], 0
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
mov r9d, 2
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x60]
mov rcx, qword [rax]
call qword [0x18013b940]
test rax, rax
je 0x18007fa1e
mov rcx, rax
call fcn.1800a01b0
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x18007fa2e
call qword [0x18013b070]
mov eax, dword [rsp + 0x60]
jmp 0x18007fa37
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x1800832f0
Capabilities:
Allocate thread local storage
Get thread local storage value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rdi
push r12
push r13
sub rsp, 0x80
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov ebp, r9d
mov r12, rdx
mov rsi, rcx
mov dword [rcx + 8], 1
lea rax, vtable.CTPFontInstance.0
mov qword [rcx], rax
xor edi, edi
mov qword [rcx + 0x18], rdi
movsd xmm1, qword [0x1800d5988]
movsd qword [rsp + 0x20], xmm1
xorpd xmm3, xmm3
movapd xmm2, xmm3
add rcx, 0x20
call fcn.180078050
mov qword [rsi + 0x68], rdi
mov qword [rsi + 0x70], rdi
mov rdx, r8
lea rcx, [rsp + 0x50]
call fcn.180077380
mov rbx, qword [0x1801298f8]
test rbx, rbx
jne 0x18008339c
lea ecx, [rdi + 4]
call fcn.180034390
mov rbx, rax
test rax, rax
je 0x180083392
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
jmp 0x180083395
mov rbx, rdi
mov qword [0x1801298f8], rbx
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r9d, ebp
lea r8, [rsp + 0x50]
mov rdx, r12
mov rcx, rax
call fcn.180082eb0
mov word [rsi + 0x10], ax
mov rbx, qword [0x1801298f8]
test rbx, rbx
jne 0x1800833eb
lea ecx, [rbx + 4]
call fcn.180034390
mov rbx, rax
test rax, rax
je 0x1800833e1
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
jmp 0x1800833e4
mov rbx, rdi
mov qword [0x1801298f8], rbx
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
movzx ebx, word [rsi + 0x10]
lea rdx, [rsp + 0x38]
mov rcx, rax
call fcn.180060ac0
mov rcx, rax
mov r8d, ebx
lea rdx, [rsp + 0x50]
call fcn.18007c290
mov rbp, rax
mov rax, qword [rax]
test rax, rax
jne 0x180083424
mov rax, rdi
jmp 0x180083427
mov rax, qword [rax]
mov rbp, qword [rbp + 0x10]
mov rcx, rbp
shr rcx, 1
and ebp, 1
mov rdx, qword [rax + 0x10]
cmp rdx, rcx
ja 0x180083440
sub rcx, rdx
mov rax, qword [rax + 8]
mov rcx, qword [rax + rcx*8]
mov rbp, qword [rcx + rbp*8]
mov rbx, qword [rbp + 0x18]
test rbx, rbx
je 0x18008347d
mov rax, qword [0x18013aca0]
mov ecx, dword [rax]
cmp dword [0x18013baa8], ecx
je 0x18008346b
call fcn.1800a3de0
mov rcx, rbx
call qword [0x18013b068]
test eax, eax
setne al
test al, al
jne 0x180083480
mov rbx, rdi
mov rcx, qword [rsi + 0x18]
mov qword [rsi + 0x18], rbx
test rcx, rcx
je 0x180083493
call qword [0x18013b070]
lea rdx, [rbp + 0x20]
lea rcx, [rsi + 0x20]
call fcn.1800780b0
mov rax, qword [rbp + 0x50]
mov qword [rsi + 0x50], rax
test rax, rax
je 0x1800834d2
lea rcx, [rsi + 0x38]
mov rdx, rbp
sub rdx, rsi
nop word [rax + rax]
mov eax, dword [rdx + rcx]
mov dword [rcx], eax
inc rdi
add rcx, 4
cmp rdi, qword [rsi + 0x50]
jb 0x1800834c0
mov eax, dword [rbp + 0x58]
mov dword [rsi + 0x58], eax
mov eax, dword [rbp + 0x5c]
mov dword [rsi + 0x5c], eax
movzx eax, word [rbp + 0x60]
mov word [rsi + 0x60], ax
or eax, 0xffffffff
mov word [rsi + 0x12], ax
mov rax, rsi
lea r11, [rsp + 0x80]
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
Function at 0x180097dd0
Capabilities:
Allocate thread local storage

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
call fcn.1800a13a0
test eax, eax
je 0x180097dff
call fcn.180097d50
test al, al
je 0x180097dff
call fcn.1800924a0
test al, al
je 0x180097dff
mov edi, 1
jmp 0x180097e01
xor edi, edi
test rbx, rbx
je 0x180097ebd
mov rax, qword [rbx]
mov qword [0x18013ce08], rax
mov rax, qword [rbx + 8]
mov qword [0x18013bb08], rax
mov rax, qword [rbx + 0x10]
mov qword [0x18013baf0], rax
mov rax, qword [rbx + 0x18]
mov qword [0x18013bb38], rax
mov rax, qword [rbx + 0x20]
mov qword [0x18013bb10], rax
mov rax, qword [rbx + 0x28]
mov qword [0x18013bb68], rax
mov rax, qword [rbx + 0x30]
mov qword [0x18013bb28], rax
mov rax, qword [rbx + 0x38]
mov qword [0x18013bb20], rax
mov rax, qword [rbx + 0x40]
mov qword [0x180138888], rax
mov eax, dword [rbx + 0x50]
mov dword [0x18013bafc], eax
mov eax, dword [rbx + 0x54]
mov dword [0x18013bb04], eax
mov eax, dword [rbx + 0x58]
mov dword [0x18013baf8], eax
mov eax, dword [rbx + 0x5c]
mov dword [0x18013bb34], eax
mov eax, dword [rbx + 0x60]
mov dword [0x18013bb18], eax
mov eax, dword [rbx + 0x64]
mov dword [0x18013bb64], eax
mov eax, dword [rbx + 0x68]
mov dword [0x18013bb30], eax
mov eax, dword [rbx + 0x6c]
mov dword [0x18013bb1c], eax
mov eax, dword [rbx + 0x70]
mov dword [0x180138890], eax
cmp qword [0x1801298f8], 0
jne 0x180097eec
mov ecx, 4
call fcn.180034390
mov rbx, rax
test rax, rax
je 0x180097ee3
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
jmp 0x180097ee5
xor ebx, ebx
mov qword [0x1801298f8], rbx
cmp qword [0x180129920], 0
jne 0x180097f1b
mov ecx, 4
call fcn.180034390
mov rbx, rax
test rax, rax
je 0x180097f12
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
jmp 0x180097f14
xor ebx, ebx
mov qword [0x180129920], rbx
call fcn.180015f30
mov rbx, qword [rsp + 0x30]
mov eax, edi
add rsp, 0x20
pop rdi
ret
Function at 0x1800a9dbf
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x180136320]
jne 0x1800a603a
rol rcx, 0x10
test cx, 0xffff
jne 0x1800a6036
repz ret
ror rcx, 0x10
jmp 0x1800a9d18
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x18013be20]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x18013bf18]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1800a9d9d
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x18013be20]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x1800a9dbf
mov rax, qword [rsp + 0x88]
mov qword [0x18013bf18], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x18013beb8], rax
mov rax, qword [0x18013bf18]
mov qword [0x18013bd90], rax
mov rax, qword [rsp + 0x90]
mov qword [0x18013bea0], rax
mov dword [0x18013bd80], 0xc0000409
mov dword [0x18013bd84], 1
mov rax, qword [0x180136320]
mov qword [rsp + 0x68], rax
mov rax, qword [0x180136328]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x18013be18], eax
mov ecx, 1
call fcn.1800b00e0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1800f5cf0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x18013be18], 0
jne 0x1800a9e46
mov ecx, 1
call fcn.1800b00e0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x1800b0600
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x180136320]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.1800a9f94
xor ebx, ebx
cmp qword [0x18013cdd0], rbx
mov rdi, rax
jne 0x1800b0713
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x1800b07ea
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1800b07ea
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x18013cdd0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x18013cdd8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x18013cde0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x18013cdf0], rax
test rax, rax
je 0x1800b070a
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x18013cde8], rax
jmp 0x1800b071a
mov rax, qword [0x18013cde8]
jmp 0x1800b0721
mov rax, qword [0x18013cde8]
mov r11, qword [0x18013cdf0]
cmp rax, rdi
je 0x1800b0788
cmp r11, rdi
je 0x1800b0788
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x18013cdf0]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x1800b0788
test rax, rax
je 0x1800b0788
call rsi
test rax, rax
je 0x1800b0782
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x1800b0782
test byte [rsp + 0x40], 1
jne 0x1800b0788
bts ebp, 0x15
jmp 0x1800b07c8
mov rcx, qword [0x18013cdd8]
cmp rcx, rdi
je 0x1800b07c8
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1800b07c8
call rax
mov rbx, rax
test rax, rax
je 0x1800b07c8
mov rcx, qword [0x18013cde0]
cmp rcx, rdi
je 0x1800b07c8
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1800b07c8
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x18013cdd0]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1800b07ea
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x1800b07ec
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1800a6020
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000bb80
Capabilities:
Enumerate services
Query service status
Stop service

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rax, qword gs:[0x58]
mov rdx, qword [rax]
mov ecx, 0x10
mov eax, dword [rcx + rdx]
mov r8d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
test al, 1
jne 0x14000bbbb
or eax, 1
mov dword [rcx + rdx], eax
lea rcx, [rdx + r8]
call fcn.14000b340
nop
cmp byte [rdx + r8 + 1], 0
je 0x14000bc01
lea rdx, str.unsigned_long___cdecl_MinifilterStopCommand::Execute_int_wchar_t____
lea rdi, [0x1402b2c40]
mov rcx, rdi
call fcn.1400127a0
mov rax, qword [0x1402b2c40]
movsxd rcx, dword [rax + 4]
add rcx, rdi
mov dl, 0xa
call fcn.140014960
movzx edx, al
mov rcx, rdi
call fcn.140014780
mov rcx, rdi
call fcn.1400118e0
mov rcx, qword [rbx + 8]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140019e40
Function at 0x1400197a0
Capabilities:
Create service
Modify service

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
mov rax, qword [0x1402a7d08]
xor rax, rsp
mov qword [rbp + 0x98], rax
mov r12, r9
mov r14, r8
mov rdi, rdx
mov rsi, rcx
mov r15, qword [rbp + 0x100]
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.DLL_OpenSCManagerW]
mov qword [rsi], rax
test rax, rax
jne 0x140019848
lea edx, [rax + 3]
lea r8d, [rax + 1]
lea rcx, [rsp + 0x70]
call fcn.140005bf0
xor ebx, ebx
mov qword [rbp + 0x78], rbx
mov qword [rbp + 0x80], 7
mov word [rbp + 0x68], bx
lea rdx, str.Cannot_open_service_manager._Please_run_with_administrative_rights.
lea rcx, [rbp - 0x80]
call fcn.1400085f0
lea rcx, [rbp - 0x80]
call fcn.14000c470
nop
lea rcx, [rsp + 0x70]
call fcn.14000b440
lea eax, [rbx + 0x6e]
jmp 0x1400199ee
xor ebx, ebx
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], r15
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 0x10
mov r9d, 0xf01ff
mov r8, r14
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.ADVAPI32.DLL_CreateServiceW]
mov qword [rsi + 8], rax
test rax, rax
jne 0x140019954
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
lea edx, [rbx + 3]
lea r8d, [rbx + 1]
lea rcx, [rsp + 0x70]
cmp eax, 0x431
jne 0x140019903
call fcn.140005bf0
mov qword [rbp + 0x78], rbx
mov qword [rbp + 0x80], 7
mov word [rbp + 0x68], bx
lea rdx, str.Cannot_open_service._Please_run_with_administrative_rights._ERROR_SERVICE_EXISTS.
lea rcx, [rbp - 0x80]
call fcn.1400085f0
lea rcx, [rbp - 0x80]
call fcn.14000c470
nop
lea rcx, [rsp + 0x70]
call fcn.14000b440
mov eax, 0x65f
jmp 0x1400199ee
call fcn.140005bf0
mov qword [rbp + 0x78], rbx
mov qword [rbp + 0x80], 7
mov word [rbp + 0x68], bx
lea rdx, str.Cannot_open_service._Please_run_with_administrative_rights._Error
lea rcx, [rbp - 0x80]
call fcn.1400085f0
mov edx, edi
lea rcx, [rbp - 0x80]
call fcn.14001c600
lea rcx, [rbp - 0x80]
call fcn.14000c470
nop
lea rcx, [rsp + 0x70]
call fcn.14000b440
mov eax, 0x65f
jmp 0x1400199ee
mov qword [rbp + 0x90], r12
lea r8, [rbp + 0x90]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.DLL_ChangeServiceConfig2W]
mov rax, qword gs:[0x58]
mov rdx, qword [rax]
mov ecx, 0x10
mov eax, dword [rcx + rdx]
mov r8d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
test al, 1
jne 0x14001999e
or eax, 1
mov dword [rcx + rdx], eax
lea rcx, [rdx + r8]
call fcn.14000b340
nop
cmp byte [rdx + r8 + 1], 0
je 0x1400199e4
lea rdx, str.Service_installed_successfully
lea rbx, [0x1402b2c40]
mov rcx, rbx
call fcn.1400127a0
mov rax, qword [0x1402b2c40]
movsxd rcx, dword [rax + 4]
add rcx, rbx
mov dl, 0xa
call fcn.140014960
movzx edx, al
mov rcx, rbx
call fcn.140014780
mov rcx, rbx
call fcn.1400118e0
mov rdx, rdi
call fcn.140019a10
xor eax, eax
mov rcx, qword [rbp + 0x98]
xor rcx, rsp
call fcn.140140100
add rsp, 0x1a0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140019a10
Capabilities:
Modify service

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x1402a7d08]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rbx, rdx
mov qword [r11 - 0x30], 1
xor ecx, ecx
mov qword [r11 - 0x28], 1
mov qword [r11 - 0x20], rcx
mov dword [rsp + 0x20], 0xffffffff
mov qword [r11 - 0x68], rcx
mov qword [r11 - 0x70], rcx
mov dword [rsp + 0x38], 3
lea rax, [r11 - 0x30]
mov qword [r11 - 0x58], rax
mov qword [r11 - 0x40], rcx
mov qword [r11 - 0x38], 7
mov word [rsp + 0x48], cx
xor edx, edx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.DLL_OpenSCManagerW]
mov rsi, rax
test rax, rax
je 0x140019be2
mov r8d, 0xf003f
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.ADVAPI32.DLL_OpenServiceW]
mov rdi, rax
test rax, rax
je 0x140019b5e
lea r8, [rsp + 0x20]
mov edx, 2
mov rcx, rax
call qword [sym.imp.ADVAPI32.DLL_ChangeServiceConfig2W]
test eax, eax
jg 0x140019b47
mov rcx, qword gs:[0x58]
mov rdx, qword [rcx]
mov eax, 0x10
mov r9d, eax
mov eax, dword [rax + rdx]
mov ecx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov r8d, ecx
test al, 1
jne 0x140019b01
or eax, 1
mov dword [r9 + rdx], eax
add rcx, rdx
call fcn.14000b340
nop
cmp byte [rdx + r8 + 1], 0
je 0x140019b47
lea rdx, str.Cannot_set_recovery_bahaviour_
lea rbx, [0x1402b2c40]
mov rcx, rbx
call fcn.1400127a0
mov rax, qword [0x1402b2c40]
movsxd rcx, dword [rax + 4]
add rcx, rbx
mov dl, 0xa
call fcn.140014960
movzx edx, al
mov rcx, rbx
call fcn.140014780
mov rcx, rbx
call fcn.1400118e0
mov rcx, rdi
call qword [sym.imp.ADVAPI32.DLL_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.DLL_CloseServiceHandle]
jmp 0x140019c5c
mov rax, qword gs:[0x58]
mov rdx, qword [rax]
mov eax, 0x10
mov r9d, eax
mov eax, dword [rax + rdx]
mov ecx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov r8d, ecx
test al, 1
jne 0x140019b91
or eax, 1
mov dword [r9 + rdx], eax
add rcx, rdx
call fcn.14000b340
nop
cmp byte [rdx + r8 + 1], 0
je 0x140019bd7
lea rdx, str.Cannot_open_service_
lea rbx, [0x1402b2c40]
mov rcx, rbx
call fcn.1400127a0
mov rax, qword [0x1402b2c40]
movsxd rcx, dword [rax + 4]
add rcx, rbx
mov dl, 0xa
call fcn.140014960
movzx edx, al
mov rcx, rbx
call fcn.140014780
mov rcx, rbx
call fcn.1400118e0
mov rcx, rsi
call qword [sym.imp.ADVAPI32.DLL_CloseServiceHandle]
jmp 0x140019c5c
mov rax, qword gs:[0x58]
mov rdx, qword [rax]
mov eax, 0x10
mov r9d, eax
mov eax, dword [rax + rdx]
mov ecx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov r8d, ecx
test al, 1
jne 0x140019c15
or eax, 1
mov dword [r9 + rdx], eax
add rcx, rdx
call fcn.14000b340
nop
cmp byte [rdx + r8 + 1], 0
je 0x140019c5c
lea rdx, str.Cannot_connect_to_the_service_control_manager_
lea rbx, [0x1402b2c40]
mov rcx, rbx
call fcn.1400127a0
mov rax, qword [0x1402b2c40]
movsxd rcx, dword [rax + 4]
add rcx, rbx
mov dl, 0xa
call fcn.140014960
movzx edx, al
mov rcx, rbx
call fcn.140014780
mov rcx, rbx
call fcn.1400118e0
nop
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140140100
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret