joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180008b60
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x180045068]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, r8
mov rdi, rdx
mov qword [rsp + 0x38], rbx
mov rcx, qword [r8 + 0x10]
mov rdx, qword [r8 + 0x18]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x180008bb4
lea rax, [rcx + 1]
mov qword [r8 + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x180008bac
mov rax, qword [r8]
mov word [rax + rcx], 0xa
jmp 0x180008bd3
mov qword [rsp + 0x20], 1
lea r9, [0x1800308a4]
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rbx
call fcn.180001db0
cmp qword [rbx + 0x18], 0x10
jb 0x180008be2
mov rax, qword [rbx]
mov rdx, rax
jmp 0x180008be8
mov rdx, rbx
mov rax, rbx
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rax + r8], 0
jne 0x180008bf0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne dil
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x180008c4d
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x180008c48
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180008c7c
mov rcx, r8
call fcn.180010918
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
movzx eax, dil
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1800110b0
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
call fcn.180016e8c
int3

Function at 0x18000ad40
Capabilities:
Reference http user-agent string

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 8], rcx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, r9
mov rdi, r8
mov r14, rdx
mov rsi, rcx
add rcx, 0x18
xor r12d, r12d
mov qword [rcx], r12
mov qword [rcx + 0x10], r12
mov qword [rcx + 0x18], 0xf
mov byte [rcx], r12b
lea r8d, [r12 + 0x4f]
lea rdx, str.Mozilla_5.0__Windows_NT_6.1__Win64__x64__rv:2.0.1__Gecko_20100101_Firefox_4.0.1
call fcn.1800094c0
nop
lea rcx, [rsi + 0x50]
mov qword [rcx], r12
mov qword [rcx + 0x10], r12
mov qword [rcx + 0x18], 0xf
mov byte [rcx], r12b
lea rbp, [rsi + 0x70]
mov qword [rbp], r12
mov qword [rbp + 0x10], r12
mov qword [rbp + 0x18], 0xf
mov byte [rbp], r12b
lea r15, [rsi + 0x90]
mov qword [r15], r12
mov qword [r15 + 0x10], r12
mov qword [r15 + 0x18], 0xf
mov byte [r15], r12b
mov qword [rsi + 0xb0], r12
mov qword [rsi + 0xc0], r12
mov qword [rsi + 0xc8], 0xf
mov byte [rsi + 0xb0], r12b
movzx eax, byte [rsp + 0x70]
mov byte [rsi + 0xd0], al
cmp rcx, r14
je 0x18000ae1f
mov rdx, r14
cmp qword [r14 + 0x18], 0x10
jb 0x18000ae16
mov rdx, qword [r14]
mov r8, qword [r14 + 0x10]
call fcn.1800094c0
cmp rbp, rdi
je 0x18000ae3d
mov rdx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x18000ae31
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
mov rcx, rbp
call fcn.1800094c0
cmp r15, rbx
je 0x18000ae5c
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x18000ae4f
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, r15
call fcn.1800094c0
nop
mov rax, rsi
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x18000b7b0
Capabilities:
Receive http response

Disassembly:
push rbp
push rsi
push r14
push r15
sub rsp, 0x58
mov rax, qword [0x180045068]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov dword [rsp + 0x20], r15d
mov rcx, qword [rcx + 8]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x24], r15d
mov ebp, r15d
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x18000b949
mov eax, dword [rsp + 0x20]
test eax, eax
jne 0x18000b806
mov al, 1
jmp 0x18000b949
mov qword [rsp + 0x90], rbx
mov rbx, rax
mov qword [rsp + 0x50], rdi
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x24]
mov rcx, qword [rsi + 8]
mov rdx, rax
mov rdi, rax
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x18000b961
cmp dword [rsp + 0x24], ebp
je 0x18000b8bd
mov eax, dword [rsp + 0x20]
add ebp, eax
add eax, eax
mov dword [rsp + 0x20], eax
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r9d, ebx
mov r8, rdi
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov r8d, dword [rsp + 0x20]
xor edx, edx
shr r8, 1
mov rdi, rax
lea rcx, [r8 + rax]
call fcn.1800130a0
mov eax, dword [rsp + 0x20]
lea r9, [rsp + 0x24]
mov rcx, qword [rsi + 8]
mov edx, eax
shr rdx, 1
mov r8d, eax
add rdx, rdi
shr r8d, 1
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x18000b961
cmp dword [rsp + 0x24], r15d
jne 0x18000b852
mov r8d, ebp
lea rcx, [rsp + 0x28]
mov rdx, rdi
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x40], 0xf
call fcn.1800094c0
lea rdx, [rsp + 0x28]
mov rcx, r14
call fcn.180003e40
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x18000b926
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000b921
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000b979
call fcn.180010918
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov al, 1
mov rbx, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1800110b0
add rsp, 0x58
pop r15
pop r14
pop rsi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor al, al
jmp 0x18000b93c
call fcn.180016e8c
int3
Function at 0x18000da80
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x180045068]
xor rax, rsp
mov qword [rsp + 0x80], rax
movdqa xmm0, xmmword [str._02X_02X_02X_02X]
mov rdi, rcx
mov ecx, 0x14
mov dword [rsp + 0x70], 0x58323025
movdqu xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x74], 0x58323025
mov dword [rsp + 0x78], 0x58323025
mov byte [rsp + 0x7c], 0
call fcn.180019440
mov rbx, rax
test rax, rax
je 0x18000db3f
movzx ecx, byte [rdi]
xor eax, eax
movzx r11d, byte [rdi + 4]
xorps xmm0, xmm0
movzx r8d, byte [rdi + 5]
mov edx, 0x14
movzx r9d, byte [rdi + 3]
movzx r10d, byte [rdi + 2]
movups xmmword [rbx], xmm0
mov dword [rbx + 0x10], eax
movzx eax, byte [rdi + 1]
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x48], ecx
mov rcx, rbx
mov dword [rsp + 0x40], r11d
mov dword [rsp + 0x38], r8d
lea r8, [rdx - 0x15]
mov dword [rsp + 0x30], r9d
lea r9, [rsp + 0x60]
mov dword [rsp + 0x28], r11d
mov dword [rsp + 0x20], r10d
call fcn.18000a2f0
mov rax, rbx
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1800110b0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x90
pop rdi
ret

Function at 0x18000dd10
Capabilities:
Create thread

Disassembly:
sub rsp, 0x58
mov rcx, qword [rdx]
lea rdx, [0x18000dcd0]
call qword [sym.imp.ADVAPI32.dll_RegisterServiceCtrlHandlerW]
mov qword [0x1800460d0], rax
test rax, rax
je 0x18000dde6
lea rdx, [0x180045010]
mov dword [0x180045014], 4
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
test eax, eax
je 0x18000dde6
mov ecx, 8
call fcn.1800108dc
test rax, rax
je 0x18000dd6f
lea rcx, [0x18000dc60]
mov qword [rax], rcx
lea rcx, [rsp + 0x38]
mov r9, rax
mov qword [rsp + 0x28], rcx
lea r8, [0x18000dc30]
xor ecx, ecx
mov dword [rsp + 0x20], 0
xor edx, edx
call fcn.18001929c
mov qword [rsp + 0x30], rax
test rax, rax
je 0x18000ddeb
cmp dword [rsp + 0x38], 0
je 0x18000ddfe
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [rsp + 0x38], eax
je 0x18000de09
movaps xmm0, xmmword [rsp + 0x30]
lea rcx, [rsp + 0x40]
xor edx, edx
movdqa xmmword [rsp + 0x40], xmm0
call fcn.18000ef24
test eax, eax
jne 0x18000de14
xorps xmm0, xmm0
mov ecx, 0x3e8
movdqa xmmword [rsp + 0x30], xmm0
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [rsp + 0x38], 0
jne 0x18000de1f
add rsp, 0x58
ret
mov ecx, 6
mov dword [rsp + 0x38], 0
call fcn.18000f51c
int3
mov ecx, 1
call fcn.18000f51c
int3
mov ecx, 5
call fcn.18000f51c
int3
mov ecx, 2
call fcn.18000f51c
int3
call fcn.180019150
int3

Function at 0x18000e980
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x250
mov rax, qword [0x180045068]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rcx
lea rdx, [rsp + 0x130]
lea rcx, [0x180030e7c]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov r8d, 0x104
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x130]
call qword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea rax, [rsp + 0x20]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rax + r8], 0
jne 0x18000e9e0
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.1800094c0
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1800110b0
add rsp, 0x250
pop rbx
ret
Function at 0x18000ea10
Capabilities:
Contain obfuscated stackstrings
Create process on windows
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x1120]
mov eax, 0x1220
call fcn.180011050
sub rsp, rax
mov rax, qword [0x180045068]
xor rax, rsp
mov qword [rbp + 0x1110], rax
movdqa xmm0, xmmword [str._SYSTEMROOT__sys]
lea rdx, [rbp]
mov rdi, rcx
mov dword [rbp - 0x10], 0x336d6574
lea rcx, [rbp - 0x20]
mov dword [rbp - 0xc], 0x6d635c32
mov r8d, 0x104
mov dword [rbp - 8], 0x78652e64
movdqu xmmword [rbp - 0x20], xmm0
mov word [rbp - 4], 0x65
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea r9, str._c__s
mov qword [rsp + 0x20], rdi
mov edx, 0xfff
lea rcx, [rbp + 0x110]
mov r8, 0xffffffffffffffff
call fcn.18000a2f0
xor eax, eax
lea rdi, [rsp + 0x70]
mov ecx, 0x68
lea rdx, [rbp + 0x110]
rep stosb byte [rdi], al
lea rdi, [rsp + 0x50]
mov dword [rsp + 0x70], 0x68
mov ecx, 0x18
mov dword [rbp - 0x54], 1
rep stosb byte [rdi], al
xor ecx, ecx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
xor r9d, r9d
lea rax, [rsp + 0x70]
mov word [rbp - 0x50], cx
mov qword [rsp + 0x40], rax
xor r8d, r8d
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], ecx
lea rcx, [rbp]
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov rcx, qword [rbp + 0x1110]
xor rcx, rsp
call fcn.1800110b0
mov rdi, qword [rsp + 0x1238]
add rsp, 0x1220
pop rbp
ret
Function at 0x1400091c8
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x50
mov qword [rax - 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov r14, r8
mov ebx, edx
mov rsi, rcx
mov r9d, edx
xor r8d, r8d
mov dl, 0xa
call fcn.140015adc
imul edi, ebx, 0x3e8
cmp ebx, 0xffffffff
cmove edi, ebx
mov rcx, qword [rsi + 8]
mov rax, qword [rcx]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x61230ce7
call qword [rax]
mov ebx, 0xe1230527
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebp, eax
cmp edi, 0xffffffff
je 0x140009236
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebp
cmp eax, edi
jae 0x140009253
xor edx, edx
mov rcx, r14
call fcn.140019adc
mov ebx, eax
test eax, eax
je 0x140009273
mov ecx, VarDecRound
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140009225
test ebx, ebx
je 0x140009273
mov rcx, qword [rsi + 8]
mov rax, qword [rcx]
xor r9d, r9d
xor r8d, r8d
mov edx, ebx
call qword [rax]
mov dword [rsi], 1
jmp 0x140009324
cmp edi, 0xffffffff
je 0x14000928a
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebp
cmp edi, eax
jae 0x140009288
xor edi, edi
jmp 0x14000928a
sub edi, eax
lea rax, vtable.ISecurable.0
mov qword [rsp + 0x38], rax
lea rax, vtable.CSecurableKernelObject.0
mov qword [rsp + 0x38], rax
and qword [rsp + 0x40], 0
lea rax, vtable.COSEvent.0
mov qword [rsp + 0x38], rax
and dword [rsp + 0x48], 0
mov r9d, 0x100000
mov rdx, qword [0x140067cc0]
lea rcx, [rsp + 0x38]
call fcn.140015a60
test eax, eax
jne 0x1400092db
mov edx, 0xe1230529
jmp 0x140009305
lea r8, [rsp + 0x78]
mov edx, edi
lea rcx, [rsp + 0x38]
call fcn.140015a8c
mov eax, dword [rsp + 0x78]
test eax, eax
je 0x14000931a
cmp eax, 0x102
mov edx, 0xe1230527
je 0x140009305
mov edx, 0xe1230528
mov rcx, qword [rsi + 8]
mov rax, qword [rcx]
xor r9d, r9d
xor r8d, r8d
call qword [rax]
mov dword [rsi], 1
lea rcx, [rsp + 0x38]
call fcn.1400159a0
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14000f6bc
Capabilities:
Query service status

Disassembly:
push rbx
push rsi
push rdi
push r14
sub rsp, 0x58
mov rax, qword [0x140065010]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov r14, rdx
mov rdi, r9
lea rdx, [rcx + 0x38]
mov rsi, r8
cmp qword [rdx + 0x18], 8
jb 0x14000f6ec
mov rdx, qword [rdx]
mov r8d, 0x84
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
je 0x14000f732
lea rdx, [rsp + 0x20]
mov dword [r14], 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x14000f729
cmp dword [rsp + 0x24], 4
jne 0x14000f729
mov dword [rsi], 1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140026390
add rsp, 0x58
pop r14
pop rdi
pop rsi
pop rbx
ret

Function at 0x14000f754
Capabilities:
Create service

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x2d0
mov rax, qword [0x140065010]
xor rax, rsp
mov qword [rsp + 0x2c0], rax
xor ebx, ebx
mov r14, rdx
mov rsi, rcx
lea rdx, str.ServicesActive
xor ecx, ecx
mov edi, ebx
lea r8d, [rbx + 3]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rbp, rax
test rax, rax
je 0x14000f859
lea rdx, [rsp + 0x70]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x14000f83c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
lea r8, [rsi + 0x58]
cmp qword [r8 + 0x18], 8
jb 0x14000f7d3
mov r8, qword [r8]
lea rdx, [rsi + 0x38]
cmp qword [rdx + 0x18], 8
jb 0x14000f7e1
mov rdx, qword [rdx]
mov qword [rsp + 0x60], rbx
mov r9d, 0xe0000000
mov qword [rsp + 0x58], rbx
mov rcx, rbp
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], r14
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
test rax, rax
jne 0x14000f831
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x14000f841
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14000f841
mov edi, 2
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
sete bl
mov eax, ebx
mov rcx, qword [rsp + 0x2c0]
xor rcx, rsp
call fcn.140026390
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14000f884
Capabilities:
Delete service
Query service status

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140065010]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor ebx, ebx
mov rdi, rcx
cmp qword [rcx], 0xffffffffffffffff
mov esi, ebx
je 0x14000f8c1
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or qword [rdi], 0xffffffffffffffff
mov r8d, 3
lea rdx, str.ServicesActive
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rbp, rax
test rax, rax
je 0x14000f968
lea rdx, [rdi + 0x38]
cmp qword [rdx + 0x18], 8
jb 0x14000f8f0
mov rdx, qword [rdx]
mov r8d, 0x20010084
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
je 0x14000f94f
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x14000f93c
mov eax, dword [rsp + 0x24]
dec eax
test eax, 0xfffffffd
je 0x14000f92d
mov ebx, 0x420
jmp 0x14000f944
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov esi, eax
test eax, eax
jne 0x14000f944
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14000f957
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140026390
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret

Function at 0x14000f98c
Capabilities:
Stop service

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140065010]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor ebx, ebx
mov rdi, rcx
cmp qword [rcx], 0xffffffffffffffff
mov esi, ebx
je 0x14000f9c9
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or qword [rdi], 0xffffffffffffffff
mov r8d, 1
lea rdx, str.ServicesActive
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rbp, rax
test rax, rax
je 0x14000fa50
lea rdx, [rdi + 0x38]
cmp qword [rdx + 0x18], 8
jb 0x14000f9f4
mov rdx, qword [rdx]
mov r8d, 0x200000a4
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
je 0x14000fa37
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov esi, eax
test eax, eax
jne 0x14000fa2c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14000fa3f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140026390
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x14000fb4c
Capabilities:
Query service configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov r14, rdx
xor ebx, ebx
lea rdx, [rcx + 0x38]
mov rbp, r8
cmp qword [rdx + 0x18], 8
jb 0x14000fb74
mov rdx, qword [rdx]
mov r8d, 1
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
je 0x14000fbef
lea r9, [rsp + 0x40]
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
jne 0x14000fbe6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14000fbe6
mov ecx, dword [rsp + 0x40]
call fcn.14002697c
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x40]
mov rdx, rax
mov rcx, rdi
mov rsi, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
je 0x14000fbde
mov eax, dword [rsi + 4]
mov ebx, 1
mov dword [r14], eax
mov rcx, rsi
call fcn.1400266ac
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbp, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x14000fc10
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 r14
sub rsp, 0x60
mov r14d, edx
mov rbp, rcx
cmp edx, 5
jb 0x14000fc3e
mov eax, 0x57
jmp 0x14000fcff
xor ebx, ebx
lea rdx, str.ServicesActive
xor ecx, ecx
mov edi, ebx
lea r8d, [rbx + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rsi, rax
test rax, rax
jne 0x14000fc6a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x14000fcec
lea rdx, [rbp + 0x38]
cmp qword [rdx + 0x18], 8
jb 0x14000fc78
mov rdx, qword [rdx]
mov r8d, 2
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbp, rax
test rax, rax
jne 0x14000fc99
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x14000fce3
mov qword [rsp + 0x50], rbx
or edx, 0xffffffff
mov qword [rsp + 0x48], rbx
mov r9d, edx
mov qword [rsp + 0x40], rbx
mov r8d, r14d
mov qword [rsp + 0x38], rbx
mov rcx, rbp
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
test eax, eax
jne 0x14000fcda
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
je 0x14000fcfa
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
sete bl
mov eax, ebx
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x140010eb0
Capabilities:
Get user security identifier

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
and dword [rbp + 0x40], 0
lea rsi, [rcx + 0x70]
and dword [rbp + 0x30], 0
lea rax, [rbp + 0x30]
mov qword [rsp + 0x30], rsi
lea r9, [rbp + 0x40]
mov rbx, rcx
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
xor r8d, r8d
xor ecx, ecx
mov rdi, rdx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140010fa7
mov edx, dword [rbp + 0x30]
lea r14, [rbx + 0x18]
mov rcx, r14
call fcn.1400111d4
mov edx, dword [rbp + 0x40]
mov rcx, rbx
call fcn.140011324
mov rax, qword [r14]
lea rcx, [rbp + 0x30]
mov r8, qword [rbx]
lea r9, [rbp + 0x40]
mov qword [rsp + 0x30], rsi
mov rdx, rdi
mov qword [rsp + 0x28], rcx
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x140010fcf
mov rdx, rdi
lea rcx, [rbx + 0x30]
call fcn.14000346c
call fcn.14001077c
test eax, eax
je 0x140011007
mov rcx, qword [rbx]
lea rdx, [rbp + 0x48]
and qword [rbp + 0x48], 0
call qword [0x140067c88]
test eax, eax
je 0x140011029
mov rdx, qword [rbp + 0x48]
lea rcx, [rbx + 0x50]
call fcn.14000346c
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
add rsp, 0x80
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov r9, rdi
lea rcx, [rbp - 0x38]
mov edx, 0xe123059d
mov r8d, 1
call fcn.14001008c
lea rdx, [0x140062610]
lea rcx, [rbp - 0x38]
call fcn.140028338
int3
mov rcx, r14
call fcn.1400111b8
mov rcx, rbx
call fcn.1400111b8
mov r9, rdi
lea rcx, [rbp - 0x38]
mov edx, 0xe123059d
mov r8d, 1
call fcn.14001008c
lea rdx, [0x140062610]
lea rcx, [rbp - 0x38]
call fcn.140028338
int3
xor edx, edx
lea rcx, [rbp - 0x40]
mov r8d, 0xe1232723
call fcn.14000fed8
lea rdx, [0x140062768]
lea rcx, [rbp - 0x40]
call fcn.140028338
int3
mov rcx, r14
call fcn.1400111b8
mov rcx, rbx
call fcn.1400111b8
lea rcx, [rbx + 0x30]
call fcn.1400111c0
lea rcx, [rbp - 0x40]
xor edx, edx
mov r8d, 0xe1232723
call fcn.14000fed8
lea rdx, [0x140062768]
lea rcx, [rbp - 0x40]
call fcn.140028338
int3