joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14006b090
Capabilities:
Enumerate files on windows

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0xc8]
sub rsp, 0x1b0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rdi, r8
mov rbx, rdx
mov qword [rsp + 0x38], reloc.WS2_32.dll_ntohs
xor r14d, r14d
mov qword [rsp + 0x30], r14
mov byte [rsp + 0x20], r14b
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.14000ca10
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.14000ba20
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 0x10
cmovae rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14006b244
movabs r15, 0x555555555555554
nop dword [rax]
nop word [rax + rax]
mov qword [rsp + 0x58], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x50], r14
mov byte [rsp + 0x40], 0
cmp byte [rbp - 0x64], 0
jne 0x14006b15e
mov r8, r14
jmp 0x14006b170
lea rax, [rbp - 0x64]
or r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x14006b166
lea rdx, [rbp - 0x64]
lea rcx, [rsp + 0x40]
call fcn.14000d058
nop
mov rbx, qword [rdi]
lea r9, [rsp + 0x40]
mov r8, qword [rbx + 8]
mov rdx, rbx
mov rcx, rdi
call fcn.140009d2c
mov rdx, qword [rdi + 8]
mov rcx, r15
sub rcx, rdx
cmp rcx, 1
jb 0x14006b237
lea rcx, [rdx + 1]
mov qword [rdi + 8], rcx
mov qword [rbx + 8], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rax
mov rax, qword [rsp + 0x58]
cmp rax, 0x10
jb 0x14006b1fd
inc rax
mov rcx, qword [rsp + 0x40]
cmp rax, 0x1000
jb 0x14006b1f8
test cl, 0x1f
jne 0x14006b226
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x14006b220
sub rcx, rax
cmp rcx, 8
jb 0x14006b21a
cmp rcx, 0x27
ja 0x14006b214
mov rcx, rax
call fcn.1400eb7f4
lea rdx, [rsp + 0x70]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x14006b22c
jmp 0x14006b140
call fcn.140128ff4
int3
call fcn.140128ff4
int3
call fcn.140128ff4
int3
call fcn.140128ff4
int3
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x14006b244
lea rcx, str.list_T__too_long
call fcn.1400bc800
nop
mov rax, qword [rsp + 0x38]
cmp rax, 0x10
jb 0x14006b29c
inc rax
mov rcx, qword [rsp + 0x20]
cmp rax, 0x1000
jb 0x14006b297
test cl, 0x1f
je 0x14006b26a
call fcn.140128ff4
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x14006b279
call fcn.140128ff4
int3
sub rcx, rax
cmp rcx, 8
jae 0x14006b288
call fcn.140128ff4
int3
cmp rcx, 0x27
jbe 0x14006b294
call fcn.140128ff4
int3
mov rcx, rax
call fcn.1400eb7f4
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14006d720
Capabilities:
Create thread
Terminate thread

Disassembly:
sub rsp, 0x38
mov eax, dword [0x1406f4cbc]
cmp dword [0x1406f4cc8], eax
je 0x14006d747
mov dword [0x1406f4cc8], eax
mov dword [0x1406f4ccc], 0
add rsp, 0x38
ret
mov eax, dword [0x1406f4ccc]
inc eax
mov dword [0x1406f4ccc], eax
cmp eax, 0x258
jl 0x14006d7ae
mov rcx, qword [0x1406f4d00]
xor edx, edx
mov dword [rsp + 0x40], 0
call qword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
je 0x14006d7a4
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea r8, section..code1
xor edx, edx
mov dword [rsp + 0x20], 0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x1406f4d00], rax
mov dword [0x1406f4ccc], 0
add rsp, 0x38
ret
Function at 0x14006dc40
Capabilities:
Query service status
Start service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rdi, rcx
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
xor bl, bl
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
je 0x14006dcdc
mov rdx, qword [rdi]
mov r8d, reloc.WS2_32.dll_sendto
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
je 0x14006dcd3
xor ebx, ebx
cmp ebx, 0x258
jge 0x14006dcb6
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x14006dcb6
inc ebx
cmp dword [rsp + 0x24], 1
jne 0x14006dc88
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
cmp eax, 1
mov rcx, rdi
sete bl
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rsi, qword [rsp + 0x58]
movzx eax, bl
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x14006df30
Capabilities:
Check if file exists
Create process on windows
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x210
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rsp + 0x228], rbx
movzx ebx, dl
mov rdi, rcx
mov rcx, qword [rcx]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x14006df69
or ebx, 0xffffffff
jmp 0x14006e12b
mov edx, 0x104
lea rcx, [rsp + 0x100]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, Ordinal_46
lea rcx, [rsp + 0x70]
call fcn.1400160a0
cmp qword [rax + 0x18], 0x10
jb 0x14006df95
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rsp + 0x100]
call qword [sym.imp.SHLWAPI.dll_PathAppendA]
mov rax, qword [rsp + 0x88]
cmp rax, 0x10
jb 0x14006e001
inc rax
mov rcx, qword [rsp + 0x70]
cmp rax, 0x1000
jb 0x14006dffc
test cl, 0x1f
je 0x14006dfcf
call fcn.140128ff4
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x14006dfde
call fcn.140128ff4
int3
sub rcx, rax
cmp rcx, 8
jae 0x14006dfed
call fcn.140128ff4
int3
cmp rcx, 0x27
jbe 0x14006dff9
call fcn.140128ff4
int3
mov rcx, rax
call fcn.1400eb7f4
call fcn.14000b6b4
mov rcx, rax
test rax, rax
jne 0x14006e019
mov ecx, 0x80004005
call fcn.14000b9ec
int3
mov rax, qword [rax]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rsp + 0x230], rax
lea rax, [0x1403f4d34]
lea r9, [0x14069df3a]
test bl, bl
cmovne r9, rax
mov rax, qword [rdi]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x100]
lea rdx, str._s__s_s___s_
lea rcx, [rsp + 0x230]
call fcn.140008754
mov dword [rsp + 0x90], WSASetLastError
xor edx, edx
lea r8d, [rdx + 0x60]
lea rcx, [rsp + 0x98]
call fcn.14011d670
mov rbx, qword [rsp + 0x230]
cmp dword [rbx - 8], 1
jle 0x14006e0a7
mov edx, dword [rbx - 0x10]
lea rcx, [rsp + 0x230]
call fcn.140006e40
mov rbx, qword [rsp + 0x230]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x14006e10e
mov edx, reloc.WLDAP32.dll_Ordinal_60
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rdx, [rbx - 0x18]
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14006e12b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [rdi]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x14006e145
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rbx, qword [rsp + 0x228]
add rsp, 0x210
pop rdi
ret
Function at 0x14006e210
Capabilities:
Create process on windows

Disassembly:
push rbp
lea rbp, [rsp - 0x1050]
mov eax, 0x1150
call fcn.1400ec150
sub rsp, rax
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x1160], rbx
mov byte [reloc.WS2_32.dll_accept], 0
xor edx, edx
mov r8d, 0x1000
lea rcx, [rbp + 0x50]
call fcn.14011d670
mov r8d, 0x800
lea rdx, [rbp + 0x50]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov qword [rbp - 0x78], 7
xor ebx, ebx
mov qword [rbp - 0x80], rbx
mov word [rsp + 0x70], bx
cmp word [rbp + 0x50], bx
jne 0x14006e27f
mov r8d, ebx
jmp 0x14006e29a
lea rax, [rbp + 0x50]
or r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], bx
jne 0x14006e290
lea rdx, [rbp + 0x50]
lea rcx, [rsp + 0x70]
call fcn.14000b804
nop
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], rbx
mov word [rsp + 0x50], bx
mov r8d, 1
lea rdx, [0x1403f4d54]
lea rcx, [rsp + 0x50]
call fcn.14000b804
nop
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x50]
call fcn.1400701e0
nop
lea r8, str.___rs
mov rdx, rax
lea rcx, [rbp - 0x70]
call fcn.140070240
nop
mov r8, qword [rbp - 0x38]
cmp r8, 8
jb 0x14006e316
inc r8
mov rdx, qword [rbp - 0x50]
lea rcx, [rbp - 0x50]
call fcn.14000c6f4
mov qword [rbp - 0x38], 7
mov qword [rbp - 0x40], rbx
mov word [rbp - 0x50], bx
mov r8, qword [rsp + 0x68]
cmp r8, 8
jb 0x14006e343
inc r8
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x50]
call fcn.14000c6f4
xor edx, edx
lea r8d, [rdx + 0x68]
lea rcx, [rbp - 0x20]
call fcn.14011d670
lea rdx, [rbp - 0x70]
cmp qword [rbp - 0x58], 8
cmovae rdx, qword [rbp - 0x70]
lea rcx, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8, qword [rbp - 0x58]
cmp r8, 8
jb 0x14006e3d1
inc r8
mov rdx, qword [rbp - 0x70]
lea rcx, [rbp - 0x70]
call fcn.14000c6f4
mov qword [rbp - 0x58], 7
mov qword [rbp - 0x60], rbx
mov word [rbp - 0x70], bx
mov r8, qword [rbp - 0x78]
cmp r8, 8
jb 0x14006e3fd
inc r8
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x70]
call fcn.14000c6f4
mov rbx, qword [rsp + 0x1160]
add rsp, 0x1150
pop rbp
ret
Function at 0x14006e420
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x2050
call fcn.1400ec150
sub rsp, rax
mov rdi, rdx
mov dword [rsp + 0x2078], 1
mov rbx, rcx
mov dword [rsp + 0x2070], 0x2000
mov edx, reloc.WS2_32.dll_ntohs
lea rcx, [rsp + 0x30]
call fcn.140016310
cmp qword [rax + 0x18], 8
jb 0x14006e468
mov rax, qword [rax]
lea rcx, [rsp + 0x2070]
xor r8d, r8d
mov qword [rsp + 0x28], rcx
lea r9, [rsp + 0x2078]
lea rcx, [rsp + 0x50]
mov rdx, rax
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r8, qword [rsp + 0x48]
test eax, eax
setne bl
cmp r8, 8
jb 0x14006e4b8
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x30]
inc r8
call fcn.14000c6f4
test bl, bl
jne 0x14006e528
xor r8d, r8d
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], r8
mov word [rsp + 0x30], r8w
cmp word [rsp + 0x50], r8w
je 0x14006e4ef
lea rax, [rsp + 0x50]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x14006e4e4
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.14000b804
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140070a70
mov r8, qword [rsp + 0x48]
cmp r8, 8
jb 0x14006e528
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x30]
inc r8
call fcn.14000c6f4
mov rbx, qword [rsp + 0x2060]
add rsp, 0x2050
pop rdi
ret
Function at 0x140071090
Capabilities:
Get file version info

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov qword [rax - 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov r14, r8
mov rdi, rdx
xor esi, esi
mov dword [rsp + 0x30], esi
mov qword [rax - 0x50], rsi
mov dword [rax + 0x20], esi
cmp qword [r8 + 0x18], 0x10
jb 0x1400710d1
mov rcx, qword [r8]
jmp 0x1400710d4
mov rcx, r14
xor edx, edx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebp, eax
test eax, eax
jne 0x140071104
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov qword [rdi + 0x10], rsi
cmp qword [rdi + 0x18], 0x10
jb 0x1400710f9
mov rax, qword [rdi]
jmp 0x1400710fc
mov rax, rdi
mov byte [rax], 0
jmp 0x140071224
mov rcx, rbp
call fcn.1400ec130
mov rbx, rax
cmp qword [r14 + 0x18], 0x10
jb 0x14007111b
mov rcx, qword [r14]
jmp 0x14007111e
mov rcx, r14
mov r9, rbx
mov r8d, ebp
xor edx, edx
call sub.VERSION.dll_GetFileVersionInfoA
mov rcx, rbx
test eax, eax
jne 0x140071139
call fcn.1400ec138
jmp 0x1400710e1
lea r9, [rsp + 0xa8]
lea r8, [rsp + 0x38]
lea rdx, [0x140247090]
call sub.VERSION.dll_VerQueryValueW
mov rcx, rbx
test eax, eax
jne 0x140071160
call fcn.1400ec138
jmp 0x1400710e1
mov rax, qword [rsp + 0x38]
movzx ebp, word [rax + 0xa]
movzx r15d, word [rax + 8]
movzx r12d, word [rax + 0xe]
movzx r13d, word [rax + 0xc]
call fcn.1400ec138
call fcn.14000b6b4
mov rcx, rax
test rax, rax
jne 0x140071195
mov ecx, 0x80004005
call fcn.14000b9ec
int3
mov rax, qword [rax]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r12d
mov r9d, r15d
mov r8d, ebp
lea rdx, str._d._d._d._d
lea rcx, [rsp + 0x40]
call fcn.140008754
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov qword [rdi + 0x10], rsi
cmp qword [rdi + 0x18], 0x10
jb 0x1400711dd
mov rax, qword [rdi]
jmp 0x1400711e0
mov rax, rdi
mov byte [rax], 0
or rbp, 0xffffffffffffffff
mov rbx, qword [rsp + 0x40]
cmp byte [rbx], 0
je 0x1400711fd
mov rsi, rbp
inc rsi
cmp byte [rbx + rsi], 0
jne 0x1400711f4
mov r8, rsi
mov rdx, rbx
mov rcx, rdi
call fcn.14000d058
nop
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], ebp
sub ebp, 1
jg 0x140071224
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rcx, r14
call fcn.14000c7e0
mov rax, rdi
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140071480
Capabilities:
Get file size
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
push rsi
push rdi
push r14
sub rsp, 0x50
mov qword [rax - 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov r14, r8
mov rdi, rdx
xor bl, bl
cmp qword [rdx + 0x18], 0x10
jb 0x1400714b3
mov rcx, qword [rdx]
jmp 0x1400714b6
mov rcx, rdi
xor ebp, ebp
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [rbp + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140071529
mov dword [rsp + 0x88], ebp
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov edx, eax
mov rcx, r14
call fcn.14000e8f0
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x88]
mov r8d, ebx
mov rdx, qword [r14]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
mov rcx, rdi
call fcn.14000c7e0
movzx eax, bl
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x80]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
Function at 0x140073a70
Capabilities:
Query service configuration

Disassembly:
push rbp
push rdi
sub rsp, 0x28
mov rdi, rcx
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdx, qword [rdi]
mov rbp, rax
test rax, rax
jne 0x140073ab8
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140073aaf
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
xor al, al
add rsp, 0x28
pop rdi
pop rbp
ret
mov r8d, reloc.WS2_32.dll_setsockopt
mov qword [rsp + 0x20], r14
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov r14, rax
test rax, rax
jne 0x140073b08
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdx, qword [rdi]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140073afa
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
xor al, al
mov r14, qword [rsp + 0x20]
add rsp, 0x28
pop rdi
pop rbp
ret
mov qword [rsp + 0x40], rbx
mov edx, 0x1000
mov ecx, 0x40
mov qword [rsp + 0x50], rsi
xor bl, bl
mov dword [rsp + 0x48], 0
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x140073b67
lea r9, [rsp + 0x48]
mov r8d, 0x1000
mov rdx, rax
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
je 0x140073b5e
cmp dword [rsi + 4], 2
mov eax, 1
movzx ebx, bl
cmove ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdx, qword [rdi]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
mov rsi, qword [rsp + 0x50]
sub eax, 1
jg 0x140073b9c
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.WS2_32.dll_htonl + 8]
mov r14, qword [rsp + 0x20]
movzx eax, bl
mov rbx, qword [rsp + 0x40]
add rsp, 0x28
pop rdi
pop rbp
ret
Function at 0x140073bc0
Capabilities:
Modify service

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov rdi, rcx
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdx, qword [rdi]
mov rsi, rax
test rax, rax
jne 0x140073c12
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140073c02
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
xor al, al
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
mov r8d, 2
mov qword [rsp + 0x78], rbp
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbp, rax
test rax, rax
jne 0x140073c69
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdx, qword [rdi]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140073c54
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
xor al, al
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
xor eax, eax
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x50], rax
or r9d, 0xffffffff
mov qword [rsp + 0x48], rax
or edx, r9d
mov qword [rsp + 0x40], rax
mov rcx, rbp
mov qword [rsp + 0x38], rax
lea r8d, [rax + 2]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
mov rcx, rbp
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdx, qword [rdi]
cmp ebx, 1
sete bl
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140073cdf
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.WS2_32.dll_htonl + 8]
mov rbp, qword [rsp + 0x78]
movzx eax, bl
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
Function at 0x140074130
Capabilities:
Acquire debug privileges

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x50], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x50]
mov edx, reloc.WLDAP32.dll_Ordinal_32
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400741c1
lea r8, [rsp + 0x58]
xor ecx, ecx
lea rdx, str.SeDebugPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x1400741b6
mov rax, qword [rsp + 0x58]
lea r8, [rsp + 0x30]
mov rcx, qword [rsp + 0x50]
mov r9d, reloc.WS2_32.dll_recv
mov qword [rsp + 0x28], 0
xor edx, edx
mov qword [rsp + 0x34], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x3c], 2
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x48
ret

Function at 0x140075850
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x60
xor edx, edx
mov rdi, rcx
xor ecx, ecx
lea r8d, [rdx + 4]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdx, qword [rdi]
mov rsi, rax
test rax, rax
jne 0x1400758a0
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140075890
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
xor eax, eax
mov rsi, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
ret
mov r8d, 4
mov qword [rsp + 0x80], rbp
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rbp, rax
test rax, rax
jne 0x1400758e9
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdx, qword [rdi]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400758e5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
xor eax, eax
jmp 0x140075966
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rbx
mov r9d, Ordinal_41
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x30]
xor edx, edx
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
mov rcx, rbp
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdx, qword [rdi]
or eax, 0xffffffff
sub rdx, 0x18
test ebx, ebx
jne 0x140075947
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140075943
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
xor eax, eax
jmp 0x140075961
mov ebx, dword [rsp + 0x34]
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14007595f
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.WS2_32.dll_htonl + 8]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
ret
Function at 0x140076200
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x80
mov qword [rax - 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov rbx, rcx
xor ebp, ebp
mov r14d, 0x80000000
nop dword [rax]
cmp qword [rbx], 0
je 0x140076241
cmp qword [rbx + 8], 0
jne 0x1400763e7
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x1400763eb
cmp byte [rbx + 0x10], 0
jne 0x14007629c
mov qword [rsp + 0x40], rbp
mov dword [rsp + 0x38], ebp
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], ebp
xor r9d, r9d
xor r8d, r8d
or edx, 0xffffffff
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeSecurity]
lea ecx, [rax + r14]
test r14d, ecx
jne 0x140076298
cmp eax, 0x80010119
jne 0x1400763db
mov byte [rbx + 0x10], 1
mov qword [rsp + 0x20], rbx
lea r9, [0x14040bcf8]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x14040bc98]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x1400762da
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rcx, rbx
call fcn.140076460
test al, al
je 0x1400763eb
jmp 0x140076230
mov edx, reloc.WLDAP32.dll_Ordinal_200
lea rcx, [rsp + 0x58]
call fcn.140016310
nop
cmp qword [rax + 0x18], 8
jb 0x1400762f4
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rsp + 0xa0]
call fcn.140076a70
nop
mov rcx, qword [rax]
test rcx, rcx
je 0x140076312
mov rdx, qword [rcx]
jmp 0x140076315
mov rdx, rbp
mov rcx, qword [rbx]
lea rdi, [rbx + 8]
mov rax, qword [rcx]
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rbp
xor r9d, r9d
xor r8d, r8d
call qword [rax + Ordinal_26]
mov esi, eax
mov rcx, qword [rsp + 0xa0]
test rcx, rcx
je 0x14007635c
call fcn.140066be0
mov qword [rsp + 0xa0], rbp
mov r8, qword [rsp + 0x70]
cmp r8, 8
jb 0x140076379
inc r8
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x58]
call fcn.14000c6f4
test esi, esi
jns 0x14007638e
mov rcx, qword [rbx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [rbx], rbp
jmp 0x1400762bf
mov dword [rsp + 0x38], ebp
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0xa]
mov rcx, qword [rdi]
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x1400763e3
mov rcx, qword [rdi]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [rdi], rbp
mov rcx, qword [rbx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [rbx], rbp
jmp 0x1400762bf
call qword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x1400763eb
mov byte [rbx + 0x11], 1
mov al, 1
jmp 0x1400763ed
xor al, al
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret