joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003580
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14001d800]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400035a0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400035a8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400035a0
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x1400035e8
sub edx, 1
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400035df
test rcx, rcx
je 0x1400035a0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x1400035d0
xor eax, eax
ret

Function at 0x1400035f0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14001d800]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140003610
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x140003618
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

Function at 0x140003630
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rax, qword [0x14001d800]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140003650
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x140003658
mov eax, r8d
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140003650
sub rcx, rax
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x140003650
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140003694
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400036a8
add rax, 0x28
cmp r9, rax
jne 0x140003680
xor r8d, r8d
mov eax, r8d
ret
mov r8d, dword [rax + 0x24]
not r8d
shr r8d, 0x1f
mov eax, r8d
ret

Function at 0x1400036c0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x14001d800]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1400036e2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1400036f0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400036e2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1400036e2
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x1400036e2
sub r8d, 1
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop dword [rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x14000373d
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140003750
add rdx, 0x28
cmp r10, rdx
jne 0x140003728
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x14000375f
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x14000376f
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140003746
test ecx, ecx
jg 0x140003758
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140004de0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x14001d880]
mov rax, qword [rsi]
test rax, rax
je 0x140004e70
cmp qword [rax + 0x30], 0
jne 0x140004e90
lea rbx, [0x14001b2a8]
mov qword [rax + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [rsi]
test rax, rax
je 0x140004e40
cmp qword [rax + 0x30], 0
jne 0x140004e60
lea rdx, [0x14001b2a8]
mov qword [rax + 0x30], rdx
mov rax, rdx
cmp dword [rax], 0xffffffff
je sym.pthread_tls_init.cold
add rsp, 0x28
pop rbx
pop rsi
ret
call sym.__shmem3_winpthreads_tdm_init_local_region
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x140004e22
test rax, rax
jne 0x140004e60
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rax, qword [rax + 0x30]
jmp 0x140004e30
call sym.__shmem3_winpthreads_tdm_init_local_region
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x140004e00
test rax, rax
jne 0x140004e90
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rbx, qword [rax + 0x30]
jmp 0x140004e0b

Function at 0x140004ea0
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x20], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x28], rdx
movabs rdx, 0x20726f6620737965
mov qword [rsp + 0x30], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
mov word [rsp + 0x88], ax
mov byte [rsp + 0x8a], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x140004fb2
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x140004f8a
add rax, 1
cmp rax, 0x6b
je 0x140004fa7
cmp byte [rcx + rax], 0
movsxd rdx, eax
jne 0x140004f80
cmp edx, 0x6a
je 0x140004fa7
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sym.abort
mov eax, 0x28
mov edx, 0x27
lea rcx, [rsp + 0x20]
jmp 0x140004f9b
Function at 0x140008a60
Capabilities:
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x14001d880]
mov rax, qword [rbx]
mov r12, rcx
mov esi, edx
test rax, rax
je 0x140008b30
cmp qword [rax + 0x60], 0
jne 0x140008b50
lea rcx, [0x14001b298]
mov qword [rax + 0x60], rcx
call sym.pthread_mutex_lock
mov rcx, r12
call sym.__pthread_get_pointer
test rax, rax
je 0x140008b60
cmp qword [rax + 0x1d8], r12
jne 0x140008b60
test byte [rax + 0x40], 0xc
jne 0x140008b60
mov edx, dword [rax + 0xbc]
test edx, edx
jne 0x140008b60
mov rax, qword [rax + 0x28]
sub rax, 1
cmp rax, 0xfffffffffffffffd
ja 0x140008b60
mov rax, qword [rbx]
test rax, rax
je 0x140008bc0
cmp qword [rax + 0x60], 0
jne 0x140008be0
lea rcx, [0x14001b298]
mov qword [rax + 0x60], rcx
call sym.pthread_mutex_unlock
test esi, esi
je 0x140008bf0
lea edx, [rsi - 2]
cmp edx, 0x15
ja 0x140008bf8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
jmp sym.pthread_cancel
call sym.__shmem3_winpthreads_tdm_init_local_region
cmp qword [rax + 0x60], 0
mov rax, qword [rbx]
je 0x140008a8b
test rax, rax
jne 0x140008b50
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rcx, qword [rax + 0x60]
jmp 0x140008a96
mov rax, qword [rbx]
test rax, rax
je 0x140008b90
cmp qword [rax + 0x60], 0
jne 0x140008bb0
lea rcx, [0x14001b298]
mov qword [rax + 0x60], rcx
call sym.pthread_mutex_unlock
mov eax, 3
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
call sym.__shmem3_winpthreads_tdm_init_local_region
mov r8, rax
mov rax, qword [rbx]
cmp qword [r8 + 0x60], 0
je 0x140008b6f
test rax, rax
jne 0x140008bb0
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rcx, qword [rax + 0x60]
jmp 0x140008b7a
call sym.__shmem3_winpthreads_tdm_init_local_region
cmp qword [rax + 0x60], 0
mov rax, qword [rbx]
je 0x140008afa
test rax, rax
jne 0x140008be0
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rcx, qword [rax + 0x60]
jmp 0x140008b05
xor eax, eax
jmp 0x140008b84
mov eax, 0x16
jmp 0x140008b84
Function at 0x140008e70
Capabilities:
Create thread
Resume thread

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rdi, rcx
mov rsi, rdx
mov rbx, r8
mov rbp, r9
call sym.pop_pthread_mem
mov r12, rax
test rax, rax
je 0x1400090d9
test rdi, rdi
je 0x140008eaa
mov rax, qword [rax + 0x1d8]
mov qword [rdi], rax
mov r13, qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [r12 + 8], rbp
mov dword [r12 + 0x44], 1
mov rbp, qword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [r12 + 0xbc], 0
mov r14, r13
mov qword [r12 + 0x28], 0xffffffffffffffff
mov qword [r12 + 0x10], rbx
xor ebx, ebx
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call rbp
mov qword [r12 + 0x30], rax
test rax, rax
jne 0x140008f17
add ebx, 1
cmp ebx, 1
je 0x140009020
mov ecx, 0x14
call r14
cmp ebx, 5
jne 0x140008ee5
mov qword [r12 + 0x38], 0xffffffffffffffff
lea r14, [r12 + 0x68]
mov rcx, r14
call sym.pthread_spin_destroy
cmp eax, 1
je 0x14000911f
cmp qword [r12 + 0x30], 0
mov qword [r12 + 0x68], 0xffffffffffffffff
mov dword [r12], 0xbab1f00d
mov dword [r12 + 0xc0], 0
mov dword [r12 + 0xb8], 0
je 0x1400090c2
xor edx, edx
test rsi, rsi
je 0x140008f8f
mov eax, dword [rsi]
mov edx, dword [rsi + 0x10]
mov dword [r12 + 0x44], eax
test al, 8
jne 0x1400090f0
mov eax, dword [rsi + 0x18]
mov dword [r12 + 0xc0], eax
lea r8, [sym.pthread_create_wrapper]
mov r9, r12
xor ecx, ecx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
call qword [sym.imp.msvcrt.dll__beginthreadex]
mov r13, rax
lea rax, [rax - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140009080
mov eax, dword [r12 + 0xc0]
mov edx, 0xfffffff1
cmp eax, 0xfffffff2
jge 0x140009050
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rcx, qword [r12 + 0x30]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
test byte [r12 + 0x44], 4
jne 0x140009030
mov qword [r12 + 0x28], r13
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
xor ecx, ecx
call r13
jmp 0x140008ee5
mov qword [r12 + 0x28], 0
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140008fff
mov edx, 0xfffffffe
cmp eax, 0xffffffff
jl 0x140008fd5
mov edx, 0xf
cmp eax, 0xe
jg 0x140008fd5
cmp eax, 2
mov edx, 2
cmovle edx, eax
jmp 0x140008fd5
mov rcx, qword [r12 + 0x30]
test rcx, rcx
je 0x140009090
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [r12 + 0x38]
call sym.pthread_mutex_destroy
mov rcx, r14
call sym.pthread_spin_destroy
cmp eax, 1
je 0x14000911f
mov qword [r12 + 0x68], 0xffffffffffffffff
mov qword [r12 + 0x30], 0
mov qword [r12 + 0x28], 0
test rdi, rdi
je 0x1400090ce
mov qword [rdi], 0
cmp qword [r12 + 0x1d0], 0
je 0x140009110
mov eax, 0xb
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov dword [rsp + 0x3c], edx
call sym.__pthread_self_lite
mov edx, dword [rsp + 0x3c]
mov eax, dword [rax + 0xc0]
mov dword [r12 + 0xc0], eax
jmp 0x140008f8f
mov rcx, r12
call sym.push_pthread_mem.part.0
mov eax, 0xb
jmp 0x1400090de
call sym.replace_spin_keys.part.0
nop
nop word cs:[rax + rax]
Function at 0x140009b60
Capabilities:
Print debug messages

Disassembly:
push r12
push rbx
sub rsp, 0x58
mov r12, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140009b80
add rsp, 0x58
pop rbx
pop r12
ret
lea rdx, [rsp + 0x48]
mov r9d, 0x400
mov r8d, eax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], rdx
mov ecx, 0x1100
xor edx, edx
mov dword [rsp + 0x28], 0
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
jne 0x140009bc8
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x140009b74
int3
mov rcx, qword [rsp + 0x48]
mov rbx, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rbx
mov rcx, r12
call rbx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140009bb5

Function at 0x140009bf0
Capabilities:
Check mutex on windows

Disassembly:
push r12
sub rsp, 0x20
xor edx, edx
xor ecx, ecx
lea r8, [0x1400212c0]
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, 0xffffffff
mov r12, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140009ca8
mov rdx, qword [0x140021200]
lea rcx, [0x140021200]
mov rax, qword [rdx + 8]
test rax, rax
je 0x140009c78
cmp rdx, rcx
jne 0x140009c5a
mov qword [rdx], rax
cmp rax, rcx
je 0x140009c5f
nop dword [rax]
test rax, rax
je 0x140009c8a
mov rdx, qword [rdx]
mov qword [rax], rdx
mov rdx, rax
mov rax, qword [rdx + 8]
cmp rax, rcx
jne 0x140009c48
mov rax, qword [rcx + 8]
mov qword [rdx + 8], rax
test rax, rax
je 0x140009c8a
mov rdx, rax
jmp 0x140009c56
lea rcx, [0x140021300]
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x140009cc6
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x20
pop r12
ret
lea rcx, str.failed_to_to_lock_cleanup_mutex_n
call sym.__shmem_get_error
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x20
pop r12
ret
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_DeleteAtom]
jmp 0x140009c8a
Function at 0x140009eec
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140009f36
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140009f36
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140009f36
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140009f36
cmp dword [rcx + 0x84], 0xe
jbe 0x140009f36
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140009f38
xor al, al
add rsp, 0x28
ret
Function at 0x140001a20
Capabilities:
Start service

Disassembly:
push rbp
sub rsp, 0xc0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x38], 0xfffffffffffffffe
mov qword [rbp - 0x40], rcx
mov qword [rbp - 0x18], rcx
mov qword [rbp + 0x28], 0
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x18], 0
mov qword [rbp + 0x20], 0
xor eax, eax
mov edx, eax
mov r8d, 2
mov rcx, rdx
call sub.advapi32.dll_OpenSCManagerA
mov rcx, rax
mov qword [rbp - 0x38], rcx
mov qword [rbp - 0x10], rcx
call fcn.140008120
test al, 1
jne 0x140001aae
call fcn.140009700
mov rcx, rax
call fcn.140009810
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rdx
lea rcx, [rbp - 0x28]
call fcn.140006630
mov qword [rbp - 0x50], rdx
mov qword [rbp - 0x48], rax
jmp 0x140001ab7
mov byte [rbp - 0x29], 0
jmp 0x140001b6f
mov rdx, qword [rbp - 0x50]
mov rcx, qword [rbp - 0x48]
call fcn.14000a750
mov qword [rbp - 0x58], rax
jmp 0x140001aca
mov rdx, qword [rbp - 0x58]
mov rcx, qword [rbp - 0x38]
mov r8d, 0xf01ff
call sub.advapi32.dll_OpenServiceA
mov qword [rbp - 0x60], rax
mov qword [rbp - 8], rax
lea rcx, [rbp - 0x28]
call fcn.14000bb60
mov rcx, qword [rbp - 0x60]
call fcn.140008120
test al, 1
jne 0x140001b25
mov rcx, qword [rbp - 0x60]
mov qword [rbp + 8], 0
mov qword [rbp + 0x10], 0
xor edx, edx
xor eax, eax
mov r8d, eax
call sub.advapi32.dll_StartServiceA
mov dword [rbp + 4], eax
cmp eax, 0
je 0x140001b41
jmp 0x140001b59
mov rcx, qword [rbp - 0x38]
call sub.advapi32.dll_CloseServiceHandle
mov rax, qword [rbp - 0x40]
mov rcx, qword [rax + 8]
call sub.advapi32.dll_CloseServiceHandle
mov byte [rbp - 0x29], 0
jmp 0x140001b6f
mov rcx, qword [rbp - 0x38]
call sub.advapi32.dll_CloseServiceHandle
mov rcx, qword [rbp - 0x60]
call sub.advapi32.dll_CloseServiceHandle
mov byte [rbp - 0x29], 0
jmp 0x140001b6f
mov rcx, qword [rbp - 0x38]
call sub.advapi32.dll_CloseServiceHandle
mov rcx, qword [rbp - 0x60]
call sub.advapi32.dll_CloseServiceHandle
mov byte [rbp - 0x29], 1
mov al, byte [rbp - 0x29]
and al, 1
movzx eax, al
add rsp, 0xc0
pop rbp
ret
Function at 0x140001bb0
Capabilities:
Delete service
Stop service

Disassembly:
push rbp
sub rsp, 0x160
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xd8], 0xfffffffffffffffe
mov qword [rbp + 0x98], rcx
mov qword [rbp + 0xc8], 0
mov qword [rbp + 0xd0], 0
mov qword [rbp + 0xb8], 0
mov qword [rbp + 0xc0], 0
xor eax, eax
mov edx, eax
mov r8d, 2
mov rcx, rdx
call sub.advapi32.dll_OpenSCManagerA
mov rcx, rax
mov qword [rbp - 0x38], rcx
mov qword [rbp + 0xa0], rcx
call fcn.140008120
test al, 1
jne 0x140001c4f
call fcn.140009700
mov rcx, rax
call fcn.140009810
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rdx
lea rcx, [rbp - 0x28]
call fcn.140006630
mov qword [rbp - 0x48], rdx
mov qword [rbp - 0x40], rax
jmp 0x140001c58
mov byte [rbp - 0x29], 0
jmp 0x140001d75
mov rdx, qword [rbp - 0x48]
mov rcx, qword [rbp - 0x40]
call fcn.14000a750
mov qword [rbp - 0x50], rax
jmp 0x140001c6b
mov rdx, qword [rbp - 0x50]
mov rcx, qword [rbp - 0x38]
mov r8d, 0xf01ff
call sub.advapi32.dll_OpenServiceA
mov qword [rbp - 0x58], rax
mov qword [rbp + 0xa8], rax
lea rcx, [rbp - 0x28]
call fcn.14000bb60
mov rcx, qword [rbp - 0x58]
call fcn.140008120
test al, 1
jne 0x140001cef
mov rcx, qword [rbp - 0x58]
mov dword [rbp - 0x14], 0x10
mov dword [rbp - 0x10], 1
mov dword [rbp - 0xc], 0
mov dword [rbp - 8], 0
mov dword [rbp - 4], 0
mov dword [rbp], 0
mov dword [rbp + 4], 0
mov edx, 1
lea r8, [rbp - 0x14]
call sub.advapi32.dll_ControlService
mov dword [rbp + 0xb0], eax
cmp eax, 0
je 0x140001cfe
jmp 0x140001d17
mov rcx, qword [rbp - 0x38]
call sub.advapi32.dll_CloseServiceHandle
mov byte [rbp - 0x29], 0
jmp 0x140001d75
lea rcx, [rbp + 8]
lea rdx, str._X__Failed_to_immediately_stop_the_service._n
call fcn.14000f5b0
lea rcx, [rbp + 8]
call fcn.14007e960
mov rcx, qword [rbp - 0x58]
call sub.advapi32.dll_DeleteService
mov dword [rbp + 0xb4], eax
cmp eax, 0
jne 0x140001d46
lea rcx, [rbp + 0x38]
lea rdx, str._X__Failed_to_delete_the_service._n
call fcn.14000f5b0
lea rcx, [rbp + 0x38]
call fcn.14007e960
jmp 0x140001d5f
lea rcx, [rbp + 0x68]
lea rdx, str.____Service_marked_for_deletion._n
call fcn.14000f5b0
lea rcx, [rbp + 0x68]
call fcn.14007e960
mov rcx, qword [rbp - 0x58]
call sub.advapi32.dll_CloseServiceHandle
mov rcx, qword [rbp - 0x38]
call sub.advapi32.dll_CloseServiceHandle
mov byte [rbp - 0x29], 1
mov al, byte [rbp - 0x29]
and al, 1
movzx eax, al
add rsp, 0x160
pop rbp
ret
Function at 0x1400098e0
Capabilities:
Get common file path

Disassembly:
push rbp
sub rsp, 0xc0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x38], 0xfffffffffffffffe
mov qword [rbp - 0x18], rcx
mov qword [rbp - 0x10], rcx
xor eax, eax
mov dx, ax
lea rcx, [rbp + 8]
mov qword [rbp - 8], rcx
mov r8d, 0x104
call fcn.140007f80
mov rcx, qword [rbp - 8]
call fcn.140007ad0
mov qword [rbp], rax
jmp 0x140009927
mov rdx, qword [rbp]
mov ecx, 0x104
call sub.kernel32.dll_GetCurrentDirectoryW
lea rcx, [rbp + 8]
call fcn.140008020
mov qword [rbp - 0x28], rdx
mov qword [rbp - 0x20], rax
jmp 0x140009948
mov rdx, qword [rbp - 0x28]
mov rcx, qword [rbp - 0x20]
call fcn.140005180
mov qword [rbp - 0x38], rdx
mov qword [rbp - 0x30], rax
jmp 0x14000995f
mov rax, qword [rbp - 0x38]
mov rcx, qword [rbp - 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rax
lea rcx, [rbp + 0x20]
call fcn.140004ec0
mov qword [rbp - 0x48], rdx
mov qword [rbp - 0x40], rax
jmp 0x140009982
mov rdx, qword [rbp - 0x48]
mov rcx, qword [rbp - 0x40]
lea r9, [0x140098340]
lea r8, [rbp + 8]
call fcn.140005970
mov qword [rbp - 0x50], rax
jmp 0x1400099a0
mov rdx, qword [rbp - 0x50]
mov qword [rbp + 0x30], rdx
lea rcx, [rbp + 8]
call fcn.140007f10
jmp 0x1400099b3
lea rcx, [rbp + 8]
call fcn.140008020
mov qword [rbp - 0x60], rdx
mov qword [rbp - 0x58], rax
jmp 0x1400099c6
mov r8, qword [rbp - 0x60]
mov rdx, qword [rbp - 0x58]
mov rcx, qword [rbp - 0x18]
call fcn.140009260
jmp 0x1400099d9
lea rcx, [rbp + 8]
call fcn.14000bbc0
mov rax, qword [rbp - 0x10]
add rsp, 0xc0
pop rbp
ret
Function at 0x140009a20
Capabilities:
Enumerate processes

Disassembly:
push rbp
sub rsp, 0x5d0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x548], 0xfffffffffffffffe
mov qword [rbp - 0x38], rdx
mov qword [rbp - 0x30], rcx
mov qword [rbp + 0x160], rcx
mov qword [rbp + 0x168], rdx
mov ecx, 2
xor edx, edx
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov qword [rbp - 0x28], rax
mov qword [rbp + 0x170], rax
mov rcx, 0xffffffffffffffff
cmp rax, rcx
je 0x140009b40
mov byte [rbp + 0x17f], 0
mov qword [rbp + 0x180], 1
mov byte [rbp + 0x18f], 0
mov qword [rbp + 0x190], 1
lea rax, [rbp + 0x2c8]
mov qword [rbp + 0x528], rax
lea rax, [rbp + 0x2c8]
mov qword [rbp + 0x530], rax
lea rcx, [rbp + 0x2c8]
mov edx, 8
call fcn.1400012a0
lea rcx, [rbp + 0x2c8]
xor edx, edx
mov r8d, 0x130
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp + 0x198]
lea rdx, [rbp + 0x2c8]
mov r8d, 0x130
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rbp + 0x3f8]
lea rdx, [rbp + 0x198]
mov r8d, 0x130
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rbp - 0x18]
lea rdx, [rbp + 0x3f8]
mov r8d, 0x130
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rbp - 0x28]
mov dword [rbp - 0x18], 0x130
lea rdx, [rbp - 0x18]
call sub.kernel32.dll_Process32First
cmp eax, 1
je 0x140009b4c
jmp 0x140009b95
mov dword [rbp - 0x20], 0
jmp 0x140009c77
lea rcx, [rbp + 0x14]
mov qword [rbp + 0x538], rcx
mov qword [rbp + 0x540], 0x104
call fcn.14000a770
mov qword [rbp - 0x58], rax
mov r8, rdx
mov rdx, qword [rbp - 0x58]
lea rcx, [rbp + 0x130]
mov qword [rbp - 0x50], rcx
call fcn.14008e300
mov rcx, qword [rbp - 0x50]
call fcn.140005100
mov qword [rbp - 0x48], rdx
mov qword [rbp - 0x40], rax
jmp 0x140009baa
mov rcx, qword [rbp - 0x28]
call sub.kernel32.dll_CloseHandle
mov dword [rbp - 0x20], 0
jmp 0x140009c77
mov r8, qword [rbp - 0x48]
mov rdx, qword [rbp - 0x40]
lea rcx, [rbp + 0x118]
call fcn.14008e4d0
jmp 0x140009bc0
lea rcx, [rbp + 0x130]
call fcn.14000bc40
jmp 0x140009bce
mov r8, qword [rbp - 0x38]
mov rdx, qword [rbp - 0x30]
lea rcx, [rbp + 0x148]
call fcn.14008e4d0
jmp 0x140009be4
lea rcx, [rbp + 0x118]
lea rdx, [rbp + 0x148]
call fcn.140009590
mov byte [rbp - 0x59], al
jmp 0x140009bfc
mov al, byte [rbp - 0x59]
test al, 1
jne 0x140009c13
jmp 0x140009c05
lea rcx, [rbp + 0x148]
call fcn.140013dd0
jmp 0x140009c21
lea rcx, [rbp + 0x148]
call fcn.140013dd0
jmp 0x140009c55
mov rcx, qword [rbp - 0x28]
lea rdx, [rbp - 0x18]
call sub.kernel32.dll_Process32Next
cmp eax, 1
jne 0x140009c44
lea rcx, [rbp + 0x118]
call fcn.140013dd0
jmp 0x140009b4c
lea rcx, [rbp + 0x118]
call fcn.140013dd0
jmp 0x140009b95
mov rcx, qword [rbp - 0x28]
call sub.kernel32.dll_CloseHandle
mov eax, dword [rbp - 0x10]
mov dword [rbp - 0x1c], eax
mov dword [rbp - 0x20], 1
lea rcx, [rbp + 0x118]
call fcn.140013dd0
mov eax, dword [rbp - 0x20]
mov edx, dword [rbp - 0x1c]
add rsp, 0x5d0
pop rbp
ret
Function at 0x14007c210
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3d0], rcx
mov qword [rbp + 0x3d8], 0
mov qword [rbp + 0x3e0], 2
mov qword [rbp + 0x3e8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3c8], rax
xor esi, esi
xor edi, edi
xor ebx, ebx
cmp r8, 0x201
jae 0x14007c2b0
jmp 0x14007c29f
jae 0x14007c36f
cmp r8, 0x201
jae 0x14007c2b0
mov r14d, 0x200
lea r15, [rbp - 0x58]
mov r12, r8
jmp 0x14007c307
sub r8, rbx
sub rdi, rbx
cmp r8, rdi
jbe 0x14007c2df
lea rcx, [rbp + 0x3d8]
mov rdx, rbx
call fcn.140094dd0
mov rsi, qword [rbp + 0x3d8]
mov rax, qword [rbp + 0x3e0]
mov qword [rbp + 0x3c8], rax
mov eax, 0xffffffff
cmp rsi, rax
mov ebx, 0xffffffff
cmovb rbx, rsi
mov qword [rbp + 0x3e8], rbx
mov rdi, rsi
mov r14, rbx
mov r15, qword [rbp + 0x3c8]
mov r12, rbx
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov ecx, r12d
mov rdx, r15
call qword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov r13d, eax
test eax, eax
jne 0x14007c330
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x14007c3db
mov r8d, r13d
cmp r12, r8
jne 0x14007c290
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14007c40f
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x14007c29f
jmp 0x14007c2b0
cmp r14, r8
jb 0x14007c429
lea rcx, [rbp + 0x3a8]
mov rdx, r15
call fcn.14007fa90
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3d0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
je 0x14007c3c4
mov rcx, qword [rbp + 0x3e0]
add rdx, rdx
mov r8d, 2
call fcn.14000dc70
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3d0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
jne 0x14007c3af
jmp 0x14007c3c4
lea rcx, str.internal_error:_entered_unreachable_code_rustc_eeb90cda1969383f56a2637cbd3037bdf598841clibrary_alloc_src_vecmod.rs
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.1400960e0
jmp 0x14007c43e
lea rax, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.140096550
ud2