joyce8/EMBER2024-capa huggingface dataset:
Function at 0x3a4da1880
Capabilities:
Enumerate processes

Disassembly:
push rbp
sub rsp, 0x1b0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x140], rcx
mov qword [rbp + 0x120], 0
mov dword [rbp - 0x10], 0x130
mov edx, 0
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rbp + 0x128], rax
lea rdx, [rbp - 0x10]
mov rax, qword [rbp + 0x128]
mov rcx, rax
call sub.KERNEL32.dll_Process32First
cmp eax, 1
sete al
test al, al
je 0x3a4da1a1d
jmp 0x3a4da19fc
mov rax, qword [rbp + 0x140]
lea rdx, [rbp - 0x10]
lea rcx, [rdx + 0x2c]
mov rdx, rax
call sub.msvcrt.dll__stricmp
test eax, eax
sete al
test al, al
je 0x3a4da19fc
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call rax
mov ecx, eax
lea rax, [rbp - 0x14]
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
call rax
mov eax, dword [rbp - 8]
mov ecx, eax
call fcn.3a4da175a
mov edx, eax
mov eax, dword [rbp - 0x14]
cmp edx, eax
sete al
test al, al
je 0x3a4da19fc
mov qword [rbp - 0x28], 0
mov eax, dword [rbp - 8]
mov ecx, eax
call fcn.3a4da13c4
mov qword [rbp - 0x30], rax
mov dword [rbp - 0x60], 0x30
mov qword [rbp - 0x58], 0
mov dword [rbp - 0x48], 0
mov qword [rbp - 0x50], 0
mov qword [rbp - 0x40], 0
mov qword [rbp - 0x38], 0
mov r10, qword [0x3a4eb5070]
lea rcx, [rbp - 0x30]
lea rdx, [rbp - 0x60]
lea rax, [rbp + 0x120]
mov r9, rcx
mov r8, rdx
mov edx, 0x1fffff
mov rcx, rax
call r10
mov rax, qword [rbp + 0x120]
test rax, rax
je 0x3a4da19e0
mov rax, qword [rbp + 0x120]
cmp rax, 0xffffffffffffffff
je 0x3a4da19e0
mov rdx, qword [0x3a4eb5068]
mov rax, qword [rbp + 0x128]
mov rcx, rax
call rdx
mov rax, qword [rbp + 0x120]
jmp 0x3a4da1a37
mov rdx, qword [0x3a4eb5068]
mov rax, qword [rbp + 0x128]
mov rcx, rax
call rdx
mov rax, 0xffffffffffffffff
jmp 0x3a4da1a37
lea rdx, [rbp - 0x10]
mov rax, qword [rbp + 0x128]
mov rcx, rax
call sub.KERNEL32.dll_Process32Next
cmp eax, 1
sete al
test al, al
jne 0x3a4da18e5
mov rdx, qword [0x3a4eb5068]
mov rax, qword [rbp + 0x128]
mov rcx, rax
call rdx
mov rax, 0xffffffffffffffff
add rsp, 0x1b0
pop rbp
ret
Function at 0x3a4da1a40
Capabilities:
Create process on windows
Create process suspended
Protect spawned processes with mitigation policies
Spoof parent pid

Disassembly:
push rbp
push rdi
push rbx
sub rsp, 0xd0
lea rbp, [rsp + 0xd0]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
lea rdx, [rbp - 0x70]
mov eax, 0
mov ecx, 0xe
mov rdi, rdx
rep stosq qword [rdi], rax
mov rax, qword [rbp + 0x20]
pxor xmm0, xmm0
movups xmmword [rax], xmm0
movq qword [rax + 0x10], xmm0
lea rax, [rbp - 0x78]
mov r9, rax
mov r8d, 0
mov edx, 2
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
call rax
mov rbx, qword [rbp - 0x78]
mov rax, qword [sym.imp.KERNEL32.dll_GetProcessHeap]
call rax
mov r8, rbx
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_HeapAlloc]
call rax
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
lea rdx, [rbp - 0x78]
mov r9, rdx
mov r8d, 0
mov edx, 2
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
call rax
movabs rax, 0x100000000000
mov qword [rbp - 0x80], rax
mov rax, qword [rbp - 8]
lea rdx, [rbp - 0x80]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 8
mov r9, rdx
mov r8d, 0x20007
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
call rax
mov rax, qword [rbp - 8]
lea rdx, [rbp + 0x30]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 8
mov r9, rdx
mov r8d, 0x20000
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
call rax
mov dword [rbp - 0x70], 0x70
mov dword [rbp - 0x34], 0x80001
mov word [rbp - 0x30], 0
mov rax, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x20]
mov qword [rsp + 0x48], rdx
lea rdx, [rbp - 0x70]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x808000c
mov dword [rsp + 0x20], 1
mov r9d, 0
mov r8d, 0
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
test eax, eax
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_DeleteProcThreadAttributeList]
call rax
nop
mov rax, qword [rbp + 0x20]
add rsp, 0xd0
pop rbx
pop rdi
pop rbp
ret
Function at 0x3a4db3340
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.3a4dbd610
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.3a4dbd610
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x3a4db33b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x3a4eb5104]
mov rbx, rcx
test esi, esi
jle 0x3a4db34e0
mov rax, qword [0x3a4eb5108]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x3a4db33fb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x3a4db3485
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x3a4db33e0
mov rcx, rbx
call fcn.3a4db3c10
mov rdi, rax
test rax, rax
je 0x3a4db3502
mov rax, qword [0x3a4eb5108]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.3a4db3d50
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x3a4eb5108]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x3a4db34e7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x3a4db347e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x3a4db3490
add dword [0x3a4eb5104], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x3a4eb5108]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x3a4db347e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.3a4db3340
nop dword [rax]
xor esi, esi
jmp 0x3a4db3408
mov rax, qword [0x3a4eb5108]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.3a4db3340
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.3a4db3340
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x3a4db3880
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x3a4eb5140]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x3a4eb5120]
test rbx, rbx
je 0x3a4db38dc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x3a4db38d3
test rsi, rsi
je 0x3a4db38d3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x3a4db38b8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x3a4db3c10
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x3a4e8f5b0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x3a4db3c30
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x3a4db3c38
ret
cmp word [r8 + 0x18], 0x20b
jne 0x3a4db3c30
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x3a4db3c8d
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 0x3a4db3c84
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x3a4db3c30
add rax, 0x28
cmp rax, r9
jne 0x3a4db3c70
xor eax, eax
ret

Function at 0x3a4db3c90
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x3a4e8f5b0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x3a4db3caf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x3a4db3cb8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x3a4db3caf
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x3a4db3d50
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x3a4e8f5b0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x3a4db3d6f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x3a4db3d78
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x3a4e219c0
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sub.msvcrt.dll__fileno_1
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sub.msvcrt.dll__read
movsxd rbp, eax
cmp eax, 0xffffffff
je 0x3a4e21a08
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x3a4e219da
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x3a4e5c4c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x3a4e88160]
jmp 0x3a4db4a70

Function at 0x3a4e5c4d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x3a4e88160]
jmp 0x3a4db4a70
Function at 0x1400010d0
Capabilities:
Get process image filename

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x2a0
mov rax, qword [0x14004c018]
xor rax, rsp
mov qword [rsp + 0x290], rax
xorps xmm0, xmm0
xor edi, edi
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], edi
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x58], xmm0
call fcn.1400039e0
lea edx, [rdi + 1]
mov rcx, qword [rax + 0x30]
call fcn.140008dd0
lea rdx, str.NtQueryInformationProcess
mov rcx, rax
mov rsi, rax
call fcn.140008f10
test eax, eax
jne 0x140001137
mov ebx, edi
jmp 0x140001144
mov edx, eax
mov rcx, rsi
call fcn.140008b00
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 0x30
lea r8, [rsp + 0x38]
mov rcx, rax
xor edx, edx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call rbx
mov r8d, dword [rsp + 0x60]
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
xor edx, edx
lea rcx, [rsp + 0x70]
mov r8d, 0x104
mov rbx, rax
call fcn.14000ddf0
xor edx, edx
lea rcx, [rsp + 0x180]
mov r8d, 0x104
call fcn.14000ddf0
mov r8d, 0x104
lea rdx, [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameA]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8d, 0x104
lea rdx, [rsp + 0x180]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameA]
mov rcx, qword [rsi + 0x70]
test rcx, rcx
je 0x1400011e5
call fcn.140013e2c
mov qword [rsi + 0x70], rdi
mov rcx, rsi
call fcn.140013e2c
lea rcx, [rsp + 0x70]
lea r9, [rsp + 0x180]
sub r9, rcx
nop dword [rax]
movzx r8d, byte [rcx]
movzx edx, byte [rcx + r9]
sub r8d, edx
jne 0x140001215
inc rcx
test edx, edx
jne 0x140001200
test r8d, r8d
sete dil
mov eax, edi
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.14000cb50
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x1400039e0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x20
lea rsi, [0x14002e2c8]
mov rdx, 0xffffffffffffffff
nop dword [rax + rax]
cmp word [rsi + rdx*2 + 2], 0
lea rdx, [rdx + 1]
jne 0x140003a00
mov rax, qword gs:[0x60]
mov qword [rsp + 0x30], rdi
mov rcx, qword [rax + 0x18]
mov rbx, qword [rcx + 0x10]
test rbx, rbx
je 0x140003a5e
lea rdi, [rdx + rdx]
nop dword [rax + rax]
mov rcx, qword [rbx + 0x60]
mov r8, rdi
mov rdx, rsi
call fcn.1400140ac
test eax, eax
je 0x140003a70
mov rax, qword gs:[0x60]
mov rbx, qword [rbx]
mov rcx, qword [rax + 0x18]
cmp rbx, qword [rcx + 0x10]
je 0x140003a5e
test rbx, rbx
jne 0x140003a30
xor eax, eax
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
mov rdi, qword [rsp + 0x30]
mov rax, rbx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
Function at 0x1400044f0
Capabilities:
Get file size
Read file on windows

Disassembly:
push rdi
sub rsp, 0x50
mov rax, qword [0x14004c018]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14000454e
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14000cb50
add rsp, 0x50
pop rdi
ret
mov qword [rsp + 0x68], rbx
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x70], rsi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov esi, eax
call fcn.1400141a8
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], 0
mov r8d, esi
mov qword [rsp + 0x20], 0
mov rdx, rax
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000459e
cmp dword [rsp + 0x40], esi
je 0x1400045a8
mov rcx, rbx
call fcn.140013e2c
xor ebx, ebx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x70]
mov rax, rbx
mov rbx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14000cb50
add rsp, 0x50
pop rdi
ret
Function at 0x1400058b0
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x14004c018]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rbx, [0x14004dde0]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rbx + rax*2], 0
jne 0x1400058e0
test rax, rax
jne 0x140005937
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.14000ddf0
mov edx, 0x104
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea r8, [rsp + 0x20]
mov edx, 0x104
mov rcx, rbx
call fcn.140013c00
lea r8, str.wdigest.dll
mov edx, 0x104
mov rcx, rbx
call fcn.140013c00
mov rax, rbx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14000cb50
add rsp, 0x240
pop rbx
ret
Function at 0x140007b20
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x14004c018]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rbx, [0x14004e440]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rbx + rax*2], 0
jne 0x140007b50
test rax, rax
jne 0x140007ba7
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.14000ddf0
mov edx, 0x104
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea r8, [rsp + 0x20]
mov edx, 0x104
mov rcx, rbx
call fcn.140013c00
lea r8, str._ntoskrnl.exe
mov edx, 0x104
mov rcx, rbx
call fcn.140013c00
mov rax, rbx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14000cb50
add rsp, 0x240
pop rbx
ret

Function at 0x140009090
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x14004c018]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rbx, [0x14004e850]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rbx + rax*2], 0
jne 0x1400090c0
test rax, rax
jne 0x140009117
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.14000ddf0
mov edx, 0x104
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea r8, [rsp + 0x20]
mov edx, 0x104
mov rcx, rbx
call fcn.140013c00
lea r8, str.ci.dll
mov edx, 0x104
mov rcx, rbx
call fcn.140013c00
mov rax, rbx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14000cb50
add rsp, 0x240
pop rbx
ret
Function at 0x140009580
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push rbx
push r14
sub rsp, 0x88
mov rax, qword [0x14004c018]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r14d, edx
mov rbx, rcx
cmp edx, 3
jbe 0x1400095c0
mov r8, rcx
mov edx, 3
lea rcx, str.____Reached_maximun_number_of_attempts___i__to_uninstall_the_service__s_n
call fcn.140001010
xor eax, eax
jmp 0x140009762
mov qword [rsp + 0xb0], rbp
lea rdx, str.ServicesActive
mov qword [rsp + 0x80], rsi
xor ecx, ecx
xor esi, esi
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x70], r15
mov r15d, esi
lea r8d, [rsi + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
je 0x14000964e
lea r8d, [rsi + 0x20]
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbp, rax
test rax, rax
je 0x14000962f
lea r8, [rsp + 0x40]
mov rcx, rax
lea edx, [rsi + 1]
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov rcx, rbp
mov r15d, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test r15d, r15d
je 0x14000964e
mov rdx, rbx
lea rcx, str.____s_service_stopped_n
call fcn.140001010
jmp 0x140009697
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
jne 0x14000966c
mov rdx, rbx
lea rcx, str.____s_service_not_running_n
call fcn.140001010
jmp 0x140009697
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x425
jne 0x14000971d
mov rdx, rbx
lea rcx, str.____s_service_cannot_accept_control_messages_at_this_time__waiting..._n
call fcn.140001010
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8d, 1
lea rdx, str.ServicesActive
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbp, rax
test rax, rax
je 0x140009731
mov r8d, 0x10004
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
je 0x14000970c
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x14000970c
cmp dword [rsp + 0x24], 1
mov rcx, rdi
je 0x1400096fb
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140009731
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, rdi
mov esi, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x140009731
mov eax, esi
jmp 0x140009748
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____ERROR_ServiceUninstall___ServiceUninstall__0x_08x__n
call fcn.140001010
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [r14 + 1]
mov rcx, rbx
call fcn.140009580
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0xb0]
mov r15, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14000cb50
add rsp, 0x88
pop r14
pop rbx
ret
Function at 0x14000a2a0
Capabilities:
Get file version info

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14004c018]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor eax, eax
lea rdx, [rsp + 0x3c]
mov rbp, rcx
mov dword [rsp + 0x3c], eax
mov rcx, r8
mov dword [rsp + 0x38], eax
mov qword [rsp + 0x30], rax
mov rsi, r8
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test eax, eax
je 0x14000a383
mov ecx, edi
mov qword [rsp + 0x78], rbx
mov edx, 1
call fcn.14000ef50
mov rbx, rax
test rax, rax
jne 0x14000a30b
lea rcx, str.____Couldnt_allocate_memory_to_retrieve_version_data
call fcn.140013f14
jmp 0x14000a37e
mov r9, rbx
mov r8d, edi
xor edx, edx
mov rcx, rsi
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x14000a376
lea r9, [rsp + 0x38]
mov rcx, rbx
lea r8, [rsp + 0x30]
lea rdx, [0x140033058]
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x14000a376
cmp dword [rsp + 0x38], 0
je 0x14000a376
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0xfeef04bd
jne 0x14000a376
mov r9d, dword [rax + 0xc]
lea r8, str._ld__ld
movzx eax, r9w
mov edx, 0x100
shr r9d, 0x10
mov rcx, rbp
mov dword [rsp + 0x20], eax
call fcn.140005850
mov rcx, rbx
call fcn.140013e2c
mov rbx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14000cb50
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000b5c0
Capabilities:
Access firewall policy via inetfwpolicy2

Disassembly:
mov r11, rsp
push rsi
sub rsp, 0xa0
mov rax, qword [0x14004c018]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov qword [r11 + 0x18], rbp
lea rax, str.Domain
mov qword [r11 - 0x18], r12
xor r12d, r12d
mov dword [rsp + 0x40], 1
mov qword [r11 - 0x60], rax
lea rax, str.Private
mov qword [r11 - 0x20], r14
mov dword [rsp + 0x50], 2
lea ebp, [r12 - 1]
mov qword [r11 - 0x50], rax
lea edx, [rbp + 3]
mov qword [r11 - 0x28], r15
lea rax, str.Public
mov r15, rcx
mov dword [rsp + 0x60], 4
xor ecx, ecx
mov qword [r11 - 0x78], r12
mov dword [r11 - 0x6c], r12d
mov word [r11 - 0x70], r12w
mov qword [r11 - 0x40], rax
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov r14d, eax
mov eax, 0x80000000
lea ecx, [r14 + rax]
test eax, ecx
jne 0x14000b678
cmp r14d, 0x80010106
je 0x14000b678
lea rcx, str.____Error_while_initializing_COM__CoInitializeEx_failed:_0x_08lx__n
mov edx, r14d
call fcn.140001010
mov esi, 0x80004005
jmp 0x14000b766
xor edx, edx
lea rax, [rsp + 0x30]
lea r9, [0x14003f078]
mov qword [rsp + 0x20], rax
lea rcx, [0x14003f0a8]
lea r8d, [rdx + 1]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov r14d, eax
test eax, eax
jns 0x14000b6bb
lea rcx, str.____Error_while_initializing_the_INetFwPolicy2_interface__CoCreateInstance_for_INetFwPolicy2_failed:_0x_08lx__n
mov edx, eax
call fcn.140001010
mov esi, 0x80004005
jmp 0x14000b766
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x3c]
mov rax, qword [rcx]
call qword [rax + 0x38]
mov esi, eax
test eax, eax
jns 0x14000b6e4
mov edx, eax
lea rcx, str.____Could_not_determine_Firewall_status__failed_to_get_the_active_Firewall_profiles___get_CurrentProfileTypes_failed:_0x_08lx__n
call fcn.140001010
jmp 0x14000b766
mov qword [rsp + 0xb8], rbx
lea rbx, [rsp + 0x48]
mov qword [rsp + 0x98], rdi
mov edi, r12d
nop dword [rax]
mov edx, dword [rbx - 8]
test dword [rsp + 0x3c], edx
je 0x14000b73e
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + 0x40]
mov esi, eax
test eax, eax
js 0x14000b7be
cmp word [rsp + 0x38], r12w
jne 0x14000b73e
mov rdx, qword [rbx]
lea rcx, str.___The_Windows_Firewall_is_off_on_the__active___s_profile._n
call fcn.140001010
movzx ebp, r12w
inc edi
add rbx, 0x10
cmp edi, 3
jb 0x14000b700
mov eax, r12d
cmp bp, 0xffff
sete al
mov dword [r15], eax
mov rbx, qword [rsp + 0xb8]
mov rdi, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x30]
mov r15, qword [rsp + 0x80]
mov rbp, qword [rsp + 0xc0]
test rcx, rcx
je 0x14000b78b
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rsp + 0x30], r12
mov r12, qword [rsp + 0x90]
test r14d, r14d
mov r14, qword [rsp + 0x88]
js 0x14000b7a6
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14000cb50
add rsp, 0xa0
pop rsi
ret
mov edx, edi
lea rcx, str.____Could_not_determine_Firewall_status__failed_to_retrieve_FirewallEnabled_settings_for__s_profile___get_FirewallEnabled_failed:_0x_08lx__n
add rdx, rdx
mov r8d, eax
mov rdx, qword [rsp + rdx*8 + 0x48]
call fcn.140001010
jmp 0x14000b756