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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x150
xor edi, edi
xor edx, edx
lea ecx, [rdi + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140001bb7
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x130
mov rcx, rax
call sub.KERNEL32.dll_Process32First
mov rcx, rbx
test eax, eax
je 0x140001bb1
lea rdx, [rsp + 0x20]
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x140001b2c
lea rdx, [rsp + 0x4c]
lea rcx, str.explorer.exe
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x140001b28
lea rdx, [rsp + 0x20]
mov rcx, rbx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x140001ad4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.enter_to_exit_search_for_process_function:
call fcn.140001be0
call fcn.140005b58
xor eax, eax
mov rbx, qword [rsp + 0x160]
add rsp, 0x150
pop rdi
ret
mov edi, dword [rsp + 0x28]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.enter_to_exit_search_for_process_function:
call fcn.140001be0
call fcn.140005b58
test edi, edi
je 0x140001bb7
mov edx, edi
lea rcx, str.explorer.exe_PID___d_n
call fcn.140001be0
mov r8d, edi
xor edx, edx
mov ecx, 0x43a
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
jne 0x140001b98
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_to_open_process._Error_code:__lu_n
call fcn.140001be0
lea eax, [rbx + 1]
mov rbx, qword [rsp + 0x160]
add rsp, 0x150
pop rdi
ret
mov r8d, dword [0x14003ac60]
lea rdx, [0x140023060]
mov rcx, rbx
call fcn.140001260
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x160]
xor eax, eax
add rsp, 0x150
pop rdi
ret

Function at 0x14000236c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400023b6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400023b6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400023b6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400023b6
cmp dword [rcx + 0x84], 0xe
jbe 0x1400023b6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400023b8
xor al, al
add rsp, 0x28
ret

Function at 0x140008960
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000875c
Function at 0x14000de10
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14000de40
xor eax, eax
jmp 0x14000df03
mov rbp, rbx
cmp word [rax], si
je 0x14000de65
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000de4c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000de48
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14000dd30
movsxd r14, eax
test eax, eax
jne 0x14000dea3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000de39
mov rcx, r14
call fcn.14000a5ec
mov rdi, rax
test rax, rax
jne 0x14000debc
xor ecx, ecx
call fcn.1400097e4
jmp 0x14000de98
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14000dd30
test eax, eax
jne 0x14000deed
mov rcx, rdi
call fcn.1400097e4
jmp 0x14000def7
xor ecx, ecx
call fcn.1400097e4
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x1400104f4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x14003bef0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14001054b
cmp word [rdx], r13w
jne 0x14001054b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140010550
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140010675
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140010696
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140010589
mov rdx, r9
mov word [rbx], cx
jmp 0x1400105b0
cmp r9, r8
jae 0x1400105c0
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14001056a
jmp 0x140010675
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001066a
cmp dword [rsp + 0x80], esi
je 0x14001066a
lea r8, [0x14003bef0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140010642
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140010612
mov word [rbx], r13w
jmp 0x140010672
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14001061f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140010672
cmp word [rsp + 0x70], r13w
jne 0x14001064f
cmp rbx, r14
je 0x14001060c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140014474
cmp word [rsp + 0x70], r13w
je 0x140010675
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x14003bef0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001066f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140010675
Function at 0x140012c8c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140012ca2
mov al, 1
jmp 0x140012d02
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140012cb3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140012d00
mov ecx, dword [rcx + 0x18]
nop
call fcn.14000e730
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140012d00
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140012d00
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140012d00
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140012d02
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140013d40
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14000ce00
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140013dca
cmp byte [rbp - 0x21], r15b
je 0x140013dc5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140013e00
call fcn.140009a34
test eax, eax
jne 0x140013dec
cmp byte [rbp - 0x21], r15b
je 0x140013de4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140013e00
cmp byte [rbp - 0x21], r15b
je 0x140013dfd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14000c3e0
test eax, eax
jne 0x140013ea0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000ce00
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140013e3f
cmp byte [rbp - 0x21], r15b
je 0x140013e74
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140013e74
call fcn.140009a34
test eax, eax
jne 0x140013e60
cmp byte [rbp - 0x21], r15b
je 0x140013e59
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140013e74
cmp byte [rbp - 0x21], r15b
je 0x140013e71
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14000c3e0
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140013ea0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140013ea3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140013eb1
mov rcx, rdi
call fcn.1400097e4
cmp byte [rbp + 0x3f], r15b
je 0x140013ec0
mov rcx, qword [rbp + 0x27]
call fcn.1400097e4
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x140016470
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140016498
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140016498
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400013a0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x240
mov rax, qword [0x140011430]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rdi, rcx
mov bl, 0x41
lea rcx, [rsp + 0x31]
xor edx, edx
mov r8d, 0x1ff
mov byte [rsp + 0x20], bl
mov byte [rsp + 0x21], 0x3a
mov byte [rsp + 0x22], 0
mov byte [rsp + 0x30], 0
call fcn.1400030b0
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x20]
mov r8d, 0x1ff
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
je 0x140001414
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400064f0
test eax, eax
je 0x14000143e
inc bl
cmp bl, 0x5a
jle 0x1400013c4
xor al, al
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140003780
mov rbx, qword [rsp + 0x258]
add rsp, 0x240
pop rdi
ret
mov al, bl
jmp 0x14000141d

Function at 0x1400018f0
Capabilities:
Acquire debug privileges
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
lea rcx, str.SeDebugPrivilege
mov dl, 1
call fcn.140001828
xor edx, edx
mov r8d, ebx
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x14000193d
cmp rax, 0xffffffffffffffff
je 0x14000193d
mov edx, 1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rbx
test eax, eax
jne 0x140001945
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
add rsp, 0x20
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x14000193f
Function at 0x1400019e0
Capabilities:
Read file via mapping

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x40
mov r12, r8
mov r13, rdx
test rcx, rcx
je 0x140001ac8
and qword [rax - 0x28], 0
xor r9d, r9d
mov dword [rax - 0x30], 0x80
lea r8d, [r9 + 1]
mov edx, 0x80000000
mov dword [rax - 0x38], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140001ac8
test rax, rax
je 0x140001ac8
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
xor r9d, r9d
lea r8d, [r9 + 2]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140001abf
test rax, rax
je 0x140001abf
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140001ab6
test rax, rax
je 0x140001ab6
movsxd rbp, dword [rax + 0x3c]
mov edx, 0x108
add rbp, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x140001ae3
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r13
pop r12
pop rdi
ret
movzx ecx, word [rbp + 4]
mov word [r13], cx
movzx ecx, word [rbp + 0x5c]
mov word [r12], cx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x140001aca
Function at 0x140001b14
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor ebx, ebx
call fcn.140001000
mov rdi, rax
cmp rax, rbx
jne 0x140001b34
xor al, al
jmp 0x140001c80
lea rdx, str.NtTerminateProcess
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtReadVirtualMemory
mov rcx, rdi
mov qword [0x1400148e8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtWriteVirtualMemory
mov rcx, rdi
mov qword [0x1400148c0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtGetContextThread
mov rcx, rdi
mov qword [0x1400148e0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtSetContextThread
mov rcx, rdi
mov qword [0x1400148b0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtUnmapViewOfSection
mov rcx, rdi
mov qword [0x1400148f0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtResumeThread
mov rcx, rdi
mov qword [0x1400148d8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtClose
mov rcx, rdi
mov qword [0x1400148f8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtWaitForSingleObject
mov rcx, rdi
mov qword [0x1400148c8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtFlushInstructionCache
mov rcx, rdi
mov qword [0x1400148d0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r11, rax
mov qword [0x1400148b8], rax
cmp qword [0x1400148e8], rbx
je 0x140001c7e
cmp qword [0x1400148c0], rbx
je 0x140001c7e
cmp qword [0x1400148e0], rbx
je 0x140001c7e
cmp qword [0x1400148b0], rbx
je 0x140001c7e
cmp qword [0x1400148f0], rbx
je 0x140001c7e
cmp qword [0x1400148d8], rbx
je 0x140001c7e
cmp qword [0x1400148f8], rbx
je 0x140001c7e
cmp qword [0x1400148d0], rbx
je 0x140001c7e
cmp qword [0x1400148c8], rbx
je 0x140001c7e
movzx eax, bl
cmp r11, rbx
mov ecx, 1
cmovne eax, ecx
mov bl, al
mov al, bl
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140001cb8
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
push rbx
mov eax, 0x1030
call fcn.14000c170
sub rsp, rax
mov rax, qword [0x140011430]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov rbx, rcx
lea rcx, [rsp + 0x21]
xor edx, edx
mov r8d, 0xfff
mov byte [rsp + 0x20], 0
call fcn.1400030b0
lea r9, [rsp + 0x1048]
lea rcx, [rsp + 0x20]
mov r8, rbx
mov edx, 0xfff
call fcn.140003ed0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.140003780
add rsp, 0x1030
pop rbx
ret
Function at 0x140001d44
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
test rcx, rcx
jne 0x140001d5f
xor eax, eax
jmp 0x140001e50
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
xor r9d, r9d
lea r8d, [r9 + 1]
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140001da3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Create_File_Failure.Error_Code___d_n
mov edx, eax
call fcn.140001cb8
jmp 0x140001d58
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rcx + 4]
mov edx, eax
mov esi, eax
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdi, rax
test rax, rax
jne 0x140001dee
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.VirtualAlloc_Failure.Error_Code___d_n
mov edx, eax
call fcn.140001cb8
mov rcx, rbx
call qword [0x1400148c8]
jmp 0x140001d58
and dword [rsp + 0x50], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
mov r8d, esi
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140001e44
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ReadFile_Failure.Error_Code___d_n
mov edx, eax
call fcn.140001cb8
mov rcx, rbx
call qword [0x1400148c8]
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x140001d58
mov rcx, rbx
call qword [0x1400148c8]
mov rax, rdi
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140002a0c
Capabilities:
Modify service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
xor edx, edx
mov r8d, 0xf003f
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
xor ebx, ebx
mov rdi, rax
cmp rax, rbx
jne 0x140002a3c
xor al, al
jmp 0x140002a8b
mov r8d, 2
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rsi, rax
cmp rax, rbx
je 0x140002a80
lea rax, str.Intel_R__Management_and_Security_Application_Local_Management_Service___Provides_OS_related_Intel_R__ME_functionality.
lea r8, [rsp + 0x38]
mov edx, 1
mov rcx, rsi
mov qword [rsp + 0x38], rax
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov bl, 1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, bl
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140002a9c
Capabilities:
Create service

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x190
mov rax, qword [0x140011430]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov rbx, rcx
mov esi, 2
xor edx, edx
mov r8d, esi
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rdi, rax
test rax, rax
je 0x140002b95
lea rdx, [rsp + 0x70]
mov r8d, 0x105
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x140002b84
and qword [rsp + 0x60], 0
and qword [rsp + 0x58], 0
and qword [rsp + 0x50], 0
and qword [rsp + 0x48], 0
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
and dword [rsp + 0x30], 0
lea r8, [0x1400110a1]
mov r9d, 0xf01ff
mov rdx, rbx
mov rcx, rdi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov edx, 0x22
mov r8, rbx
mov rsi, rax
mov r9d, edx
test rax, rax
je 0x140002b78
lea rcx, str.Install_Service__c_s_c_Successfully_n
call fcn.14000319c
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140002b84
lea rcx, str.Fail_To_Install_Service__c_s_c_n
call fcn.14000319c
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call fcn.140002a0c
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.140003780
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140002d70
Capabilities:
Stop service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rsi, rcx
xor edx, edx
mov r8d, 0xf003f
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rbx, rax
test rax, rax
jne 0x140002d9e
xor al, al
jmp 0x140002e10
mov r8d, 0x20
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rdi, rax
test rax, rax
jne 0x140002dc3
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140002d9a
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov rcx, rbx
test eax, eax
jne 0x140002de8
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
jmp 0x140002dbb
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, 0x22
lea rcx, str.Stop_Service__c_s_c_Successfully_n
mov r9d, edx
mov r8, rsi
call fcn.14000319c
mov al, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x140002e20
Capabilities:
Start service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, rcx
xor edx, edx
mov r8d, 0xf003f
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
xor edi, edi
mov rbx, rax
cmp rax, rdi
jne 0x140002e64
lea rcx, str.Fail_To_Open_SC_Manager_n
call fcn.14000319c
xor al, al
jmp 0x140002ee4
mov r8d, 0xf01ff
mov rdx, rbp
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rsi, rax
cmp rax, rdi
jne 0x140002e95
lea rcx, str.OpenService_Fail_n
call fcn.14000319c
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140002e5d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
mov edx, 0x22
mov r8, rbp
mov r9d, edx
cmp eax, edi
jne 0x140002ec0
lea rcx, str.Fail_To_Start_The_Service__c_s_c_n
call fcn.14000319c
jmp 0x140002ecf
lea rcx, str.The_Service__c_s_c_Is_Starting_n
call fcn.14000319c
mov dil, 1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, dil
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400065eb
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140011430]
jne 0x14000379a
rol rcx, 0x10
test cx, 0xffff
jne 0x140003796
repz ret
ror rcx, 0x10
jmp 0x140006544
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140014a70]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x140014b68]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1400065c9
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140014a70]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x1400065eb
mov rax, qword [rsp + 0x88]
mov qword [0x140014b68], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140014b08], rax
mov rax, qword [0x140014b68]
mov qword [0x1400149e0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140014af0], rax
mov dword [0x1400149d0], 0xc0000409
mov dword [0x1400149d4], 1
mov rax, qword [0x140011430]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140011438]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140014a68], eax
mov ecx, 1
call fcn.1400087e8
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14000de50]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140014a68], 0
jne 0x140006672
mov ecx, 1
call fcn.1400087e8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret