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

Disassembly:
jmp 0x140082340
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
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 0x1400824bf
mov r8, rdx
add rcx, 8
mov edx, 0x104
call fcn.140004142
test eax, eax
jne 0x1400824bf
mov eax, dword [rsp + 0x80]
mov ecx, eax
mov qword [rsp + 0x50], rbp
mov dword [rbx + 0x240], r15d
mov ebp, eax
mov qword [rbx + 0x248], r15
mov dword [rbx + 0x210], edi
mov dword [rbx + 0x214], r14d
mov qword [rbx + 0x218], r15
mov dword [rbx + 0x220], eax
mov qword [rbx + 0x230], r15
mov qword [rbx + 0x238], r15
mov dword [rbx + 0x224], 0x40008
mov dword [rbx + 0x228], 0x40008
call fcn.1400037c9
mov rdi, rax
test rax, rax
je 0x1400823f5
mov r8d, ebp
xor edx, edx
mov rcx, rax
call fcn.1400033e1
mov rbp, qword [rsp + 0x50]
mov qword [rbx + 0x218], rdi
test rdi, rdi
je 0x1400824bf
mov ecx, 0x298
call fcn.1400037c9
mov rdi, rax
test rax, rax
je 0x14008242c
xor edx, edx
mov r8d, 0x298
mov rcx, rax
call fcn.1400033e1
mov qword [rbx], rdi
test rdi, rdi
je 0x1400824bf
lea rdx, [rbx + 8]
mov dword [rsp + 0x20], r14d
mov r9d, 1
mov rcx, rdi
cmp dword [rbx + 0x210], r15d
jne 0x140082458
xor r8d, r8d
jmp 0x14008245b
mov r8d, r9d
call fcn.140001244
test eax, eax
je 0x1400824bf
cmp qword [rbx + 0x218], r15
je 0x1400824bf
mov rax, qword [rsp + 0x70]
mov qword [rbx + 0x230], rax
mov rax, qword [rsp + 0x78]
mov qword [rbx + 0x238], rax
cmp qword [rbx], r15
je 0x1400824af
mov qword [rsp + 0x28], r15
lea r8, [0x1400826f0]
mov r9, rbx
mov dword [rsp + 0x20], r15d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x248], rax
cmp qword [rbx + 0x248], r15
je 0x1400824bf
mov eax, 1
jmp 0x1400824ca
mov rcx, rbx
call fcn.140002996
mov eax, r15d
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x1400828c0
Capabilities:
Write file on windows

Disassembly:
jmp 0x140083470
jmp 0x1400828c0
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 0x140082915
mov rcx, qword [rcx]
test rcx, rcx
je 0x140082915
call fcn.14000363e
test eax, eax
je 0x140082915
cmp qword [rbx + 0x248], 0
je 0x140082915
mov rcx, qword [rbx]
mov r8d, edi
mov rdx, rsi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x1400038be
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 0x14008349d
lea ecx, [rdi + 0x15]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
test rdx, rdx
jne 0x1400834b8
lea ecx, [rdx + 0x57]
call qword [sym.imp.KERNEL32.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 0x1400834e2
mov rcx, qword [rcx + 0x208]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.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.KERNEL32.dll_WriteFile]
mov edi, eax
test eax, eax
jne 0x140083548
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x140083546
mov rcx, qword [rbx + 0x208]
lea r9d, [rdi + 1]
lea r8, [rsp + 0x40]
mov rdx, rsi
call qword [sym.imp.KERNEL32.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 0x140082a00
Capabilities:
Connect pipe

Disassembly:
jmp 0x140082a00
push rdi
sub rsp, 0x20
mov rdi, rcx
xor eax, eax
mov rcx, qword [rcx + 0x208]
cmp rcx, 0xffffffffffffffff
je 0x140082a68
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rsi
cmp dword [rdi + 0x214], eax
jne 0x140082a4d
cmp dword [rdi + 0x218], eax
jne 0x140082a6e
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
mov ebx, eax
test eax, eax
jne 0x140082a4d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
jne 0x140082a5c
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.KERNEL32.dll_ConnectNamedPipe]
mov ebx, eax
test eax, eax
jne 0x140082a52
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x140082a46
mov rcx, qword [rdi + 0x208]
lea r9d, [rbx + 1]
lea r8, [rsp + 0x30]
lea rdx, [rdi + 0x278]
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov ebx, eax
test eax, eax
jne 0x140082a52
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140083330
Capabilities:
Read file on windows

Disassembly:
jmp 0x140083330
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
xor edi, edi
mov rbx, rcx
cmp dword [rcx + 0x210], edi
jne 0x14008335d
lea ecx, [rdi + 0x15]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
test rdx, rdx
jne 0x140083378
lea ecx, [rdx + 0x57]
call qword [sym.imp.KERNEL32.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 0x1400833a2
mov rcx, qword [rcx + 0x208]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.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.KERNEL32.dll_ReadFile]
mov edi, eax
test eax, eax
jne 0x140083408
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x140083406
mov rcx, qword [rbx + 0x208]
lea r9d, [rdi + 1]
lea r8, [rsp + 0x40]
mov rdx, rsi
call qword [sym.imp.KERNEL32.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 0x140083470
Capabilities:
Write file on windows

Disassembly:
jmp 0x140083470
jmp 0x1400828c0
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 0x140082915
mov rcx, qword [rcx]
test rcx, rcx
je 0x140082915
call fcn.14000363e
test eax, eax
je 0x140082915
cmp qword [rbx + 0x248], 0
je 0x140082915
mov rcx, qword [rbx]
mov r8d, edi
mov rdx, rsi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x1400038be
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 0x14008349d
lea ecx, [rdi + 0x15]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
test rdx, rdx
jne 0x1400834b8
lea ecx, [rdx + 0x57]
call qword [sym.imp.KERNEL32.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 0x1400834e2
mov rcx, qword [rcx + 0x208]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.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.KERNEL32.dll_WriteFile]
mov edi, eax
test eax, eax
jne 0x140083548
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x140083546
mov rcx, qword [rbx + 0x208]
lea r9d, [rdi + 1]
lea r8, [rsp + 0x40]
mov rdx, rsi
call qword [sym.imp.KERNEL32.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 0x140083660
Capabilities:
Terminate process

Disassembly:
jmp 0x140083660
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 0x140083693
nop word [rax + rax]
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
lock cmpxchg dword [rbx], edi
jne 0x140083680
dec dword [rbx + 4]
xor edi, edi
mov eax, dword [rbx + 4]
test eax, eax
cmovs eax, edi
mov dword [rbx + 4], eax
test eax, eax
jne 0x14008373b
mov rcx, qword [rbx + 0x68]
test rcx, rcx
je 0x1400836ea
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [rbx + 0x60]
test rcx, rcx
je 0x1400836dc
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x60], rdi
mov rcx, qword [rbx + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x68], rdi
mov rcx, qword [rbx + 0x48]
test rcx, rcx
je 0x140083723
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rbx + 0x48]
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x140083723
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbx + 8]
mov qword [rbx + 0x48], rdi
mov qword [rbx + 0x50], rdi
mov dword [rbx + 0x58], 0xffffffff
call fcn.140003ffd
xchg dword [rbx], edi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140083b70
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x120
xor ebx, ebx
mov rsi, rcx
xor edx, edx
mov dword [rax - 0x78], ebx
lea rcx, [rax - 0x70]
lea r8d, [rbx + 0x60]
call fcn.1400033e1
xor eax, eax
mov qword [rsp + 0x50], rbx
lea rdx, [rsi + 8]
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x98]
mov qword [rsp + 0x60], rax
xor edi, edi
call fcn.1400012da
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x80], xmm0
mov r8, qword [rsp + 0x84]
test r8, r8
je 0x140083cbe
lea rdx, str.__s_
mov qword [rsi + 0x48], rbx
lea rcx, [rsp + 0x98]
mov qword [rsi + 0x50], rbx
call fcn.1400018f7
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x68], xmm0
mov rdi, qword [rsp + 0x6c]
test rdi, rdi
je 0x140083ccb
lea rax, [rsp + 0x50]
mov dword [rsp + 0xb0], 0x68
mov qword [rsp + 0x48], rax
xor r9d, r9d
lea rax, [rsp + 0xb0]
xor r8d, r8d
mov qword [rsp + 0x40], rax
mov rdx, rdi
mov qword [rsp + 0x38], rbx
xor ecx, ecx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, eax
test eax, eax
jne 0x140083ca7
cmp dword [reloc.WSOCK32.dll_accept], 1
jl 0x140083cbe
test byte [0x14016ba1d], 1
je 0x140083cbe
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
mov edx, 1
lea r9, str..._rsrc_app.c
mov ecx, edx
lea rax, str.Unable_to_start_capture_program._Error___d
mov qword [rsp + 0x28], rax
lea r8, str.rsrc_app_start_app_in_current_session
mov dword [rsp + 0x20], 0x190
call fcn.140003693
jmp 0x140083cbe
mov rax, qword [rsp + 0x50]
mov ebx, 1
mov qword [rsi + 0x48], rax
mov rax, qword [rsp + 0x58]
mov qword [rsi + 0x50], rax
test rdi, rdi
je 0x140083ccb
mov rcx, rdi
call fcn.140002d65
lea r11, [rsp + 0x120]
mov eax, ebx
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140083d40
Capabilities:
Create thread

Disassembly:
jmp 0x140083d40
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rbx, rcx
mov edi, 1
xor eax, eax
lock cmpxchg dword [rcx], edi
je 0x140083d73
nop
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
lock cmpxchg dword [rbx], edi
jne 0x140083d60
xor esi, esi
cmp qword [rbx + 0x60], rsi
jne 0x140083e3f
xor r9d, r9d
xor r8d, r8d
mov edx, edi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x68], rax
test rax, rax
jne 0x140083dd1
cmp dword [reloc.WSOCK32.dll_accept], edi
jl 0x140083e3d
test byte [0x14016ba1d], dil
je 0x140083e3d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
lea rax, str.Unable_to_create_the_helper_app_stop_event._Error___d
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xd2
jmp 0x140083e26
mov qword [rsp + 0x28], rsi
lea r8, [0x140083f40]
mov r9, rbx
mov dword [rsp + 0x20], esi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x60], rax
test rax, rax
jne 0x140083e3f
cmp dword [reloc.WSOCK32.dll_accept], edi
jl 0x140083e3d
test byte [0x14016ba1d], dil
je 0x140083e3d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
lea rax, str.Unable_to_create_the_helper_app_maintenance_thread._Error___d
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xdd
lea r9, str..._rsrc_app.c
mov edx, edi
lea r8, str.rsrc_app_start_persistent_app
mov ecx, edi
call fcn.140003693
mov edi, esi
xchg dword [rbx], esi
mov rsi, qword [rsp + 0x58]
mov eax, edi
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x140084050
Capabilities:
Create directory

Disassembly:
push rbx
sub rsp, 0x70
mov dword [rcx], 9
xor eax, eax
mov qword [rcx + 4], rax
mov rbx, rcx
mov qword [rcx + 0xc], rax
lea rcx, [rsp + 0x58]
call fcn.1400049cb
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x40], xmm0
cmp qword [rsp + 0x44], 0
je 0x14008413c
mov r8, qword [rsp + 0x44]
lea r9, str.DPTF
lea rdx, str._s_s
lea rcx, [rsp + 0x58]
call fcn.1400018f7
movups xmm0, xmmword [rax]
movups xmmword [rbx], xmm0
mov eax, dword [rax + 0x10]
mov dword [rbx + 0x10], eax
mov rcx, qword [rbx + 4]
test rcx, rcx
je 0x140084132
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140084132
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140084132
cmp dword [reloc.WSOCK32.dll_accept], 1
jl 0x14008411c
test byte [0x14016ba1d], 1
je 0x14008411c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
mov edx, 1
lea r9, str..._rsrc_file.c
mov ecx, edx
lea rax, str.Unable_to_create_temporary_directory._Error___d
mov qword [rsp + 0x28], rax
lea r8, str.rsc_dll_create_esif_temp_directory
mov dword [rsp + 0x20], 0x11a
call fcn.140003693
mov rcx, qword [rbx + 4]
test rcx, rcx
je 0x14008412a
call fcn.140002d65
mov qword [rbx + 4], 0
mov rcx, qword [rsp + 0x44]
call fcn.140002d65
mov rax, rbx
add rsp, 0x70
pop rbx
ret
Function at 0x140084190
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
push rsi
sub rsp, 0x70
mov dword [rcx], 9
xor eax, eax
mov qword [rcx + 4], rax
mov rbx, rcx
mov qword [rcx + 0xc], rax
mov rsi, rdx
lea rcx, [rsp + 0x58]
call fcn.140084050
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x40], xmm0
cmp qword [rsp + 0x44], 0
je 0x140084280
mov r9, qword [rsi + 4]
lea rdx, [0x14013d8f0]
mov r8, qword [rsp + 0x44]
lea rcx, [rsp + 0x58]
call fcn.1400018f7
movups xmm0, xmmword [rax]
movups xmmword [rbx], xmm0
mov eax, dword [rax + 0x10]
mov dword [rbx + 0x10], eax
mov rcx, qword [rbx + 4]
test rcx, rcx
je 0x140084276
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140084276
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140084276
cmp dword [reloc.WSOCK32.dll_accept], 1
jl 0x140084260
test byte [0x14016ba1d], 1
je 0x140084260
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
mov edx, 1
lea r9, str..._rsrc_file.c
mov ecx, edx
lea rax, str.Unable_to_create_temporary_directory._Error___d
mov qword [rsp + 0x28], rax
lea r8, str.rsc_dll_create_esif_temp_sub_directory
mov dword [rsp + 0x20], 0xf2
call fcn.140003693
mov rcx, qword [rbx + 4]
test rcx, rcx
je 0x14008426e
call fcn.140002d65
mov qword [rbx + 4], 0
mov rcx, qword [rsp + 0x44]
call fcn.140002d65
mov rax, rbx
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rsi
ret

Function at 0x140084590
Capabilities:
Delete directory
Delete file

Disassembly:
jmp 0x140084590
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 4]
test rcx, rcx
je 0x1400845af
call fcn.140002d65
mov qword [rbx + 4], 0
mov rcx, qword [rbx + 0x2c]
test rcx, rcx
je 0x1400845d4
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [rbx + 0x2c]
test rcx, rcx
je 0x1400845cc
call fcn.140002d65
mov qword [rbx + 0x2c], 0
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400845f9
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400845f1
call fcn.140002d65
mov qword [rbx + 0x18], 0
add rsp, 0x20
pop rbx
ret
Function at 0x1400858a0
Capabilities:
Start service

Disassembly:
jmp 0x1400858a0
push rbx
sub rsp, 0x20
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
jne 0x1400858db
call qword [sym.imp.KERNEL32.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.1400049c1
mov r8d, 0xf01ff
mov qword [rsp + 0x30], rdi
lea rdx, str.esifsvc
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
jne 0x140085918
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.Error:_Unable_to_open_service_handle._Status___d_n
lea ecx, [rdi + 3]
call fcn.1400049c1
jmp 0x140085974
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x140085953
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
je 0x140085953
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Error:_Unable_to_start_the_service._Status___d_n
mov ecx, 3
mov r8d, eax
call fcn.1400049c1
jmp 0x14008596b
lea r8, str.Intel_R__Dynamic_Platform_and_Thermal_Framework_Service
mov ecx, 3
lea rdx, str._S_started._n
call fcn.1400049c1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]

Function at 0x1400859d0
Capabilities:
Stop service

Disassembly:
jmp 0x1400859d0
push rbx
sub rsp, 0x50
mov rax, qword [0x14016c4a0]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
jne 0x140085a28
call qword [sym.imp.KERNEL32.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.1400049c1
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140004ca5
add rsp, 0x50
pop rbx
ret
mov r8d, 0xf01ff
mov qword [rsp + 0x60], rdi
lea rdx, str.esifsvc
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
jne 0x140085a65
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.Error:_Unable_to_open_service_handle._Status___d_n
lea ecx, [rdi + 3]
call fcn.1400049c1
jmp 0x140085ac4
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x140085aa3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
je 0x140085aa3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Error:_Unable_to_stop_the_service._Status___d_n
mov ecx, 3
mov r8d, eax
call fcn.1400049c1
lea r8, str.Intel_R__Dynamic_Platform_and_Thermal_Framework_Service
mov ecx, 3
lea rdx, str._S_stopped_n
call fcn.1400049c1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140004ca5
add rsp, 0x50
pop rbx
ret
Function at 0x140085f90
Capabilities:
Access the windows event log

Disassembly:
jmp 0x140085f90
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x98
movzx esi, dx
movzx ebp, cx
xorps xmm0, xmm0
lea rdx, str.DPTF
xor ecx, ecx
xor ebx, ebx
movdqu xmmword [rsp + 0x50], xmm0
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rdi, rax
test rax, rax
je 0x140086051
mov rdx, qword [rsp + 0xd0]
lea rax, [0x14013e3a8]
lea r8, [rsp + 0xd8]
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x78]
call fcn.140004b29
mov ecx, 2
mov r9d, 0x100
movzx r8d, bp
movups xmm0, xmmword [rax]
lea rax, str.Error_in_formatting_event_message
movups xmmword [rsp + 0x60], xmm0
mov rbx, qword [rsp + 0x64]
test rbx, rbx
cmovne rax, rbx
xor edx, edx
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], edx
mov word [rsp + 0x28], cx
mov rcx, rdi
mov qword [rsp + 0x20], rdx
movzx edx, si
call qword [sym.imp.ADVAPI32.dll_ReportEventA]
test rbx, rbx
je 0x14008605e
mov rcx, rbx
call fcn.140002d65
test rdi, rdi
je 0x14008606c
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
add rsp, 0x98
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x14008e390
Capabilities:
Create thread

Disassembly:
jmp 0x14008e390
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
xor edi, edi
call fcn.140001d5c
xor r9d, r9d
lea edx, [rdi + 1]
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x18], rax
test rax, rax
jne 0x14008e41b
cmp dword [reloc.WSOCK32.dll_accept], 1
jl 0x14008e4bd
test byte [0x14016ba1d], 1
je 0x14008e4bd
lea rax, str.Unable_to_create_windows_thread_start_event.
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x5e
mov edx, 1
lea r9, str...win_msg.c
mov ecx, edx
lea r8, str.win_msg_ctor
call fcn.140003693
jmp 0x14008e4bd
mov qword [rsp + 0x28], rdi
lea r8, [0x14008e6a0]
mov r9, rbx
mov dword [rsp + 0x20], edi
xor edx, edx
mov qword [rbx + 0x10], rbp
xor ecx, ecx
mov qword [rbx + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx], rax
test rax, rax
jne 0x14008e470
cmp dword [reloc.WSOCK32.dll_accept], 1
jl 0x14008e4bd
test byte [0x14016ba1d], 1
je 0x14008e4bd
lea rax, str.Unable_to_create_windows_message_thread.
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], WSAStartup
jmp 0x14008e3fc
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [rbx + 0x18]
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14008e4b8
cmp dword [reloc.WSOCK32.dll_accept], 1
jl 0x14008e4bd
test byte [0x14016ba1d], 1
je 0x14008e4bd
lea rax, str.Windows_message_thread_did_not_start_as_expected.
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x7b
jmp 0x14008e3fc
mov edi, 1
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret