joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400e9290
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
push r12
push r15
sub rsp, 0x40
mov r15, rdx
mov rbx, rcx
mov rcx, qword [sym.4yUlCM3HuVsHzW5CaCX.exe_PhHeapHandle]
mov edx, 4
mov r8d, 0x100
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
xor r9d, r9d
mov qword [rsp + 0x20], rbx
mov r8d, 0x18
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x28], 0x1000000
mov ecx, 0x58
mov rbp, rax
xor r12d, r12d
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov edi, eax
cmp eax, 0xc0000004
jne 0x1400e9348
mov rcx, qword [sym.4yUlCM3HuVsHzW5CaCX.exe_PhHeapHandle]
mov r8, rbp
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
movzx r8d, word [rsp + 0x2a]
mov edx, 4
mov rcx, qword [sym.4yUlCM3HuVsHzW5CaCX.exe_PhHeapHandle]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
xor r9d, r9d
lea rdx, [rsp + 0x20]
mov r8d, 0x18
mov qword [rsp + 0x30], rax
mov ecx, 0x58
mov rbp, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov edi, eax
test edi, edi
jns 0x1400e9360
mov rcx, qword [sym.4yUlCM3HuVsHzW5CaCX.exe_PhHeapHandle]
mov r8, rbp
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x1400e93ca
mov rdx, qword [0x140191180]
mov qword [rsp + 0x60], rsi
movzx esi, word [rsp + 0x28]
mov qword [rsp + 0x68], r14
mov r14, qword [rsp + 0x30]
lea rcx, [rsi + 0x12]
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhCreateObject
mov rbx, rax
mov qword [rax], rsi
lea rcx, [rax + 0x10]
mov qword [rax + 8], rcx
mov word [rcx + rsi], r12w
test r14, r14
je 0x1400e93ab
mov rcx, qword [rax + 8]
mov r8d, esi
mov rdx, r14
call fcn.1401317c0
mov qword [r15], rbx
mov r8, rbp
mov rcx, qword [sym.4yUlCM3HuVsHzW5CaCX.exe_PhHeapHandle]
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r14, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x70]
mov eax, edi
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r12
pop rdi
ret
Function at 0x1400e9b60
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov r14d, 0x400
mov r12, r9
mov r8d, r14d
mov r13, rdx
mov r15, rcx
mov dil, 1
mov rcx, qword [sym.4yUlCM3HuVsHzW5CaCX.exe_PhHeapHandle]
mov edx, 4
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbp, rax
nop dword [rax + rax]
mov byte [rsp + 0x50], dil
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], r13
xor r9d, r9d
mov byte [rsp + 0x40], 0
xor r8d, r8d
mov dword [rsp + 0x38], 1
xor edx, edx
mov dword [rsp + 0x30], r14d
mov rcx, r15
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtQueryDirectoryFile]
mov ebx, eax
cmp eax, 0x103
jne 0x1400e9c0c
xor r8d, r8d
xor edx, edx
mov rcx, r15
call qword [sym.imp.ntdll.dll_NtWaitForSingleObject]
test eax, eax
mov ebx, eax
cmovns ebx, dword [rsp + 0x60]
cmp ebx, 0x80000005
je 0x1400e9c1c
cmp ebx, 0xc0000004
jne 0x1400e9c3d
mov rcx, qword [sym.4yUlCM3HuVsHzW5CaCX.exe_PhHeapHandle]
mov r8, rbp
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
lea eax, [r14 + r14]
mov r14d, eax
mov r8d, eax
jmp 0x1400e9b93
mov r13, qword [rsp + 0xc0]
cmp ebx, 0x80000006
je 0x1400e9c8f
test ebx, ebx
js 0x1400e9c91
mov rdx, r12
mov rcx, rbp
xor esi, esi
mov rdi, rbp
call r13
test al, al
je 0x1400e9c91
mov eax, dword [rdi]
test eax, eax
je 0x1400e9c7f
add esi, eax
mov rdx, r12
mov edi, esi
add rdi, rbp
mov rcx, rdi
call r13
test al, al
jne 0x1400e9c63
jmp 0x1400e9c91
mov r13, qword [rsp + 0xb8]
xor dil, dil
jmp 0x1400e9bb0
xor ebx, ebx
mov rcx, qword [sym.4yUlCM3HuVsHzW5CaCX.exe_PhHeapHandle]
mov r8, rbp
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, ebx
mov rbx, qword [rsp + 0xb0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400e9cc0
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x40
mov esi, 0x200
mov r14, rdx
mov r8d, esi
mov rbp, rcx
mov rcx, qword [sym.4yUlCM3HuVsHzW5CaCX.exe_PhHeapHandle]
mov edx, 4
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r9d, esi
mov dword [rsp + 0x20], 0x16
mov r8, rax
lea rdx, [rsp + 0x30]
mov rcx, rbp
mov rdi, rax
call qword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov ebx, eax
cmp eax, 0x80000005
je 0x1400e9d30
cmp eax, 0xc0000023
je 0x1400e9d30
cmp eax, 0xc0000004
jne 0x1400e9d4c
mov rcx, qword [sym.4yUlCM3HuVsHzW5CaCX.exe_PhHeapHandle]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
lea eax, [rsi + rsi]
mov esi, eax
mov r8d, eax
jmp 0x1400e9ce8
test ebx, ebx
js 0x1400e9d55
mov qword [r14], rdi
jmp 0x1400e9d69
mov rcx, qword [sym.4yUlCM3HuVsHzW5CaCX.exe_PhHeapHandle]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, ebx
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 0x1400ebb50
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov r15, r8
mov dword [rsp + 0x68], 0x100
mov ebp, edx
mov r14, rcx
mov rcx, qword [sym.4yUlCM3HuVsHzW5CaCX.exe_PhHeapHandle]
mov edx, 4
mov r8d, 0x100
mov esi, 0x10
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
nop dword [rax + rax]
mov r9d, dword [rsp + 0x68]
lea rax, [rsp + 0x68]
mov r8, rdi
mov qword [rsp + 0x20], rax
mov edx, ebp
mov rcx, r14
call qword [sym.imp.ntdll.dll_NtQueryKey]
mov ebx, eax
test eax, eax
jns 0x1400ebbfc
mov rcx, qword [sym.4yUlCM3HuVsHzW5CaCX.exe_PhHeapHandle]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp ebx, 0x80000005
jne 0x1400ebbff
mov r8d, dword [rsp + 0x68]
mov edx, 4
mov rcx, qword [sym.4yUlCM3HuVsHzW5CaCX.exe_PhHeapHandle]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
add esi, 0xffffffff
jne 0x1400ebba0
mov qword [r15], rdi
mov rbp, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret

Function at 0x1400ebc20
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
push r14
push r15
sub rsp, 0x40
mov r15, r9
mov ebp, r8d
mov r14, rcx
mov esi, 0x10
test rdx, rdx
je 0x1400ebc74
cmp qword [rdx], 0xfffe
movzx eax, word [rdx]
mov word [rsp + 0x30], ax
mov word [rsp + 0x32], ax
mov rax, qword [rdx + 8]
mov qword [rsp + 0x38], rax
jbe 0x1400ebc7f
mov eax, 0xc0000106
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rsi
ret
xor eax, eax
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x38], rax
mov rcx, qword [sym.4yUlCM3HuVsHzW5CaCX.exe_PhHeapHandle]
mov edx, 4
mov qword [rsp + 0x60], rbx
mov r8d, 0x100
mov qword [rsp + 0x70], rdi
mov dword [rsp + 0x68], 0x100
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
nop dword [rax]
mov ecx, dword [rsp + 0x68]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x20], ecx
mov r9, rdi
mov rcx, r14
mov r8d, ebp
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
mov ebx, eax
test eax, eax
jns 0x1400ebd15
mov rcx, qword [sym.4yUlCM3HuVsHzW5CaCX.exe_PhHeapHandle]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp ebx, 0x80000005
jne 0x1400ebd18
mov r8d, dword [rsp + 0x68]
mov edx, 4
mov rcx, qword [sym.4yUlCM3HuVsHzW5CaCX.exe_PhHeapHandle]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
add esi, 0xffffffff
jne 0x1400ebcb0
mov qword [r15], rdi
mov rdi, qword [rsp + 0x70]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rsi
ret
Function at 0x1400ec650
Capabilities:
Create service
Delete service
Start service

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0x2b0
mov r12, r8
mov dword [rsp + 0x70], 1
mov r13, rdx
mov qword [rsp + 0x80], 0x10
lea rax, str.Device_
mov dword [rsp + 0x90], 1
lea rbx, str.Kprocesscheckr3
mov qword [rsp + 0x88], rax
xor esi, esi
mov qword [rsp + 0xa8], rbx
lea r8, [rsp + 0xb0]
mov qword [rsp + 0x20], rsi
mov edx, 2
mov qword [rsp + 0xa0], 0x1e
mov r9d, 0x200
lea rcx, [rsp + 0x70]
xor r14b, r14b
xor r15b, r15b
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhFormatToBuffer
test al, al
jne 0x1400ec6ec
mov eax, 0xc0000106
jmp 0x1400ec896
lea rcx, [rsp + 0xb0]
mov qword [rsp + 0x2e8], rdi
call fcn.1400ec520
mov edi, eax
add eax, 0x3ffffff2
cmp eax, 0x2c
ja 0x1400ec88c
movabs rcx, 0x104000000003
bt rcx, rax
jae 0x1400ec88c
xor edx, edx
mov qword [rsp + 0x2e0], rbp
xor ecx, ecx
mov r8d, 1
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbp, rax
test rax, rax
je 0x1400ec792
mov r8d, 0x10
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
je 0x1400ec77e
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test ebx, ebx
setne r14b
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test r14b, r14b
jne 0x1400ec85e
xor esi, esi
mov rcx, r13
call qword [sym.imp.ntdll.dll_RtlDoesFileExists_U]
test al, al
je 0x1400ec884
xor edx, edx
xor ecx, ecx
mov r8d, 2
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
je 0x1400ec884
lea rax, [0x14013e488]
mov r9d, 0xf01ff
mov qword [rsp + 0x60], rax
lea r8, str.Kprocesscheckr3
mov qword [rsp + 0x58], rsi
lea rdx, str.Kprocesscheckr3
mov qword [rsp + 0x50], rsi
mov rcx, rbx
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], r13
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rsi, rax
test rax, rax
je 0x1400ec850
mov r15b, 1
test r12, r12
je 0x1400ec833
mov rdx, r12
call fcn.1400ec8b0
mov edi, eax
test eax, eax
js 0x1400ec872
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x1400ec850
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1400ec85e
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test r14b, r14b
je 0x1400ec86d
lea rcx, [rsp + 0xb0]
call fcn.1400ec520
mov edi, eax
test r15b, r15b
je 0x1400ec884
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbp, qword [rsp + 0x2e0]
mov eax, edi
mov rdi, qword [rsp + 0x2e8]
mov rbx, qword [rsp + 0x2f0]
add rsp, 0x2b0
pop r15
pop r14
pop r13
pop r12
pop rsi
ret
Function at 0x1400ec8b0
Capabilities:
Delete registry key
Persist via windows service
Set registry value

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
sub rsp, 0x80
mov rsi, rdx
lea r9, str.Parameters
xor edi, edi
lea rdx, str.SystemCurrentControlSetServices_
lea r8, str.Kprocesscheckr3
mov qword [rsp + 0xb8], rdi
mov ecx, 3
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhConcatStrings
mov rbx, rax
lea rcx, [rsp + 0xb8]
lea rax, [rsp + 0xa0]
mov r9, rbx
mov qword [rsp + 0x30], rax
mov edx, 0x30006
mov dword [rsp + 0x28], edi
mov r8, 0xfffffffffffffffd
mov dword [rsp + 0x20], edi
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhCreateKey
mov edi, eax
lea rcx, [rbx - 0x10]
mov edx, 0xffffffff
lock xadd dword [rcx + 8], edx
cmp edx, 1
jne 0x1400ec939
call fcn.1400d9400
test edi, edi
jns 0x1400ec94a
mov eax, edi
add rsp, 0x80
pop rdi
pop rsi
pop rbx
ret
mov rcx, qword [rsp + 0xb8]
lea rax, str.SecurityLevel
mov dword [rsp + 0x28], 4
lea rdx, [rsp + 0x40]
mov r9d, 4
mov qword [rsp + 0x48], rax
xor r8d, r8d
mov dword [rsp + 0x40], 0x1c001a
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ntdll.dll_NtSetValueKey]
mov ebx, eax
test eax, eax
js 0x1400ec9f9
cmp byte [rsi + 4], 0
je 0x1400eca11
lea rax, str.DynamicConfiguration
mov dword [rsp + 0x40], 0x2a0028
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x50], 3
mov dword [rsp + 0x54], 1
call fcn.140111930
test eax, eax
js 0x1400eca11
mov rcx, qword [rsp + 0xb8]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], 0x2c
lea rdx, [rsp + 0x40]
mov r9d, 3
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ntdll.dll_NtSetValueKey]
mov ebx, eax
test eax, eax
jns 0x1400eca11
cmp dword [rsp + 0xa0], 1
jne 0x1400eca11
mov rcx, qword [rsp + 0xb8]
call qword [sym.imp.ntdll.dll_NtDeleteKey]
mov rcx, qword [rsp + 0xb8]
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, ebx
add rsp, 0x80
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400eca30
Capabilities:
Create service
Delete service
Start service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
mov rsi, r8
mov rdi, rdx
xor edx, edx
mov r8d, 2
xor ecx, ecx
xor ebx, ebx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbp, rax
test rax, rax
jne 0x1400eca7f
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1400ecb54
movzx eax, ax
or eax, 0xc0070000
jmp 0x1400ecb54
lea rax, [0x14013e488]
mov r9d, 0xf01ff
mov qword [rsp + 0x60], rax
lea r8, str.Kprocesscheckr3
mov qword [rsp + 0x58], rbx
lea rdx, str.Kprocesscheckr3
mov qword [rsp + 0x50], rbx
mov rcx, rbp
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rdi, rax
test rax, rax
je 0x1400ecb35
test rsi, rsi
je 0x1400ecb04
mov rdx, rsi
call fcn.1400ec8b0
mov ebx, eax
test eax, eax
jns 0x1400ecb04
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1400ecb49
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x1400ecb2a
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1400ecb28
movzx eax, ax
or eax, 0xc0070000
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1400ecb49
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1400ecb47
movzx eax, ax
or eax, 0xc0070000
mov ebx, eax
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x1400ecb70
Capabilities:
Delete service
Stop service

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x40
xor edx, edx
xor ecx, ecx
mov r8d, 1
xor ebx, ebx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
jne 0x1400ecbb5
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1400ecc3d
movzx eax, ax
or eax, 0xc0070000
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rsi
ret
mov r8d, 0x10020
mov qword [rsp + 0x50], rdi
lea rdx, str.Kprocesscheckr3
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
je 0x1400ecc18
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_DeleteService]
test eax, eax
jne 0x1400ecc0d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x1400ecc0d
movzx ebx, ax
or ebx, 0xc0070000
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1400ecc2d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x1400ecc2d
movzx ebx, ax
or ebx, 0xc0070000
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rsi
ret
Function at 0x1400ef010
Capabilities:
Enumerate services

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov r14, r9
mov ebx, edx
mov rbp, rcx
test edx, edx
jne 0x1400ef046
cmp dword [sym.4yUlCM3HuVsHzW5CaCX.exe_WindowsVersion], 0x64
mov ebx, 0x3b
mov eax, 0x3ff
cmovae ebx, eax
mov edi, dword [0x14018aec0]
test r8d, r8d
mov rcx, qword [sym.4yUlCM3HuVsHzW5CaCX.exe_PhHeapHandle]
mov r15d, 3
cmovne r15d, r8d
mov edx, 4
mov r8d, edi
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
xor r12d, r12d
mov r9d, r15d
mov qword [rsp + 0x48], r12
mov rsi, rax
mov qword [rsp + 0x40], r12
lea rax, [rsp + 0x90]
mov qword [rsp + 0x38], rax
mov r8d, ebx
lea rax, [rsp + 0x88]
xor edx, edx
mov qword [rsp + 0x30], rax
mov rcx, rbp
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
test eax, eax
jne 0x1400ef150
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x1400ef13a
mov rcx, qword [sym.4yUlCM3HuVsHzW5CaCX.exe_PhHeapHandle]
mov r8, rsi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
add edi, dword [rsp + 0x88]
mov edx, 4
mov rcx, qword [sym.4yUlCM3HuVsHzW5CaCX.exe_PhHeapHandle]
mov r8d, edi
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov qword [rsp + 0x48], r12
mov r9d, r15d
mov rsi, rax
mov qword [rsp + 0x40], r12
lea rax, [rsp + 0x90]
mov r8d, ebx
mov qword [rsp + 0x38], rax
xor edx, edx
lea rax, [rsp + 0x88]
mov rcx, rbp
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
test eax, eax
jne 0x1400ef150
mov rcx, qword [sym.4yUlCM3HuVsHzW5CaCX.exe_PhHeapHandle]
mov r8, rsi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
xor eax, eax
jmp 0x1400ef16b
cmp edi, 0x20000
ja 0x1400ef15e
mov dword [0x14018aec0], edi
mov eax, dword [rsp + 0x90]
mov dword [r14], eax
mov rax, rsi
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret

Function at 0x1400ef4b0
Capabilities:
Modify service

Disassembly:
sub rsp, 0x28
movzx eax, dl
lea r8, [rsp + 0x38]
mov edx, 3
mov dword [rsp + 0x38], eax
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
setne al
add rsp, 0x28
ret
Function at 0x1400f2510
Capabilities:
Create thread

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
sub rsp, 0x60
mov r12, r9
mov r13, rdx
call fcn.1400f2230
mov rdi, rax
test rax, rax
je 0x1400f2704
xor ebx, ebx
mov qword [rsp + 0x90], rbp
cmp qword [rax + 0x20], rbx
jne 0x1400f2569
mov r9d, 1
mov byte [rsp + 0x20], bl
xor r8d, r8d
lea rcx, [rax + 0x20]
mov edx, 0x1f0003
call qword [sym.imp.ntdll.dll_NtCreateEvent]
mov esi, eax
test eax, eax
js 0x1400f2691
mov qword [rsp + 0xa0], r15
cmp qword [rdi + 0x28], rbx
jne 0x1400f259d
mov r9d, 1
mov byte [rsp + 0x20], bl
xor r8d, r8d
lea rcx, [rdi + 0x28]
mov edx, 0x1f0003
call qword [sym.imp.ntdll.dll_NtCreateEvent]
mov esi, eax
test eax, eax
js 0x1400f2689
cmp qword [rdi + 0x30], rbx
mov qword [rsp + 0x98], r14
lea r14, [rdi + 0x30]
jne 0x1400f261b
mov rcx, qword [rdi + 0x20]
call qword [sym.imp.ntdll.dll_NtClearEvent]
mov rcx, qword [rdi + 0x28]
call qword [sym.imp.ntdll.dll_NtClearEvent]
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
xor r8d, r8d
mov qword [rsp + 0x40], r14
lea rax, [0x1400f24c0]
mov qword [rsp + 0x38], rdi
xor edx, edx
mov qword [rsp + 0x30], rax
mov rcx, 0xffffffffffffffff
mov qword [rsp + 0x28], 0x8000
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ntdll.dll_RtlCreateUserThread]
mov esi, eax
test eax, eax
js 0x1400f2681
mov rcx, qword [rdi + 0x28]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov rcx, qword [rdi + 0x20]
lea rax, [0x1400f2720]
xor edx, edx
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], r13
call qword [sym.imp.ntdll.dll_NtSetEvent]
mov rcx, qword [rdi + 0x28]
mov r8, r12
xor edx, edx
call qword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov esi, eax
mov qword [rdi + 0x10], rbx
lock or dword [rsp], ebx
mov qword [rdi + 0x18], rbx
test eax, eax
je 0x1400f2681
mov rcx, qword [r14]
mov esi, 0xc0000001
mov edx, esi
call qword [sym.imp.ntdll.dll_NtTerminateThread]
mov rcx, qword [r14]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov rcx, qword [r14]
call qword [sym.imp.ntdll.dll_NtClose]
mov qword [r14], rbx
mov r14, qword [rsp + 0x98]
mov r15, qword [rsp + 0xa0]
mov rdx, rdi
lea rcx, [0x140190540]
call qword [sym.imp.ntdll.dll_RtlInterlockedPushEntrySList]
cmp qword [0x140190d68], rbx
mov rbp, qword [rsp + 0x90]
je 0x1400f2709
xchg qword [0x140190d68], rbx
test rbx, rbx
je 0x1400f2709
nop
mov rdi, qword [rbx]
lock btr dword [rbx + 0x1c], 1
jb 0x1400f26e5
mov rcx, qword [0x1401904e0]
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
call qword [sym.imp.ntdll.dll_NtReleaseKeyedEvent]
test eax, eax
js 0x1400f26fb
mov rbx, rdi
test rdi, rdi
jne 0x1400f26c0
mov eax, esi
add rsp, 0x60
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlRaiseStatus]
int3
mov esi, 0xc0000001
mov eax, esi
add rsp, 0x60
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400f2fb0
Capabilities:
Get graphical window text

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
je 0x1400f305a
mov rdx, qword [0x140191180]
mov qword [rsp + 0x30], rbx
mov ebx, eax
add rbx, rbx
mov qword [rsp + 0x40], rdi
lea rcx, [rbx + 0x12]
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhCreateObject
mov rdi, rax
lea rcx, [rax + 0x10]
mov qword [rax], rbx
mov qword [rax + 8], rcx
xor eax, eax
mov word [rcx + rbx], ax
mov rcx, rsi
mov r8d, dword [rdi]
mov rdx, qword [rdi + 8]
shr r8d, 1
inc r8d
call qword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x1400f3027
mov rax, rdi
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhReferenceEmptyString
mov rbx, rax
lea rcx, [rdi - 0x10]
mov edx, 0xffffffff
lock xadd dword [rcx + 8], edx
cmp edx, 1
jne 0x1400f3017
call fcn.1400d9400
mov rdi, qword [rsp + 0x40]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rsi
ret
add rsp, 0x20
pop rsi
jmp sym.4yUlCM3HuVsHzW5CaCX.exe_PhReferenceEmptyString
Function at 0x1400f3070
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x60
mov rdi, r8
mov ebx, edx
mov rbp, rcx
test dl, 1
je 0x1400f3143
test bl, 2
je 0x1400f30b3
mov r8d, 0x20
lea rdx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_InternalGetWindowText]
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
mov rdx, qword [0x140191180]
mov ecx, 0x212
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhCreateObject
mov rbx, rax
lea rcx, [rax + 0x10]
mov qword [rax], 0x200
mov qword [rax + 8], rcx
xor eax, eax
mov word [rcx + 0x200], ax
mov rcx, rbp
mov r8d, dword [rbx]
mov rdx, qword [rbx + 8]
shr r8d, 1
inc r8d
call qword [sym.imp.USER32.dll_InternalGetWindowText]
mov esi, eax
mov eax, eax
add rax, rax
mov qword [rbx], rax
test rdi, rdi
je 0x1400f3119
mov qword [rdi], rbx
mov eax, esi
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
lea rcx, [rbx - 0x10]
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400f3131
call fcn.1400d9400
mov eax, esi
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
mov qword [rsp + 0x80], r14
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov r14d, eax
test eax, eax
je 0x1400f31f6
test bl, 2
jne 0x1400f31f6
mov rdx, qword [0x140191180]
mov ebx, r14d
add rbx, rbx
lea rcx, [rbx + 0x12]
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhCreateObject
mov rsi, rax
lea rcx, [rax + 0x10]
mov qword [rax], rbx
mov qword [rax + 8], rcx
xor eax, eax
mov word [rcx + rbx], ax
mov rcx, rbp
mov r8d, dword [rsi]
mov rdx, qword [rsi + 8]
shr r8d, 1
inc r8d
call qword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x1400f31cd
test rdi, rdi
je 0x1400f31b3
mov qword [rdi], rsi
jmp 0x1400f3203
lea rcx, [rsi - 0x10]
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400f3203
call fcn.1400d9400
jmp 0x1400f3203
test rdi, rdi
je 0x1400f31da
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhReferenceEmptyString
mov qword [rdi], rax
lea rcx, [rsi - 0x10]
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400f31f2
call fcn.1400d9400
xor eax, eax
jmp 0x1400f3206
test rdi, rdi
je 0x1400f3203
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhReferenceEmptyString
mov qword [rdi], rax
mov eax, r14d
mov r14, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret