joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18000ce50
Capabilities:
Suspend thread

Disassembly:
push rsi
sub rsp, 0x70
mov rax, qword [0x180043020]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rsi, rcx
xor eax, eax
mov ecx, 1
lock cmpxchg dword [0x180045678], ecx
cmp eax, ecx
jne 0x18000ce90
nop dword [rax + rax]
pause
xor eax, eax
lock cmpxchg dword [0x180045678], ecx
cmp eax, ecx
je 0x18000ce80
test rsi, rsi
jne 0x18000ceaa
xor al, al
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.18000dfe0
add rsp, 0x70
pop rsi
ret
mov qword [rsp + 0x88], rbx
mov qword [rsp + 0x90], rbp
xor ebp, ebp
mov ebx, ebp
cmp dword [rsi + 4], ebx
jbe 0x18000cf86
mov qword [rsp + 0x98], rdi
nop
mov eax, ebx
lea rdi, [rax + rax*4]
shl rdi, 4
add rdi, rsi
mov qword [rdi + 0x100], rbp
mov rax, qword gs:[0x30]
mov ecx, dword [rax + 0x48]
cmp qword [rdi + 0x130], rcx
je 0x18000cf73
xorps xmm0, xmm0
mov dword [rsp + 0x28], 0x30
lea r9, [rdi + 0x128]
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x28]
mov dword [rsp + 0x40], ebp
mov edx, 0x1a
mov qword [rsp + 0x38], rbp
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rbp
movdqu xmmword [rsp + 0x48], xmm0
call qword [sym.imp.ntdll.dll_ZwOpenThread]
test eax, eax
js 0x18000cf73
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x18000cf73
lea rdx, [rsp + 0x58]
mov dword [rsp + 0x58], ebp
call qword [sym.imp.ntdll.dll_ZwSuspendThread]
test eax, eax
jns 0x18000cf67
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntdll.dll_ZwClose]
jmp 0x18000cf73
mov rax, qword [rsp + 0x20]
mov qword [rdi + 0x100], rax
inc ebx
cmp ebx, dword [rsi + 4]
jb 0x18000ced0
mov rdi, qword [rsp + 0x98]
mov rbp, qword [rsp + 0x90]
mov al, 1
mov rbx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.18000dfe0
add rsp, 0x70
pop rsi
ret

Function at 0x18000cfb0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0x30
mov rax, qword [0x180043020]
xor rax, rsp
mov qword [rsp + 0x28], rax
xor edx, edx
mov rsi, rcx
xor r8d, r8d
lea rcx, [rdx - 1]
call qword [sym.imp.ntdll.dll_ZwFlushInstructionCache]
xor ebp, ebp
test rsi, rsi
jne 0x18000cfe6
xor al, al
jmp 0x18000d045
mov qword [rsp + 0x48], rbx
mov ebx, ebp
cmp dword [rsi + 4], ebx
jbe 0x18000d03e
mov qword [rsp + 0x50], rdi
mov eax, ebx
lea rdi, [rax + rax*4]
add rdi, rdi
mov rcx, qword [rsi + rdi*8 + 0x100]
test rcx, rcx
je 0x18000d032
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], ebp
call qword [sym.imp.ntdll.dll_ZwResumeThread]
mov rcx, qword [rsi + rdi*8 + 0x100]
call qword [sym.imp.ntdll.dll_ZwClose]
mov qword [rsi + rdi*8 + 0x100], rbp
inc ebx
cmp ebx, dword [rsi + 4]
jb 0x18000cff7
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x48]
mov al, 1
xchg dword [0x180045678], ebp
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.18000dfe0
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop rsi
ret
Function at 0x18000d070
Capabilities:
Allocate or change rwx memory

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x180043020]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov edi, r8d
lea rax, [r11 - 0x30]
mov rbp, rdx
mov qword [r11 - 0x28], rcx
mov rbx, rcx
mov qword [r11 - 0x38], rdi
lea r8, [r11 - 0x38]
mov qword [r11 - 0x48], rax
lea rdx, [r11 - 0x28]
mov dword [rsp + 0x38], 0
mov rcx, 0xffffffffffffffff
mov r9d, 0x40
call qword [sym.imp.ntdll.dll_ZwProtectVirtualMemory]
xor esi, esi
test eax, eax
cmovns esi, dword [rsp + 0x38]
test esi, esi
jne 0x18000d0da
xor al, al
jmp 0x18000d120
mov r8, rdi
mov rdx, rbp
mov rcx, rbx
call fcn.18000ffc0
lea rax, [rsp + 0x38]
mov qword [rsp + 0x40], rdi
mov r9d, esi
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x40]
mov qword [rsp + 0x30], rbx
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x38], 0
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_ZwProtectVirtualMemory]
mov al, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.18000dfe0
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x1800233a0
Capabilities:
Query environment variable

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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1800233d0
xor eax, eax
jmp 0x180023493
mov rbp, rbx
cmp word [rax], si
je 0x1800233f5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1800233dc
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1800233d8
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.180021a88
movsxd r14, eax
test eax, eax
jne 0x180023433
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1800233c9
mov rcx, r14
call fcn.18001eb24
mov rdi, rax
test rax, rax
jne 0x18002344c
xor ecx, ecx
call fcn.18001dad4
jmp 0x180023428
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.180021a88
test eax, eax
jne 0x18002347d
mov rcx, rdi
call fcn.18001dad4
jmp 0x180023487
xor ecx, ecx
call fcn.18001dad4
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x180025ec0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.18001be78
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x180025f61
cmp ebx, dword [rsp + 0x30]
je 0x180025f5a
test esi, esi
je 0x180025f5a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x180025f35
sub r8w, 0x61
cmp r8w, 0x19
ja 0x180025f42
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x180025f1f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x180025f46
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x180025f63
mov eax, 1
jmp 0x180025f63
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180028d20
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x180028d36
mov al, 1
jmp 0x180028d96
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x180028d47
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x180028d94
mov ecx, dword [rcx + 0x18]
nop
call fcn.18002769c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180028d94
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180028d94
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180028d94
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x180028d96
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x18002b514
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x180044f10]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x18002b56b
cmp word [rdx], r13w
jne 0x18002b56b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x18002b570
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x18002b695
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x18002b6b6
lea r9, [rdx + 2]
cmp cx, r11w
je 0x18002b5a9
mov rdx, r9
mov word [rbx], cx
jmp 0x18002b5d0
cmp r9, r8
jae 0x18002b5e0
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x18002b58a
jmp 0x18002b695
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18002b68a
cmp dword [rsp + 0x80], esi
je 0x18002b68a
lea r8, [0x180044f10]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x18002b662
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x18002b632
mov word [rbx], r13w
jmp 0x18002b692
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x18002b63f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x18002b692
cmp word [rsp + 0x70], r13w
jne 0x18002b66f
cmp rbx, r14
je 0x18002b62c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.18002b434
cmp word [rsp + 0x70], r13w
je 0x18002b695
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x180044f10]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x18002b68f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x18002b695
Function at 0x18002c7b4
Capabilities:
Clear file content

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
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.18002b434
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.18002b434
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x18002c904
cmp rax, 0xffffffffffffffff
je 0x18002c904
xor edi, edi
test rbp, rbp
jle 0x18002c8af
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.18001da5c
mov rbx, rax
test rax, rax
jne 0x18002c83c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x18002c8a5
mov edx, 0x8000
mov ecx, r14d
call fcn.18002c638
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.180026ee8
cmp eax, 0xffffffff
je 0x18002c885
cdqe
sub rbp, rax
test rbp, rbp
jg 0x18002c84c
mov edx, r15d
mov ecx, r14d
call fcn.18002c638
jmp 0x18002c8a5
cmp byte [rsi + 0x38], dil
je 0x18002c89c
cmp dword [rsi + 0x34], 5
jne 0x18002c89c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x18002c8a5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.18001dad4
jmp 0x18002c918
jns 0x18002c918
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.18002b434
cmp rax, 0xffffffffffffffff
jne 0x18002c8d0
cmp byte [rsi + 0x30], dil
je 0x18002c918
mov edi, dword [rsi + 0x2c]
jmp 0x18002c918
mov ecx, r14d
call fcn.18002769c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x18002c918
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x18002c918
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x18002c911
mov eax, dword [rsi + 0x2c]
jmp 0x18002c916
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.18002b434
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x140003510
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
test cl, cl
je 0x140003557
mov r8d, edx
xor edx, edx
mov qword [rsp + 0x20], rbx
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
or rax, 0xffffffffffffffff
test rbx, rbx
cmove rbx, rax
cmp rbx, rax
je 0x140003552
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
ret
Function at 0x1400041a0
Capabilities:
Enumerate services

Disassembly:
mov r11, rsp
push rdi
push r12
push r13
sub rsp, 0x90
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
mov r12d, r8d
movzx r13d, dl
mov rdi, rcx
xor esi, esi
lea rax, [r11 - 0x78]
mov qword [r11 - 0x80], rax
lea rax, [r11 + 0x20]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rsi + 1]
call qword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
jne 0x14000432e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x14000431a
mov ecx, dword [rsp + 0xc8]
call qword [sym.imp.MSVCR90.dll_malloc]
mov rbx, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x1400042ff
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xc8]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0xc8]
mov r8, rbx
lea edx, [rsi + 1]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
je 0x1400042e8
mov edi, esi
nop dword [rax + rax]
cmp edi, dword [rsp + 0x30]
jae 0x140004304
mov eax, edi
lea rcx, [rax + rax*2]
add rcx, rcx
lea rdx, [rsp + 0x60]
mov rax, qword [rbx + rcx*8]
mov qword [rdx], rax
mov rax, qword [rbx + rcx*8 + 8]
mov qword [rdx + 8], rax
mov rax, qword [rbx + rcx*8 + 0x10]
mov qword [rdx + 0x10], rax
mov rax, qword [rbx + rcx*8 + 0x18]
mov qword [rdx + 0x18], rax
mov rax, qword [rbx + rcx*8 + 0x20]
mov qword [rdx + 0x20], rax
mov rax, qword [rbx + rcx*8 + 0x28]
mov qword [rdx + 0x28], rax
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.140007c00
nop
mov r8d, r12d
movzx edx, r13b
lea rcx, [rsp + 0x40]
call fcn.140003c00
nop
lea rcx, [rsp + 0x40]
call fcn.140006d10
nop
inc edi
jmp 0x140004260
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test eax, eax
jle 0x140004304
movzx esi, ax
or esi, 0x80070000
jmp 0x140004304
mov esi, 0x8007000e
test rbx, rbx
je 0x140004316
mov rcx, rbx
call qword [sym.imp.MSVCR90.dll_free]
mov eax, esi
jmp 0x140004330
mov eax, esi
jmp 0x140004330
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x140004330
movzx eax, ax
or eax, 0x80070000
jmp 0x140004330
mov eax, esi
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
Function at 0x140004460
Capabilities:
Delete service

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
sub rsp, 0x280
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov rbp, rcx
xor r8d, r8d
xor edx, edx
add rcx, 0x48
call fcn.140003c00
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rbx, rax
mov qword [rsp + 0x2a8], rax
xor r12d, r12d
mov esi, r12d
lea rdx, [rbp + 0x48]
lea rcx, [rsp + 0x58]
call fcn.1400074c0
nop
test rbx, rbx
je 0x140004579
lea rcx, [rsp + 0x58]
call fcn.140006ce0
mov rdx, rax
mov r8d, 0x10004
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rdi, rax
mov qword [rsp + 0x2a0], rax
test rax, rax
je 0x14000455e
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x140004557
lea rcx, [rbp + 0x78]
call fcn.140006ce0
mov r9, rax
lea r8, str.Successfully_removed
lea rdx, str._s__s
lea rcx, [rsp + 0x80]
call fcn.140002260
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x20]
call fcn.140007c00
nop
xor r8d, r8d
lea rdx, [rsp + 0x20]
mov rcx, rbp
call fcn.1400028f0
nop
lea rcx, [rsp + 0x20]
call fcn.140006d10
jmp 0x140004563
mov esi, 1
jmp 0x140004563
mov esi, 1
test rdi, rdi
je 0x140004571
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x14000469e
lea rcx, [rbp + 0x78]
call fcn.140006ce0
mov r9, rax
lea r8, str.Could_not_remove
lea rdx, str._s__s
lea rcx, [rsp + 0x80]
call fcn.140002260
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x20]
call fcn.140007c00
nop
cmp byte [rbp + 0xd0], 0
jne 0x140004693
cmp dword [rbp + 0x18], 0
je 0x140004664
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x38]
call fcn.1400074c0
nop
mov rcx, rax
call fcn.140006ce0
mov rsi, rax
mov qword [rsp + 0x2a0], r12
test rax, rax
je 0x140004604
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasb al, byte [rdi]
not rcx
lea r12, [rcx - 1]
lea rcx, [r12 + 1]
call fcn.140007fd4
mov rdi, rax
mov r8, rsi
lea rdx, [0x14000b764]
mov rcx, rax
call qword [sym.imp.MSVCR90.dll_sprintf]
mov r9d, 0x11030
lea r8, str.NI_Services
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rcx, qword [rsp + 0x2a0]
test rcx, rcx
je 0x14000464f
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rdi
call fcn.140008590
nop
lea rcx, [rsp + 0x38]
call fcn.140006d10
jmp 0x140004693
lea rdx, [rbp + 0x78]
lea rcx, [rsp + 0x38]
call fcn.140005ff0
nop
lea r8, [rsp + 0x20]
mov edx, 2
lea rcx, [rsp + 0x38]
call fcn.140006270
nop
lea rcx, [rsp + 0x38]
call fcn.140005f70
nop
lea rcx, [rsp + 0x20]
call fcn.140006d10
nop
lea rcx, [rsp + 0x58]
call fcn.140006d10
nop
test rbx, rbx
je 0x1400046b7
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x140004c60
Capabilities:
Enumerate services

Disassembly:
mov r11, rsp
push rsi
push rdi
push r12
sub rsp, 0x90
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
movzx r12d, dl
mov rdi, rcx
xor esi, esi
lea rax, [r11 + 0x20]
mov qword [r11 - 0x80], rax
lea rax, [r11 + 0x18]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rsi + 2]
call qword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
jne 0x140004df6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x140004de2
mov ecx, dword [rsp + 0xc0]
call qword [sym.imp.MSVCR90.dll_malloc]
mov rbx, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x140004dc7
lea rax, [rsp + 0xc8]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0xc0]
mov r8, rbx
lea edx, [rsi + 2]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
je 0x140004db0
mov edi, esi
nop word [rax + rax]
cmp edi, dword [rsp + 0xc8]
jae 0x140004dcc
mov eax, edi
lea rcx, [rax + rax*2]
add rcx, rcx
lea rdx, [rsp + 0x60]
mov rax, qword [rbx + rcx*8]
mov qword [rdx], rax
mov rax, qword [rbx + rcx*8 + 8]
mov qword [rdx + 8], rax
mov rax, qword [rbx + rcx*8 + 0x10]
mov qword [rdx + 0x10], rax
mov rax, qword [rbx + rcx*8 + 0x18]
mov qword [rdx + 0x18], rax
mov rax, qword [rbx + rcx*8 + 0x20]
mov qword [rdx + 0x20], rax
mov rax, qword [rbx + rcx*8 + 0x28]
mov qword [rdx + 0x28], rax
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x48]
call fcn.140007c00
nop
movzx r9d, r12b
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x48]
call fcn.140004810
nop
lea rcx, [rsp + 0x48]
call fcn.140006d10
nop
inc edi
jmp 0x140004d20
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test eax, eax
jle 0x140004dcc
movzx esi, ax
or esi, 0x80070000
jmp 0x140004dcc
mov esi, 0x8007000e
test rbx, rbx
je 0x140004dde
mov rcx, rbx
call qword [sym.imp.MSVCR90.dll_free]
mov eax, esi
jmp 0x140004df8
mov eax, esi
jmp 0x140004df8
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x140004df8
movzx eax, ax
or eax, 0x80070000
jmp 0x140004df8
mov eax, esi
mov rbx, qword [rsp + 0xb0]
add rsp, 0x90
pop r12
pop rdi
pop rsi
ret

Function at 0x140005320
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x230
mov rbx, rcx
lea rdx, [rsp + 0x20]
mov ecx, 0x105
mov dword [rsp + 0x240], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140007c00
mov rax, rbx
add rsp, 0x230
pop rbx
ret
Function at 0x140005ff0
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xd0
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0xe8], rbx
mov rbx, rdx
mov rdi, rcx
mov qword [rcx], 0
add rcx, 8
call fcn.140007ac0
nop
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.1400074c0
mov rcx, rax
call fcn.140006ce0
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenEventLogA]
mov qword [rdi], rax
lea rcx, [rsp + 0x28]
call fcn.140006d10
cmp qword [rdi], 0
jne 0x140006091
lea rcx, [rsp + 0x88]
call fcn.140005b80
mov r9d, 0x2c
lea r8, str.nidscosdepEventLogger.cpp
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140002080
lea rdx, [0x14000f230]
lea rcx, [rsp + 0x40]
call fcn.14000858a
nop
mov rax, rdi
mov rbx, qword [rsp + 0xe8]
add rsp, 0xd0
pop rdi
ret

Function at 0x1400063f0
Capabilities:
Check os version

Disassembly:
sub rsp, 0xc8
mov eax, dword [0x140011458]
test al, 1
jne 0x140006442
or eax, 1
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x94
mov dword [0x140011458], eax
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
mov r11d, dword [rsp + 0x24]
mov eax, dword [rsp + 0x28]
cmp r11d, 6
mov dword [0x140011450], r11d
mov dword [0x140011454], eax
setge al
add rsp, 0xc8
ret
mov r11d, dword [0x140011450]
cmp r11d, 6
setge al
add rsp, 0xc8
ret
Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
xor rdx, rdx
push rcx
push rsi
mov rdx, qword gs:[rdx + 0x60]
mov rdx, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
xor r9, r9
movzx rcx, word [rdx + 0x4a]
mov rsi, qword [rdx + 0x50]
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
mov rdx, qword [rdx + 0x20]
push r9
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
push rax
mov ecx, dword [rax + 0x18]
mov r8d, dword [rax + 0x20]
add r8, rdx
jrcxz 0x1400040ca
xor r9, r9
dec rcx
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor rax, rax
lodsb al, byte [rsi]
ror r9d, 0xd
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
add rax, rdx
pop r8
pop r8
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021