joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18000573c
Capabilities:
Set console window title

Disassembly:
push rbx
mov eax, 0x8030
call fcn.18001b110
sub rsp, rax
mov rax, qword [0x1800300d0]
xor rax, rsp
mov qword [rsp + 0x8020], rax
cmp qword [0x1800300b0], 1
jne 0x1800057ec
and qword [0x1800300b0], 0
lea rcx, [rsp + 0x4020]
mov edx, 0x2000
call qword [sym.imp.KERNEL32.dll_GetConsoleTitleW]
test eax, eax
je 0x1800057ec
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rdx, str._d__d
lea rcx, [rsp + 0x20]
mov r9d, ebx
mov r8d, eax
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
test eax, eax
je 0x1800057ec
mov ecx, 0x28
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x20]
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowW]
lea rcx, [rsp + 0x4020]
mov qword [0x1800300b0], rax
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
mov rcx, qword [rsp + 0x8020]
xor rcx, rsp
call fcn.18000fc60
add rsp, 0x8030
pop rbx
ret

Function at 0x180005870
Capabilities:
Enumerate gui resources

Disassembly:
sub rsp, 0x28
and qword [0x180033600], 0
mov dword [0x1800335fc], ecx
call fcn.18000573c
lea rcx, [0x18000582c]
xor edx, edx
call qword [sym.imp.USER32.dll_EnumWindows]
mov rcx, qword [0x180033600]
mov rax, qword [0x1800300b0]
test rcx, rcx
cmovne rax, rcx
add rsp, 0x28
ret

Function at 0x180005e60
Capabilities:
Create pipe

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdx, r8
call fcn.18000cb74
and qword [rsp + 0x38], 0
and dword [rsp + 0x30], 0
mov edx, 3
mov rdi, rax
mov eax, 0x10000
mov dword [rsp + 0x28], eax
lea r9d, [rdx - 2]
lea r8d, [rdx + 5]
mov rcx, rdi
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rcx, rdi
mov rbx, rax
call fcn.18000fc44
mov rax, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x180005ebc
Capabilities:
Connect pipe

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, r8
cmp r8, 0xffffffffffffffff
jne 0x180005ed3
xor al, al
jmp 0x180005f0d
xor ebx, ebx
mov rcx, r8
jmp 0x180005eff
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x180005f0b
inc ebx
cmp ebx, 0x258
jg 0x180005f18
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x180005eda
mov al, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.could_not_connect_named_pipe__d_n
mov edx, eax
call fcn.18000f79c
jmp 0x180005ecf
Function at 0x180006038
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
mov rbp, r8
mov rbx, rcx
cmp r8, 0xffffffffffffffff
je 0x180006127
and dword [rax + 0x18], 0
and dword [rax + 0x20], 0
and qword [rax - 0x28], 0
lea r9, [rax + 0x18]
lea rdx, [rax + 0x20]
mov r8d, 4
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180006127
cmp dword [rsp + 0x60], 4
jb 0x180006127
mov rax, qword [rbx]
mov edx, dword [rsp + 0x68]
mov rcx, rbx
call qword [rax + 0x580]
mov rdi, rax
test rax, rax
je 0x180006127
mov rax, qword [rbx]
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [rax + 0x5c0]
mov ecx, dword [rsp + 0x68]
xor esi, esi
mov r12, rax
test ecx, ecx
jle 0x1800060f8
and qword [rsp + 0x20], 0
sub ecx, esi
movsxd rdx, esi
mov r8d, ecx
lea r9, [rsp + 0x60]
mov rcx, rbp
add rdx, r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180006112
add esi, dword [rsp + 0x60]
mov ecx, dword [rsp + 0x68]
cmp esi, ecx
jl 0x1800060c9
mov rax, qword [rbx]
xor r9d, r9d
mov r8, r12
mov rdx, rdi
mov rcx, rbx
call qword [rax + 0x600]
mov rax, rdi
jmp 0x180006129
mov rax, qword [rbx]
xor r9d, r9d
mov r8, r12
mov rdx, rdi
mov rcx, rbx
call qword [rax + 0x600]
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret

Function at 0x18000613c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
sub rsp, 0x40
mov rsi, r9
mov rbp, r8
mov rbx, rcx
cmp r8, 0xffffffffffffffff
je 0x180006234
mov rax, qword [rcx]
and dword [rsp + 0x70], 0
mov rdx, r9
call qword [rax + 0x558]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x70]
lea rdx, [rsp + 0x30]
mov r8d, 4
mov rcx, rbp
mov dword [rsp + 0x30], eax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x180006234
cmp dword [rsp + 0x70], 4
jb 0x180006234
mov rax, qword [rbx]
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
call qword [rax + 0x5c0]
mov ecx, dword [rsp + 0x30]
xor edi, edi
mov r12, rax
test ecx, ecx
jle 0x1800061f6
and qword [rsp + 0x20], 0
sub ecx, edi
movsxd rdx, edi
mov r8d, ecx
lea r9, [rsp + 0x70]
mov rcx, rbp
add rdx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x18000621c
add edi, dword [rsp + 0x70]
mov ecx, dword [rsp + 0x30]
cmp edi, ecx
jl 0x1800061c7
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov r11, qword [rbx]
mov r9d, 2
mov r8, r12
mov rdx, rsi
mov rcx, rbx
call qword [r11 + 0x600]
mov al, 1
jmp 0x180006236
mov rax, qword [rbx]
mov r9d, 2
mov r8, r12
mov rdx, rsi
mov rcx, rbx
call qword [rax + 0x600]
xor al, al
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret
Function at 0x180006328
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp byte [0x180033638], 0
mov edi, 1
jne 0x1800063d0
lea rcx, str.Winhttp.dll
mov byte [0x180033638], dil
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rdx, str.WinHttpGetIEProxyConfigForCurrentUser
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WinHttpOpen
mov rcx, rbx
mov qword [0x180033610], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WinHttpCloseHandle
mov rcx, rbx
mov qword [0x180033618], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WinHttpGetProxyForUrl
mov rcx, rbx
mov qword [0x180033620], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WinHttpGetDefaultProxyConfiguration
mov rcx, rbx
mov qword [0x180033628], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180033630], rax
jmp 0x1800063d7
mov rax, qword [0x180033630]
cmp qword [0x180033610], 0
je 0x180006404
cmp qword [0x180033618], 0
je 0x180006404
cmp qword [0x180033620], 0
je 0x180006404
cmp qword [0x180033628], 0
je 0x180006404
test rax, rax
jne 0x180006406
xor edi, edi
mov al, dil
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x180006770
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
xor edx, edx
mov rbx, r8
mov rdi, rcx
lea r8d, [rdx + 1]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
jne 0x1800067a7
mov eax, 0x1388
jmp 0x180006817
mov rdx, rbx
mov rcx, rdi
call fcn.18000cb74
mov r8d, 4
mov rcx, rsi
mov rdx, rax
mov rbp, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
je 0x1800067fc
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1800067e9
mov ebx, dword [rsp + 0x24]
neg ebx
jmp 0x1800067f1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x180006804
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rbp
call fcn.18000fc44
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x180006a74
Capabilities:
Check for time delay via gettickcount
Query service status

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 r12
sub rsp, 0x40
mov r12d, edx
lea rdx, [rax - 0x28]
mov rsi, rcx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x180006aa8
mov eax, 0xc352
jmp 0x180006b10
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebp, eax
mov edi, dword [rsp + 0x34]
mov ebx, eax
mov ecx, dword [rsp + 0x24]
cmp ecx, 1
je 0x180006b05
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x180006aa1
cmp dword [rsp + 0x34], edi
jbe 0x180006aea
call qword [sym.imp.KERNEL32.dll_GetTickCount]
jmp 0x180006ab0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
sub ecx, ebx
cmp ecx, dword [rsp + 0x38]
jbe 0x180006ab6
sub eax, ebp
cmp eax, r12d
jbe 0x180006ab6
mov ecx, dword [rsp + 0x24]
dec ecx
neg ecx
sbb eax, eax
and eax, 0xc351
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r12
ret

Function at 0x180006b2c
Capabilities:
Stop service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
xor edx, edx
mov rdi, r8
mov rbp, rcx
lea r8d, [rdx + 1]
xor ecx, ecx
mov ebx, r9d
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
jne 0x180006b66
mov eax, 0x1388
jmp 0x180006bdf
mov rdx, rdi
mov rcx, rbp
call fcn.18000cb74
mov r8d, 0x24
mov rcx, rsi
mov rdx, rax
mov rbp, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
je 0x180006bc4
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x180006bb1
mov edx, ebx
mov rcx, rdi
call fcn.180006a74
jmp 0x180006bb7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x180006bcc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rbp
call fcn.18000fc44
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x180006bf4
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
push r14
push r15
sub rsp, 0x40
xor edx, edx
mov rdi, r8
mov r14, rcx
lea r8d, [rdx + 1]
xor ecx, ecx
mov rbx, r9
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov r12, rax
mov qword [rsp + 0x28], rax
test rax, rax
jne 0x180006c3e
mov eax, 0x1388
jmp 0x180006d50
mov rdx, rdi
mov rcx, r14
call fcn.18000cb74
xor ebp, ebp
mov rcx, r12
lea r8d, [rbp + 0x10]
mov rdx, rax
mov r15, rax
mov qword [rsp + 0x30], rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov r13, rax
test rax, rax
je 0x180006d35
xor esi, esi
xor edi, edi
test rbx, rbx
je 0x180006cea
mov r8, qword [r14]
mov rdx, rbx
mov rcx, r14
call qword [r8 + 0x558]
lea rcx, [rbp - 1]
mov esi, eax
lea eax, [rbp + 8]
mul rsi
cmovo rax, rcx
mov rcx, rax
call fcn.18000fc9c
and dword [rsp + 0x20], ebp
mov rdi, rax
test esi, esi
je 0x180006cea
mov r12d, dword [rsp + 0x20]
mov r15, rax
mov r9, qword [r14]
mov r8d, r12d
mov rdx, rbx
mov rcx, r14
call qword [r9 + 0x568]
mov rcx, r14
mov rdx, rax
call fcn.18000cb74
inc r12d
mov qword [r15], rax
add r15, 8
cmp r12d, esi
jb 0x180006cb3
mov r12, qword [rsp + 0x28]
mov r15, qword [rsp + 0x30]
mov r8, rdi
mov edx, esi
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x180006d04
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
test rbx, rbx
je 0x180006d2a
test esi, esi
je 0x180006d22
mov rbx, rdi
mov rcx, qword [rbx]
call fcn.18000fc44
add rbx, 8
sub rsi, 1
jne 0x180006d10
mov rcx, rdi
call fcn.18000fc44
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x180006d3d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rcx, r15
call fcn.18000fc44
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebp
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x180006d70
Capabilities:
Delete service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, r8
mov rbp, rcx
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
xor ebx, ebx
mov rsi, rax
cmp rax, rbx
jne 0x180006dab
mov eax, 0x1388
jmp 0x180006e0e
mov rdx, rdi
mov rcx, rbp
call fcn.18000cb74
mov r8d, 0x10000
mov rcx, rsi
mov rdx, rax
mov rbp, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
cmp rax, rbx
je 0x180006df3
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_DeleteService]
cmp eax, ebx
jne 0x180006de8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x180006dfb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rbp
call fcn.18000fc44
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180006e24
Capabilities:
Create 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, 0x70
mov rsi, r8
mov r12, rcx
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
mov r13, r9
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
xor ebx, ebx
mov rdi, rax
cmp rax, rbx
jne 0x180006e69
mov eax, 0x1388
jmp 0x180006f1e
mov rdx, rsi
mov rcx, r12
call fcn.18000cb74
mov rdx, qword [rsp + 0xb0]
mov rcx, r12
mov rsi, rax
call fcn.18000cb74
mov rdx, r13
mov rcx, r12
mov rbp, rax
call fcn.18000cb74
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x30], 1
mov r9d, 0xf01ff
mov r8, rax
mov rdx, rsi
mov rcx, rdi
mov dword [rsp + 0x28], 3
mov r12, rax
mov dword [rsp + 0x20], SafeArrayUnaccessData
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
cmp rax, rbx
je 0x180006ef3
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x180006efb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call fcn.18000fc44
mov rcx, rbp
call fcn.18000fc44
mov rcx, r12
call fcn.18000fc44
mov eax, ebx
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rdi
ret

Function at 0x1800071ac
Capabilities:
Modify service

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 r12
sub rsp, 0x30
mov rdi, r8
mov rbp, rcx
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
mov r12b, r9b
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
xor ebx, ebx
mov rsi, rax
cmp rax, rbx
jne 0x1800071ef
mov eax, 0x1388
jmp 0x180007264
mov rdx, rdi
mov rcx, rbp
call fcn.18000cb74
mov r8d, 0xf01ff
mov rcx, rsi
mov rdx, rax
mov rbp, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
cmp rax, rbx
je 0x180007249
movzx ecx, r12b
lea r8, [rsp + 0x20]
mov edx, 3
mov dword [rsp + 0x20], ecx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
cmp eax, ebx
jne 0x18000723e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x180007251
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbp
call fcn.18000fc44
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r12
ret
Function at 0x180007280
Capabilities:
Modify service

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], r9
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov rbx, r8
mov r13, rcx
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
mov qword [rsp + 0x78], rax
test rax, rax
jne 0x1800072d0
mov eax, 0x1388
jmp 0x1800074bd
mov rdx, rbx
mov rcx, r13
xor ebp, ebp
call fcn.18000cb74
mov rdx, qword [rsp + 0xd0]
mov rcx, r13
mov qword [rsp + 0x68], rax
call fcn.18000cb74
mov rdx, qword [rsp + 0xe8]
mov rcx, r13
mov r12, rax
mov qword [rsp + 0x70], rax
call fcn.18000cb74
mov rdx, qword [rsp + 0xf0]
mov rcx, r13
mov r15, rax
call fcn.18000cb74
mov rdx, qword [rsp + 0xf8]
mov rcx, r13
mov rbx, rax
call fcn.18000cb74
mov rdx, qword [rsp + 0x100]
mov rcx, r13
mov r14, rax
call fcn.18000cb74
mov rdx, qword [rsp + 0xc8]
mov rcx, r13
mov rsi, rax
call fcn.18000cb74
mov rdx, qword [rsp + 0x68]
mov r8d, 0xf01ff
mov rcx, rdi
mov r13, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rsp + 0x60], rax
test rax, rax
je 0x180007452
mov r12, rbx
test rbx, rbx
je 0x1800073b0
lea rdx, str.NT_AUTHORITYSystem
mov rcx, rbx
call fcn.1800111e8
test eax, eax
je 0x1800073a9
lea rdx, str.NT_AUTHORITYLocalSystem
mov rcx, rbx
call fcn.1800111e8
test eax, eax
jne 0x1800073b0
lea r12, str.LocalSystem
mov rcx, r15
call fcn.180007118
mov r8d, dword [rsp + 0xe0]
mov edx, dword [rsp + 0xd8]
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r12
mov r12, qword [rsp + 0x70]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], rbp
and qword [rsp + 0x28], rbp
or r9d, 0xffffffff
mov qword [rsp + 0x20], r12
mov rdi, rax
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x18000740f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
jmp 0x180007433
cmp qword [rsp + 0x100], rbp
je 0x180007433
mov rcx, qword [rsp + 0x60]
lea r8, [rsp + 0x70]
mov edx, 1
mov qword [rsp + 0x70], rsi
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test rdi, rdi
je 0x180007440
mov rcx, rdi
call fcn.18000fc44
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x78]
jmp 0x18000745a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x68]
call fcn.18000fc44
test r12, r12
je 0x18000747a
mov rcx, r12
call fcn.18000fc44
test r15, r15
je 0x180007487
mov rcx, r15
call fcn.18000fc44
test r14, r14
je 0x180007494
mov rcx, r14
call fcn.18000fc44
test rsi, rsi
je 0x1800074a1
mov rcx, rsi
call fcn.18000fc44
test rbx, rbx
je 0x1800074ae
mov rcx, rbx
call fcn.18000fc44
test r13, r13
je 0x1800074bb
mov rcx, r13
call fcn.18000fc44
mov eax, ebp
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x180007d7c
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
test rax, rax
je 0x180007e3f
lea rdx, [0x18001d3a8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.EqualSid
mov rcx, rbx
mov qword [0x180033650], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetTokenInformation
mov rcx, rbx
mov qword [0x180033648], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x18001d368]
mov rcx, rbx
mov qword [0x180033658], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.OpenThreadToken
mov rcx, rbx
mov qword [0x180033668], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x180033650], 0
mov qword [0x180033660], rax
je 0x180007e3f
cmp qword [0x180033648], 0
je 0x180007e3f
cmp qword [0x180033658], 0
je 0x180007e3f
cmp qword [0x180033668], 0
je 0x180007e3f
test rax, rax
je 0x180007e3f
mov al, 1
jmp 0x180007e41
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x180008fac
Capabilities:
Get user security identifier
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x40b0
call fcn.18001b110
sub rsp, rax
mov rax, qword [0x1800300d0]
xor rax, rsp
mov qword [rsp + 0x40a0], rax
and qword [rsp + 0x40], 0
mov r13, rcx
lea rcx, str.advapi32.dll
mov rdi, r9
mov rbx, r8
xor sil, sil
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbp, rax
test rax, rax
je 0x1800091ee
lea rdx, str.LsaOpenPolicy
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.LsaAddAccountRights
mov rcx, rbp
mov qword [rsp + 0x58], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.LsaRemoveAccountRights
mov rcx, rbp
mov r14, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.LsaClose
mov rcx, rbp
mov r15, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [rsp + 0x58], 0
mov r12, rax
je 0x1800091ee
test r14, r14
je 0x1800091ee
test rax, rax
je 0x1800091ee
test r15, r15
je 0x1800091ee
mov rdx, rbx
mov rcx, r13
call fcn.18000cb74
lea rdx, str.ConvertStringSidToSidW
mov rcx, rbp
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180009113
lea rdx, [rsp + 0x40]
mov rcx, rbx
call rax
test eax, eax
jne 0x180009113
mov ebp, 0x2000
lea ecx, [rax + 0x40]
mov rdx, rbp
mov dword [rsp + 0x68], ebp
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
lea rcx, [rsp + 0x48]
lea r9, [rsp + 0x68]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x50]
mov rdx, rbx
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0xa0]
mov r8, rax
mov qword [rsp + 0x20], rcx
xor ecx, ecx
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x50], ebp
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x180009113
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalFree]
and qword [rsp + 0x40], 0
mov rcx, rbx
call fcn.18000fc44
cmp qword [rsp + 0x40], 0
je 0x1800091ee
xor edx, edx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x30]
call fcn.18000f6b0
lea r9, [rsp + 0x48]
lea rdx, [rsp + 0x70]
mov r8d, 0x810
xor ecx, ecx
call qword [rsp + 0x58]
test eax, eax
jne 0x1800091e3
lea rbx, [0x18001ccb4]
test rdi, rdi
je 0x18000916f
mov rdx, rdi
mov rcx, r13
call fcn.18000cb74
mov rbx, rax
mov rcx, rbx
call fcn.18000fc80
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
add ax, ax
mov qword [rsp + 0x60], rbx
mov word [rsp + 0x58], ax
add ax, 2
cmp byte [rsp + 0x4110], 0
mov word [rsp + 0x5a], ax
je 0x1800091b1
lea r8, [rsp + 0x58]
mov r9d, 1
call r14
jmp 0x1800091c8
test rdi, rdi
lea r9, [rsp + 0x58]
mov dword [rsp + 0x20], 1
sete r8b
call r15
mov rcx, qword [rsp + 0x48]
test eax, eax
sete sil
call r12
test rdi, rdi
je 0x1800091e3
mov rcx, rbx
call fcn.18000fc44
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov al, sil
mov rcx, qword [rsp + 0x40a0]
xor rcx, rsp
call fcn.18000fc60
mov rbx, qword [rsp + 0x40f8]
add rsp, 0x40b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret