joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140005540
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140093008]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdi, rcx
cmp qword [rcx + 0x68], 0
je 0x140005709
cmp byte [rcx + 0x71], 0
je 0x140005709
mov rax, qword [rcx]
mov edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
jne 0x14000559c
xor al, al
jmp 0x14000570b
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x30], 0
xor r8d, r8d
lea edx, [r8 + 8]
lea rcx, [rbp - 0x30]
call fcn.140005200
nop
mov r9, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x30]
nop dword [rax]
lea rdx, [rbp - 0x30]
cmp r9, 0x10
cmovae rdx, rcx
lea r8, [rbp - 0x30]
cmovae r8, rcx
mov rcx, qword [rdi + 0x68]
mov r10, qword [rcx]
mov r9, qword [rbp - 0x20]
add r9, rdx
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
lea rdx, [rdi + 0x74]
call qword [r10 + 0x40]
test eax, eax
je 0x140005624
sub eax, 1
je 0x140005628
sub eax, 2
mov r9, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x30]
je 0x1400056d2
xor bl, bl
jmp 0x1400056d4
mov byte [rdi + 0x71], 0
lea rax, [rbp - 0x30]
mov rcx, qword [rbp - 0x30]
mov r9, qword [rbp - 0x18]
cmp r9, 0x10
cmovae rax, rcx
mov rbx, qword [rbp - 0x40]
sub rbx, rax
je 0x140005675
lea rax, [rbp - 0x30]
cmp r9, 0x10
cmovae rax, rcx
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, rax
call fcn.1400476dc
mov r9, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x30]
cmp rbx, rax
jne 0x14000561d
cmp byte [rdi + 0x71], 0
je 0x1400056d2
test rbx, rbx
jne 0x1400055d0
mov rdx, qword [rbp - 0x20]
mov rax, r9
sub rax, rdx
cmp rax, 8
jb 0x1400056b7
lea rax, [rdx + 8]
mov qword [rbp - 0x20], rax
lea rax, [rbp - 0x30]
cmp r9, 0x10
cmovae rax, rcx
xor ecx, ecx
mov qword [rax + rdx], rcx
mov byte [rax + rdx + 8], cl
jmp 0x1400055c1
mov byte [rsp + 0x20], 0
mov edx, 8
mov r9d, edx
lea rcx, [rbp - 0x30]
call fcn.1400075d0
jmp 0x1400055c1
mov bl, 1
cmp r9, 0x10
jb 0x140005704
lea rdx, [r9 + 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400056ff
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000572d
call fcn.14003d794
movzx eax, bl
jmp 0x14000570b
mov al, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14003d770
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.140047164
int3
Function at 0x140008a80
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov dword [rsp + 0x20], r9d
push rdi
sub rsp, 0x40
mov rdi, r8
mov dword [rsp + 0x30], 0x206
mov rbp, rdx
mov dword [rsp + 0x68], 3
mov rsi, rcx
xor edx, edx
mov r8d, 0x800
lea rcx, str.sechost.dll
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadLibraryExW]
mov rbx, rax
test rax, rax
jne 0x140008aea
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
lea rcx, str.LoadLibraryEx_with_sechost.dll_failed._Error:__0x_x_
call fcn.140003050
xor al, al
jmp 0x140008c04
lea rdx, str.GetServiceRegistryStateKey
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
test rax, rax
je 0x140008b36
lea r9, [rsp + 0x38]
xor edx, edx
mov r8d, 0x20019
mov rcx, rsi
call rax
test eax, eax
je 0x140008b90
mov r8, rsi
lea rcx, str.GetServiceRegistryStateKey_failed__0x_x__handle__p
mov edx, eax
call fcn.140003050
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FreeLibrary]
xor al, al
jmp 0x140008c04
lea rcx, str.GetProcAddress_with_GetServiceRegistryStateKey_failed__This_is_windows_RS3_or_lower.
call fcn.140003050
lea rax, [rsp + 0x38]
mov r9d, 0x20119
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [0x14007c980]
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
je 0x140008b90
mov r8d, eax
lea rdx, str.SYSTEMCurrentControlSetServicesjhi_serviceParameters
lea rcx, str.Registry_read_failure_for__s__RegOpenKeyEx_failed__0x_x__n
call fcn.140003050
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FreeLibrary]
xor al, al
jmp 0x140008c04
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FreeLibrary]
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x68]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov rdx, rbp
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
je 0x140008be3
mov r8d, eax
lea rcx, str.Registry_read_failure_for__S._Error:__0x_x__n
mov rdx, rbp
call fcn.140003050
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
xor al, al
jmp 0x140008c04
mov eax, dword [rsp + 0x30]
shr rax, 1
cmp word [rdi + rax*2], 0
je 0x140008bf7
xor ecx, ecx
mov word [rdi + rax*2], cx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov al, 1
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140008c20
Capabilities:
Copy file
Set file attributes

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x17]
sub rsp, 0x98
mov qword [rbp - 0x49], 0xfffffffffffffffe
mov rax, qword [0x140093008]
xor rax, rsp
mov qword [rbp - 1], rax
mov rsi, r9
mov r12, r8
mov rdi, rdx
mov r14, rcx
movzx r15d, byte [rbp + 0x7f]
xor r13d, r13d
mov qword [rbp - 0x31], r13
mov qword [rbp - 0x29], 7
mov word [rbp - 0x41], r13w
movzx r9d, r15b
mov r8, rsi
lea rdx, [rbp - 0x21]
call fcn.14000b2e0
mov rbx, rax
lea rax, [rbp - 0x41]
cmp rax, rbx
je 0x140008cb8
lea rcx, [rbp - 0x41]
call fcn.140008470
movups xmm0, xmmword [rbx]
movups xmmword [rbp - 0x41], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rbp - 0x31], xmm1
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], 7
mov word [rbx], r13w
mov rdx, qword [rbp - 9]
cmp rdx, 8
jb 0x140008cf8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008cf3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140008e48
call fcn.14003d794
lea rdx, [rbp - 0x41]
cmp qword [rbp - 0x29], 8
cmovae rdx, qword [rbp - 0x41]
cmp qword [rdi + 0x18], 8
jb 0x140008d10
mov rdi, qword [rdi]
mov dword [rsp + 0x28], 0x800
mov qword [rsp + 0x20], r13
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_file_l2_1_0.dll_CopyFileExW]
test eax, eax
jne 0x140008d3e
mov ebx, 0x103
lea rcx, str.Copy_file_to_repository_failed___n
jmp 0x140008d86
lea rcx, [rbp - 0x41]
cmp qword [rbp - 0x29], 8
cmovae rcx, qword [rbp - 0x41]
mov edx, 0x80
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFileAttributesW]
test eax, eax
jne 0x140008d69
mov ebx, 0x103
lea rcx, str.failed_removing_all_attributes_from_file_n
jmp 0x140008d86
movzx r9d, r15b
mov r8, r12
lea rdx, [rbp - 0x41]
call fcn.14000a130
mov ebx, eax
test eax, eax
je 0x140008dc0
lea rcx, str.prepareInstallFromFile__:_Failed_to_get_applet_blobs_from_dalp_file._n
call fcn.140003050
cmp qword [rbp - 0x31], 0
je 0x140008dea
lea rcx, [rbp - 0x41]
cmp qword [rbp - 0x29], 8
cmovae rcx, qword [rbp - 0x41]
xor edx, edx
call fcn.140048518
test eax, eax
jne 0x140008dea
lea rcx, [rbp - 0x41]
cmp qword [rbp - 0x29], 8
cmovae rcx, qword [rbp - 0x41]
call fcn.1400485c4
jmp 0x140008dea
mov rdx, rsi
mov rcx, r14
call fcn.14000a310
test eax, eax
jne 0x140008dea
mov dword [rbp - 0x51], 1
mov word [rbp - 0x4d], ax
lea r8, [rbp - 0x51]
mov rdx, rsi
mov rcx, r14
call fcn.140009490
nop
mov rdx, qword [rbp - 0x29]
cmp rdx, 8
jb 0x140008e26
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x41]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008e21
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140008e4e
call fcn.14003d794
mov eax, ebx
mov rcx, qword [rbp - 1]
xor rcx, rsp
call fcn.14003d770
add rsp, 0x98
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.140047164
nop
call fcn.140047164
int3
Function at 0x14001dc60
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
cmp qword [rcx + 0x1b8], 0xffffffffffffffff
mov rbx, rcx
je 0x14001ddaa
mov qword [rsp + 0x40], rbp
xor ebp, ebp
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rdi
nop dword [rax + rax]
mov rcx, qword [rbx + 0x10]
mov edx, 0xffffffff
mov rcx, qword [rcx]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
mov rcx, qword [rbx + 0x1b8]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WS2_32.dll_accept]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14001dd73
lea rdx, [0x14006ba50]
mov ecx, 0x18
call fcn.14003de1c
mov rdi, rax
test rax, rax
jne 0x14001dd0a
lea edx, [rax + 0x18]
lea rcx, str.JHI_memory_allocation_of_size__d_failed_.
call fcn.140003010
lea rcx, str.CS_ClientThreadParams_memory_allocation_failed
call fcn.140003050
mov rcx, qword [rbx + 0x10]
lea edx, [rdi + 1]
xor r8d, r8d
mov rcx, qword [rcx]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSemaphore]
jmp 0x14001dd63
mov qword [rax], rsi
lea r8, [0x14001ddb0]
mov rax, qword [rbx + 0x18]
mov r9, rdi
mov qword [rdi + 8], rax
xor edx, edx
mov rax, qword [rbx + 0x10]
xor ecx, ecx
mov qword [rsp + 0x28], rbp
mov qword [rdi + 0x10], rax
mov dword [rsp + 0x20], ebp
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
test rax, rax
jne 0x14001dd5a
lea rcx, str.failed_creating_thread_for_client_request_n
call fcn.140003050
mov edx, 0x18
mov rcx, rdi
call fcn.14003d794
jmp 0x14001dd63
mov rcx, rax
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
cmp qword [rbx + 0x1b8], 0xffffffffffffffff
jne 0x14001dc90
jmp 0x14001dd9b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, str.accept_failed_with_error:__d_n
call fcn.140003050
mov rcx, qword [rbx + 0x10]
xor r8d, r8d
mov rcx, qword [rcx]
lea edx, [r8 + 1]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSemaphore]
mov rdi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rbx
ret

Function at 0x14001eee0
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov edi, edx
mov esi, ecx
lea rdx, str.IntelDalJhi
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rbx, rax
test rax, rax
je 0x14001ef3f
xor eax, eax
xor r8d, r8d
mov qword [rsp + 0x40], rax
mov r9d, edi
mov qword [rsp + 0x38], rax
movzx edx, si
mov dword [rsp + 0x30], eax
mov rcx, rbx
mov word [rsp + 0x28], ax
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x14001f900
Capabilities:
Create thread

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x70
mov qword [rax - 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x140093008]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, rcx
cmp byte [rcx + 0x10], 0
je 0x14001f93e
mov eax, 1
jmp 0x14001fae0
call fcn.14000bb40
mov ebx, dword [rax + 0x5c]
movdqa xmm0, xmmword [0x1400832b0]
movdqu xmmword [rsp + 0x50], xmm0
xor ebp, ebp
mov word [rsp + 0x40], bp
mov byte [rsp + 0x30], bpl
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x40]
call fcn.14001f200
test al, al
jne 0x14001f97d
mov ebx, 0x1014
jmp 0x14001fa98
movzx esi, byte [rsp + 0x30]
cmp ebx, 2
jne 0x14001f99c
movzx r8d, sil
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.14001fbd0
test eax, eax
je 0x14001fa16
lea rcx, str.Installing_the_Spooler...
call fcn.140003050
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rdx, qword [rsp + 0x40]
movzx r9d, sil
xor r8d, r8d
lea rcx, str.BA8D164350B649CC861D2C01BED14BE8
call fcn.140023f00
mov ebx, eax
test eax, eax
je 0x14001f9e7
cmp eax, 0x108
je 0x14001f9e7
lea rcx, str.failed_downloading_Spooler_Applet_to_DAL_FW_n
call fcn.140003010
jmp 0x14001f9f3
lea rcx, str.Spooler_is_installed.
call fcn.140003050
test ebx, ebx
jne 0x14001fa9a
movzx r8d, sil
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.14001fbd0
mov ebx, eax
test eax, eax
jne 0x14001fa98
call fcn.14000bb40
mov rbx, rax
mov edx, 0xffffffff
mov rcx, qword [rax]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
mov rsi, qword [rbx + 0x50]
mov rcx, qword [rbx]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseMutex]
lea rcx, str.Creating_the_event_listener_thread...
call fcn.140003050
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], ebp
xor r9d, r9d
lea r8, [0x14001ef50]
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
jne 0x14001fa8a
lea rcx, str.Failed_creating_event_handle_thread_n
call fcn.140003050
mov ebx, 0x601
mov rax, qword [rsi]
mov rdx, rdi
mov rcx, rsi
call qword [rax + 0x40]
jmp 0x14001fa98
lea rcx, str.Event_listener_thread_created_successfully
call fcn.140003050
mov ebx, ebp
test ebx, ebx
sete al
mov byte [rdi + 0x10], al
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x14001fade
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001fad9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001fb03
call fcn.14003d794
mov eax, ebx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14003d770
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.140047164
int3
Function at 0x140020180
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x38
cmp byte [rcx + 8], 0
mov rdi, rdx
mov rsi, rcx
je 0x1400202fa
mov eax, dword [rsp + 0x50]
lea r9, [rsp + 0x60]
mov rcx, qword [rcx + 0x10]
lea rdx, [rsp + 0x50]
and eax, 0xffff02ff
mov qword [rsp + 0x20], 0
or eax, 0x2ff
mov r8d, 4
mov dword [rsp + 0x50], eax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
test eax, eax
je 0x1400202da
mov qword [rsp + 0x58], rbx
lea rcx, str.Sent_FWU_GET_VERSION_to_HECI._n
mov qword [rsp + 0x30], rbp
call fcn.140003050
xor bpl, bpl
mov dword [rsp + 0x50], 0
test rdi, rdi
je 0x1400202c7
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x1400202c7
call fcn.140007e80
mov rbx, rax
test rax, rax
je 0x1400202c7
movsxd r8, dword [rsi + 0x18]
xor edx, edx
mov rcx, rax
call fcn.1400426d0
mov r8d, dword [rsi + 0x18]
lea r9, [rsp + 0x50]
mov rcx, qword [rsi + 0x10]
mov rdx, rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
test eax, eax
je 0x140020293
mov edx, dword [rsp + 0x50]
lea rcx, str.Number_bytes_read_from_HECI:__d_n
call fcn.140003050
cmp byte [rbx + 3], bpl
je 0x14002026f
lea rcx, str.Got_error_status_from_HCI_GET_FW_VERSION._n
call fcn.140003050
jmp 0x1400202a7
movzx eax, word [rbx + 6]
mov bpl, 1
mov word [rdi], ax
movzx eax, word [rbx + 4]
mov word [rdi + 2], ax
movzx eax, word [rbx + 0xa]
mov word [rdi + 4], ax
movzx eax, word [rbx + 8]
mov word [rdi + 6], ax
jmp 0x1400202a7
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
lea rcx, str.HeciRead_Error._LastError___d_n
call fcn.140003050
mov rcx, rbx
call fcn.140007ec0
test bpl, bpl
je 0x1400202c7
mov rbx, qword [rsp + 0x58]
mov al, 1
mov rbp, qword [rsp + 0x30]
add rsp, 0x38
pop rdi
pop rsi
ret
mov rbx, qword [rsp + 0x58]
xor al, al
mov rbp, qword [rsp + 0x30]
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, str.Error:_sending_FWU_GET_VERSION_request_to_HECI_failed._n
call fcn.140003050
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
lea rcx, str.error:__d
call fcn.140003050
xor al, al
add rsp, 0x38
pop rdi
pop rsi
ret
Function at 0x1400249a0
Capabilities:
Check mutex on windows
Initialize winsock library

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x60
mov qword [rax - 0x48], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
lea rcx, [0x14007fb58]
call fcn.140003010
call fcn.14000bb40
mov rbx, rax
mov edx, 0xffffffff
mov rcx, qword [rax]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
mov dword [rbx + 8], 2
mov rcx, qword [rbx]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseMutex]
lea rdx, [0x14006ba50]
mov ecx, reloc.WS2_32.dll_recv
call fcn.14003de1c
mov rdi, rax
test rax, rax
je 0x140024a20
lea rax, vtable.intel_dal::CommandDispatcher.0
mov qword [rdi], rax
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateMutexW]
mov qword [rdi + 8], rax
jmp 0x140024a31
xor edi, edi
lea edx, [rdi + 0x10]
lea rcx, str.JHI_memory_allocation_of_size__d_failed_.
call fcn.140003010
mov ecx, 0x1c0
call fcn.14003daf0
mov rsi, rax
mov qword [rsp + 0x70], rax
lea rax, vtable.intel_dal::ICommandsServer.0
mov qword [rsi], rax
mov ecx, 8
call fcn.14003daf0
mov rbx, rax
mov qword [rsp + 0x78], rax
xor r9d, r9d
mov edx, 0xa
xor ecx, ecx
mov r8d, edx
call qword [sym.imp.api_ms_win_core_synch_l1_2_1.dll_CreateSemaphoreW]
mov qword [rbx], rax
mov qword [rsi + 0x10], rbx
mov qword [rsi + 0x18], rdi
mov byte [rsi + 8], 0xa
lea rax, vtable.intel_dal::CommandsServerSocketsWin32.0
mov qword [rsi], rax
mov qword [rsi + 0x1b8], 0xffffffffffffffff
mov ecx, 0x202
lea rdx, [rsi + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x140024b20
cmp byte [rsi + 0x20], 2
jne 0x140024b51
cmp byte [rsi + 0x21], 2
jne 0x140024b51
mov qword [0x140097970], rsi
lea rcx, str.opening_command_server_n
call fcn.140003050
mov rcx, qword [0x140097970]
mov rax, qword [rcx]
call qword [rax]
test al, al
jne 0x140024b00
lea rcx, str.Error:_command_server_has_failed_to_open_a_connection_n
call fcn.140003010
xor al, al
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
lea rcx, str.____jhi_start
call fcn.140003010
mov al, 1
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
mov edx, eax
lea rcx, str.WSAStartup_failed_with_error:__d_n
call fcn.140003010
lea rdx, str.WSAStartup_failed
lea rcx, [rsp + 0x28]
call fcn.140001fc0
lea rdx, [0x140090cc0]
lea rcx, [rsp + 0x28]
call fcn.140042880
int3
lea rcx, str.Could_not_find_a_usable_version_of_Winsock.dll_n
call fcn.140003010
call qword [sym.imp.WS2_32.dll_WSACleanup]
lea rdx, str.Could_not_find_a_usable_version_of_Winsock.dll
lea rcx, [rsp + 0x40]
call fcn.140001fc0
lea rdx, [0x140090cc0]
lea rcx, [rsp + 0x40]
call fcn.140042880
int3
Function at 0x140024d00
Capabilities:
Create mailslot

Disassembly:
push rbp
push rdi
push r14
sub rsp, 0x80
mov rax, qword [0x140093008]
xor rax, rsp
mov qword [rsp + 0x70], rax
cmp qword [rcx + 0x28], 0
mov r14d, r8d
mov rdi, rdx
mov rbp, rcx
je 0x140024d35
mov eax, 7
jmp 0x140024e5b
test rdi, rdi
jne 0x140024d42
lea eax, [rdi + 8]
jmp 0x140024e5b
mov qword [rsp + 0xb0], rbx
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rdx + rbx], 0
jne 0x140024d51
cmp rbx, 0x20
jbe 0x140024d6a
mov eax, 8
jmp 0x140024e53
lea r8, str..mailslot_
mov qword [rsp + 0xb8], rsi
mov edx, 0x2e
lea rcx, [rsp + 0x40]
call fcn.1400473ec
mov r8, rdi
lea rcx, [rsp + 0x40]
mov edx, 0x2e
call fcn.14004ee5c
test r14d, r14d
jne 0x140024de4
xor r9d, r9d
lea rcx, [rsp + 0x40]
xor r8d, r8d
mov edx, 0x1a8
call qword [sym.imp.api_ms_win_core_kernel32_legacy_l1_1_0.dll_CreateMailslotA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140024e20
xor eax, eax
lea r8d, [r14 + 4]
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov qword [rsp + 0x28], rax
mov rcx, rsi
mov qword [rsp + 0x20], rax
lea edx, [rax + 6]
call qword [sym.imp.api_ms_win_security_provider_l1_1_0.dll_SetSecurityInfo]
jmp 0x140024e1a
cmp r14d, 1
jne 0x140024e46
xor eax, eax
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0x40000000
mov r8d, r14d
mov dword [rsp + 0x20], 3
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileA]
mov rsi, rax
cmp rsi, 0xffffffffffffffff
jne 0x140024e27
mov eax, 1
jmp 0x140024e4b
mov r9, rbx
mov r8, rdi
mov edx, 0x22
mov rcx, rbp
call fcn.14004ed74
xor eax, eax
mov dword [rbp + 0x30], r14d
mov qword [rbp + 0x28], rsi
jmp 0x140024e4b
mov eax, 0xa
mov rsi, qword [rsp + 0xb8]
mov rbx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14003d770
add rsp, 0x80
pop r14
pop rdi
pop rbp
ret
Function at 0x140025150
Capabilities:
Read file on windows
Read from mailslot

Disassembly:
push rbx
push rbp
sub rsp, 0x208
mov rax, qword [0x140093008]
xor rax, rsp
mov qword [rsp + 0x1f0], rax
cmp dword [rcx + 0x30], 0
mov rbp, rdx
mov rbx, rcx
je 0x140025182
mov eax, 0xa
jmp 0x1400252c8
mov rcx, qword [rcx + 0x28]
mov qword [rsp + 0x230], rsi
xor esi, esi
test rcx, rcx
je 0x1400251aa
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rsi
xor r8d, r8d
xor edx, edx
call qword [sym.imp.api_ms_win_core_kernel32_legacy_l1_1_4.dll_GetMailslotInfo]
cmp dword [rsp + 0x30], esi
ja 0x1400251ba
mov eax, 9
jmp 0x1400252c0
mov rcx, qword [rbx + 0x28]
lea r9, [rsp + 0x34]
mov r8d, 0x1a8
mov qword [rsp + 0x20], rsi
lea rdx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
test eax, eax
jne 0x1400251e7
mov eax, 4
jmp 0x1400252c0
mov eax, dword [rsp + 0x34]
cmp rax, 0x1aa
jae 0x1400252e9
mov edx, 0x2c
mov qword [rsp + 0x200], rdi
lea rcx, [rsp + 0x40]
mov byte [rsp + rax + 0x40], sil
call fcn.140041f90
mov rdi, rax
test rax, rax
jne 0x140025232
lea rax, [rsp + 0x40]
mov rcx, 0xffffffffffffffff
inc rcx
cmp byte [rax + rcx], sil
jne 0x140025227
jmp 0x14002523b
lea rcx, [rsp + 0x40]
sub eax, ecx
mov ecx, eax
cmp ecx, 0x10
jg 0x1400252e2
movsxd rbx, ecx
lea r8, [rsp + 0x40]
mov r9, rbx
mov edx, reloc.WS2_32.dll_recv
mov rcx, rbp
call fcn.14004ed74
mov byte [rbx + rbp], sil
test rdi, rdi
je 0x140025269
lea rsi, [rdi + 1]
lea rcx, [rbp + 0x12]
mov qword [rsp + 0x38], rsi
mov r8d, 0x20
lea rdx, [rsp + 0x38]
call fcn.1400252f0
test eax, eax
je 0x1400252e2
lea rcx, [rbp + 0x34]
mov r8d, 0x20
lea rdx, [rsp + 0x38]
call fcn.1400252f0
test eax, eax
je 0x1400252e2
lea rcx, [rbp + 0x56]
mov r8d, 0x140
lea rdx, [rsp + 0x38]
call fcn.1400252f0
test eax, eax
je 0x1400252e2
xor eax, eax
mov rdi, qword [rsp + 0x200]
mov rsi, qword [rsp + 0x230]
mov rcx, qword [rsp + 0x1f0]
xor rcx, rsp
call fcn.14003d770
add rsp, 0x208
pop rbp
pop rbx
ret
mov eax, listen
jmp 0x1400252b8
call fcn.14003df44
int3