joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14006e920
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
cmp dword [0x1401b83f0], 4
mov rdi, rcx
jl 0x14006e973
test dword [0x1401b846c], 0x40000
je 0x14006e973
lea rax, str.Starting_thread__n
mov edx, 4
mov qword [rsp + 0x28], rax
lea r9, str...cem_cstatechangedetection.cpp
lea r8, str.CStateChangeDetection::StartThread
mov dword [rsp + 0x20], 0x5e
mov ecx, 0x40000
call fcn.140067120
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [0x1400f6818]
mov rcx, rdi
call rbx
xor r9d, r9d
mov dword [rdi + 0x14], 0
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
mov qword [rdi + 0x18], rax
test rax, rax
jne 0x14006e9b8
mov eax, 0x80004005
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov qword [rsp + 0x28], 0
lea r8, [0x14006eba0]
mov r9, rdi
mov dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
mov qword [rdi + 8], rax
test rax, rax
je 0x14006e9a8
cmp dword [0x1401b83f0], 4
jl 0x14006ea39
test dword [0x1401b846c], 0x40000
je 0x14006ea39
mov rcx, rax
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetThreadId]
mov dword [rsp + 0x30], eax
lea r10, str.Thread_ID___d_n
mov qword [rsp + 0x28], r10
mov edx, 4
lea r9, str...cem_cstatechangedetection.cpp
mov dword [rsp + 0x20], 0x75
lea r8, str.CStateChangeDetection::StartThread
mov ecx, 0x40000
call fcn.140067120
xor eax, eax
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x140073e40
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbp, rcx
xor esi, esi
add rcx, 8
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_AcquireSRWLockExclusive]
movzx ebx, byte [rbp + 0x28]
lea rcx, [rbp + 8]
mov byte [rbp + 0x28], 1
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSRWLockExclusive]
test bl, bl
jne 0x140073ed9
lea ecx, [rsi + 0x10]
call fcn.140096ad4
mov rbx, rax
test rax, rax
je 0x140073ed0
lea rax, [0x140073ad0]
mov qword [rsp + 0x28], rsi
mov r9, rbx
mov qword [rbx], rax
lea r8, [0x140074c70]
mov qword [rbx + 8], rbp
xor edx, edx
mov dword [rsp + 0x20], esi
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
mov qword [rbp + 0x58], rax
test rax, rax
jne 0x140073eca
mov rcx, rbx
call fcn.140096ac0
mov esi, 0x3eb
test esi, esi
jne 0x140073ed5
jmp 0x140073ed9
mov esi, 0x708
mov byte [rbp + 0x28], 0
mov eax, esi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1400781f0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x20], rbx
push r14
sub rsp, 0x240
mov rax, qword [0x1401b89e8]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.14008b040
xor eax, eax
mov dword [rbx], 9
mov qword [rbx + 4], rax
lea rcx, [rsp + 0x20]
mov edx, 0x104
mov qword [rbx + 0xc], rax
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemDirectoryW]
mov r14d, eax
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x1400782f9
lea ecx, [rax + 1]
mov qword [rsp + 0x250], rsi
lea rsi, [rcx + rcx]
mov qword [rsp + 0x258], rdi
mov qword [rsp + 0x260], r15
mov r15d, ecx
mov rcx, rsi
call fcn.140096ad4
mov rdi, rax
test rax, rax
je 0x140078296
mov r8, rsi
xor edx, edx
mov rcx, rax
call fcn.14008b040
mov rsi, qword [rsp + 0x250]
mov qword [rbx + 4], rdi
test rdi, rdi
je 0x1400782c4
lea r8, [rsp + 0x20]
mov rdx, r15
mov rcx, rdi
call fcn.1400ce0a8
lea ecx, [r14 + r14]
lea eax, [rcx + 2]
mov dword [rbx + 0x10], ecx
mov dword [rbx + 0xc], eax
mov rdi, qword [rsp + 0x258]
mov rax, rbx
mov r15, qword [rsp + 0x260]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1400897c0
mov rbx, qword [rsp + 0x268]
add rsp, 0x240
pop r14
ret
mov rax, rbx
jmp 0x1400782d7
Function at 0x14007ae80
Capabilities:
Manipulate console buffer

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1401b89e8]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor eax, eax
mov ebx, 1
mov qword [rsp + 0x2c], rax
mov ecx, 0xfffffff6
mov qword [rsp + 0x34], rax
mov dword [rsp + 0x2c], ebx
mov byte [rsp + 0x36], 0xd
mov word [rsp + 0x28], bx
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetStdHandle]
lea r9, [rsp + 0x20]
mov r8d, ebx
mov rcx, rax
lea rdx, [rsp + 0x28]
call qword [sym.imp.api_ms_win_core_console_l2_1_0.dll_WriteConsoleInputW]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400897c0
add rsp, 0x50
pop rbx
ret
Function at 0x14007af50
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r14
sub rsp, 0xc0
xor ebx, ebx
lea rcx, [rsp + 0x58]
mov r12, r8
mov dword [rsp + 0x50], ebx
mov rdi, rdx
xor edx, edx
lea r8d, [rbx + 0x60]
call fcn.14008b040
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetCommandLineW]
mov rcx, qword [rdi]
mov rsi, rax
test rcx, rcx
jne 0x14007af97
mov ecx, ebx
jmp 0x14007afa4
mov edx, 0x1fff
call fcn.1400b04b0
mov rcx, rax
cmp word [rsi], 0x22
lea rax, [rcx + 2]
mov rdx, qword [rdi + 8]
cmovne rax, rcx
lea rcx, [rsi + rax*2]
call fcn.14008c3cc
mov r14, rax
test rax, rax
jne 0x14007afde
lea rdx, str.Unable_to_parse_command_line._n
lea ecx, [rax + 3]
call fcn.140010a00
mov eax, 0x708
jmp 0x14007b195
mov rcx, qword [rdi + 8]
mov qword [rsp + 0xe0], rbp
mov qword [rsp + 0xe8], r15
test rcx, rcx
jne 0x14007affc
mov rax, rbx
jmp 0x14007b006
mov edx, 0x1fff
call fcn.1400b04b0
mov edx, 0x1fff
lea r15, [r14 + rax*2]
mov rcx, rsi
call fcn.1400b04b0
mov rcx, qword [rdi + 8]
lea rsi, [rax + 1]
test rcx, rcx
jne 0x14007b029
mov rax, rbx
jmp 0x14007b033
mov edx, 0x1fff
call fcn.1400b04b0
mov edx, 0x1fff
lea rcx, str.server__i
sub rsi, rax
call fcn.1400b04b0
lea r14, [rax + 2]
add r14, rsi
lea rbp, [r14 + r14]
mov rcx, rbp
call fcn.140096ad4
mov rsi, rax
test rax, rax
je 0x14007b16f
mov r8, rbp
xor edx, edx
mov rcx, rax
call fcn.14008b040
mov r8, rbp
xor edx, edx
mov rcx, rsi
call fcn.14008b040
mov eax, 0x22
mov rdx, r14
mov word [rsi], ax
mov rcx, rsi
mov r8, qword [rdi]
call fcn.1400ce264
lea r8, [0x140189a4c]
mov rdx, r14
mov rcx, rsi
call fcn.1400ce264
lea r8, [0x140189a50]
mov rdx, r14
mov rcx, rsi
call fcn.1400ce264
mov r8, r15
mov rdx, r14
mov rcx, rsi
call fcn.1400ce264
mov qword [rsp + 0x48], r12
lea rax, [0x14018808c]
mov qword [rsp + 0x60], rax
xorps xmm0, xmm0
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], 0x68
mov qword [rsp + 0x40], rax
xor r9d, r9d
mov qword [rsp + 0x38], rbx
xor r8d, r8d
mov qword [rsp + 0x30], rbx
mov rdx, rsi
mov dword [rsp + 0x28], 0x8000000
xor ecx, ecx
mov dword [rsp + 0x20], 1
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x80], rbx
mov dword [rsp + 0x88], ebx
mov qword [rsp + 0x8c], 1
mov qword [rsp + 0x58], rbx
movdqa xmmword [rsp + 0xa0], xmm0
mov qword [rsp + 0xb0], rbx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateProcessW]
test eax, eax
mov ecx, 0x3eb
cmove ebx, ecx
mov rcx, rsi
call fcn.140096ac0
mov eax, ebx
jmp 0x14007b185
lea rdx, str.Unable_to_allocate_memory._n
mov ecx, 3
call fcn.140010a00
mov eax, 0x708
mov rbp, qword [rsp + 0xe0]
mov r15, qword [rsp + 0xe8]
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r12
pop rdi
ret
Function at 0x14007b8e0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
push r14
push r15
sub rsp, 0x30
xor r15d, r15d
mov r14d, r9d
mov edi, r8d
mov rbx, rcx
test rcx, rcx
je 0x14007ba70
mov r8, rdx
add rcx, 0x30
mov edx, 0x104
call fcn.1400ce0a8
test eax, eax
jne 0x14007ba70
mov eax, dword [rsp + 0x80]
mov dword [rbx + 0x248], eax
mov dword [rbx + 0x268], r15d
mov qword [rbx + 0x270], r15
mov dword [rbx + 0x238], edi
mov dword [rbx + 0x23c], r14d
mov qword [rbx + 0x240], r15
mov qword [rbx + 0x258], r15
mov qword [rbx + 0x260], r15
mov dword [rbx + 0x24c], 0x40030
mov dword [rbx + 0x250], 0x40030
call fcn.1400020e0
mov qword [rbx + 0x18], rax
test rax, rax
je 0x14007ba70
mov rcx, rbx
mov qword [rsp + 0x50], rsi
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_InitializeSRWLock]
mov qword [rbx + 8], r15
mov dword [rbx + 0x10], r15d
mov esi, dword [rbx + 0x248]
mov ecx, esi
call fcn.140096ad4
mov rdi, rax
test rax, rax
je 0x14007b9bc
mov r8d, esi
xor edx, edx
mov rcx, rax
call fcn.14008b040
mov rsi, qword [rsp + 0x50]
mov qword [rbx + 0x240], rdi
test rdi, rdi
je 0x14007ba70
mov ecx, 0x298
call fcn.14007b630
mov qword [rbx + 0x28], rax
test rax, rax
je 0x14007ba70
lea rdx, [rbx + 0x30]
mov dword [rsp + 0x20], r14d
mov r9d, 1
mov rcx, rax
cmp dword [rbx + 0x238], r15d
jne 0x14007ba08
xor r8d, r8d
jmp 0x14007ba0b
mov r8d, r9d
call fcn.14007c7a0
test eax, eax
je 0x14007ba70
cmp qword [rbx + 0x240], r15
je 0x14007ba70
mov rax, qword [rsp + 0x70]
mov qword [rbx + 0x258], rax
mov rax, qword [rsp + 0x78]
mov qword [rbx + 0x260], rax
cmp qword [rbx + 0x28], r15
je 0x14007ba60
mov qword [rsp + 0x28], r15
lea r8, [0x14007bd90]
mov r9, rbx
mov dword [rsp + 0x20], r15d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
mov qword [rbx + 0x270], rax
cmp qword [rbx + 0x270], r15
je 0x14007ba70
mov eax, 1
jmp 0x14007ba7b
mov rcx, rbx
call fcn.14007ba90
mov eax, r15d
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x14007bfc0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbx, rcx
test rcx, rcx
je 0x14007c017
mov rcx, qword [rcx + 0x28]
test rcx, rcx
je 0x14007c017
call fcn.14007ca10
test eax, eax
je 0x14007c017
cmp qword [rbx + 0x270], 0
je 0x14007c017
mov rcx, qword [rbx + 0x28]
mov r8d, edi
mov rdx, rsi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x14007cb20
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
xor edi, edi
mov rbx, rcx
cmp dword [rcx + 0x210], edi
jne 0x14007cb4d
lea ecx, [rdi + 0x15]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov eax, edi
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
test rdx, rdx
jne 0x14007cb68
lea ecx, [rdx + 0x57]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov eax, edi
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
lea r9, [rsp + 0x40]
cmp dword [rcx + 0x218], edi
jne 0x14007cb92
mov rcx, qword [rcx + 0x208]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov qword [rcx + 0x258], rdi
mov qword [rsp + 0x48], rsi
lea rsi, [rcx + 0x250]
mov rcx, qword [rcx + 0x208]
mov qword [rsi], rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
mov edi, eax
test eax, eax
jne 0x14007cbf8
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x3e5
jne 0x14007cbf6
mov rcx, qword [rbx + 0x208]
lea r9d, [rdi + 1]
lea r8, [rsp + 0x40]
mov rdx, rsi
call qword [sym.imp.api_ms_win_core_io_l1_1_0.dll_GetOverlappedResult]
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov eax, edi
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14007c2d0
Capabilities:
Connect pipe

Disassembly:
push rdi
sub rsp, 0x20
mov rdi, rcx
xor eax, eax
mov rcx, qword [rcx + 0x208]
cmp rcx, 0xffffffffffffffff
je 0x14007c338
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rsi
cmp dword [rdi + 0x214], eax
jne 0x14007c31d
cmp dword [rdi + 0x218], eax
jne 0x14007c33e
xor edx, edx
call qword [sym.imp.api_ms_win_core_namedpipe_l1_1_0.dll_ConnectNamedPipe]
mov ebx, eax
test eax, eax
jne 0x14007c31d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x217
jne 0x14007c32c
mov ebx, 1
mov dword [rdi + 0x210], 1
mov rsi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
lea rdx, [rdi + 0x278]
mov qword [rdi + 0x278], rax
mov qword [rdi + 0x280], rax
call qword [sym.imp.api_ms_win_core_namedpipe_l1_1_0.dll_ConnectNamedPipe]
mov ebx, eax
test eax, eax
jne 0x14007c322
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x3e5
jne 0x14007c316
mov rcx, qword [rdi + 0x208]
lea r9d, [rbx + 1]
lea r8, [rsp + 0x30]
lea rdx, [rdi + 0x278]
call qword [sym.imp.api_ms_win_core_io_l1_1_0.dll_GetOverlappedResult]
mov ebx, eax
test eax, eax
jne 0x14007c322
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14007ca20
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
xor edi, edi
mov rbx, rcx
cmp dword [rcx + 0x210], edi
jne 0x14007ca4d
lea ecx, [rdi + 0x15]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov eax, edi
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
test rdx, rdx
jne 0x14007ca68
lea ecx, [rdx + 0x57]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov eax, edi
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
lea r9, [rsp + 0x40]
cmp dword [rcx + 0x218], edi
jne 0x14007ca92
mov rcx, qword [rcx + 0x208]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov qword [rcx + 0x230], rdi
mov qword [rsp + 0x48], rsi
lea rsi, [rcx + 0x228]
mov rcx, qword [rcx + 0x208]
mov qword [rsi], rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
mov edi, eax
test eax, eax
jne 0x14007caf8
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x3e5
jne 0x14007caf6
mov rcx, qword [rbx + 0x208]
lea r9d, [rdi + 1]
lea r8, [rsp + 0x40]
mov rdx, rsi
call qword [sym.imp.api_ms_win_core_io_l1_1_0.dll_GetOverlappedResult]
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov eax, edi
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14007cb20
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbx, rcx
test rcx, rcx
je 0x14007c017
mov rcx, qword [rcx + 0x28]
test rcx, rcx
je 0x14007c017
call fcn.14007ca10
test eax, eax
je 0x14007c017
cmp qword [rbx + 0x270], 0
je 0x14007c017
mov rcx, qword [rbx + 0x28]
mov r8d, edi
mov rdx, rsi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x14007cb20
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
xor edi, edi
mov rbx, rcx
cmp dword [rcx + 0x210], edi
jne 0x14007cb4d
lea ecx, [rdi + 0x15]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov eax, edi
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
test rdx, rdx
jne 0x14007cb68
lea ecx, [rdx + 0x57]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov eax, edi
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
lea r9, [rsp + 0x40]
cmp dword [rcx + 0x218], edi
jne 0x14007cb92
mov rcx, qword [rcx + 0x208]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov qword [rcx + 0x258], rdi
mov qword [rsp + 0x48], rsi
lea rsi, [rcx + 0x250]
mov rcx, qword [rcx + 0x208]
mov qword [rsi], rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
mov edi, eax
test eax, eax
jne 0x14007cbf8
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x3e5
jne 0x14007cbf6
mov rcx, qword [rbx + 0x208]
lea r9d, [rdi + 1]
lea r8, [rsp + 0x40]
mov rdx, rsi
call qword [sym.imp.api_ms_win_core_io_l1_1_0.dll_GetOverlappedResult]
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov eax, edi
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14007dbc0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov edi, 1
xor eax, eax
lock cmpxchg dword [rcx], edi
je 0x14007dbf3
nop word [rax + rax]
mov ecx, 0x64
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
xor eax, eax
lock cmpxchg dword [rbx], edi
jne 0x14007dbe0
add dword [rbx + 4], 0xffffffff
mov edi, 0
mov eax, dword [rbx + 4]
cmovs eax, edi
mov dword [rbx + 4], eax
test eax, eax
jne 0x14007dca6
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14007dc4c
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x14007dc3e
mov edx, 0x1388
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov qword [rbx + 0x28], rdi
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov qword [rbx + 0x30], rdi
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14007dc85
xor edx, edx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
mov rcx, qword [rbx + 0x10]
mov edx, 0x1388
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14007dc85
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rcx, qword [rbx + 8]
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], rdi
mov dword [rbx + 0x20], 0xffffffff
test rcx, rcx
je 0x14007dca6
call fcn.140096ac0
mov qword [rbx + 8], rdi
xchg dword [rbx], edi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14007e0b0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x230
mov rax, qword [0x1401b89e8]
xor rax, rsp
mov qword [rsp + 0x220], rax
xor edi, edi
mov rbx, rcx
xor edx, edx
mov dword [rsp + 0xa0], edi
lea rcx, [rsp + 0xa8]
lea r8d, [rdi + 0x60]
call fcn.14008b040
xor eax, eax
lea rcx, [rsp + 0x110]
xor edx, edx
mov qword [rsp + 0x68], rax
mov r8d, 0x104
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
call fcn.14008b040
xor r9d, r9d
mov qword [rsp + 0x20], rdi
mov edx, 0x104
lea r8d, [rdi + 6]
lea rcx, [rsp + 0x110]
call fcn.140011e00
mov r9, qword [rbx + 8]
lea r8, [rsp + 0x110]
lea rdx, str.__S_s_
lea rcx, [rsp + 0x80]
call fcn.140077f40
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x50], xmm0
cmp qword [rsp + 0x54], rdi
je 0x14007e22f
mov rdx, qword [rsp + 0x54]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x48], rax
xor r9d, r9d
lea rax, [rsp + 0xa0]
mov qword [rbx + 0x10], rdi
mov qword [rsp + 0x40], rax
xor r8d, r8d
mov qword [rsp + 0x38], rdi
xor ecx, ecx
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], edi
mov qword [rbx + 0x18], rdi
mov dword [rsp + 0xa0], 0x68
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateProcessW]
mov edi, eax
test eax, eax
jne 0x14007e20e
cmp dword [0x1401b83f0], 1
jl 0x14007e225
test dword [0x1401b8424], 0x10000
je 0x14007e225
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [rsp + 0x30], eax
lea r9, str..._rsrc_app.c
lea rax, str.Unable_to_start_capture_program._Error___d
mov ecx, 0x10000
mov qword [rsp + 0x28], rax
lea r8, str.rsrc_app_start_app_in_current_session
lea edx, [rdi + 1]
mov dword [rsp + 0x20], 0x1bd
call fcn.140067120
jmp 0x14007e225
mov rax, qword [rsp + 0x68]
mov edi, 1
mov qword [rbx + 0x10], rax
mov rax, qword [rsp + 0x70]
mov qword [rbx + 0x18], rax
mov rcx, qword [rsp + 0x54]
call fcn.140096ac0
mov eax, edi
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.1400897c0
mov rbx, qword [rsp + 0x248]
add rsp, 0x230
pop rdi
ret
Function at 0x14007f340
Capabilities:
Start service

Disassembly:
push rbx
sub rsp, 0x20
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
jne 0x14007f37b
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov r8d, eax
lea rdx, str.Error:_Unable_to_get_handle_to_the_SCM._Status___d_n
lea ecx, [rbx + 3]
add rsp, 0x20
pop rbx
jmp fcn.140010a00
mov r8d, 0xf01ff
mov qword [rsp + 0x30], rdi
lea rdx, str.esifsvc
mov rcx, rbx
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenServiceW]
mov rdi, rax
test rax, rax
jne 0x14007f3b8
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov r8d, eax
lea rdx, str.Error:_Unable_to_open_service_handle._Status___d_n
lea ecx, [rdi + 3]
call fcn.140010a00
jmp 0x14007f414
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_StartServiceW]
test eax, eax
jne 0x14007f3f3
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x420
je 0x14007f3f3
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
lea rdx, str.Error:_Unable_to_start_the_service._Status___d_n
mov ecx, 3
mov r8d, eax
call fcn.140010a00
jmp 0x14007f40b
lea r8, str.Intel_R__Dynamic_Platform_and_Thermal_Framework_Service
mov ecx, 3
lea rdx, str._S_started._n
call fcn.140010a00
mov rcx, rdi
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
mov rcx, rbx
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
Function at 0x14007f430
Capabilities:
Stop service

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1401b89e8]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
jne 0x14007f488
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov r8d, eax
lea rdx, str.Error:_Unable_to_get_handle_to_the_SCM._Status___d_n
lea ecx, [rbx + 3]
call fcn.140010a00
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400897c0
add rsp, 0x50
pop rbx
ret
mov r8d, 0xf01ff
mov qword [rsp + 0x60], rdi
lea rdx, str.esifsvc
mov rcx, rbx
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenServiceW]
mov rdi, rax
test rax, rax
jne 0x14007f4c5
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov r8d, eax
lea rdx, str.Error:_Unable_to_open_service_handle._Status___d_n
lea ecx, [rdi + 3]
call fcn.140010a00
jmp 0x14007f524
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_service_winsvc_l1_1_0.dll_ControlService]
test eax, eax
jne 0x14007f503
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x426
je 0x14007f503
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
lea rdx, str.Error:_Unable_to_stop_the_service._Status___d_n
mov ecx, 3
mov r8d, eax
call fcn.140010a00
lea r8, str.Intel_R__Dynamic_Platform_and_Thermal_Framework_Service
mov ecx, 3
lea rdx, str._S_stopped_n
call fcn.140010a00
mov rcx, rdi
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400897c0
add rsp, 0x50
pop rbx
ret