joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140099070
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140099088
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140099090
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1400990a0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x1400990ed
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x1400990e4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400990ef
add rax, 0x28
cmp rax, r9
jne 0x1400990d0
xor eax, eax
ret

Function at 0x1400990f0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140099180
mov rdx, qword [0x1400c1120]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14009916e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14009916e
cmp word [rax + 0x18], 0x20b
jne 0x14009916e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140099180
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140099159
add rbx, 0x28
cmp rbx, rdi
je 0x140099180
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140099150
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140099190
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400c1120]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400991b0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400991b8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400991b0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14009920d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140099204
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400991b0
add rax, 0x28
cmp rax, r9
jne 0x1400991f0
xor eax, eax
ret

Function at 0x140099210
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400c1120]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14009922f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140099238
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14009922f
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x140099250
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1400c1120]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140099270
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140099278
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140099270
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x1400992c0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400992b7
test rcx, rcx
je 0x140099270
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x1400992a8
xor eax, eax
ret

Function at 0x1400992d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400c1120]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400992ef
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400992f8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140099310
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400c1120]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140099330
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140099338
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140099330
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140099330
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140099384
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140099390
add rdx, 0x28
cmp r9, rdx
jne 0x140099370
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x1400993a0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x1400c1120]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1400993c2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1400993d0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400993c2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1400993c2
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x1400993c2
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140099425
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140099438
add rdx, 0x28
cmp r10, rdx
jne 0x140099410
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140099447
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140099457
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14009942e
test ecx, ecx
jg 0x140099440
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140088730
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
lea rdx, str.SimulateCtrlAltDel
mov ecx, 3
call fcn.14009a640
lea rcx, str.sas.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
je 0x140088809
lea rdx, str.SendSAS
mov qword [rsp + 0x50], rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
je 0x1400887f5
lea rax, [rsp + 0x48]
mov qword [rsp + 0x48], 0
mov r9d, 0xf003f
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400887f1
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], 4
lea rdx, str.SoftwareSASGeneration
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x40], 3
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
call rdi
mov rcx, rbx
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop rbx
jmp qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea rdx, str.cannot_open_sas.dll
mov ecx, 3
add rsp, 0x30
pop rbx
jmp fcn.14009a640
Function at 0x140092b30
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x140092b64
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140092b50
ret
Function at 0x140098a90
Capabilities:
Encode data using xor
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
mov qword [rsp + 8], rcx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x20
mov r15, rcx
lea rax, vtable.Injecter.0
mov qword [rcx], rax
mov byte [rcx + 8], dl
xor edi, edi
mov qword [rcx + 0x10], rdi
mov qword [rcx + 0x18], rdi
mov qword [rcx + 0x20], rdi
mov qword [rcx + 0x28], rdi
mov qword [rcx + 0x30], rdi
mov qword [rcx + 0x38], rdi
lea rbx, [rcx + 0x40]
mov qword [rsp + 0x60], rbx
mov qword [rbx], rdi
mov qword [rbx + 8], rdi
lea ecx, [rdi + 0x30]
call fcn.14025e2ec
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rbx], rax
mov qword [r15 + 0x50], rdi
mov qword [r15 + 0x60], rdi
mov qword [r15 + 0x68], reloc.WS2_32.dll_ntohs
mov byte [r15 + 0x50], dil
mov qword [r15 + 0x70], rdi
mov qword [r15 + 0x78], rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbp, rax
lea edx, [rdi + 0x64]
mov r8d, 0x190
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
je 0x140098bb8
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140098bb8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r12, rax
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x140098bb8
mov ebx, eax
mov edx, eax
lea rcx, [r15 + 0x10]
call fcn.14009a090
mov r8d, ebx
mov rdx, r12
mov rcx, qword [r15 + 0x10]
call fcn.140260c10
mov ecx, edi
mov rax, qword [r15 + 0x18]
cmp rax, qword [r15 + 0x10]
je 0x140098bb8
nop word [rax + rax]
mov rax, qword [r15 + 0x10]
xor byte [rax + rcx], 0x55
inc rcx
mov rax, qword [r15 + 0x18]
sub rax, qword [r15 + 0x10]
cmp rcx, rax
jb 0x140098ba0
mov edx, 0xc8
mov r8d, 0x190
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
je 0x140098c48
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140098c48
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x140098c48
mov ebx, eax
mov edx, eax
lea rcx, [r15 + 0x28]
call fcn.14009a090
mov r8d, ebx
mov rdx, r14
mov rcx, qword [r15 + 0x28]
call fcn.140260c10
mov rax, qword [r15 + 0x30]
cmp rax, qword [r15 + 0x28]
je 0x140098c48
nop word [rax + rax]
mov rax, qword [r15 + 0x28]
xor byte [rax + rdi], 0x55
inc rdi
mov rax, qword [r15 + 0x30]
sub rax, qword [r15 + 0x28]
cmp rdi, rax
jb 0x140098c30
mov rax, r15
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x14009a7e0
Capabilities:
Create thread
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
mov rbx, r8
mov ecx, Ordinal_26
mov rbp, rdx
call fcn.14027b1c8
mov rdi, rax
test rax, rax
jne 0x14009a814
lea eax, [rdi - 1]
jmp 0x14009a868
mov qword [rax + 8], rbx
lea r8, [0x14009a8c0]
xor ebx, ebx
mov qword [rax], rbp
mov qword [rsp + 0x28], rbx
mov r9, rdi
xor edx, edx
mov dword [rsp + 0x20], 4
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
jne 0x14009a854
call fcn.14027367c
mov rcx, rdi
mov ebx, dword [rax]
call fcn.140273908
jmp 0x14009a864
mov qword [rsi], rax
mov rcx, rax
mov qword [rdi + 0x10], rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
neg ebx
sbb eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x14009a900
Capabilities:
Create process on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
mov qword [r11 + 8], rcx
push rdi
sub rsp, 0xe0
mov rdi, rdx
mov rsi, rcx
xor ebp, ebp
mov dword [rsp + 0x50], ebp
mov qword [rcx], rbp
mov dword [rsp + 0x50], 1
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x70], xmm0
movups xmmword [r11 - 0x68], xmm0
movups xmmword [r11 - 0x58], xmm0
movups xmmword [r11 - 0x48], xmm0
movups xmmword [r11 - 0x38], xmm0
movups xmmword [r11 - 0x28], xmm0
mov qword [r11 - 0x18], rax
mov dword [rsp + 0x70], WSAGetLastError
mov word [r11 - 0x38], bp
mov dword [r11 - 0x3c], 1
mov ecx, 0x209
call fcn.14025e98c
mov rbx, rax
mov rcx, rax
sub rcx, rdi
movzx eax, byte [rdi]
mov byte [rcx + rdi], al
lea rdi, [rdi + 1]
test al, al
jne 0x14009a981
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], ebp
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x14009a9f0
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x58]
mov rcx, qword [rsi]
cmp rdi, rcx
je 0x14009a9f0
test rcx, rcx
je 0x14009a9ed
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi], rdi
test rbx, rbx
je 0x14009a9fd
mov rcx, rbx
call fcn.14025e328
mov rax, rsi
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14009ac60
Capabilities:
Create service
Modify service

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov r15, r8
mov rbp, rdx
mov rsi, rcx
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
mov r14, r9
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
je 0x14009ad9d
cmp qword [rsi + 0x18], 8
mov rdx, rsi
mov qword [rsp + 0xa0], rbx
jb 0x14009acb3
mov rdx, qword [rsi]
mov r8d, 0xf01ff
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
jne 0x14009ad53
cmp qword [r15 + 0x10], rax
jne 0x14009ace3
cmp qword [rsi + 0x18], 8
mov r15, rsi
jb 0x14009aced
mov r15, qword [rsi]
jmp 0x14009aced
cmp qword [r15 + 0x18], 8
jb 0x14009aced
mov r15, qword [r15]
cmp qword [rbp + 0x18], 8
jb 0x14009acf8
mov rbp, qword [rbp]
cmp qword [rsi + 0x18], 8
jb 0x14009ad02
mov rsi, qword [rsi]
xor eax, eax
mov r9d, 0xf01ff
mov qword [rsp + 0x60], rax
mov r8, r15
mov qword [rsp + 0x58], rax
mov rdx, rsi
mov qword [rsp + 0x50], rax
mov rcx, rdi
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 0x110
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rbx, rax
test rax, rax
je 0x14009ad7c
cmp qword [r14 + 0x10], 0
je 0x14009ad7c
cmp qword [r14 + 0x18], 8
jb 0x14009ad64
mov r14, qword [r14]
lea r8, [rsp + 0x70]
mov qword [rsp + 0x70], r14
mov edx, 1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test rbx, rbx
je 0x14009ad8a
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbx, qword [rsp + 0xa0]
mov al, 1
lea r11, [rsp + 0x80]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x14009adc0
Capabilities:
Delete service
Stop service

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140398b38]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rsi, rcx
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
je 0x14009ae42
cmp qword [rsi + 0x18], 8
mov rdx, rsi
jb 0x14009ae06
mov rdx, qword [rsi]
mov r8d, 0xf01ff
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
je 0x14009ae39
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
je 0x14009aea8
cmp qword [rsi + 0x18], 8
jb 0x14009ae64
mov rsi, qword [rsi]
mov r8d, 0xf01ff
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
je 0x14009ae98
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
mov rcx, rdi
setne sil
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14009ae9b
mov sil, 1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
movzx eax, sil
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14025e930
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

Function at 0x14009aed0
Capabilities:
Start service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, r8
mov ebp, edx
mov rdi, rcx
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
je 0x14009af57
cmp qword [rdi + 0x18], 8
jb 0x14009af0e
mov rdi, qword [rdi]
mov r8d, 0xf01ff
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
jne 0x14009af2d
xor sil, sil
jmp 0x14009af4a
mov r8, rsi
mov edx, ebp
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
mov rcx, rdi
setne sil
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
movzx eax, sil
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14009af70
Capabilities:
Stop service

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x140398b38]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, rcx
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
je 0x14009b006
cmp qword [rdi + 0x18], 8
mov qword [rsp + 0x68], rsi
jb 0x14009afb3
mov rdi, qword [rdi]
mov r8d, 0xf01ff
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
jne 0x14009afd2
xor sil, sil
jmp 0x14009aff4
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
mov rcx, rdi
setne sil
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
movzx eax, sil
mov rsi, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14025e930
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

Function at 0x14009bea0
Capabilities:
Connect pipe
Create pipe

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rdi, qword [rcx + 0x58]
lea rsi, [rcx + 0x58]
cmp rdi, 0xffffffffffffffff
jne 0x14009bfd5
cmp qword [rcx + 0x18], 0x10
mov qword [rsp + 0x50], rbx
lea rbx, [rcx + 0x60]
mov qword [rsp + 0x58], rbp
lea rbp, [rcx + 0x38]
jb 0x14009bed8
mov rcx, qword [rcx]
mov qword [rsp + 0x38], 0
mov r9d, 1
mov dword [rsp + 0x30], 0xffffffff
mov edx, 0x40000003
mov dword [rsp + 0x28], 0x400
mov dword [rsp + 0x20], 0x400
lea r8d, [r9 + 5]
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14009bf3b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rdi + 3]
mov ebx, eax
call fcn.14027addc
mov rcx, rax
lea rdx, str.CreateNamedPipeW_failed__error:__u._n
mov r8d, ebx
call fcn.140088fb0
jmp 0x14009bfb2
mov rdx, rbp
mov byte [rbx], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x14009bf75
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x14009bf67
cmp eax, 0x3e5
jne 0x14009bf75
mov byte [rbx], 1
jmp 0x14009bfb2
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x14009bfb2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 2
mov ebx, eax
call fcn.14027addc
mov r8d, ebx
lea rdx, str.ConnectNamedPipe_failed_with__d._n
mov rcx, rax
call fcn.140088fb0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov rcx, rdi
mov rdi, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsi]
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov qword [rsi], rdi
cmp rcx, 0xffffffffffffffff
je 0x14009bfd1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsi]
cmp rdi, 0xffffffffffffffff
mov rsi, qword [rsp + 0x60]
setne al
add rsp, 0x40
pop rdi
ret
Function at 0x14009bff0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x470
mov rax, qword [0x140398b38]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov rax, qword [rcx + 0x30]
mov esi, edx
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x60]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x38], 0
mov rbx, rcx
mov qword [rsp + 0x20], rax
mov rcx, qword [rcx + 0x58]
xorps xmm0, xmm0
xor r9d, r9d
mov r8d, 0x400
movdqu xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14009c0ac
mov rcx, qword [rbx + 0x58]
lea r8, [rsp + 0x30]
mov r9d, 1
mov dword [rsp + 0x30], 0
lea rdx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x14009c13a
mov rcx, qword [rbx + 0x58]
cmp rcx, 0xffffffffffffffff
je 0x14009c09c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x58], 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0x10000
jmp 0x14009c17b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp eax, 0x3e5
je 0x14009c0e5
cmp eax, 0xe8
je 0x14009c0e5
mov rcx, qword [rbx + 0x58]
cmp rcx, 0xffffffffffffffff
je 0x14009c0da
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x58], 0xffffffffffffffff
lea eax, [rdi + 0x20000]
jmp 0x14009c17b
mov rcx, qword [rbx + 0x30]
mov edx, esi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx + 0x58]
test eax, eax
jne 0x14009c173
lea r9d, [rax + 1]
mov dword [rsp + 0x30], eax
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x14009c13a
mov rcx, qword [rbx + 0x58]
cmp rcx, 0xffffffffffffffff
je 0x14009c12d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x58], 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0x30000
jmp 0x14009c17b
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x14009c153
mov rax, qword [rcx]
lea rdx, [rsp + 0x60]
mov r8d, dword [rsp + 0x30]
call qword [rax + reloc.WS2_32.dll_htonl]
mov ecx, 2
call fcn.14027addc
mov r8d, dword [rsp + 0x30]
lea rdx, str.Client_Read:__d_n
mov rcx, rax
call fcn.140088fb0
jmp 0x14009c179
call qword [sym.imp.KERNEL32.dll_CancelIo]
xor eax, eax
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.14025e930
lea r11, [rsp + 0x470]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x14009c2f0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx + 0x58]
xor eax, eax
mov dword [rsp + 0x40], eax
cmp rcx, 0xffffffffffffffff
je 0x14009c321
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14009c321
mov eax, dword [rsp + 0x40]
add rsp, 0x38
ret
xor eax, eax
add rsp, 0x38
ret