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

Disassembly:
push rdi
sub rsp, 0x40
xor edi, edi
test byte [0x1402c6130], 1
jne 0x1401727fc
lock bts qword [0x1402c6130], 0x1f
setb al
test al, al
je 0x1401726ca
test byte [0x1402c6130], 1
jne 0x1401727fc
xor edx, edx
lea rcx, [0x1402c6130]
call sym.SystemInformer.exe_PhfWaitForEvent
jmp 0x1401727fc
mov qword [rsp + 0x50], rbx
lea rdx, [rsp + 0x30]
lea rbx, str.userenv.dll
mov qword [rsp + 0x30], 0x16
mov qword [rsp + 0x38], rbx
call fcn.14017d8a0
mov rcx, rax
test rax, rax
jne 0x140172755
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rcx, rax
test rax, rax
jne 0x140172755
xor edx, edx
mov r8d, 0x200
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rcx, rax
test rax, rax
jne 0x140172755
cmp dword [0x1402bff40], 0x3e
jae 0x1401727eb
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rcx, rax
test rax, rax
je 0x1401727eb
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1401727eb
mov edx, dword [rcx + 0x3c]
lea eax, [rdx - 1]
cmp eax, 0x7ffffffd
ja 0x1401727eb
cmp dword [rdx + rcx], 0x4550
jne 0x1401727eb
add rdx, 0x88
add rdx, rcx
mov eax, dword [rdx]
test eax, eax
je 0x1401727eb
cmp dword [rdx + 4], edi
je 0x1401727eb
lea r8, [rcx + rax]
mov word [rsp + 0x20], di
lea r9, str.DestroyEnvironmentBlock
call fcn.14017dc40
mov r9, rax
test rax, rax
je 0x1401727eb
mov r8, qword [0x7ffe0320]
mov ecx, dword [0x7ffe0004]
mov eax, r8d
shr r8, 0x20
imul rax, rcx
imul r8, rcx
shr rax, 0x18
shl r8, 8
add rax, r8
mov qword [0x1402ce008], rax
xor rax, r9
mov qword [0x1402ce070], rax
lea rcx, [0x1402c6130]
call sym.SystemInformer.exe_PhfSetEvent
mov rbx, qword [rsp + 0x50]
mov rax, qword [0x1402ce070]
test rax, rax
je 0x14017281d
mov rcx, qword [0x1402ce008]
test rcx, rcx
je 0x14017281d
xor rax, rcx
add rsp, 0x40
pop rdi
ret
mov rax, rdi
add rsp, 0x40
pop rdi
ret
Function at 0x140172840
Capabilities:
Parse pe header

Disassembly:
push rdi
sub rsp, 0x40
xor edi, edi
test byte [0x1402c6220], 1
jne 0x1401729bc
lock bts qword [0x1402c6220], 0x1f
setb al
test al, al
je 0x14017288a
test byte [0x1402c6220], 1
jne 0x1401729bc
xor edx, edx
lea rcx, [0x1402c6220]
call sym.SystemInformer.exe_PhfWaitForEvent
jmp 0x1401729bc
mov qword [rsp + 0x50], rbx
lea rdx, [rsp + 0x30]
lea rbx, str.userenv.dll
mov qword [rsp + 0x30], 0x16
mov qword [rsp + 0x38], rbx
call fcn.14017d8a0
mov rcx, rax
test rax, rax
jne 0x140172915
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rcx, rax
test rax, rax
jne 0x140172915
xor edx, edx
mov r8d, 0x200
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rcx, rax
test rax, rax
jne 0x140172915
cmp dword [0x1402bff40], 0x3e
jae 0x1401729ab
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rcx, rax
test rax, rax
je 0x1401729ab
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1401729ab
mov edx, dword [rcx + 0x3c]
lea eax, [rdx - 1]
cmp eax, 0x7ffffffd
ja 0x1401729ab
cmp dword [rdx + rcx], 0x4550
jne 0x1401729ab
add rdx, 0x88
add rdx, rcx
mov eax, dword [rdx]
test eax, eax
je 0x1401729ab
cmp dword [rdx + 4], edi
je 0x1401729ab
lea r8, [rcx + rax]
mov word [rsp + 0x20], di
lea r9, str.GetAppContainerRegistryLocation
call fcn.14017dc40
mov r9, rax
test rax, rax
je 0x1401729ab
mov r8, qword [0x7ffe0320]
mov ecx, dword [0x7ffe0004]
mov eax, r8d
shr r8, 0x20
imul rax, rcx
imul r8, rcx
shr rax, 0x18
shl r8, 8
add rax, r8
mov qword [0x1402ce0b0], rax
xor rax, r9
mov qword [0x1402ce068], rax
lea rcx, [0x1402c6220]
call sym.SystemInformer.exe_PhfSetEvent
mov rbx, qword [rsp + 0x50]
mov rax, qword [0x1402ce068]
test rax, rax
je 0x1401729dd
mov rcx, qword [0x1402ce0b0]
test rcx, rcx
je 0x1401729dd
xor rax, rcx
add rsp, 0x40
pop rdi
ret
mov rax, rdi
add rsp, 0x40
pop rdi
ret
Function at 0x140172a00
Capabilities:
Parse pe header

Disassembly:
push rdi
sub rsp, 0x40
xor edi, edi
test byte [0x1402c6110], 1
jne 0x140172b7c
lock bts qword [0x1402c6110], 0x1f
setb al
test al, al
je 0x140172a4a
test byte [0x1402c6110], 1
jne 0x140172b7c
xor edx, edx
lea rcx, [0x1402c6110]
call sym.SystemInformer.exe_PhfWaitForEvent
jmp 0x140172b7c
mov qword [rsp + 0x50], rbx
lea rdx, [rsp + 0x30]
lea rbx, [0x1402675e0]
mov qword [rsp + 0x30], 0x14
mov qword [rsp + 0x38], rbx
call fcn.14017d8a0
mov rcx, rax
test rax, rax
jne 0x140172ad5
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rcx, rax
test rax, rax
jne 0x140172ad5
xor edx, edx
mov r8d, 0x200
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rcx, rax
test rax, rax
jne 0x140172ad5
cmp dword [0x1402bff40], 0x3e
jae 0x140172b6b
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rcx, rax
test rax, rax
je 0x140172b6b
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140172b6b
mov edx, dword [rcx + 0x3c]
lea eax, [rdx - 1]
cmp eax, 0x7ffffffd
ja 0x140172b6b
cmp dword [rdx + rcx], 0x4550
jne 0x140172b6b
add rdx, 0x88
add rdx, rcx
mov eax, dword [rdx]
test eax, eax
je 0x140172b6b
cmp dword [rdx + 4], edi
je 0x140172b6b
lea r8, [rcx + rax]
mov word [rsp + 0x20], di
lea r9, str.SetWindowDisplayAffinity
call fcn.14017dc40
mov r9, rax
test rax, rax
je 0x140172b6b
mov r8, qword [0x7ffe0320]
mov ecx, dword [0x7ffe0004]
mov eax, r8d
shr r8, 0x20
imul rax, rcx
imul r8, rcx
shr rax, 0x18
shl r8, 8
add rax, r8
mov qword [0x1402cdfb8], rax
xor rax, r9
mov qword [0x1402ce0a8], rax
lea rcx, [0x1402c6110]
call sym.SystemInformer.exe_PhfSetEvent
mov rbx, qword [rsp + 0x50]
mov rax, qword [0x1402ce0a8]
test rax, rax
je 0x140172b9d
mov rcx, qword [0x1402cdfb8]
test rcx, rcx
je 0x140172b9d
xor rax, rcx
add rsp, 0x40
pop rdi
ret
mov rax, rdi
add rsp, 0x40
pop rdi
ret
Function at 0x140173860
Capabilities:
Enumerate services

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov eax, dword [0x1402bff40]
mov r15, rdx
mov r12, rcx
cmp eax, 0x66
jb 0x14017388c
mov edi, 0x3ff
jmp 0x14017389c
cmp eax, 0x64
mov edi, 0x3b
mov ecx, 0x1ff
cmovae edi, ecx
xor r13d, r13d
xor eax, eax
lock cmpxchg qword [0x1402ce130], r13
mov rbp, rax
jne 0x1401738e6
xor edx, edx
xor ecx, ecx
mov r8d, 5
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rcx, rax
test rax, rax
je 0x1401738e6
xor eax, eax
lock cmpxchg qword [0x1402ce130], rcx
mov rbp, rax
jne 0x1401738dc
mov rbp, rcx
jmp 0x1401738e6
nop dword [rax]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, dword [0x1402c6264]
mov edx, 4
mov rcx, qword [0x1402caad0]
mov r8d, esi
mov qword [rsp + 0x90], rbx
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov qword [rsp + 0x48], r13
mov r9d, 3
mov r14, rax
mov qword [rsp + 0x40], r13
lea rax, [rsp + 0xa8]
mov r8d, edi
mov qword [rsp + 0x38], rax
xor edx, edx
lea rax, [rsp + 0xa0]
mov rcx, rbp
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
test eax, eax
jne 0x140173a4a
cmp dword [0x1402bff40], 0xffffffff
jae 0x14017396c
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x68]
jmp 0x140173972
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call sym.SystemInformer.exe_PhDosErrorToNtStatus
mov ebx, eax
cmp eax, 0x105
jne 0x140173a2f
mov rcx, qword [0x1402caad0]
mov r8, r14
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
add esi, dword [rsp + 0xa0]
mov edx, 4
mov rcx, qword [0x1402caad0]
mov r8d, esi
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov qword [rsp + 0x48], r13
mov r9d, 3
mov r14, rax
mov qword [rsp + 0x40], r13
lea rax, [rsp + 0xa8]
mov r8d, edi
mov qword [rsp + 0x38], rax
xor edx, edx
lea rax, [rsp + 0xa0]
mov rcx, rbp
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
nop dword [rax]
test eax, eax
jne 0x140173a4a
cmp dword [0x1402bff40], 0xffffffff
jae 0x140173a1b
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x68]
jmp 0x140173a26
nop dword [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call sym.SystemInformer.exe_PhDosErrorToNtStatus
mov ebx, eax
test ebx, ebx
jns 0x140173a4d
lfence
mov rcx, qword [0x1402caad0]
mov r8, r14
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x140173a6c
mov ebx, r13d
lfence
cmp esi, 0x20000
ja 0x140173a5e
mov dword [0x1402c6264], esi
mov eax, dword [rsp + 0xa8]
mov dword [r15], eax
mov qword [r12], r14
mov eax, ebx
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 0x140173aa0
Capabilities:
Enumerate services

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rsi, r8
mov r14, rdx
mov rbp, rcx
mov edx, 4
mov rcx, qword [0x1402caad0]
mov r8d, 0x800
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r9d, 0x800
mov edx, 3
mov rdi, rax
mov rcx, rbp
lea rax, [rsp + 0x30]
mov r8, rdi
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
je 0x140173b2d
xor ebx, ebx
lfence
mov eax, dword [rsp + 0x30]
mov qword [r14], rdi
mov dword [rsi], eax
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
cmp dword [0x1402bff40], 0xffffffff
jae 0x140173b44
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x68]
jmp 0x140173b4a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call sym.SystemInformer.exe_PhDosErrorToNtStatus
mov ebx, eax
cmp eax, 0x105
jne 0x140173be7
mov rcx, qword [0x1402caad0]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov ebx, dword [rsp + 0x78]
mov edx, 4
mov rcx, qword [0x1402caad0]
mov r8d, ebx
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r9d, ebx
mov edx, 3
mov rdi, rax
mov rcx, rbp
lea rax, [rsp + 0x30]
mov r8, rdi
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
jne 0x140173b0a
cmp dword [0x1402bff40], 0xffffffff
jae 0x140173bd3
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x68]
jmp 0x140173bd9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call sym.SystemInformer.exe_PhDosErrorToNtStatus
mov ebx, eax
test ebx, ebx
jns 0x140173b0c
lfence
mov rcx, qword [0x1402caad0]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x140173b18
Function at 0x140173ec0
Capabilities:
Create service

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push r14
push r15
sub rsp, 0x80
mov r14, r8
mov r15, rdx
mov rsi, rcx
xor edx, edx
xor ecx, ecx
mov r8d, 2
mov ebp, r9d
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
jne 0x140173f2d
cmp dword [0x1402bff40], 0xffffffff
jae 0x140173f11
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x68]
jmp 0x140173f17
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call sym.SystemInformer.exe_PhDosErrorToNtStatus
nop
test eax, eax
js 0x140173fe9
mov rbx, qword [rsp + 0x70]
mov rax, qword ds:[rsp + 0xe8]
mov r9d, ebp
mov qword [rsp + 0x60], rax
mov r8, r14
mov rax, qword [rsp + 0xe0]
mov rdx, r15
mov qword [rsp + 0x58], rax
mov rcx, rbx
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0xa0], rdi
xor edi, edi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0xd0]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0xc8]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0xc0]
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
test rax, rax
je 0x140173fb0
mov qword [rsi], rax
jmp 0x140173fd6
cmp dword [0x1402bff40], 0xffffffff
jae 0x140173fc7
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x68]
jmp 0x140173fcd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call sym.SystemInformer.exe_PhDosErrorToNtStatus
mov edi, eax
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
mov rdi, qword [rsp + 0xa0]
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rsi
ret

Function at 0x140174020
Capabilities:
Modify service

Disassembly:
mov r11, rsp
sub rsp, 0x68
mov rax, qword [rsp + 0xc0]
mov qword [r11 - 0x18], rax
mov rax, qword [rsp + 0xb8]
mov qword [r11 - 0x20], rax
mov rax, qword [rsp + 0xb0]
mov qword [r11 - 0x28], rax
mov rax, qword [rsp + 0xa8]
mov qword [r11 - 0x30], rax
mov rax, qword [rsp + 0xa0]
mov qword [r11 - 0x38], rax
mov rax, qword [rsp + 0x98]
mov qword [r11 - 0x40], rax
mov rax, qword [rsp + 0x90]
mov qword [r11 - 0x48], rax
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
je 0x140174091
xor eax, eax
add rsp, 0x68
ret
cmp dword [0x1402bff40], 0xffffffff
jae 0x1401740b1
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x68]
mov ecx, eax
add rsp, 0x68
jmp sym.SystemInformer.exe_PhDosErrorToNtStatus
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
add rsp, 0x68
jmp sym.SystemInformer.exe_PhDosErrorToNtStatus

Function at 0x1401740d0
Capabilities:
Modify service

Disassembly:
sub rsp, 0x28
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
je 0x1401740e5
xor eax, eax
add rsp, 0x28
ret
cmp dword [0x1402bff40], 0xffffffff
jae 0x140174105
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x68]
mov ecx, eax
add rsp, 0x28
jmp sym.SystemInformer.exe_PhDosErrorToNtStatus
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
add rsp, 0x28
jmp sym.SystemInformer.exe_PhDosErrorToNtStatus
Function at 0x140174220
Capabilities:
Query service status

Disassembly:
sub rsp, 0x38
xorps xmm0, xmm0
mov dword [rsp + 0x50], 0
movups xmmword [rdx], xmm0
xor eax, eax
mov r8, rdx
movups xmmword [rdx + 0x10], xmm0
mov dword [rdx + 0x20], eax
mov r9d, 0x24
lea rax, [rsp + 0x50]
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x140174261
xor eax, eax
add rsp, 0x38
ret
cmp dword [0x1402bff40], 0xffffffff
jae 0x140174285
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x68]
mov ecx, eax
add rsp, 0x38
jmp sym.SystemInformer.exe_PhDosErrorToNtStatus
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
add rsp, 0x38
jmp sym.SystemInformer.exe_PhDosErrorToNtStatus

Function at 0x140174400
Capabilities:
Continue service

Disassembly:
sub rsp, 0x58
mov rax, qword [0x1402bf040]
xor rax, rsp
mov qword [rsp + 0x40], rax
lea r8, [rsp + 0x20]
mov edx, 3
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x14017443e
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1401e4160
add rsp, 0x58
ret
cmp dword [0x1402bff40], 0xffffffff
jae 0x140174455
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x68]
jmp 0x14017445b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call sym.SystemInformer.exe_PhDosErrorToNtStatus
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1401e4160
add rsp, 0x58
ret

Function at 0x140174480
Capabilities:
Pause service

Disassembly:
sub rsp, 0x58
mov rax, qword [0x1402bf040]
xor rax, rsp
mov qword [rsp + 0x40], rax
lea r8, [rsp + 0x20]
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x1401744be
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1401e4160
add rsp, 0x58
ret
cmp dword [0x1402bff40], 0xffffffff
jae 0x1401744d5
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x68]
jmp 0x1401744db
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call sym.SystemInformer.exe_PhDosErrorToNtStatus
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1401e4160
add rsp, 0x58
ret

Function at 0x140174500
Capabilities:
Delete service

Disassembly:
sub rsp, 0x28
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x140174515
xor eax, eax
add rsp, 0x28
ret
cmp dword [0x1402bff40], 0xffffffff
jae 0x140174535
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x68]
mov ecx, eax
add rsp, 0x28
jmp sym.SystemInformer.exe_PhDosErrorToNtStatus
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
add rsp, 0x28
jmp sym.SystemInformer.exe_PhDosErrorToNtStatus

Function at 0x140174550
Capabilities:
Start service

Disassembly:
sub rsp, 0x28
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x140174565
xor eax, eax
add rsp, 0x28
ret
cmp dword [0x1402bff40], 0xffffffff
jae 0x140174585
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x68]
mov ecx, eax
add rsp, 0x28
jmp sym.SystemInformer.exe_PhDosErrorToNtStatus
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
add rsp, 0x28
jmp sym.SystemInformer.exe_PhDosErrorToNtStatus
Function at 0x1401745a0
Capabilities:
Stop service

Disassembly:
sub rsp, 0x58
mov rax, qword [0x1402bf040]
xor rax, rsp
mov qword [rsp + 0x40], rax
lea r8, [rsp + 0x20]
mov edx, 1
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x1401745de
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1401e4160
add rsp, 0x58
ret
cmp dword [0x1402bff40], 0xffffffff
jae 0x1401745f5
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x68]
jmp 0x1401745fb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call sym.SystemInformer.exe_PhDosErrorToNtStatus
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1401e4160
add rsp, 0x58
ret
Function at 0x14017cb20
Capabilities:
Map section object

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbp
push rdi
sub rsp, 0x60
xor ebp, ebp
mov rdi, r8
mov r8d, 0x100081
test dl, dl
je 0x14017cb67
mov dword ds:[rax - 0x38], 0x60
mov rdx, rcx
mov dword [rax - 0x40], 1
lea rcx, [rax + 0x20]
mov r9d, 0x80
mov dword [rax - 0x48], 5
call sym.SystemInformer.exe_PhCreateFile
jmp 0x14017cba5
mov rdx, qword ds:[rcx + 8]
xor r9d, r9d
mov qword [rsp + 0x40], rbp
lea rcx, [rsp + 0x88]
mov dword [rsp + 0x38], 0x60
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 5
mov dword [rsp + 0x20], 0x80
call sym.SystemInformer.exe_PhCreateFileWin32Ex
test eax, eax
jns 0x14017cbba
lfence
mov rbp, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
cmp dword [0x1402bff40], 0x3e
mov eax, 0x11000000
mov ecx, 0x1000000
mov qword [rsp + 0x70], rbx
cmovb eax, ecx
mov qword [rsp + 0x78], rsi
mov rsi, qword [rsp + 0x88]
lea rcx, [rsp + 0x88]
mov qword [rsp + 0x30], rsi
xor r9d, r9d
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov edx, 5
mov dword [rsp + 0x20], 2
call qword [sym.imp.ntdll.dll_NtCreateSection]
mov ebx, eax
test eax, eax
js 0x14017cc9f
cmp dword [0x1402bff40], 0x67
lea r8, [rsp + 0x50]
mov rcx, qword [rsp + 0x88]
mov eax, 0x40000
mov dword [rsp + 0x48], 2
cmovb eax, ebp
mov dword [rsp + 0x40], eax
xor r9d, r9d
mov dword [rsp + 0x38], 2
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov rdx, 0xffffffffffffffff
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], rbp
call qword [sym.imp.ntdll.dll_NtMapViewOfSection]
mov rcx, qword [rsp + 0x88]
mov ebx, ebp
cmp eax, 0x40000003
cmovne ebx, eax
call qword [sym.imp.ntdll.dll_NtClose]
test ebx, ebx
js 0x14017cc9f
test rdi, rdi
je 0x14017cc9f
mov rdx, qword [rsp + 0x50]
or rdx, 2
mov qword [rdi], rdx
mov rcx, rsi
call qword [sym.imp.ntdll.dll_NtClose]
mov rsi, qword [rsp + 0x78]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret

Function at 0x14017cda0
Capabilities:
Parse pe header

Disassembly:
cmp rdx, 0x10000
jae 0x14017cdb4
movzx r8d, dx
xor edx, edx
jmp 0x14017db60
xor r8d, r8d
jmp 0x14017db60
mov qword ss:[rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rax, rcx
mov r9, rcx
and rax, 0xfffffffffffffff1
movzx ebx, r8w
mov rdi, rdx
xorps xmm1, xmm1
and ecx, 0xf
je 0x14017dba2
xorps xmm0, xmm0
pcmpeqw xmm0, xmmword [rax]
pmovmskb edx, xmm0
shr edx, cl
bsf ecx, edx
je 0x14017db9e
mov eax, ecx
shr rax, 1
jmp 0x14017dbe3
add rax, 0x10
xorps xmm0, xmm0
pcmpeqw xmm0, xmmword [rax]
pmovmskb ecx, xmm0
bsf edx, ecx
jne 0x14017dbd5
nop dword [rax]
nop word [rax + rax]
add rax, 0x10
movdqa xmm0, xmm1
pcmpeqw xmm0, xmmword [rax]
pmovmskb ecx, xmm0
bsf edx, ecx
je 0x14017dbc0
sub rax, r9
mov ecx, edx
sar rax, 1
shr rcx, 1
add rax, rcx
add rax, rax
mov qword [rsp + 0x28], r9
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
call fcn.14017d8a0
test rax, rax
jne 0x14017dc0a
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
movzx r8d, bx
mov rdx, rdi
mov rcx, rax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
jmp fcn.14017dae0
Function at 0x14017d120
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x1402bf040]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, qword [rsp + 0xa0]
mov rdi, r9
mov qword [rsp + 0x38], r8
lea r9, [rsp + 0x28]
mov qword [rsp + 0x40], rdx
mov r8d, 3
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x48], 0
mov rsi, rcx
call qword [sym.imp.ntdll.dll_LdrFindResource_U]
test eax, eax
js 0x14017d1b1
lfence
mov rdx, qword [rsp + 0x28]
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.ntdll.dll_LdrAccessResource]
test eax, eax
js 0x14017d1b1
test rdi, rdi
je 0x14017d19c
mov eax, dword [rsp + 0x20]
mov dword [rdi], eax
nop dword [rax]
test rbx, rbx
je 0x14017d1ad
mov rax, qword [rsp + 0x30]
mov qword [rbx], rax
mov al, 1
jmp 0x14017d1b3
xor al, al
mov rcx, qword ds:[rsp + 0x50]
xor rcx, rsp
call fcn.1401e4160
add rsp, 0x60
pop rdi
pop rsi
pop rbx
ret

Function at 0x14017d1e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
sub rsp, 0x68
mov rax, qword [0x1402bf040]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rsi, qword [rsp + 0xa0]
lea r9, [rsp + 0x28]
mov qword [rsp + 0x38], r8
mov rbx, rcx
mov qword [rsp + 0x40], rdx
mov r8d, 3
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x48], 0
call qword [sym.imp.ntdll.dll_LdrFindResource_U]
test eax, eax
js 0x14017d2a2
lfence
mov rdx, qword [rsp + 0x28]
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.ntdll.dll_LdrAccessResource]
test eax, eax
js 0x14017d2a2
mov qword [rsp + 0x98], rbp
mov rbp, qword [rsp + 0x30]
test rsi, rsi
je 0x14017d296
mov rcx, qword [0x1402caad0]
mov edx, 4
mov qword [rsp + 0x60], rdi
mov edi, dword [rsp + 0x20]
mov r8d, edi
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8d, edi
mov rdx, rbp
mov rcx, rax
mov rbx, rax
call fcn.14020a640
mov rdi, qword [rsp + 0x60]
mov qword [rsi], rbx
mov rbp, qword [rsp + 0x98]
mov al, 1
jmp 0x14017d2a4
xor al, al
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1401e4160
add rsp, 0x68
pop rsi
pop rbx
ret