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

Disassembly:
jmp 0x18021b030
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x60]
mov qword [rax + 0x10], rcx
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r8d, 0x40
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
call fcn.180009290
jmp 0x18021b08e
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x18021b0a7
mov eax, 0xc000012f
jmp 0x18021b1ec
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x3c]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
jne 0x18021b0c4
mov eax, 0xc000007b
jmp 0x18021b1ec
cmp dword [rsp + 0x28], 0x10000000
jae 0x18021b0d9
mov eax, dword [rsp + 0x28]
cmp rax, qword [rsp + 0x60]
jb 0x18021b0e3
mov eax, 0xc000007b
jmp 0x18021b1ec
mov eax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x58]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x50]
mov qword [rcx + 0x18], rax
mov r8d, 0x18
mov rax, qword [rsp + 0x50]
mov rdx, qword [rax + 0x18]
mov rcx, qword [rsp + 0x50]
call fcn.180009290
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x18]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 0x18]
movzx ecx, word [rcx + 6]
imul rcx, rcx, 0x28
lea rax, [rax + rcx + 0x18]
mov r8, rax
mov rax, qword [rsp + 0x50]
mov rdx, qword [rax + 0x18]
mov rcx, qword [rsp + 0x50]
call fcn.180009290
jmp 0x18021b15c
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x18]
cmp dword [rax], 0x4550
je 0x18021b174
mov eax, 0xc000007b
jmp 0x18021b1ec
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x18]
mov rcx, qword [rsp + 0x50]
movzx eax, word [rax + 0x18]
mov word [rcx + 0x30], ax
mov rax, qword [rsp + 0x50]
movzx eax, word [rax + 0x30]
cmp eax, 0x10b
je 0x18021b1b1
mov rax, qword [rsp + 0x50]
movzx eax, word [rax + 0x30]
cmp eax, 0x20b
je 0x18021b1b1
mov eax, 0xc000007b
jmp 0x18021b1ec
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x18]
movzx eax, word [rax + 6]
mov rcx, qword [rsp + 0x50]
mov dword [rcx + 0x20], eax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x18]
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 0x18]
movzx ecx, word [rcx + 0x14]
lea rax, [rax + rcx + 0x18]
mov rcx, qword [rsp + 0x50]
mov qword [rcx + 0x28], rax
xor eax, eax
add rsp, 0x40
pop rdi
ret
Function at 0x180009a00
Capabilities:
Inspect section memory permissions

Disassembly:
jmp 0x180215f50
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x10
mov dword [rsp], 0
mov eax, dword [rsp + 0x20]
and eax, 1
test eax, eax
jne 0x180215f81
mov eax, dword [rsp + 0x20]
and eax, 2
test eax, eax
jne 0x180215f81
mov eax, dword [rsp + 0x20]
and eax, 0x10
test eax, eax
je 0x180215f8b
mov eax, dword [rsp]
bts eax, 0x13
mov dword [rsp], eax
mov eax, dword [rsp + 0x20]
and eax, 4
test eax, eax
jne 0x180215fbb
mov eax, dword [rsp + 0x20]
and eax, 0x20
test eax, eax
jne 0x180215fbb
mov eax, dword [rsp + 0x20]
and eax, 0x80000000
test eax, eax
jne 0x180215fbb
mov eax, dword [rsp + 0x20]
and eax, 0x20000000
test eax, eax
je 0x180215fc5
mov eax, dword [rsp]
bts eax, 0x12
mov dword [rsp], eax
mov eax, dword [rsp + 0x20]
and eax, 8
test eax, eax
jne 0x180215ff5
mov eax, dword [rsp + 0x20]
and eax, 0x40
test eax, eax
jne 0x180215ff5
mov eax, dword [rsp + 0x20]
and eax, 0x40000000
test eax, eax
jne 0x180215ff5
mov eax, dword [rsp + 0x20]
and eax, 0x10000000
test eax, eax
je 0x180215fff
mov eax, dword [rsp]
bts eax, 0x18
mov dword [rsp], eax
mov eax, dword [rsp + 0x20]
and eax, 0x10000
test eax, eax
je 0x180216017
mov eax, dword [rsp]
or eax, 0x10c0000
mov dword [rsp], eax
mov eax, dword [rsp]
add rsp, 0x10
pop rdi
ret

Function at 0x180009c20
Capabilities:
Get system information on windows

Disassembly:
jmp 0x1801a6090
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
lea rdi, [rsp + 0x20]
mov ecx, 0x14
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x80]
mov dword [rsp + 0x30], 0x100
mov eax, dword [rsp + 0x30]
mov ecx, eax
call sym.ProcessMonitor.dll_PhAllocate
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x48], rax
xor eax, eax
mov word [rsp + 0x50], ax
movzx eax, word [rsp + 0x30]
mov word [rsp + 0x52], ax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x58], rax
xor r9d, r9d
mov r8d, 0x18
lea rdx, [rsp + 0x48]
mov ecx, 0x58
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xc0000004
jne 0x1801a6161
mov rcx, qword [rsp + 0x28]
call sym.ProcessMonitor.dll_PhFree
movzx eax, word [rsp + 0x52]
mov ecx, eax
call sym.ProcessMonitor.dll_PhAllocate
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x58], rax
xor r9d, r9d
mov r8d, 0x18
lea rdx, [rsp + 0x48]
mov ecx, 0x58
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jge 0x1801a6178
mov rcx, qword [rsp + 0x28]
call sym.ProcessMonitor.dll_PhFree
mov eax, dword [rsp + 0x20]
jmp 0x1801a619b
lea rcx, [rsp + 0x50]
call fcn.180008ce0
mov rcx, qword [rsp + 0x88]
mov qword [rcx], rax
mov rcx, qword [rsp + 0x28]
call sym.ProcessMonitor.dll_PhFree
mov eax, dword [rsp + 0x20]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1804c0f30]
call fcn.180014e20
mov rax, rdi
add rsp, 0x70
pop rdi
ret
Function at 0x180009c30
Capabilities:
Read http header

Disassembly:
jmp 0x180226630
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
lea rdi, [rsp + 0x30]
mov ecx, 8
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x60]
mov dword [rsp + 0x34], 0
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8, qword [rsp + 0x68]
mov edx, 0xffff
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x10]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x18022669f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x18022669f
xor eax, eax
jmp 0x180226707
mov eax, dword [rsp + 0x34]
mov edx, eax
xor ecx, ecx
call sym.ProcessMonitor.dll_PhCreateStringEx
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x48]
mov r9, qword [rax + 8]
mov r8, qword [rsp + 0x68]
mov edx, 0xffff
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x10]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x1802266f8
mov rcx, qword [rsp + 0x48]
call sym.ProcessMonitor.dll_PhDereferenceObject
xor eax, eax
jmp 0x180226707
mov rcx, qword [rsp + 0x48]
call fcn.1800160a0
mov rax, qword [rsp + 0x48]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1804e1970]
call fcn.180014e20
mov rax, rdi
add rsp, 0x50
pop rdi
ret

Function at 0x180009c40
Capabilities:
Receive http response

Disassembly:
jmp 0x180226400
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov r9, qword [rsp + 0x58]
mov r8d, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x10]
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x180226445
mov dword [rsp + 0x20], 1
jmp 0x18022644d
mov dword [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
add rsp, 0x30
pop rdi
ret
Function at 0x180009ff0
Capabilities:
Get system information on windows

Disassembly:
jmp 0x18013a1d0
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x60
lea rdi, [rsp + 0x20]
mov ecx, 0x10
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x70]
mov rax, qword [0x1805a6200]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x34], 0x100
mov eax, dword [rsp + 0x34]
mov ecx, eax
call sym.ProcessMonitor.dll_PhAllocate
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
mov r8d, dword [rsp + 0x34]
mov rdx, qword [rsp + 0x28]
mov ecx, 0x64
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x44], 0
cmp dword [rsp + 0x20], 0xc0000004
jne 0x18013a292
cmp dword [rsp + 0x44], 8
jae 0x18013a292
mov rcx, qword [rsp + 0x28]
call sym.ProcessMonitor.dll_PhFree
mov eax, dword [rsp + 0x34]
mov ecx, eax
call sym.ProcessMonitor.dll_PhAllocate
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
mov r8d, dword [rsp + 0x34]
mov rdx, qword [rsp + 0x28]
mov ecx, 0x64
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x44]
inc eax
mov dword [rsp + 0x44], eax
jmp 0x18013a23d
cmp dword [rsp + 0x20], 0
jl 0x18013a2a8
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x28]
mov qword [rax], rcx
jmp 0x18013a2b2
mov rcx, qword [rsp + 0x28]
call sym.ProcessMonitor.dll_PhFree
mov eax, dword [rsp + 0x20]
mov edi, eax
mov rcx, rsp
lea rdx, [0x1804a2470]
call fcn.180014e20
mov eax, edi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.18000ce90
add rsp, 0x60
pop rdi
ret
Function at 0x18000a020
Capabilities:
Delete registry key

Disassembly:
jmp 0x1801ada20
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x110
lea rdi, [rsp + 0x40]
mov ecx, 0x34
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x120]
mov rax, qword [rsp + 0x120]
mov rdx, rax
lea rcx, [0x1805a01c0]
call sym.ProcessMonitor.dll_PhConcatStringRef2
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
lea rdx, [rsp + 0x58]
mov rcx, rax
call fcn.180011010
movzx eax, al
test eax, eax
jne 0x1801ada8f
mov rcx, qword [rsp + 0x48]
call sym.ProcessMonitor.dll_PhDereferenceObject
mov eax, 0xc0000106
jmp 0x1801adc35
mov rax, qword [rsp + 0x48]
lea rcx, [rsp + 0xa4]
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, rax
xor r8d, r8d
mov edx, 0x30006
lea rcx, [rsp + 0x88]
call sym.ProcessMonitor.dll_PhCreateKey
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jl 0x1801adc27
cmp dword [rsp + 0xa4], 1
jne 0x1801adbf2
mov dword [rsp + 0xf4], 1
lea rdx, str.ErrorControl
lea rcx, [rsp + 0xc8]
call fcn.180005390
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0xf4]
mov r8d, 4
lea rdx, [rsp + 0xc8]
mov rcx, qword [rsp + 0x88]
call sym.ProcessMonitor.dll_PhSetValueKey
lea rdx, [0x1804c8430]
lea rcx, [rsp + 0xc8]
call fcn.180005390
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0xf4]
mov r8d, 4
lea rdx, [rsp + 0xc8]
mov rcx, qword [rsp + 0x88]
call sym.ProcessMonitor.dll_PhSetValueKey
lea rdx, str.Type
lea rcx, [rsp + 0xc8]
call fcn.180005390
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0xf4]
mov r8d, 4
lea rdx, [rsp + 0xc8]
mov rcx, qword [rsp + 0x88]
call sym.ProcessMonitor.dll_PhSetValueKey
lea rdx, str.ImagePath
lea rcx, [rsp + 0xc8]
call fcn.180005390
mov eax, dword [0x1805a01d0]
add rax, 2
mov dword [rsp + 0x20], eax
mov r9, qword [str.SystemRoot_system32drivers_ntfs.sys]
mov r8d, 1
lea rdx, [rsp + 0xc8]
mov rcx, qword [rsp + 0x88]
call sym.ProcessMonitor.dll_PhSetValueKey
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntdll.dll_NtUnloadDriver]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0xa4], 1
jne 0x1801adc19
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ntdll.dll_NtDeleteKey]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rsp + 0x48]
call sym.ProcessMonitor.dll_PhDereferenceObject
mov eax, dword [rsp + 0x40]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1804c51f0]
call fcn.180014e20
mov rax, rdi
add rsp, 0x110
pop rdi
ret
Function at 0x18000a0b0
Capabilities:
Delete service

Disassembly:
jmp 0x180030900
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
lea rdi, [rsp + 0x30]
mov ecx, 0x10
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x80]
mov rax, qword [0x1805a6200]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov byte [rsp + 0x38], 0
mov rax, qword [rsp + 0x88]
mov rax, qword [rax + 0x10]
mov byte [rsp + 0x20], 1
lea r9, str.Deleting_a_service_can_prevent_the_system_from_starting_or_functioning_properly.
mov r8, qword [rax + 8]
lea rdx, [0x18039e348]
mov rcx, qword [rsp + 0x80]
call sym.ProcessMonitor.dll_PhShowConfirmMessage
movzx eax, al
test eax, eax
jne 0x18003097a
xor al, al
jmp 0x180030aa7
mov rax, qword [rsp + 0x88]
mov rax, qword [rax + 0x10]
mov edx, 0x10000
mov rcx, qword [rax + 8]
call sym.ProcessMonitor.dll_PhOpenService
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1800309c0
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x1800309b5
mov byte [rsp + 0x38], 1
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
movzx eax, byte [rsp + 0x38]
test eax, eax
jne 0x180030aa2
call fcn.180010890
mov dword [rsp + 0x3c], eax
mov rax, qword [rsp + 0x88]
mov rax, qword [rax + 0x10]
mov rdx, qword [rax + 8]
lea rcx, str.Unable_to_delete
call fcn.1800023e0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x3c]
mov rdx, qword [rax + 8]
mov rcx, qword [rsp + 0x80]
call fcn.180004330
movzx eax, al
test eax, eax
je 0x180030a79
movzx eax, byte [rsp + 0x44]
test eax, eax
je 0x180030a77
mov rax, qword [rsp + 0x88]
mov rax, qword [rax + 0x10]
mov edx, 5
mov rcx, qword [rax + 8]
call fcn.180014350
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
jl 0x180030a49
mov byte [rsp + 0x38], 1
jmp 0x180030a72
mov dword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x3c]
mov r8, qword [rsp + 0x88]
lea rdx, [0x18039e348]
mov rcx, qword [rsp + 0x80]
call fcn.180033d10
call sym.ProcessMonitor.dll_PhUiDisconnectFromPhSvc
jmp 0x180030aa2
mov dword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x3c]
mov r8, qword [rsp + 0x88]
lea rdx, [0x18039e348]
mov rcx, qword [rsp + 0x80]
call fcn.180033d10
movzx eax, byte [rsp + 0x38]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x18039add0]
call fcn.180014e20
mov rax, rdi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.18000ce90
add rsp, 0x70
pop rdi
ret

Function at 0x18000a1b0
Capabilities:
Get system information on windows

Disassembly:
jmp 0x1800e2fc0
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
xor r9d, r9d
mov r8d, dword [rsp + 0x38]
mov rdx, qword [rsp + 0x30]
mov ecx, 0x6c
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
add rsp, 0x20
pop rdi
ret
Function at 0x18000a4f0
Capabilities:
Get system information on windows

Disassembly:
jmp 0x1801368f0
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0
mov eax, dword [0x1808e8a10]
imul rax, rax, 0x18
xor r9d, r9d
mov r8d, eax
mov rdx, qword [0x1808e8a18]
mov ecx, 0x17
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
jl 0x18013696a
mov dword [rsp + 0x38], 0
jmp 0x180136939
mov eax, dword [rsp + 0x38]
inc eax
mov dword [rsp + 0x38], eax
mov eax, dword [0x1808e8a10]
cmp dword [rsp + 0x38], eax
jae 0x18013696a
mov eax, dword [rsp + 0x38]
imul rax, rax, 0x18
mov rcx, qword [0x1808e8a18]
mov eax, dword [rcx + rax + 4]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
jmp 0x18013692f
mov eax, dword [0x1808e8a38]
mov ecx, dword [0x1808ed048]
sub ecx, eax
mov eax, ecx
mov dword [0x1808e8a3c], eax
mov eax, dword [0x1808ed048]
mov dword [0x1808e8a38], eax
mov eax, dword [0x1808e8a40]
mov ecx, dword [0x1808ecf08]
sub ecx, eax
mov eax, ecx
mov dword [0x1808e8a44], eax
mov eax, dword [0x1808ecf08]
mov dword [0x1808e8a40], eax
mov rax, qword [0x1808e8a48]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
mov qword [0x1808e8a50], rax
mov rax, qword [rsp + 0x30]
mov qword [0x1808e8a48], rax
mov eax, dword [0x1808e8a58]
mov ecx, dword [0x1808ed054]
sub ecx, eax
mov eax, ecx
mov dword [0x1808e8a5c], eax
mov eax, dword [0x1808ed054]
mov dword [0x1808e8a58], eax
mov eax, dword [0x1808e8a10]
imul rax, rax, 0x18
mov dword [rsp + 0x20], eax
mov r9, qword [0x1808e8a20]
xor r8d, r8d
xor edx, edx
mov ecx, 0xb
call qword [sym.imp.ntdll.dll_NtPowerInformation]
test eax, eax
jge 0x180136a39
mov eax, dword [0x1808e8a10]
imul rax, rax, 0x18
mov r8, rax
xor edx, edx
mov rcx, qword [0x1808e8a20]
call fcn.180013180
cmp qword [0x1808e8a30], 0
je 0x180136a4f
mov rcx, qword [0x1808e8a30]
call sym.ProcessMonitor.dll_PhFree
mov rax, qword [0x1808e8a28]
mov qword [0x1808e8a30], rax
mov qword [0x1808e8a28], 0
lea rcx, [0x1808e8a28]
call fcn.180009ff0
cmp dword [0x1808e8a08], 2
jae 0x180136a8b
mov eax, dword [0x1808e8a08]
inc eax
mov dword [0x1808e8a08], eax
call fcn.180014090
call fcn.180013960
add rsp, 0x40
pop rdi
ret
Function at 0x18000a970
Capabilities:
Get system information on windows

Disassembly:
jmp 0x1801a5c00
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x60
lea rdi, [rsp + 0x20]
mov ecx, 0x10
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x70]
mov dword [rsp + 0x44], 0
mov dword [rsp + 0x54], 0
mov eax, dword [0x1805a0204]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
mov ecx, eax
call sym.ProcessMonitor.dll_PhAllocate
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
mov ecx, 0x40
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xc0000004
jne 0x1801a5cc5
cmp dword [rsp + 0x54], 0xa
jae 0x1801a5cc5
mov rcx, qword [rsp + 0x28]
call sym.ProcessMonitor.dll_PhFree
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
mov ecx, eax
call sym.ProcessMonitor.dll_PhAllocate
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
mov ecx, 0x40
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x54]
inc eax
mov dword [rsp + 0x54], eax
jmp 0x1801a5c68
cmp dword [rsp + 0x20], 0
jge 0x1801a5d43
mov eax, dword [0x1805a0204]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
mov ecx, eax
call sym.ProcessMonitor.dll_PhAllocate
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov r8d, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
mov ecx, 0x40
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xc0000004
jne 0x1801a5d43
mov rcx, qword [rsp + 0x28]
call sym.ProcessMonitor.dll_PhFree
mov eax, dword [rsp + 0x30]
shl eax, 1
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0x10000000
jbe 0x1801a5d31
mov eax, 0xc000009a
jmp 0x1801a5d7f
mov eax, dword [rsp + 0x30]
mov ecx, eax
call sym.ProcessMonitor.dll_PhAllocate
mov qword [rsp + 0x28], rax
jmp 0x1801a5ce6
cmp dword [rsp + 0x20], 0
jge 0x1801a5d5a
mov rcx, qword [rsp + 0x28]
call sym.ProcessMonitor.dll_PhFree
mov eax, dword [rsp + 0x20]
jmp 0x1801a5d7f
cmp dword [rsp + 0x30], 0x200000
ja 0x1801a5d6e
mov eax, dword [rsp + 0x30]
mov dword [0x1805a0204], eax
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x28]
mov qword [rax], rcx
mov eax, dword [rsp + 0x20]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1804c0e70]
call fcn.180014e20
mov rax, rdi
add rsp, 0x60
pop rdi
ret
Function at 0x18000aa30
Capabilities:
Continue service

Disassembly:
jmp 0x1800303c0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xb0
lea rdi, [rsp + 0x30]
mov ecx, 0x20
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xc0]
mov rax, qword [0x1805a6200]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov byte [rsp + 0x38], 0
mov rax, qword [rsp + 0xc8]
mov rax, qword [rax + 0x10]
mov edx, 0x40
mov rcx, qword [rax + 8]
call sym.ProcessMonitor.dll_PhOpenService
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x180030452
lea r8, [rsp + 0x48]
mov edx, 3
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x180030447
mov byte [rsp + 0x38], 1
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
movzx eax, byte [rsp + 0x38]
test eax, eax
jne 0x18003053a
call fcn.180010890
mov dword [rsp + 0x74], eax
mov rax, qword [rsp + 0xc8]
mov rax, qword [rax + 0x10]
mov rdx, qword [rax + 8]
lea rcx, str.Unable_to_continue
call fcn.1800023e0
lea r9, [rsp + 0x84]
mov r8d, dword [rsp + 0x74]
mov rdx, qword [rax + 8]
mov rcx, qword [rsp + 0xc0]
call fcn.180004330
movzx eax, al
test eax, eax
je 0x180030511
movzx eax, byte [rsp + 0x84]
test eax, eax
je 0x18003050f
mov rax, qword [rsp + 0xc8]
mov rax, qword [rax + 0x10]
mov edx, 2
mov rcx, qword [rax + 8]
call fcn.180014350
mov dword [rsp + 0x74], eax
cmp dword [rsp + 0x74], 0
jl 0x1800304e1
mov byte [rsp + 0x38], 1
jmp 0x18003050a
mov dword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x74]
mov r8, qword [rsp + 0xc8]
lea rdx, [0x18039e1f8]
mov rcx, qword [rsp + 0xc0]
call fcn.180033d10
call sym.ProcessMonitor.dll_PhUiDisconnectFromPhSvc
jmp 0x18003053a
mov dword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x74]
mov r8, qword [rsp + 0xc8]
lea rdx, [0x18039e1f8]
mov rcx, qword [rsp + 0xc0]
call fcn.180033d10
movzx eax, byte [rsp + 0x38]
mov edi, eax
mov rcx, rsp
lea rdx, [0x18039ac10]
call fcn.180014e20
mov eax, edi
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.18000ce90
add rsp, 0xb0
pop rdi
ret
Function at 0x18000b050
Capabilities:
Check mutex on windows

Disassembly:
jmp 0x180067ea0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0
mov r9d, 0x10
mov r8, qword [rsp + 0x48]
mov edx, 1
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntdll.dll_NtQueryMutant]
add rsp, 0x30
pop rdi
ret
Function at 0x18000b070
Capabilities:
Create directory

Disassembly:
jmp 0x180177570
push rdi
sub rsp, 0xe0
lea rdi, [rsp + 0x20]
mov ecx, 0x30
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x1805a6200]
xor rax, rsp
mov qword [rsp + 0xd8], rax
lea rcx, [0x18059fdc0]
call fcn.180012d60
movzx eax, al
test eax, eax
je 0x1801777bb
lea rax, [rsp + 0x88]
mov qword [rsp + 0xa8], rax
mov r8b, 2
lea rdx, [0x18059fde0]
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.ntdll.dll_RtlInitializeSid]
xor edx, edx
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.ntdll.dll_RtlSubAuthoritySid]
mov dword [rax], 0x20
mov edx, 1
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.ntdll.dll_RtlSubAuthoritySid]
mov dword [rax], 0x220
lea rcx, [0x1805a0f28]
call qword [sym.imp.ntdll.dll_RtlLengthSid]
mov eax, eax
mov qword [rsp + 0xc0], rax
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.ntdll.dll_RtlLengthSid]
mov eax, eax
mov rcx, qword [rsp + 0xc0]
lea rax, [rcx + rax + 0x48]
mov qword [rsp + 0xc8], rax
lea rcx, [0x1805a0f88]
call qword [sym.imp.ntdll.dll_RtlLengthSid]
mov eax, eax
mov rcx, qword [rsp + 0xc8]
lea rax, [rcx + rax + 0xc]
mov dword [rsp + 0x70], eax
mov eax, dword [rsp + 0x70]
mov ecx, eax
call sym.ProcessMonitor.dll_PhAllocate
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
add rax, 0x28
mov qword [rsp + 0xb0], rax
mov edx, 1
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntdll.dll_RtlCreateSecurityDescriptor]
mov eax, dword [rsp + 0x70]
sub rax, 0x28
mov r8d, 2
mov edx, eax
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.ntdll.dll_RtlCreateAcl]
lea r9, [0x1805a0f28]
mov r8d, 0xf000f
mov edx, 2
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.ntdll.dll_RtlAddAccessAllowedAce]
mov r9, qword [rsp + 0xa8]
mov r8d, 0xf000f
mov edx, 2
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.ntdll.dll_RtlAddAccessAllowedAce]
lea r9, [0x1805a0f88]
mov r8d, 7
mov edx, 2
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.ntdll.dll_RtlAddAccessAllowedAce]
xor r9d, r9d
mov r8, qword [rsp + 0xb0]
mov dl, 1
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntdll.dll_RtlSetDaclSecurityDescriptor]
mov dword [rsp + 0x28], 0x30
mov qword [rsp + 0x30], 0
cmp dword [0x18059ff7c], 0x64
jae 0x180177755
mov dword [rsp + 0xd0], 0
jmp 0x180177760
mov dword [rsp + 0xd0], 0x1000
mov eax, dword [rsp + 0xd0]
bts eax, 7
mov dword [rsp + 0x40], eax
lea rax, [0x18059fdd0]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], 0
lea r8, [rsp + 0x28]
mov edx, 0x2000000
lea rcx, [0x1808e9058]
call qword [sym.imp.ntdll.dll_NtCreateDirectoryObject]
mov rcx, qword [rsp + 0x68]
call sym.ProcessMonitor.dll_PhFree
lea rcx, [0x18059fdc0]
call sym.ProcessMonitor.dll_PhfEndInitOnce
mov rax, qword [0x1808e9058]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1804b1a80]
call fcn.180014e20
mov rax, rdi
mov rcx, qword [rsp + 0xd8]
xor rcx, rsp
call fcn.18000ce90
add rsp, 0xe0
pop rdi
ret