joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140296488
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1402964c2
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1402964c7
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140296510
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x140296510
dec r8
sub rdx, 1
jne 0x1402964f6
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x1402971d4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.1402966ec
mov ebx, eax
test eax, eax
jne 0x140297204
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x140297267
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14029725e
test al, 0x10
je 0x14029725e
bt eax, 0xa
jae 0x140297257
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.140297284
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x140297253
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x140297253
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
test edi, edi
jne 0x14029725e
and dword [rsp + 0x3c], 0
jmp 0x140297263
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1402987b4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1402987fe
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1402987fe
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1402987fe
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1402987fe
cmp dword [rcx + 0x84], 0xe
jbe 0x1402987fe
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140298800
xor al, al
add rsp, 0x28
ret
Function at 0x1400011c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x1400011f3
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140001237
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rbx
and edi, 0xf
jbe 0x140001232
cmp rbx, r11
jae 0x140001237
add edi, 0xffffffff
movzx eax, word [rbx]
lea rbx, [rbx + rax*2 + 2]
jne 0x140001220
cmp rbx, r11
jb 0x14000123b
xor eax, eax
jmp 0x140001247
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140015280
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x240
mov rax, qword [0x14028b7c8]
xor rax, rsp
mov qword [rsp + 0x230], rax
xor r12d, r12d
or r13d, 0xffffffff
lea rax, vtable.CKMDriver.0
mov qword [rcx], rax
or rax, 0xffffffffffffffff
mov rbx, rcx
lea ebp, [rax + 0x55]
mov byte [rcx + 0x41c], r12b
mov byte [rcx + 0x61c], r12b
mov byte [rcx + 0x21c], r12b
mov byte [rcx + 0xa1c], r12b
mov byte [rcx + 0x81c], r12b
mov byte [rcx + 8], r12b
mov byte [rcx + 0xb60], r12b
mov qword [rcx + 0x208], rax
mov qword [rcx + 0xb40], r12
mov qword [rcx + 0x210], r12
mov dword [rcx + 0x218], r12d
mov dword [rcx + 0xb28], r12d
mov dword [rcx + 0xb2c], r12d
mov dword [rcx + 0xb30], r12d
mov dword [rcx + 0xb34], r12d
mov dword [rcx + 0xd64], r12d
mov dword [rcx + 0xb1c], eax
mov dword [rcx + 0xb20], eax
mov dword [rcx + 0xb24], eax
mov dword [rcx + 0xb38], eax
mov dword [rcx + 0xd60], r13d
mov dword [rcx + 0xd68], r13d
mov dword [rcx + 0xd6c], r13d
mov dword [rcx + 0xd70], r13d
mov dword [rcx + 0xd74], r13d
mov rcx, rbp
call fcn.14013f12c
mov rdi, rax
cmp rax, r12
je 0x14001538f
mov r8, rbp
xor edx, edx
mov rcx, rax
call fcn.140158a90
jmp 0x140015392
mov rdi, r12
mov qword [rbx + 0xb58], rdi
mov byte [rdi], r12b
mov rax, qword [rbx + 0xb58]
mov dword [rax + 0x40], r13d
mov rax, qword [rbx + 0xb58]
lea rcx, [rsp + 0x30]
mov dword [rax + 0x44], r13d
mov rax, qword [rbx + 0xb58]
mov edx, 0x200
mov dword [rax + 0x48], r13d
mov rax, qword [rbx + 0xb58]
mov byte [rsp + 0x30], r12b
mov dword [rax + 0x4c], r13d
mov rax, qword [rbx + 0xb58]
mov dword [rax + 0x50], r13d
mov qword [rbx + 0xb48], r12
mov qword [rbx + 0xb50], r12
call qword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
mov edi, eax
cmp eax, r12d
jbe 0x140015485
lea r8, [0x1401cddf0]
lea rcx, [rsp + 0x30]
mov edx, 0x200
call fcn.14004453c
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, r13d
je 0x14001542b
test al, 0x10
jne 0x14001542e
mov edi, r12d
cmp edi, r12d
jbe 0x140015485
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea r9, [rsp + 0x30]
lea r8, str._scpuz_driver__d.log
lea rcx, [rbx + 0xb60]
mov edx, 0x200
mov dword [rsp + 0x20], eax
call fcn.140044464
lea r8, [0x1401cddd0]
lea rdx, [rbx + 0xb60]
lea rcx, [rbx + 0xb48]
call fcn.1401584a4
mov rcx, qword [rbx + 0xb48]
cmp rcx, r12
je 0x140015485
call fcn.1401578f4
mov rax, rbx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140156fd0
lea r11, [rsp + 0x240]
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 0x1400154f8
Capabilities:
Delete file

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x30
mov rbx, rcx
lea rcx, [rax - 0x18]
mov edi, r9d
mov esi, r8d
mov ebp, edx
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
mov rcx, qword [rbx + 0xb40]
mov edx, 0x2710
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14001554b
lea rdx, str._vCloseDriver__WaitForSingleObject_error___d_n
mov r8d, eax
mov rcx, rbx
call fcn.140016c48
jmp 0x1400155c1
mov ecx, dword [rbx + 0xb1c]
sub ecx, 1
je 0x1400155ac
cmp ecx, 1
jne 0x1400155b4
mov rdx, qword [rbx + 0xb58]
mov r9d, esi
mov r8d, ebp
mov rcx, rbx
call fcn.140017cb4
and qword [rsp + 0x40], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x40]
mov rcx, rax
mov edx, 0x28
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400155b4
mov rdx, qword [rsp + 0x40]
lea r8, str.SeLoadDriverPrivilege
xor r9d, r9d
mov rcx, rbx
call fcn.140016f74
jmp 0x1400155b4
mov rcx, rbx
call fcn.140016b94
mov rcx, qword [rbx + 0xb40]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, qword [rbx + 0xb40]
test rcx, rcx
je 0x1400155ed
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str._vCloseDriver__CloseHandle_mutex____d_n
mov rcx, rbx
mov r8d, eax
call fcn.140016c48
and qword [rbx + 0xb40], 0
test edi, edi
je 0x140015603
lea rcx, [rbx + 0xb60]
cmp byte [rcx], 0
je 0x140015603
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x14001598c
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x240
mov rax, qword [0x14028b7c8]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov r12, r8
mov rbp, rdx
mov r8, rdx
lea rdx, str._bInitDriver__Extract_path___s_n
mov edi, r9d
mov rsi, rcx
call fcn.140016c48
mov r13d, 0x200
lea rdx, [rsi + 8]
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea r8, [rsi + 8]
lea rdx, str._bInitDriver__GetCurrentDirectory___s_n
mov rcx, rsi
call fcn.140016c48
lea rdx, [rsp + 0x30]
mov r8d, r13d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea r8, [rsp + 0x30]
lea rdx, str._bInitDriver__GetModuleFileName___s_n
mov rcx, rsi
call fcn.140016c48
mov rcx, rsi
call fcn.140016d04
mov dword [rsi + 0x218], edi
test rbp, rbp
je 0x140015a3d
lea rcx, [rsi + 0x41c]
mov r8, rbp
mov rdx, r13
call fcn.140158644
jmp 0x140015a4d
lea rdx, [rsi + 0x41c]
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov rcx, qword [rsi + 0xb58]
mov r13d, 0x40
lea r8, str.cpuz158
mov rdx, r13
call fcn.140044464
mov r11, qword [rsi + 0xb58]
lea r8, [rsp + 0x20]
mov dword [r11 + 0x40], 0x158
mov rcx, qword [rsi + 0xb58]
mov eax, dword [rsi + 0xd68]
mov dword [rcx + 0x4c], eax
mov rcx, qword [rsi + 0xb58]
mov eax, dword [rsi + 0xd6c]
mov dword [rcx + 0x44], eax
mov rcx, qword [rsi + 0xb58]
mov eax, dword [rsi + 0xd70]
mov dword [rcx + 0x48], eax
mov rcx, qword [rsi + 0xb58]
mov eax, dword [rsi + 0xd74]
mov dword [rcx + 0x50], eax
mov rdx, qword [rsi + 0xb58]
mov rcx, rsi
call fcn.14001577c
mov ebx, dword [rsp + 0x20]
lea ebp, [r13 - 0x3f]
mov edi, eax
test eax, eax
jne 0x140015b81
cmp ebx, 0x241
jne 0x140015b81
mov rcx, rsi
call fcn.140015704
xor r9d, r9d
mov r8d, ebp
mov edx, ebp
mov rcx, rsi
call fcn.1400154f8
mov rcx, qword [rsi + 0xb58]
lea r8, str.cpuz152
mov rdx, r13
call fcn.140044464
mov r11, qword [rsi + 0xb58]
lea r8, [rsp + 0x20]
mov dword [r11 + 0x40], 0x152
mov rcx, qword [rsi + 0xb58]
mov eax, dword [rsi + 0xd68]
mov dword [rcx + 0x4c], eax
mov rcx, qword [rsi + 0xb58]
mov eax, dword [rsi + 0xd78]
mov dword [rcx + 0x44], eax
mov rcx, qword [rsi + 0xb58]
mov eax, dword [rsi + 0xd7c]
mov dword [rcx + 0x48], eax
mov rcx, qword [rsi + 0xb58]
mov eax, dword [rsi + 0xd74]
mov dword [rcx + 0x50], eax
mov rdx, qword [rsi + 0xb58]
mov rcx, rsi
call fcn.14001577c
mov ebx, dword [rsp + 0x20]
mov edi, eax
lea rdx, str._bInitDriver__bInitDriver_returned__d_n
mov r8d, ebx
mov rcx, rsi
call fcn.140016c48
mov rcx, rsi
mov dword [r12], ebx
call fcn.140015704
test edi, edi
jne 0x140015bb7
xor r9d, r9d
mov r8d, ebp
mov edx, ebp
mov rcx, rsi
call fcn.1400154f8
xor eax, eax
jmp 0x140015bc0
and dword [rsi + 0xd64], 0
mov eax, edi
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140156fd0
mov rbx, qword [rsp + 0x288]
add rsp, 0x240
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140016c48
Capabilities:
Set current directory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rdi
sub rsp, 0x138
mov rax, qword [0x14028b7c8]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov rbx, rcx
add rcx, 8
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea rdx, [rbx + 0xb60]
lea r8, [0x1401ce258]
lea rcx, [rbx + 0xb48]
call fcn.1401584a4
cmp qword [rbx + 0xb48], 0
je 0x140016ce7
mov r8, qword [rsp + 0x158]
lea r9, [rsp + 0x160]
lea rcx, [rsp + 0x20]
mov edx, 0x100
call fcn.140158354
mov rcx, qword [rbx + 0xb48]
lea rdx, [rsp + 0x20]
call fcn.140159490
mov rcx, qword [rbx + 0xb48]
call fcn.1401578f4
and qword [rbx + 0xb48], 0
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.140156fd0
add rsp, 0x138
pop rdi
pop rbx
ret
Function at 0x140017460
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
sub rsp, 0x2d0
mov rax, qword [0x14028b7c8]
xor rax, rsp
mov qword [rsp + 0x2c0], rax
mov rsi, rcx
mov rbp, r8
mov edi, edx
mov r12d, 0x9c
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8, r12
xor ebx, ebx
call fcn.140158a90
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], r12d
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp eax, ebx
jne 0x1400174df
mov r12d, DllRegisterServer
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8, r12
call fcn.140158a90
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], r12d
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
mov r12d, 0x200
lea rcx, [rsp + 0xc0]
mov r8, rbp
mov rdx, r12
call fcn.140044464
mov r11d, dword [rsp + 0x30]
sub r11d, 1
je 0x140017590
cmp r11d, 1
jne 0x1400175a5
cmp dword [rsp + 0x24], 4
mov r9, rbp
lea r8, str.Global_s
mov rdx, r12
lea rcx, [rsp + 0xc0]
ja 0x140017589
call fcn.140044464
lea r8, [rsp + 0xc0]
xor edx, edx
mov ecx, 0x20000
call qword [sym.imp.KERNEL32.dll_OpenMutexA]
cmp rax, rbx
je 0x140017569
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r8, [rsp + 0xc0]
mov edx, edi
mov rcx, rsi
call fcn.140017008
jmp 0x1400175a2
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140017555
lea rcx, [rsp + 0xc0]
mov r8, rbp
mov rdx, r12
call fcn.140044464
jmp 0x140017555
call fcn.140044464
jmp 0x140017555
lea r8, [rsp + 0xc0]
mov edx, edi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov rbx, rax
mov rax, rbx
mov rcx, qword [rsp + 0x2c0]
xor rcx, rsp
call fcn.140156fd0
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x1400175d0
Capabilities:
Create service

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r14
sub rsp, 0xa80
mov rax, qword [0x14028b7c8]
xor rax, rsp
mov qword [rsp + 0xa70], rax
mov rbp, r8
mov rsi, rcx
lea r8, [rcx + 0x61c]
mov rbx, rdx
mov r14d, 0x200
lea rcx, [rsp + 0x70]
mov rdx, r14
xor edi, edi
call fcn.140158644
lea rcx, [rsp + 0x70]
call fcn.140159970
movsxd rcx, eax
cmp byte [rsp + rcx + 0x6f], 0x5c
je 0x140017638
mov byte [rsp + rcx + 0x70], 0x5c
mov byte [rsp + rcx + 0x71], dil
lea r8, [rsi + 0xa1c]
lea rcx, [rsp + 0x70]
mov rdx, r14
call fcn.14004453c
lea r8, [rsp + 0x70]
lea rdx, str._WinNT_bCreateService__szDestName___s_n
mov rcx, rsi
call fcn.140016c48
or r12d, 0xffffffff
mov r8, rbx
lea rax, [rsp + 0x270]
lea ebx, [r12 + 2]
xor ecx, ecx
mov r9d, r12d
mov edx, ebx
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea rax, [rsp + 0x670]
lea r8, [rsp + 0x70]
mov r9d, r12d
mov edx, ebx
xor ecx, ecx
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
and qword [rsp + 0x60], rdi
and qword [rsp + 0x58], rdi
and qword [rsp + 0x50], rdi
and qword [rsp + 0x48], rdi
and qword [rsp + 0x40], rdi
mov rcx, qword [rsi + 0x210]
lea rax, [rsp + 0x670]
lea r8, [rsp + 0x270]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], ebx
lea rdx, [rsp + 0x270]
mov r9d, 0xf01ff
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov r12, rax
test rax, rax
jne 0x140017749
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str._WinNT_bCreateService__CreateService_failed__error_code___d_n
mov rcx, rsi
mov r8d, eax
mov edi, eax
call fcn.140016c48
mov r11d, edi
sub r11d, 5
je 0x140017741
sub r11d, 0x42b
je 0x140017741
cmp r11d, ebx
je 0x140017745
xor ebx, ebx
jmp 0x140017781
xor edi, edi
jmp 0x140017781
lea rdx, str._WinNT_bCreateService__CreateService_succeeded_n
mov rcx, rsi
call fcn.140016c48
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, eax
test eax, eax
jne 0x140017781
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str._WinNT_bCreateService__CloseServiceHandle_failed__errorcode___d_n
mov rcx, rsi
mov r8d, eax
mov edi, eax
call fcn.140016c48
mov dword [rbp], edi
mov eax, ebx
mov rcx, qword [rsp + 0xa70]
xor rcx, rsp
call fcn.140156fd0
mov rbx, qword [rsp + 0xac8]
add rsp, 0xa80
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400177b0
Capabilities:
Delete service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rcx + 0x210]
mov r8d, 0xf01ff
xor ebx, ebx
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rsi, rax
test rax, rax
jne 0x1400177ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str._WinNT_dwDeleteService__Openservice_failed__errorcode___d_n
jmp 0x14001782f
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x140017815
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str._WinNT_dwDeleteService__DeleteService_failed__errorcode___d_n
mov rcx, rdi
mov r8d, eax
mov ebx, eax
call fcn.140016c48
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
jne 0x14001783c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str._WinNT_dwDeleteService__CloseServiceHandle_failed__errorcode___d_n
mov r8d, eax
mov rcx, rdi
mov ebx, eax
call fcn.140016c48
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140017850
Capabilities:
Start service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov rbp, rcx
mov rcx, qword [rcx + 0x210]
mov r13, r8
xor ebx, ebx
mov r8d, 0xf01ff
mov esi, ebx
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov r12, rax
cmp rax, rbx
jne 0x1400178ac
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str._WinNT_bStartService__OpenService_failed__error_code___d_n
mov rcx, rbp
mov r8d, eax
mov esi, eax
call fcn.140016c48
jmp 0x14001793a
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
mov edi, eax
cmp eax, ebx
jne 0x140017911
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str._WinNT_bStartService__StartService_failed__error_code___d_n
mov rcx, rbp
mov r8d, eax
mov esi, eax
call fcn.140016c48
mov r11d, esi
sub r11d, 2
je 0x14001790f
mov edi, 1
sub r11d, edi
je 0x14001790f
sub r11d, 0x23e
je 0x14001790f
sub r11d, 0x45
je 0x14001790f
sub r11d, 0x19a
je 0x140017959
sub r11d, 2
je 0x14001790f
sub r11d, 0x1a
mov edi, ebx
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp eax, ebx
jne 0x140017938
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str._WinNT_bStartService__CloseServiceHandle_failed__errorcode___d_n
mov rcx, rbp
mov r8d, eax
mov esi, eax
call fcn.140016c48
mov ebx, edi
mov rbp, qword [rsp + 0x48]
mov dword [r13], esi
mov rsi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
mov esi, ebx
jmp 0x140017911
Function at 0x140017960
Capabilities:
Stop service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rdi, rcx
mov rcx, qword [rcx + 0x210]
mov r8d, 0xf01ff
xor ebx, ebx
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rsi, rax
test rax, rax
jne 0x1400179a1
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str._WinNT_dwStopService__OpenService_failed__errorcode___d_n
jmp 0x140017a81
lea r8, [rsp + 0x20]
mov edx, 4
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x140017a4d
mov r8d, dword [rsp + 0x24]
lea rdx, str._WinNT_dwStopService__ControlService_SERVICE_CONTROL_INTERROGATE__status__0x_X_n
mov rcx, rdi
call fcn.140016c48
cmp dword [rsp + 0x24], 1
je 0x140017a67
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x140017a3e
mov r8d, dword [rsp + 0x24]
lea rdx, str._WinNT_dwStopService__ControlService_SERVICE_CONTROL_STOP__status__0x_X_n
mov rcx, rdi
call fcn.140016c48
cmp dword [rsp + 0x24], 3
jne 0x140017a67
mov rcx, qword [rdi + 0x208]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or qword [rdi + 0x208], 0xffffffffffffffff
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_ControlService]
lea rdx, str._WinNT_dwStopService__ControlService_SERVICE_CONTROL_STOP__failed__pending__result___d_n
jmp 0x140017a5c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str._WinNT_dwStopService__ControlService_SERVICE_CONTROL_STOP__failed__errorcode___d_n
jmp 0x140017a5a
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str._WinNT_dwStopService__ControlService_SERVICE_CONTROL_INTERROGATE__failed__errorcode___d_n
mov ebx, eax
mov r8d, eax
mov rcx, rdi
call fcn.140016c48
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
jne 0x140017a8e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str._WinNT_dwStopService__CloseServiceHandle_failed__errorcode___d_n
mov r8d, eax
mov rcx, rdi
mov ebx, eax
call fcn.140016c48
mov rsi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140017b5c
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
mov rdi, rcx
lea rcx, [rsp + 0x20]
mov r12, r8
mov rbp, rdx
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
lea rdx, [rsp + 0x68]
lea rcx, [rdi + 0x21c]
mov dword [rsp + 0x68], 0x200
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea r8, [rdi + 0x21c]
lea rdx, str._WinNT_bInstallDriver__szMachineName___s_n
mov rcx, rdi
call fcn.140016c48
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
xor ebx, ebx
mov qword [rdi + 0x210], rax
cmp rax, rbx
jne 0x140017bf5
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str._WinNT_bInstallDriver__OpenSCManager_failed__error_code___d_n
mov rcx, rdi
mov r8d, eax
mov ebx, eax
call fcn.140016c48
mov dword [r12], ebx
xor eax, eax
jmp 0x140017ca0
cmp dword [rdi + 0x218], ebx
je 0x140017c2f
mov dword [rsp + 0x50], ebx
cmp dword [rdi + 0xb34], ebx
jne 0x140017c2f
mov edx, dword [rbp + 0x48]
mov rcx, rdi
call fcn.1400182b8
mov esi, eax
mov dword [rsp + 0x50], eax
cmp eax, ebx
je 0x140017c2f
lea rdx, str._WinNT_bInstallDriver__Unable_to_extract_driver_file_n
mov rcx, rdi
call fcn.140016c48
jmp 0x140017c9a
lea r8, [rsp + 0x50]
mov rdx, rbp
mov rcx, rdi
call fcn.1400175d0
mov esi, eax
cmp eax, ebx
je 0x140017c66
lea r8, [rsp + 0x50]
mov rdx, rbp
mov rcx, rdi
call fcn.140017850
mov esi, eax
cmp eax, ebx
jne 0x140017c66
mov rdx, rbp
mov rcx, rdi
call fcn.1400177b0
mov rcx, qword [rdi + 0x210]
cmp rcx, rbx
je 0x140017c94
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp eax, ebx
jne 0x140017c94
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str._WinNT_bInstallDriver__CloseServiceHandle_failed__errorcode___d_n
mov rcx, rdi
mov r8d, eax
call fcn.140016c48
mov ebx, esi
mov esi, dword [rsp + 0x50]
mov dword [r12], esi
mov eax, ebx
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x140017e48
Capabilities:
Delete directory
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x14028b7c8]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, rcx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
lea rcx, [rdi + 0x61c]
call fcn.140159970
mov edx, 0x200
lea rcx, [rsp + 0x40]
test eax, eax
jle 0x140017ecd
cdqe
lea r9, [rdi + 0x61c]
lea r8, str._s_s
cmp byte [rax + rdi + 0x61b], 0x5c
lea rax, [rdi + 0xa1c]
mov qword [rsp + 0x20], rax
je 0x140017ec6
lea r8, [0x1401cec2c]
call fcn.140044464
jmp 0x140017ee0
lea r9, [rdi + 0xa1c]
lea r8, [0x1401cba80]
call fcn.140044464
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, eax
test eax, eax
jne 0x140017f10
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [rsp + 0x40]
lea rdx, str._bDeleteFile__DeleteFile__s_failed__error___d__n
mov r9d, eax
mov rcx, rdi
call fcn.140016c48
jmp 0x140017f24
lea r8, [rsp + 0x40]
lea rdx, str._bDeleteFile__DeleteFile__s_succeeded_n
mov rcx, rdi
call fcn.140016c48
lea rcx, [rdi + 0x41c]
call fcn.140159970
lea rcx, [rdi + 0x61c]
mov rbx, rax
call fcn.140159970
cmp rax, rbx
jbe 0x140017f8e
lea rcx, [rdi + 0x61c]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov esi, eax
test eax, eax
jne 0x140017f78
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [rdi + 0x61c]
lea rdx, str._bDeleteFile__RemoveDirectory__s_failed__error___d__n
mov r9d, eax
mov rcx, rdi
call fcn.140016c48
jmp 0x140017f8e
lea r8, [rdi + 0x61c]
lea rdx, str._bDeleteFile__RemoveDirectory__s_succeeded_n
mov rcx, rdi
call fcn.140016c48
mov eax, esi
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140156fd0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret