joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400d5420
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x68
mov rax, qword [0x140467f78]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov r14, qword [rsp + 0xc0]
mov rsi, rdx
mov rbx, rcx
lea rdx, str.L4SocketTcpConnected::SendAsynchronous_n
mov ecx, 0x10
mov rbp, r9
mov r15d, r8d
call fcn.1400d3f90
mov edx, dword [rsi + 0x10]
xor eax, eax
mov qword [rsp + 0x40], rax
mov word [rsp + 0x48], ax
cmp byte [rbx + 0x10], al
je 0x1400d5523
mov r8d, 0xa
lea rdi, [rsp + 0x40]
mov ecx, r8d
rep stosb byte [rdi], al
lea rcx, [rdx + 0x80]
cmp rcx, 0x7d
ja 0x1400d54aa
lea rdx, str.L4ProtocolWebSocket::WebSocketHeaderInitialize_failed__unexpected_buffer_size__d__this_should_never_happen__n
lea ecx, [rax + 1]
call fcn.1400d3f90
xor r8d, r8d
jmp 0x1400d5505
movzx eax, word [rsp + 0x40]
cmp rcx, 0xffff
jae 0x1400d54e8
mov ecx, 0xfef2
and ax, cx
mov ecx, 0x7e82
or ax, cx
mov ecx, 0x80
add cx, dx
mov word [rsp + 0x40], ax
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x42], ax
mov r8d, 4
jmp 0x1400d5505
mov edx, 0xfff2
and ax, dx
mov edx, 0x7f82
or ax, dx
bswap rcx
mov word [rsp + 0x40], ax
mov qword [rsp + 0x42], rcx
lea rdx, [rbx + 0x18]
mov rcx, rbx
mov dword [rdx], r8d
lea rax, [rsp + 0x40]
mov r8d, 1
mov qword [rbx + 0x20], rax
call fcn.1400d5730
cmp qword [rbx + 0x58], 0
mov r8d, r15d
mov rdx, rsi
je 0x1400d5541
mov rcx, rbx
call fcn.1400d5730
movzx edi, al
test al, al
je 0x1400d559c
jmp 0x1400d55be
xor eax, eax
mov rdi, rbp
mov qword [rsp + 0x30], rax
mov ecx, 0x20
rep stosb byte [rdi], al
mov qword [rbp + 0x18], r14
xor r9d, r9d
mov rcx, qword [rbx + 8]
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x1400d55bc
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x1400d55bc
cmp eax, 0x3e5
je 0x1400d55bc
mov r8d, eax
lea rdx, str.L4SocketTcpConnected::SendAsynchronous_WSASend_failed___d_n
mov ecx, 1
call fcn.1400d3f90
xor dil, dil
lea rdx, str.L4SocketTcpConnected::SendAsynchronous_PrivateSendAsynchronous_failed__n
mov ecx, 1
call fcn.1400d3f90
mov rcx, r14
call qword [sym.imp.WS2_32.dll_WSASetEvent]
movzx eax, dil
jmp 0x1400d55be
mov al, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1402ab320
add rsp, 0x68
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x1400d56d0
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 8]
cmp rcx, 0xffffffffffffffff
jne 0x1400d56f3
lea rdx, str.L4SocketTcpConnected::IoCancel_failed__INVALID_SOCKET__m_Socket_n
mov ecx, 1
add rsp, 0x28
jmp fcn.1400d3f90
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CancelIoEx]
test eax, eax
jne 0x1400d571d
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.L4SocketTcpConnected::IoCancel_failed__CancelIoEx_Error:_d_n
mov ecx, 1
mov r8d, eax
add rsp, 0x28
jmp fcn.1400d3f90
add rsp, 0x28
ret
Function at 0x1400d5730
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x140467f78]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov edi, r8d
mov rsi, rdx
mov r13, rcx
xor ebx, ebx
cmp qword [rcx + 0x58], rbx
je 0x1400d57d4
cmp ebx, edi
jae 0x1400d5814
mov r14d, ebx
shl r14, 4
add r14, rsi
mov r8d, dword [r14]
mov rdx, qword [r14 + 8]
mov rcx, qword [r13 + 0x58]
call fcn.1400e94d0
mov r15d, eax
test eax, eax
jg 0x1400d57cc
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
call fcn.1402b8838
mov edi, dword [rax]
mov edx, r15d
mov rcx, qword [r13 + 0x58]
call fcn.1400e85a0
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], eax
mov r9d, dword [r14]
mov r8d, ebx
lea rdx, str.SSL_write_Buffer_fragment:_d_count_byte:_d_error:_d_errno:_d__Thread:_d__n
mov ecx, 1
call fcn.1400d3f90
xor al, al
jmp 0x1400d5816
inc ebx
jmp 0x1400d5761
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebx
lea r9, [rsp + 0x40]
mov rcx, qword [rcx + 8]
call qword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x1400d5814
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, eax
lea rdx, str.L4SocketTcpConnected::SendAsynchronous_WSASend_failed___d_n
mov ecx, 1
call fcn.1400d3f90
xor al, al
jmp 0x1400d5816
mov al, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1402ab320
mov rbx, qword [rsp + 0x98]
add rsp, 0x50
pop r15
pop r14
pop r13
pop rdi
pop rsi
ret

Function at 0x1400d5840
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x70
mov rax, qword [0x140467f78]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor r14d, r14d
mov esi, r8d
mov rdi, rdx
mov rbp, rcx
mov ebx, r14d
test r8d, r8d
je 0x1400d58cb
nop
mov rcx, qword [rbp + 8]
lea r9, [rsp + 0x40]
mov eax, esi
mov qword [rsp + 0x30], r14
sub eax, ebx
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x48], eax
lea rdx, [rsp + 0x48]
lea rax, [rsp + 0x58]
mov dword [rsp + 0x58], r14d
mov r8d, 1
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x40], r14d
mov qword [rsp + 0x50], rdi
call qword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
je 0x1400d58ec
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x1400d58e5
add ebx, eax
add rdi, rax
cmp ebx, esi
jb 0x1400d5870
mov al, 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1402ab320
add rsp, 0x70
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
test ebx, ebx
setne al
jmp 0x1400d58cd
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r9d, dword [rsp + 0x40]
lea rdx, str.L4SocketTcpConnected::PrivateReceiveSynchronous_WSARecv_failed__WSAGetLastError:__d_CountByteReceivedPartial:_d_n
mov r8d, eax
mov ecx, 1
call fcn.1400d3f90
xor al, al
jmp 0x1400d58cd
Function at 0x1400d7f80
Capabilities:
Create thread
Resume thread
Terminate thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140467f78]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0
mov rbx, rcx
mov qword [rsp + 0x28], rax
mov r9, rcx
mov dword [rsp + 0x20], 4
lea r8, [0x1400d8070]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
jne 0x1400d7fee
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.L4ThreadBase::Start_CreateThread_failed._LastError__d
lea ecx, [rdi + 1]
call fcn.1400d3f90
xor al, al
jmp 0x1400d804e
lea rcx, [rbx + 8]
mov qword [rsp + 0x58], rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp qword [rbx + 0x30], 0
lea rcx, [rbx + 8]
jne 0x1400d8028
mov eax, dword [rsp + 0x30]
mov qword [rbx + 0x30], rdi
mov dil, 1
mov dword [rbx + 0x38], eax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x1400d8045
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor dil, dil
mov rsi, qword [rsp + 0x58]
movzx eax, dil
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1402ab320
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x1400d9170
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140467f78]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov esi, 2
movzx edi, r8w
mov rbx, rcx
mov edx, esi
mov ecx, esi
lea r8d, [rsi + 0xf]
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbx + 8], rax
cmp rax, 0xffffffffffffffff
jne 0x1400d91d1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, eax
lea rdx, str.L4SocketUdp::Initialize_socket_failed___d_n
lea ecx, [rsi - 1]
call fcn.1400d3f90
xor al, al
jmp 0x1400d927f
movzx ecx, di
mov qword [rsp + 0x40], 0
mov word [rsp + 0x38], si
call qword [sym.imp.WS2_32.dll_htons]
xor ecx, ecx
mov word [rsp + 0x3a], ax
call qword [sym.imp.WS2_32.dll_htonl]
mov rcx, qword [rbx + 8]
lea rdx, [rsp + 0x38]
mov r8d, 0x10
mov dword [rsp + 0x3c], eax
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x1400d9231
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.L4SocketUdp::Initialize_bind_failed___d_n
mov ecx, 1
mov r8d, eax
call fcn.1400d3f90
xor al, al
jmp 0x1400d927f
mov rcx, qword [rbx + 8]
lea r9, [rsp + 0x30]
mov edx, 0xffff
mov dword [rsp + 0x30], 1
mov r8d, 0x20
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x1400d927d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.L4SocketUdp::Initialize_setsockopt_failed___d_n
mov ecx, 1
mov r8d, eax
call fcn.1400d3f90
xor al, al
jmp 0x1400d927f
mov al, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1402ab320
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x1400d92a0
Capabilities:
Get hostname
Send data
Send data on socket

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x1f0
mov rax, qword [0x140467f78]
xor rax, rsp
mov qword [rsp + 0x1e0], rax
mov rsi, rdx
mov rdi, rcx
mov edx, 3
mov rbx, r8
lea ecx, [rdx + 3]
call fcn.140091700
mov edx, 0x80
test al, al
je 0x1400d92e7
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_GetHostNameW]
jmp 0x1400d9322
lea rcx, [rsp + 0x160]
call qword [sym.imp.WS2_32.dll_gethostname]
lea r9, [rsp + 0x160]
mov qword [rsp + 0x30], 0
mov r8d, 0x80
mov qword [rsp + 0x20], 0x80
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.1402c0620
xor edx, edx
mov word [rbx + 0x104], 0x6e5c
mov r8d, 0x11c
mov dword [rbx + 0x100], 0
lea rcx, [rsp + 0x40]
mov dword [rbx + 0x108], 0
call fcn.1402ae030
mov r8b, 3
mov dword [rsp + 0x40], 0x11c
mov edx, 4
mov dword [rsp + 0x4c], 0x55f0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov edx, 4
lea rcx, [rsp + 0x40]
mov r8, rax
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x1400d93a2
call fcn.1400d94b0
movzx eax, al
xor eax, 1
add eax, 9
or dword [rbx + 0x118], 8
jmp 0x1400d9427
xor edx, edx
lea ecx, [rdx + 0xa]
call fcn.140091700
test al, al
je 0x1400d93c7
call fcn.1400d94b0
movzx eax, al
xor eax, 1
add eax, 7
or dword [rbx + 0x118], 8
jmp 0x1400d9427
mov edx, 3
lea ecx, [rdx + 3]
call fcn.140091700
test al, al
je 0x1400d93e8
call fcn.1400d94b0
movzx eax, al
xor eax, 1
add eax, 5
jmp 0x1400d9427
mov edx, 2
lea ecx, [rdx + 4]
call fcn.140091700
test al, al
je 0x1400d9409
call fcn.1400d94b0
movzx eax, al
xor eax, 1
add eax, 3
jmp 0x1400d9427
mov edx, 1
lea ecx, [rdx + 5]
call fcn.140091700
test al, al
je 0x1400d942d
call fcn.1400d94b0
movzx eax, al
xor eax, 1
inc eax
mov dword [rbx + 0x108], eax
or dword [rbx + 0x118], 3
xor r9d, r9d
mov dword [rbx + 0x110], 4
mov r8d, 0x134
mov dword [rbx + 0x114], 8
mov rdx, rbx
mov rcx, qword [rdi + 8]
mov dword [rsp + 0x28], 0x10
mov qword [rsp + 0x20], rsi
call qword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x1400d948e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.L4SocketUdp::SendReplyDiscovery_sendto_failed___d_n
mov ecx, 1
mov r8d, eax
call fcn.1400d3f90
xor al, al
jmp 0x1400d9490
mov al, 1
mov rcx, qword [rsp + 0x1e0]
xor rcx, rsp
call fcn.1402ab320
add rsp, 0x1f0
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400d9c10
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
mov eax, 0x2078
call fcn.1402aba50
sub rsp, rax
mov rax, qword [0x140467f78]
xor rax, rsp
mov qword [rsp + 0x2050], rax
test dword [0x140468dc8], ecx
je 0x1400d9d3d
mov qword [rsp + 0x2070], rbx
lea rcx, [rsp + 0x40]
xorps xmm0, xmm0
mov qword [rsp + 0x2068], rsi
mov qword [rsp + 0x2060], rdi
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
movzx r8d, word [rsp + 0x4a]
movzx r9d, word [rsp + 0x48]
movzx ecx, word [rsp + 0x4e]
movzx edx, word [rsp + 0x4c]
mov dword [rsp + 0x38], ecx
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x30], edx
lea rdx, str.L4___04d:_04d__02d:_02d:_02d._03d_:
mov dword [rsp + 0x28], r8d
mov r8d, eax
mov dword [rsp + 0x20], r9d
mov r9d, ebx
call fcn.140093970
lea rcx, [rsp + 0x50]
mov rax, 0xffffffffffffffff
lea rsi, [rsp + 0x2090]
inc rax
cmp word [rcx + rax*2], 0
jne 0x1400d9cd6
mov edi, 0x1000
lea rbx, [rsp + 0x50]
sub rdi, rax
lea rbx, [rbx + rax*2]
call fcn.140092a40
mov r9, qword [rsp + 0x2088]
mov r8, rdi
mov qword [rsp + 0x28], rsi
mov rdx, rbx
mov qword [rsp + 0x20], 0
mov rcx, qword [rax]
call fcn.1402b828c
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rdi, qword [rsp + 0x2060]
mov rsi, qword [rsp + 0x2068]
mov rbx, qword [rsp + 0x2070]
mov rcx, qword [rsp + 0x2050]
xor rcx, rsp
call fcn.1402ab320
add rsp, 0x2078
ret
Function at 0x1400de300
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x28
movzx edx, dl
xor rdx, 1
shl rdx, 5
add rdx, 0x18
add rdx, rcx
mov rcx, qword [rcx + 8]
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_CancelIoEx]
test eax, eax
jne 0x1400de346
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.L4CommunicationLinkUsb::IoCancel_failed__CancelIoEx_Error:_d_n
mov ecx, 1
mov r8d, eax
add rsp, 0x28
jmp fcn.1400d9c10
add rsp, 0x28
ret

Function at 0x1400df960
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x140467f78]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov r12, r9
mov r14d, r8d
mov r13, rdx
mov r15, rcx
mov qword [rsp + 0x40], rcx
lea rdx, str.L4DeviceUsbAoap::PipeBulkWrite_bufferlength__d_n
mov ecx, 0x80
call fcn.1400d9c10
mov bl, 1
mov byte [rsp + 0x30], bl
xor esi, esi
mov dword [rsp + 0x34], esi
xor edi, edi
mov dword [rsp + 0x38], edi
cmp edi, r14d
jae 0x1400dfa9b
test bl, bl
je 0x1400dfa9b
mov r8d, r14d
sub r8d, edi
mov edx, edi
add rdx, r13
mov qword [rsp + 0x20], r12
xor r9d, r9d
mov rcx, qword [r15 + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400dfa0a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x1400dfa0a
mov r8d, eax
lea rdx, str.L4DevicePnpBase::Write_failed__WriteFile_Error:_d_n
mov ecx, 1
call fcn.1400d9c10
xor bl, bl
jmp 0x1400dfa5d
mov dword [rsp + 0x48], 0
mov r9d, 1
lea r8, [rsp + 0x48]
mov rdx, r12
mov rcx, qword [r15 + 8]
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x1400dfa53
mov ebx, dword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, ebx
mov r8d, eax
lea rdx, str.L4DevicePnpBase::Write_failed__GetOverlappedResult_Error:_d_lengthTransferred:_d_n
mov ecx, 1
call fcn.1400d9c10
xor bl, bl
jmp 0x1400dfa5d
mov esi, dword [rsp + 0x48]
mov dword [rsp + 0x34], esi
mov bl, 1
mov byte [rsp + 0x30], bl
test bl, bl
jne 0x1400dfa78
lea rdx, str.L4DeviceUsbAoap::PipeBulkWrite_failed__n
mov ecx, 1
call fcn.1400d9c10
jmp 0x1400dfa9b
add edi, esi
mov dword [rsp + 0x38], edi
movzx r9d, bl
mov r8d, edi
lea rdx, str.L4DeviceUsbAoap::PipeBulkWrite_sumTransferred__3d_bResult__d_n
mov ecx, 0x80
call fcn.1400d9c10
jmp 0x1400df9b3
movzx eax, bl
jmp 0x1400dfabd
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1402ab320
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400dfae0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push rdi
push r14
sub rsp, 0x58
mov rax, qword [0x140467f78]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rsi, r9
mov rdi, rcx
mov qword [rsp + 0x38], rcx
mov r14, qword [rsp + 0xa0]
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x20], r9
xor r9d, r9d
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
mov dword [rsp + 0x30], eax
test eax, eax
jne 0x1400dfb59
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1400dfb59
lea r9d, [rbx + 1]
lea r8, [rsp + 0x40]
mov rdx, rsi
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov ebx, eax
mov dword [rsp + 0x30], eax
test ebx, ebx
jne 0x1400dfb82
mov ebx, dword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, ebx
mov r8d, eax
lea rdx, str.L4DeviceUsbAoap::PipeBulkRead_failed__Error:_d_lengthTransferred:_d_n
mov ecx, 1
call fcn.1400d9c10
xor al, al
jmp 0x1400dfb8b
mov eax, dword [rsp + 0x40]
mov dword [r14], eax
mov al, 1
test al, al
jne 0x1400dfbc0
mov ebx, dword [r14]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, ebx
mov r8d, eax
lea rdx, str.L4DeviceUsbAoap::PipeBulkRead_failed__Error:_d_lengthTransferred:_d_n
mov ecx, 1
call fcn.1400d9c10
mov rcx, qword [rdi + 0xa8]
call qword [sym.imp.KERNEL32.dll_SetEvent]
xor eax, eax
jmp 0x1400dfbe4
mov eax, 1
jmp 0x1400dfbe4
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1402ab320
add rsp, 0x58
pop r14
pop rdi
pop rsi
pop rbx
ret

Function at 0x1400dfcd0
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 8]
test rcx, rcx
jne 0x1400dfcf8
lea rdx, str.L5Connector::Exit_failed__NULL__m_pL4TransportEnumerator_n
mov ecx, 1
add rsp, 0x20
pop rbx
jmp fcn.1400e1ef0
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rbx + 8], 0
add rsp, 0x20
pop rbx
ret
Function at 0x1400e1ef0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
mov eax, 0x2058
call fcn.1402aba50
sub rsp, rax
mov rax, qword [0x140467f78]
xor rax, rsp
mov qword [rsp + 0x2030], rax
test dword [0x14046e720], ecx
je 0x1400e200d
mov qword [rsp + 0x2050], rbx
mov qword [rsp + 0x2048], rsi
mov qword [rsp + 0x2040], rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r9d, ebx
lea rdx, str.L5___04d:_04d_:
mov r8d, eax
lea rcx, [rsp + 0x30]
call fcn.140093970
lea rcx, [rsp + 0x30]
mov rax, 0xffffffffffffffff
lea rsi, [rsp + 0x2070]
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x1400e1f80
mov edi, 0x1000
lea rbx, [rsp + 0x30]
sub rdi, rax
lea rbx, [rbx + rax*2]
call fcn.140092a40
mov r9, qword [rsp + 0x2068]
mov r8, rdi
mov qword [rsp + 0x28], rsi
mov rdx, rbx
mov qword [rsp + 0x20], 0
mov rcx, qword [rax]
call fcn.1402b828c
mov rax, qword [0x14046e718]
lea rcx, [rsp + 0x30]
mov rdi, qword [rsp + 0x2040]
mov rsi, qword [rsp + 0x2048]
mov rbx, qword [rsp + 0x2050]
test rax, rax
je 0x1400e2007
call rax
mov rcx, qword [rsp + 0x2030]
xor rcx, rsp
call fcn.1402ab320
add rsp, 0x2058
ret
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x2030]
xor rcx, rsp
call fcn.1402ab320
add rsp, 0x2058
ret

Function at 0x1400e40d0
Capabilities:
Create thread
Resume thread
Terminate thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140467f78]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0
mov rbx, rcx
mov qword [rsp + 0x28], rax
mov r9, rcx
mov dword [rsp + 0x20], 4
lea r8, [0x1400e41c0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
jne 0x1400e413e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.L5ThreadBase::Start_CreateThread_failed._LastError__d
lea ecx, [rdi + 1]
call fcn.1400e1ef0
xor al, al
jmp 0x1400e419e
lea rcx, [rbx + 8]
mov qword [rsp + 0x58], rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp qword [rbx + 0x30], 0
lea rcx, [rbx + 8]
jne 0x1400e4178
mov eax, dword [rsp + 0x30]
mov qword [rbx + 0x30], rdi
mov dil, 1
mov dword [rbx + 0x38], eax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x1400e4195
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor dil, dil
mov rsi, qword [rsp + 0x58]
movzx eax, dil
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1402ab320
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x1400ee010
Capabilities:
Set thread local storage value

Disassembly:
mov eax, 0x28
call fcn.1402aba50
sub rsp, rax
mov ecx, dword [rcx]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
add rsp, 0x28
ret

Function at 0x1400f35c0
Capabilities:
Encode data using add xor sub operations

Disassembly:
xor eax, eax
mov r10, rcx
test rcx, rcx
je 0x1400f362c
movzx ecx, byte [rcx]
test cl, cl
je 0x1400f362c
mov r11d, 0x100
nop word [rax + rax]
movsx r9d, cl
lea r10, [r10 + 1]
or r9d, r11d
mov r8d, eax
mov edx, r9d
mov ecx, 0x20
shr edx, 2
add r11d, 0x100
xor edx, r9d
imul r9d, r9d
and edx, 0xf
sub ecx, edx
shr r8, cl
mov ecx, edx
mov edx, eax
mov eax, r8d
shl edx, cl
movzx ecx, byte [r10]
or eax, edx
xor eax, r9d
test cl, cl
jne 0x1400f35e0
mov ecx, eax
shr ecx, 0x10
xor eax, ecx
ret

Function at 0x1400f3630
Capabilities:
Encode data using add xor sub operations

Disassembly:
xor eax, eax
mov r10, rcx
test rcx, rcx
je 0x1400f36a0
movzx ecx, byte [rcx]
test cl, cl
je 0x1400f36a0
mov r11d, 0x100
nop word [rax + rax]
movsx r9d, cl
lea r10, [r10 + 1]
mov r8d, eax
and r9d, 0xffffffdf
or r9d, r11d
mov ecx, 0x20
mov edx, r9d
add r11d, 0x100
shr edx, 2
xor edx, r9d
imul r9d, r9d
and edx, 0xf
sub ecx, edx
shr r8, cl
mov ecx, edx
mov edx, eax
mov eax, r8d
shl edx, cl
movzx ecx, byte [r10]
or eax, edx
xor eax, r9d
test cl, cl
jne 0x1400f3650
mov ecx, eax
shr ecx, 0x10
xor eax, ecx
ret

Function at 0x140109d20
Capabilities:
Get thread local storage value

Disassembly:
mov eax, 0x28
call fcn.1402aba50
sub rsp, rax
lea rcx, [0x14046b3c0]
add rsp, 0x28
jmp fcn.1400ede90
Function at 0x14013fb70
Capabilities:
Initialize winsock library

Disassembly:
mov eax, 0x28
call fcn.1402aba50
sub rsp, rax
cmp dword [0x14046b780], 0
jne 0x14013fc2a
xor edx, edx
mov dword [0x14046b780], 1
mov r8d, 0x198
lea rcx, [0x14046b790]
call fcn.1402ae030
mov ecx, 0x202
lea rdx, [0x14046b790]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x14013fc2a
call fcn.1400f36b0
lea r8, str.BIO_sock_init
mov edx, 0x94
lea rcx, str.crypto_bio_bio_sock.c
call fcn.1400f37d0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.calling_wsastartup__
mov ecx, 2
mov edx, eax
call fcn.1400f38d0
call fcn.1400f36b0
lea r8, str.BIO_sock_init
mov edx, 0x96
lea rcx, str.crypto_bio_bio_sock.c
call fcn.1400f37d0
xor r8d, r8d
lea edx, [r8 + 0x7a]
lea ecx, [rdx - 0x5a]
call fcn.1400f38d0
mov eax, 0xffffffff
add rsp, 0x28
ret
mov eax, 1
add rsp, 0x28
ret

Function at 0x14013fc40
Capabilities:
Set socket configuration

Disassembly:
push rbx
mov eax, 0x20
call fcn.1402aba50
sub rsp, rax
mov dword [rsp + 0x30], edx
lea r8, [rsp + 0x30]
mov edx, 0x8004667e
movsxd rcx, ecx
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov ebx, eax
test eax, eax
jns 0x14013fca2
call fcn.1400f36b0
lea r8, str.BIO_socket_ioctl
mov edx, 0xd1
lea rcx, str.crypto_bio_bio_sock.c
call fcn.1400f37d0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.calling_ioctlsocket__
mov ecx, 2
mov edx, eax
call fcn.1400f38d0
xor eax, eax
test ebx, ebx
sete al
add rsp, 0x20
pop rbx
ret

Function at 0x14013fcb0
Capabilities:
Get socket status

Disassembly:
push rbx
push rsi
push rdi
mov eax, 0x260
call fcn.1402aba50
sub rsp, rax
mov rax, qword [0x140467f78]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov edi, ecx
mov rbx, r8
mov esi, edx
cmp ecx, 0x3f
ja 0x14013fd42
test rbx, rbx
jne 0x14013fcea
lea eax, [r8 + 1]
jmp 0x14013fd47
xor ecx, ecx
call fcn.1402b8bb4
mov rcx, rax
cmp rbx, rax
jge 0x14013fcfd
xor eax, eax
jmp 0x14013fd47
xor eax, eax
mov qword [rsp + 0x48], rdi
sub ebx, ecx
mov dword [rsp + 0x34], eax
test esi, esi
mov dword [rsp + 0x40], 1
lea r8, [rsp + 0x40]
mov dword [rsp + 0x30], ebx
cmovne r8, rax
lea rdx, [rsp + 0x40]
cmove rdx, rax
lea ecx, [rdi + 1]
lea rax, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
jmp 0x14013fd47
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1402ab320
add rsp, 0x260
pop rdi
pop rsi
pop rbx
ret