joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140008b70
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 [0x140092008]
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.14000b240
mov rbx, rax
lea rax, [rbp - 0x41]
cmp rax, rbx
je 0x140008c08
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 0x140008c48
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008c43
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140008d98
call fcn.14003ce44
lea rdx, [rbp - 0x41]
cmp qword [rbp - 0x29], 8
cmovae rdx, qword [rbp - 0x41]
cmp qword [rdi + 0x18], 8
jb 0x140008c60
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 0x140008c8e
mov ebx, 0x103
lea rcx, str.Copy_file_to_repository_failed___n
jmp 0x140008cd6
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 0x140008cb9
mov ebx, 0x103
lea rcx, str.failed_removing_all_attributes_from_file_n
jmp 0x140008cd6
movzx r9d, r15b
mov r8, r12
lea rdx, [rbp - 0x41]
call fcn.14000a020
mov ebx, eax
test eax, eax
je 0x140008d10
lea rcx, str.failed_getting_applet_blobs_from_dalp_file_n
call fcn.140003050
cmp qword [rbp - 0x31], 0
je 0x140008d3a
lea rcx, [rbp - 0x41]
cmp qword [rbp - 0x29], 8
cmovae rcx, qword [rbp - 0x41]
xor edx, edx
call fcn.140047bc8
test eax, eax
jne 0x140008d3a
lea rcx, [rbp - 0x41]
cmp qword [rbp - 0x29], 8
cmovae rcx, qword [rbp - 0x41]
call fcn.140047c74
jmp 0x140008d3a
mov rdx, rsi
mov rcx, r14
call fcn.14000a270
test eax, eax
jne 0x140008d3a
mov dword [rbp - 0x51], 1
mov word [rbp - 0x4d], ax
lea r8, [rbp - 0x51]
mov rdx, rsi
mov rcx, r14
call fcn.1400093e0
nop
mov rdx, qword [rbp - 0x29]
cmp rdx, 8
jb 0x140008d76
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x41]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008d71
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140008d9e
call fcn.14003ce44
mov eax, ebx
mov rcx, qword [rbp - 1]
xor rcx, rsp
call fcn.14003ce20
add rsp, 0x98
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.140046814
nop
call fcn.140046814
int3
Function at 0x14001db10
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
cmp qword [rcx + 0x1b8], 0xffffffffffffffff
mov rbx, rcx
je 0x14001dc5a
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 0x14001dc23
lea rdx, [0x14006aa60]
mov ecx, 0x18
call fcn.14003d4cc
mov rdi, rax
test rax, rax
jne 0x14001dbba
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 0x14001dc13
mov qword [rax], rsi
lea r8, [0x14001dc60]
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 0x14001dc0a
lea rcx, str.failed_creating_thread_for_client_request_n
call fcn.140003050
mov edx, 0x18
mov rcx, rdi
call fcn.14003ce44
jmp 0x14001dc13
mov rcx, rax
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
cmp qword [rbx + 0x1b8], 0xffffffffffffffff
jne 0x14001db40
jmp 0x14001dc4b
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 0x14001ed90
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 0x14001edef
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 0x14001f7b0
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 [0x140092008]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, rcx
cmp byte [rcx + 0x10], 0
je 0x14001f7ee
mov eax, 1
jmp 0x14001f990
call fcn.14000baa0
mov ebx, dword [rax + 0x5c]
movdqa xmm0, xmmword [0x140081a20]
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.14001f0b0
test al, al
jne 0x14001f82d
mov ebx, 0x1014
jmp 0x14001f948
movzx esi, byte [rsp + 0x30]
cmp ebx, 2
jne 0x14001f84c
movzx r8d, sil
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.14001fa80
test eax, eax
je 0x14001f8c6
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.140023dc0
mov ebx, eax
test eax, eax
je 0x14001f897
cmp eax, 0x108
je 0x14001f897
lea rcx, str.failed_downloading_Spooler_Applet_to_DAL_FW_n
call fcn.140003010
jmp 0x14001f8a3
lea rcx, str.Spooler_is_installed.
call fcn.140003050
test ebx, ebx
jne 0x14001f94a
movzx r8d, sil
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.14001fa80
mov ebx, eax
test eax, eax
jne 0x14001f948
call fcn.14000baa0
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, [0x14001ee00]
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 0x14001f93a
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 0x14001f948
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 0x14001f98e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001f989
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001f9b3
call fcn.14003ce44
mov eax, ebx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14003ce20
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.140046814
int3
Function at 0x140020030
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 0x1400201aa
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 0x14002018a
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 0x140020177
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x140020177
call fcn.140007e80
mov rbx, rax
test rax, rax
je 0x140020177
movsxd r8, dword [rsi + 0x18]
xor edx, edx
mov rcx, rax
call fcn.140041d80
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 0x140020143
mov edx, dword [rsp + 0x50]
lea rcx, str.Number_bytes_read_from_HECI:__d_n
call fcn.140003050
cmp byte [rbx + 3], bpl
je 0x14002011f
lea rcx, str.Got_error_status_from_HCI_GET_FW_VERSION._n
call fcn.140003050
jmp 0x140020157
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 0x140020157
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 0x140020177
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 0x140024840
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, [0x14007e6c0]
call fcn.140003010
call fcn.14000baa0
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, [0x14006aa60]
mov ecx, reloc.WS2_32.dll_recv
call fcn.14003d4cc
mov rdi, rax
test rax, rax
je 0x1400248c0
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 0x1400248d1
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.14003d1a0
mov rsi, rax
mov qword [rsp + 0x70], rax
lea rax, vtable.intel_dal::ICommandsServer.0
mov qword [rsi], rax
mov ecx, 8
call fcn.14003d1a0
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 0x1400249c0
cmp byte [rsi + 0x20], 2
jne 0x1400249f1
cmp byte [rsi + 0x21], 2
jne 0x1400249f1
mov qword [0x140096970], rsi
lea rcx, str.opening_command_server_n
call fcn.140003050
mov rcx, qword [0x140096970]
mov rax, qword [rcx]
call qword [rax]
test al, al
jne 0x1400249a0
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, [0x14008f3b0]
lea rcx, [rsp + 0x28]
call fcn.140041f30
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, [0x14008f3b0]
lea rcx, [rsp + 0x40]
call fcn.140041f30
int3
Function at 0x140024a90
Capabilities:
Create mailslot

Disassembly:
push rbp
push rdi
push r14
sub rsp, 0x80
mov rax, qword [0x140092008]
xor rax, rsp
mov qword [rsp + 0x70], rax
cmp qword [rcx + 0x28], 0
mov r14d, r8d
mov rdi, rdx
mov rbp, rcx
je 0x140024ac5
mov eax, 7
jmp 0x140024beb
test rdi, rdi
jne 0x140024ad2
lea eax, [rdi + 8]
jmp 0x140024beb
mov qword [rsp + 0xb0], rbx
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rdx + rbx], 0
jne 0x140024ae1
cmp rbx, 0x20
jbe 0x140024afa
mov eax, 8
jmp 0x140024be3
lea r8, str..mailslot_
mov qword [rsp + 0xb8], rsi
mov edx, 0x2e
lea rcx, [rsp + 0x40]
call fcn.140046a9c
mov r8, rdi
lea rcx, [rsp + 0x40]
mov edx, 0x2e
call fcn.14004e50c
test r14d, r14d
jne 0x140024b74
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 0x140024bb0
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 0x140024baa
cmp r14d, 1
jne 0x140024bd6
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 0x140024bb7
mov eax, 1
jmp 0x140024bdb
mov r9, rbx
mov r8, rdi
mov edx, 0x22
mov rcx, rbp
call fcn.14004e424
xor eax, eax
mov dword [rbp + 0x30], r14d
mov qword [rbp + 0x28], rsi
jmp 0x140024bdb
mov eax, 0xa
mov rsi, qword [rsp + 0xb8]
mov rbx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14003ce20
add rsp, 0x80
pop r14
pop rdi
pop rbp
ret
Function at 0x140024ee0
Capabilities:
Read file on windows
Read from mailslot

Disassembly:
push rbx
push rbp
sub rsp, 0x208
mov rax, qword [0x140092008]
xor rax, rsp
mov qword [rsp + 0x1f0], rax
cmp dword [rcx + 0x30], 0
mov rbp, rdx
mov rbx, rcx
je 0x140024f12
mov eax, 0xa
jmp 0x140025058
mov rcx, qword [rcx + 0x28]
mov qword [rsp + 0x230], rsi
xor esi, esi
test rcx, rcx
je 0x140024f3a
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 0x140024f4a
mov eax, 9
jmp 0x140025050
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 0x140024f77
mov eax, 4
jmp 0x140025050
mov eax, dword [rsp + 0x34]
cmp rax, 0x1aa
jae 0x140025079
mov edx, 0x2c
mov qword [rsp + 0x200], rdi
lea rcx, [rsp + 0x40]
mov byte [rsp + rax + 0x40], sil
call fcn.140041640
mov rdi, rax
test rax, rax
jne 0x140024fc2
lea rax, [rsp + 0x40]
mov rcx, 0xffffffffffffffff
inc rcx
cmp byte [rax + rcx], sil
jne 0x140024fb7
jmp 0x140024fcb
lea rcx, [rsp + 0x40]
sub eax, ecx
mov ecx, eax
cmp ecx, 0x10
jg 0x140025072
movsxd rbx, ecx
lea r8, [rsp + 0x40]
mov r9, rbx
mov edx, reloc.WS2_32.dll_recv
mov rcx, rbp
call fcn.14004e424
mov byte [rbx + rbp], sil
test rdi, rdi
je 0x140024ff9
lea rsi, [rdi + 1]
lea rcx, [rbp + 0x12]
mov qword [rsp + 0x38], rsi
mov r8d, 0x20
lea rdx, [rsp + 0x38]
call fcn.140025080
test eax, eax
je 0x140025072
lea rcx, [rbp + 0x34]
mov r8d, 0x20
lea rdx, [rsp + 0x38]
call fcn.140025080
test eax, eax
je 0x140025072
lea rcx, [rbp + 0x56]
mov r8d, 0x140
lea rdx, [rsp + 0x38]
call fcn.140025080
test eax, eax
je 0x140025072
xor eax, eax
mov rdi, qword [rsp + 0x200]
mov rsi, qword [rsp + 0x230]
mov rcx, qword [rsp + 0x1f0]
xor rcx, rsp
call fcn.14003ce20
add rsp, 0x208
pop rbp
pop rbx
ret
mov eax, listen
jmp 0x140025048
call fcn.14003d5f4
int3
Function at 0x14002ca30
Capabilities:
Delete 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 0x14002ca85
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 5
jne 0x14002ca6d
lea rcx, str.ACCESS_DENIED:_administrative_privileges_required._n
call fcn.140020340
lea eax, [rbx + 2]
jmp 0x14002cb85
mov edx, eax
lea rcx, str.OpenSCManager_failed___d__n
call fcn.140020340
mov eax, 1
jmp 0x14002cb85
mov r8d, 0x10000
mov qword [rsp + 0x30], rdi
lea rdx, str.jhi_service
mov rcx, rbx
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenServiceW]
mov rdi, rax
test rax, rax
jne 0x14002cb08
mov rcx, rbx
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 5
jne 0x14002cad0
lea rcx, str.ACCESS_DENIED:_administrative_privileges_required._n
call fcn.140020340
lea eax, [rdi + 2]
jmp 0x14002cb80
cmp eax, 0x424
jne 0x14002caed
lea rcx, str.Error:_the_service_does_not_exist._n
call fcn.140020340
mov eax, 4
jmp 0x14002cb80
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
lea rcx, str.Uninstall_Service_failed:___d__n
call fcn.140020340
mov eax, 1
jmp 0x14002cb80
mov rcx, rdi
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_DeleteService]
test eax, eax
jne 0x14002cb60
mov rcx, rbx
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 5
jne 0x14002cb45
lea rcx, str.ACCESS_DENIED:_administrative_privileges_required._n
call fcn.140020340
mov eax, 2
jmp 0x14002cb80
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
lea rcx, str.Uninstall_Service_failed:___d__n
call fcn.140020340
mov eax, 1
jmp 0x14002cb80
lea rcx, str.JHI_Service_removed_successfully_n
call fcn.140020340
mov rcx, rbx
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
xor eax, eax
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
Function at 0x14002e980
Capabilities:
Initialize winsock library

Disassembly:
push rdi
sub rsp, 0x1d0
mov rax, qword [0x140092008]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov rdi, rdx
test rdx, rdx
jne 0x14002e9ab
lea eax, [rdx - 2]
jmp 0x14002eaba
mov qword [rsp + 0x1e0], rbx
sub ecx, 1
je 0x14002ea2b
cmp ecx, 1
je 0x14002e9c7
mov eax, 0xfffffffe
jmp 0x14002eab2
lea rax, [0x14002ee60]
xor ebx, ebx
mov qword [rdx], rax
lea rax, [0x14002ef40]
mov qword [rdx + 8], rax
lea rax, [0x14002f180]
mov qword [rdx + 0x10], rax
lea rax, [0x14002f2e0]
mov qword [rdx + 0x18], rax
lea ecx, [rbx + 0x28]
lea rax, [0x14002f460]
mov dword [rdx + 0x28], ebx
mov qword [rdx + 0x20], rax
call fcn.14004e41c
mov rcx, rax
mov rbx, rax
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_InitializeCriticalSection]
mov qword [0x1400956c8], rbx
xor eax, eax
mov dword [rdi + 0x28], 1
jmp 0x14002eab2
lea rax, [0x14002eae0]
xor ebx, ebx
mov qword [rdx], rax
lea rcx, [rsp + 0x20]
lea rax, [0x14002eb20]
mov dword [rdx + 0x28], ebx
mov qword [rdx + 8], rax
mov r8d, 0x198
lea rax, [0x14002eca0]
mov qword [rdx + 0x10], rax
lea rax, [0x14002ed20]
mov qword [rdx + 0x18], rax
lea rax, [0x14002edd0]
mov qword [rdx + 0x20], rax
xor edx, edx
call fcn.140041d80
mov ecx, 0x202
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x14002ea95
mov dword [rdi + 0x28], 1
jmp 0x14002eab0
mov qword [rdi], rbx
mov qword [rdi + 8], rbx
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], rbx
mov qword [rdi + 0x20], rbx
mov dword [rdi + 0x28], ebx
mov ebx, 0xffffffff
mov eax, ebx
mov rbx, qword [rsp + 0x1e0]
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.14003ce20
add rsp, 0x1d0
pop rdi
ret
Function at 0x14002fa90
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0x30
xor r13d, r13d
mov ebp, r9d
mov dword [rsp + 0x68], r13d
mov r14, r8
mov r12, rdx
mov r15d, ecx
cmp rdx, 0xffffffffffffffff
je 0x14002fc0e
test r8, r8
je 0x14002fc0e
test r9d, r9d
je 0x14002fc0e
mov rsi, qword [rsp + 0x80]
test rsi, rsi
je 0x14002fc0e
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x70], rdi
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov rcx, rax
lea edx, [r13 + 8]
lea r8d, [r13 + 0x20]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
mov rdi, rax
test rax, rax
jne 0x14002fb2c
lea eax, [rdi + 1]
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rsi
ret
mov ebx, 1
xor r9d, r9d
mov edx, ebx
xor r8d, r8d
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
je 0x14002fbe3
test r15d, r15d
jne 0x14002fb79
lea r9, [rsp + 0x68]
mov qword [rsp + 0x20], rdi
mov r8d, ebp
mov rdx, r14
mov rcx, r12
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
test eax, eax
je 0x14002fb9b
mov qword [rsi], rdi
movzx eax, r13w
jmp 0x14002fb0f
cmp r15d, ebx
jne 0x14002fb9b
lea r9, [rsp + 0x68]
mov qword [rsp + 0x20], rdi
mov r8d, ebp
mov rdx, r14
mov rcx, r12
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
test eax, eax
jne 0x14002fb70
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x3e5
je 0x14002fb70
sub eax, 6
je 0x14002fbde
sub eax, 0x19
je 0x14002fbd7
sub eax, 0x5b
je 0x14002fbd0
sub eax, 0x415
je 0x14002fbc9
cmp eax, ebx
jne 0x14002fbe3
mov ebx, 8
jmp 0x14002fbe3
mov ebx, 3
jmp 0x14002fbe3
mov ebx, listen
jmp 0x14002fbe3
mov ebx, 5
jmp 0x14002fbe3
mov ebx, 4
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x14002fbf2
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
movzx eax, bx
jmp 0x14002fb0f
mov eax, 4
mov rbp, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rsi
ret