joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14019b340
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x1000]
mov eax, 0x1100
call fcn.140257850
sub rsp, rax
mov rax, qword [0x14037d7c0]
xor rax, rsp
mov qword [rbp + 0xff0], rax
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
mov rcx, rdx
call fcn.1400fa900
mov rdx, rbx
mov rcx, rdi
call fcn.1400faa80
test al, al
je 0x14019b3ad
mov byte [rdi + 0x29], 1
mov rax, qword [rbx]
lea rdx, str.Wait_for_data_on_socket_aborted_by_app
mov rcx, rbx
call qword [rax + 0x28]
xor al, al
jmp 0x14019b46f
cmp qword [rsi + 0x298], 0xffffffffffffffff
jne 0x14019b3d2
mov rax, qword [rbx]
lea rdx, str.Cannot_wait_for_socket_data:_not_connected__invalid_socket_
mov rcx, rbx
call qword [rax + 0x28]
mov byte [rdi + 0x2a], 1
xor al, al
jmp 0x14019b46f
xor r14d, r14d
mov qword [rsp + 0x30], r14
lea rcx, [rsp + 0x40]
call fcn.1400adcc0
lea r15, vtable.ckFdSet.0
mov qword [rsp + 0x40], r15
mov ebx, 0x3004bc8d
mov dword [rsp + 0x50], ebx
mov dword [rbp + 0xfe0], ebx
mov dword [rsp + 0x58], r14d
xorps xmm0, xmm0
movups xmmword [rbp + 0xf60], xmm0
movups xmmword [rbp + 0xf70], xmm0
movups xmmword [rbp + 0xf80], xmm0
movups xmmword [rbp + 0xf90], xmm0
movups xmmword [rbp + 0xfa0], xmm0
movups xmmword [rbp + 0xfb0], xmm0
movups xmmword [rbp + 0xfc0], xmm0
movups xmmword [rbp + 0xfd0], xmm0
movsxd r9, dword [rsi + 0x298]
test r9d, r9d
jns 0x14019b495
mov byte [rdi + 0x2a], 1
xor bl, bl
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x50], r14d
mov dword [rbp + 0xfe0], r14d
lea rcx, [rsp + 0x40]
call fcn.1400adda0
movzx eax, bl
mov rcx, qword [rbp + 0xff0]
xor rcx, rsp
call fcn.1402577a0
mov rbx, qword [rsp + 0x1148]
add rsp, 0x1100
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov qword [rsp + r14*8 + 0x60], r9
inc dword [rsp + 0x58]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x58]
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
js 0x14019b44f
jne 0x14019b4c7
mov byte [rdi + 0x28], 1
jmp 0x14019b44f
mov bl, 1
jmp 0x14019b451

Function at 0x14019b4d0
Capabilities:
Set socket configuration

Disassembly:
cmp edx, dword [rcx + 0xdc]
je 0x14019b4ea
mov dword [rcx + 0xdc], edx
test edx, edx
je 0x14019b4ea
mov rdx, r8
jmp fcn.140198910
ret

Function at 0x14019b4f0
Capabilities:
Set socket configuration

Disassembly:
cmp edx, dword [rcx + 0xd8]
je 0x14019b50a
mov dword [rcx + 0xd8], edx
test edx, edx
je 0x14019b50a
mov rdx, r8
jmp fcn.1401989c0
ret
Function at 0x14019bc50
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x14037d7c0]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp qword [rcx + 0x298], 0xffffffffffffffff
mov rbx, rcx
je 0x14019bce1
movzx eax, byte [r8 + 0x169]
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x34], 0
test dl, dl
je 0x14019bca9
test al, al
je 0x14019bca2
mov rax, qword [r8]
lea rdx, str.Turning_on_TCP_NODELAY.
mov rcx, r8
call qword [rax + 0x30]
lea r9, [rsp + 0x30]
jmp 0x14019bcc2
test al, al
je 0x14019bcbd
mov rax, qword [r8]
lea rdx, str.Turning_off_TCP_NODELAY.
mov rcx, r8
call qword [rax + 0x30]
lea r9, [rsp + 0x34]
mov rcx, qword [rbx + 0x298]
mov r8d, 1
mov dword [rsp + 0x20], 4
lea edx, [r8 + 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1402577a0
add rsp, 0x40
pop rbx
ret

Function at 0x14019bd00
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rbx, r8
mov rsi, rcx
cmp dword [rcx + 0xdc], edx
je 0x14019bd9b
cmp edx, 0x1000
jb 0x14019bd9b
mov eax, 0x800000
cmp edx, eax
cmovbe eax, edx
and eax, 0xfffff000
cmp qword [rcx + 0x298], 0xffffffffffffffff
mov dword [rcx + 0xdc], eax
je 0x14019bd9b
cmp byte [r8 + 0x169], 0
je 0x14019bd74
mov rax, qword [r8]
lea rdx, str.Setting_SO_RCVBUF_size
mov rcx, rbx
call qword [rax + 0x30]
mov r8d, dword [rsi + 0xdc]
lea rdx, str.recvBufSize
mov rcx, rbx
call fcn.1400d1420
mov rcx, qword [rsi + 0x298]
lea r9, [rsi + 0xdc]
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0x1002
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x14019bdb0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
cmp dword [rcx + 0xd0], 0x4901fb2a
mov rbx, r8
mov rdi, rcx
je 0x14019bded
mov rax, qword [r8]
lea rdx, str.Internal_error:_Socket_object_already_deleted.
mov rcx, rbx
call qword [rax + 0x28]
xor ecx, ecx
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp fcn.140086740
mov qword [rsp + 0x40], rsi
cmp dword [rcx + 0xd8], edx
je 0x14019be78
cmp edx, 0x1000
jb 0x14019be78
mov eax, 0x800000
cmp edx, eax
cmovbe eax, edx
and eax, 0xfffff000
cmp qword [rcx + 0x298], 0xffffffffffffffff
mov dword [rcx + 0xd8], eax
je 0x14019be78
cmp byte [r8 + 0x169], 0
je 0x14019be51
mov rax, qword [r8]
lea rdx, str.Setting_SO_SNDBUF_size
mov rcx, rbx
call qword [rax + 0x30]
mov r8d, dword [rdi + 0xd8]
lea rdx, str.sendBufSize
mov rcx, rbx
call fcn.1400d1420
mov rcx, qword [rdi + 0x298]
lea r9, [rdi + 0xd8]
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0x1001
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14019be90
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x14037d7c0]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, rdx
mov rbx, rcx
mov rcx, qword [rcx + 0x298]
cmp rcx, 0xffffffffffffffff
jne 0x14019bec3
mov byte [rbx + 0x290], 0
cmp byte [rbx + 0x290], 0
je 0x14019bf20
cmp byte [rbx + 0xd6], 0
jne 0x14019bf20
cmp byte [rbx + 0xd5], 0
jne 0x14019bf87
cmp byte [rbx + 0xd4], 0
jne 0x14019bf87
cmp byte [rdx + 0x173], 0
jne 0x14019bf87
mov r9d, 2
lea r8d, [r9 - 1]
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x14019bf3a
mov rdx, rdi
mov rcx, rbx
call fcn.14019b1b0
xor al, al
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1402577a0
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
cmp eax, 0xffffffff
jg 0x14019bf87
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x14019bf87
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], rax
lea r8, str.isConnected_recv_peek
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.1400d0c20
nop
mov rdx, rdi
xor ecx, ecx
call fcn.14019bab0
nop
lea rcx, [rsp + 0x20]
call fcn.1400d0d40
jmp 0x14019bf20
mov al, 1
jmp 0x14019bf22
Function at 0x14019d010
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x240
mov rax, qword [0x14037d7c0]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rdi, rcx
cmp byte [0x14037aff4], 0
jne 0x14019d042
mov al, 1
jmp 0x14019d1cd
xor edx, edx
mov r8d, 0x198
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memset
nop
mov ecx, 0x909
lea rdx, [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [rsp + 0x30], eax
cmp eax, 0x276c
jne 0x14019d132
mov ecx, 5
mov dword [rsp + 0x38], ecx
mov edx, 2
mov dword [rsp + 0x34], edx
cmp ecx, 1
jl 0x14019d0ea
sub edx, 1
mov dword [rsp + 0x34], edx
jns 0x14019d0a4
mov dword [rsp + 0x34], 9
dec ecx
mov dword [rsp + 0x38], ecx
mov dl, 9
test ecx, ecx
je 0x14019d0ea
movzx ebx, dl
shl bx, 8
movzx eax, cl
or bx, ax
xor edx, edx
mov r8d, 0x198
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x40]
movzx ecx, bx
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [rsp + 0x30], eax
cmp eax, 0x276c
jne 0x14019d0ea
mov ecx, dword [rsp + 0x38]
mov edx, dword [rsp + 0x34]
jmp 0x14019d086
test eax, eax
jne 0x14019d13a
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
lea r8, str.Using_ws2_32.dll_version__d__d
mov edx, 0x50
lea rcx, [rsp + 0x1e0]
call fcn.1400cf420
mov rax, qword [rdi]
lea r8, [rsp + 0x1e0]
lea rdx, str.ws2_32_DLL_Version
mov rcx, rdi
call qword [rax + 0x58]
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x14019d1bd
cmp eax, 0x276b
jne 0x14019d14a
lea rdx, str.The_underlying_network_subsystem_is_not_ready_for_network_communication.
jmp 0x14019d1b0
cmp eax, 0x276c
jne 0x14019d15a
lea rdx, str.The_version_of_Windows_Sockets_support_requested_is_not_provided_by_this_particular_Windows_Sockets_implementation.
jmp 0x14019d1b0
cmp eax, 0x2734
jne 0x14019d16a
lea rdx, str.A_blocking_Windows_Sockets_1.1_operation_is_in_progress.
jmp 0x14019d1b0
cmp eax, 0x2753
jne 0x14019d17a
lea rdx, str.Limit_on_the_number_of_tasks_supported_by_the_Windows_Sockets_implementation_has_been_reached.
jmp 0x14019d1b0
cmp eax, 0x271e
jne 0x14019d18a
lea rdx, str.The_lpWSAData_is_not_a_valid_pointer.
jmp 0x14019d1b0
lea r9, [rsp + 0x30]
lea r8, str.WSAStartup_error:_0x_x
mov edx, gethostbyname
lea rcx, [rsp + 0x1e0]
call fcn.1400cf330
lea rdx, [rsp + 0x1e0]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x28]
mov eax, dword [rsp + 0x30]
mov byte [0x14037aff4], 0
test eax, eax
sete al
jmp 0x14019d1cd
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1402577a0
mov rbx, qword [rsp + 0x258]
add rsp, 0x240
pop rdi
ret
Function at 0x1401c46b0
Capabilities:
Resolve dns

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x90
mov rax, qword [0x14037d7c0]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rdi, r9
mov rsi, r8
mov r14, rdx
mov rbx, rcx
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rax
lea r8, str.dns_gethostbyname
mov rdx, r9
lea rcx, [rsp + 0x40]
call fcn.1400d0c20
nop
xor ebp, ebp
mov dword [r14], ebp
mov rcx, rsi
call fcn.1400b1220
mov rax, qword [rdi]
mov r8, rbx
lea rdx, str.hostname
mov rcx, rdi
call qword [rax + 0x58]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
je 0x1401c47a3
mov rcx, qword [rax + 0x18]
mov rdx, qword [rcx]
test rdx, rdx
je 0x1401c473c
mov ebp, dword [rdx]
mov dword [r14], ebp
mov rax, qword [rax + 0x18]
mov r9, qword [rax]
lea rax, [r9 + 3]
lea rcx, [r9 + 2]
lea rdx, [r9 + 1]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rdx
lea r8, str._b._b._b._b
mov edx, 0x28
lea rcx, [rsp + 0x58]
call fcn.1400cf610
lea rdx, [rsp + 0x58]
mov rcx, rsi
call fcn.1400b7ff0
cmp byte [rdi + 0x169], 0
je 0x1401c479f
mov r8, rsi
lea rdx, [0x1402a4998]
mov rcx, rdi
call fcn.1400d17e0
mov bl, 1
jmp 0x1401c47a5
xor bl, bl
lea rcx, [rsp + 0x40]
call fcn.1400d0d40
movzx eax, bl
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1402577a0
add rsp, 0x90
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1401c6100
Capabilities:
Connect socket
Connect udp socket
Create udp socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x14037d7c0]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov esi, 2
mov qword [rcx + 8], 0
mov rdi, rcx
mov edx, esi
mov ecx, esi
xor r8d, r8d
mov rbx, r9
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rdi], rax
cmp rax, 0xffffffffffffffff
jne 0x1401c615b
mov rax, qword [rbx]
lea rdx, str.Failed_to_create_a_UDP_socket.
mov rcx, rbx
call qword [rax + 0x28]
xor al, al
jmp 0x1401c61ce
lea rcx, [rdi + 0x28]
mov qword [rsp + 0x28], 0
mov word [rsp + 0x20], si
call fcn.1400b45b0
mov rcx, rax
call qword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, 0x35
mov dword [rsp + 0x24], eax
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [rdi]
lea rdx, [rsp + 0x20]
mov r8d, reloc.WS2_32.dll_recv
mov word [rsp + 0x22], ax
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1401c61cc
mov rax, qword [rbx]
lea rdx, str.Failed_to_specify_a_UDP_socket_destination_address.
mov rcx, rbx
call qword [rax + 0x28]
mov rcx, qword [rdi]
call qword [sym.imp.WS2_32.dll_closesocket]
xor al, al
mov qword [rdi], 0xffffffffffffffff
jmp 0x1401c61ce
mov al, 1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1402577a0
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x1401c6a40
Capabilities:
Send data
Send data on socket

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14037d7c0]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rax, qword [rcx]
mov r10d, r8d
mov rdi, qword [rsp + 0x90]
mov rbp, rdx
mov rsi, rcx
cmp rax, 0xffffffffffffffff
jne 0x1401c6a88
mov rax, qword [rdi]
lea rdx, str.Cannot_send_to_invalid_UDP_socket
mov rcx, rdi
call qword [rax + 0x28]
xor al, al
jmp 0x1401c6b78
cmp dword [rcx + 0x10], 6
jl 0x1401c6aa5
mov rax, qword [rdi]
lea rdx, str.Too_many_retries_for_this_nameserver.
mov rcx, rdi
call qword [rax + 0x28]
xor al, al
jmp 0x1401c6b78
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov edx, r10d
mov ecx, eax
call fcn.1401c6fd0
test al, al
jne 0x1401c6ae2
lea rdx, str.Waited__but_cannot_send_on_UDP_socket_without_waiting_longer.
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x28]
mov rcx, qword [rsi]
call qword [sym.imp.WS2_32.dll_closesocket]
xor al, al
mov qword [rsi], 0xffffffffffffffff
jmp 0x1401c6b78
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x48], rbx
mov ecx, 2
call fcn.1400e8450
mov rcx, rbp
call fcn.1400c0bd0
movzx edx, byte [rsp + 0x30]
mov rcx, rbp
mov byte [rax], dl
movzx edx, byte [rsp + 0x31]
mov byte [rax + 1], dl
movsxd rdx, dword [rsi + 0x10]
movzx eax, byte [rsp + 0x30]
mov byte [rsi + rdx*2 + 0x14], al
movsxd rdx, dword [rsi + 0x10]
movzx eax, byte [rsp + 0x31]
mov byte [rsi + rdx*2 + 0x15], al
call fcn.1400c0f00
mov rcx, rbp
mov ebx, eax
call fcn.1400c0bd0
mov rcx, qword [rsi]
mov rdx, rax
xor r9d, r9d
mov r8d, ebx
call qword [sym.imp.WS2_32.dll_send]
mov rbx, qword [rsp + 0x48]
cmp eax, 0xffffffff
jne 0x1401c6b73
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8, rdi
xor edx, edx
mov ecx, eax
call fcn.14019b510
lea rdx, str.Failed_to_send_DNS_query_on_UDP_socket.
jmp 0x1401c6ac2
inc dword [rsi + 0x10]
mov al, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1402577a0
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x1401cdb40
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rdi, rcx
mov rbx, r8
mov rcx, rdx
mov rsi, rdx
call fcn.1400b1220
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x1401cdb92
add rcx, 0xc8
mov r9b, 1
mov qword [rsp + 0x20], rbx
mov r8, rsi
xor edx, edx
call fcn.140135d20
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x1401cdbb2
mov rdx, rsi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp fcn.1401dc630
mov rcx, qword [rdi + 0x20]
test rcx, rcx
je 0x1401cdbeb
add rcx, 0x550
mov qword [rsp + 0x20], rbx
mov r9b, 1
mov r8, rsi
xor edx, edx
call fcn.140135d20
mov dl, 0x2c
mov rcx, rsi
call fcn.1400af130
mov rcx, qword [rdi + 0x20]
add rcx, 0x570
jmp 0x1401cdb70
mov rcx, qword [rdi + 0x28]
test rcx, rcx
je 0x1401cdc2e
add rcx, 0xa0
call fcn.1400c0f00
mov rcx, qword [rdi + 0x28]
mov ebx, eax
add rcx, 0xa0
call fcn.1400c0bd0
mov rcx, rax
mov r8, rsi
mov edx, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp fcn.1400cd9a0
mov rbx, qword [rsp + 0x40]
xor al, al
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14020b790
Capabilities:
Encrypt data using curve25519

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0xd0]
sub rsp, 0x1d0
mov rax, qword [0x14037d7c0]
xor rax, rsp
mov qword [rbp + 0xc0], rax
movups xmm0, xmmword [rdx]
mov rbx, rcx
mov ecx, 2
movups xmm1, xmmword [rdx + 0x10]
movd eax, xmm0
movups xmmword [rbp + 0xb0], xmm1
and al, 0xf8
psrldq xmm1, 0xf
movups xmmword [rbp + 0xa0], xmm0
mov byte [rbp + 0xa0], al
movd eax, xmm1
and al, 0x3f
or al, 0x40
mov byte [rbp + 0xbf], al
add r8, 8
lea rax, [rsp + 0x40]
nop dword [rax + rax]
movd xmm1, dword [r8 - 8]
xorps xmm0, xmm0
movd xmm2, dword [r8 - 4]
lea rax, [rax + 0x40]
punpcklbw xmm1, xmm0
lea r8, [r8 + 0x10]
punpcklbw xmm2, xmm0
punpcklwd xmm1, xmm0
punpcklwd xmm2, xmm0
movdqu xmmword [rax - 0x60], xmm1
movd xmm1, dword [r8 - 0x10]
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
movdqu xmmword [rax - 0x50], xmm2
movd xmm2, dword [r8 - 0xc]
punpcklbw xmm2, xmm0
punpcklwd xmm2, xmm0
movdqu xmmword [rax - 0x40], xmm1
movdqu xmmword [rax - 0x30], xmm2
sub rcx, 1
jne 0x14020b800
lea rdx, [rbp + 0xa0]
lea rcx, [rsp + 0x20]
call fcn.14020b9b0
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x60]
call fcn.14020b3e0
lea r8, [rbp - 0x60]
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0x20]
call fcn.14020a900
lea rcx, [rbp + 0x20]
call fcn.14020a500
movzx eax, byte [rbp + 0x20]
mov byte [rbx], al
movzx eax, byte [rbp + 0x24]
mov byte [rbx + 1], al
movzx eax, byte [rbp + 0x28]
mov byte [rbx + 2], al
movzx eax, byte [rbp + 0x2c]
mov byte [rbx + 3], al
movzx eax, byte [rbp + 0x30]
mov byte [rbx + 4], al
movzx eax, byte [rbp + 0x34]
mov byte [rbx + 5], al
movzx eax, byte [rbp + 0x38]
mov byte [rbx + 6], al
movzx eax, byte [rbp + 0x3c]
mov byte [rbx + 7], al
movzx eax, byte [rbp + 0x40]
mov byte [rbx + 8], al
movzx eax, byte [rbp + 0x44]
mov byte [rbx + 9], al
movzx eax, byte [rbp + 0x48]
mov byte [rbx + 0xa], al
movzx eax, byte [rbp + 0x4c]
mov byte [rbx + 0xb], al
movzx eax, byte [rbp + 0x50]
mov byte [rbx + 0xc], al
movzx eax, byte [rbp + 0x54]
mov byte [rbx + 0xd], al
movzx eax, byte [rbp + 0x58]
mov byte [rbx + 0xe], al
movzx eax, byte [rbp + 0x5c]
mov byte [rbx + 0xf], al
movzx eax, byte [rbp + 0x60]
mov byte [rbx + 0x10], al
movzx eax, byte [rbp + 0x64]
mov byte [rbx + 0x11], al
movzx eax, byte [rbp + 0x68]
mov byte [rbx + 0x12], al
movzx eax, byte [rbp + 0x6c]
mov byte [rbx + 0x13], al
movzx eax, byte [rbp + 0x70]
mov byte [rbx + 0x14], al
movzx eax, byte [rbp + 0x74]
mov byte [rbx + 0x15], al
movzx eax, byte [rbp + 0x78]
mov byte [rbx + 0x16], al
movzx eax, byte [rbp + 0x7c]
mov byte [rbx + 0x17], al
movzx eax, byte [rbp + 0x80]
mov byte [rbx + 0x18], al
movzx eax, byte [rbp + 0x84]
mov byte [rbx + 0x19], al
movzx eax, byte [rbp + 0x88]
mov byte [rbx + 0x1a], al
movzx eax, byte [rbp + 0x8c]
mov byte [rbx + 0x1b], al
movzx eax, byte [rbp + 0x90]
mov byte [rbx + 0x1c], al
movzx eax, byte [rbp + 0x94]
mov byte [rbx + 0x1d], al
movzx eax, byte [rbp + 0x98]
mov byte [rbx + 0x1e], al
movzx eax, byte [rbp + 0x9c]
mov byte [rbx + 0x1f], al
xor eax, eax
mov rcx, qword [rbp + 0xc0]
xor rcx, rsp
call fcn.1402577a0
mov rbx, qword [rsp + 0x1e8]
add rsp, 0x1d0
pop rbp
ret
Function at 0x14020db70
Capabilities:
Encode data using xor

Disassembly:
mov r9, rdx
movzx r10d, r8b
neg r10d
lea rdx, [rcx + 0x7c]
lea rax, [r9 + 0x7c]
movd xmm2, r10d
pshufd xmm2, xmm2, 0
cmp rcx, rax
ja 0x14020dbb7
cmp rdx, r9
jb 0x14020dbb7
sub r9, rcx
mov r8d, 0x20
nop
mov edx, dword [rcx]
xor edx, dword [rcx + r9]
lea rcx, [rcx + 4]
and edx, r10d
xor dword [rcx - 4], edx
sub r8, 1
jne 0x14020dba0
ret
lea rax, [rcx + 0x10]
sub r9, rcx
mov ecx, 4
nop dword [rax]
nop word [rax + rax]
movdqu xmm0, xmmword [rax - 0x10]
movdqu xmm1, xmmword [r9 + rax - 0x10]
lea rax, [rax + 0x20]
pxor xmm1, xmm0
pand xmm1, xmm2
pxor xmm1, xmm0
movdqu xmmword [rax - 0x30], xmm1
movdqu xmm0, xmmword [rax - 0x20]
movdqu xmm1, xmmword [r9 + rax - 0x20]
pxor xmm1, xmm0
pand xmm1, xmm2
pxor xmm1, xmm0
movdqu xmmword [rax - 0x20], xmm1
sub rcx, 1
jne 0x14020dbd0
ret
Function at 0x140210660
Capabilities:
Encrypt data using curve25519

Disassembly:
push rbx
sub rsp, 0x2f0
mov rax, qword [0x14037d7c0]
xor rax, rsp
mov qword [rsp + 0x2e0], rax
mov rbx, rdx
test rcx, rcx
je 0x1402107be
test rdx, rdx
je 0x1402107be
test r8, r8
je 0x1402107be
movups xmm0, xmmword [rcx]
mov edx, 0x20
movups xmmword [r8], xmm0
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [r8 + 0x10], xmm1
lea r8, [rsp + 0x2a0]
call fcn.1401738b0
movzx eax, byte [rsp + 0x2bf]
and byte [rsp + 0x2a0], 0xf8
and al, 0x3f
or al, 0x40
mov byte [rsp + 0x2bf], al
xor ecx, ecx
lea rax, [rsp + 0x40]
nop dword [rax]
movd xmm1, dword [rsp + rcx + 0x2a0]
lea rax, [rax + 0x40]
movd xmm2, dword [rsp + rcx + 0x2a4]
xorps xmm0, xmm0
punpcklbw xmm1, xmm0
punpcklbw xmm2, xmm0
punpcklwd xmm1, xmm0
movdqu xmmword [rax - 0x60], xmm1
movd xmm1, dword [rsp + rcx + 0x2a8]
punpcklwd xmm2, xmm0
movdqu xmmword [rax - 0x50], xmm2
movd xmm2, dword [rsp + rcx + 0x2ac]
add rcx, 0x10
punpcklbw xmm1, xmm0
punpcklbw xmm2, xmm0
punpcklwd xmm1, xmm0
punpcklwd xmm2, xmm0
movdqu xmmword [rax - 0x40], xmm1
movdqu xmmword [rax - 0x30], xmm2
cmp rcx, 0x20
jl 0x1402106e0
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x220]
movups xmmword [rsp + 0xa0], xmm0
movups xmmword [rsp + 0xb0], xmm0
movups xmmword [rsp + 0xc0], xmm0
movups xmmword [rsp + 0xd0], xmm0
movups xmmword [rsp + 0xe0], xmm0
movups xmmword [rsp + 0xf0], xmm0
movups xmmword [rsp + 0x100], xmm0
movups xmmword [rsp + 0x110], xmm0
call fcn.14020c270
lea rdx, [rsp + 0x220]
lea rcx, [rsp + 0x20]
call fcn.14020ff40
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14020fd10
mov al, 1
jmp 0x1402107c0
xor al, al
mov rcx, qword [rsp + 0x2e0]
xor rcx, rsp
call fcn.1402577a0
add rsp, 0x2f0
pop rbx
ret
Function at 0x1402168f0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov r11, rdx
mov edi, r9d
mov r9d, dword [rsp + 0x30]
xor edx, edx
mov eax, r9d
mov rbx, r8
shr eax, 8
mov r8d, edi
movzx r10d, al
movzx eax, r9b
shl eax, 8
or r10d, eax
mov qword [r11 + 0x30], rdx
shl r10d, 8
mov eax, r9d
shr eax, 0x10
movzx ecx, al
or r10d, ecx
shr r9d, 0x18
shl r10d, 8
mov rcx, r11
or r10d, r9d
mov dword [r11 + 0x38], edx
mov qword [r11 + 0xb8], rdx
mov rdx, rbx
mov dword [r11 + 0x3c], r10d
mov dword [r11 + 0xc0], r10d
mov dword [r11 + 0x40], 0x40
mov dword [r11 + 0xc4], 0x40
mov dword [r11 + 0xb4], 1
mov rbx, qword [rsp + 0x10]
pop rdi
jmp fcn.140216520
Function at 0x140216990
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov r10, rcx
mov r9, qword [str.expand_32_byte_k]
movzx eax, byte [r9 + 2]
movzx r8d, byte [r9 + 3]
shl r8d, 8
or r8d, eax
movzx eax, byte [r9 + 1]
shl r8d, 8
or r8d, eax
movzx eax, byte [r9]
shl r8d, 8
or r8d, eax
mov dword [rcx], r8d
movzx eax, byte [r9 + 6]
movzx ecx, byte [r9 + 7]
shl ecx, 8
or ecx, eax
movzx eax, byte [r9 + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [r9 + 4]
shl ecx, 8
or ecx, eax
mov dword [r10 + 4], ecx
movzx eax, byte [r9 + 0xa]
movzx ecx, byte [r9 + 0xb]
shl ecx, 8
or ecx, eax
movzx eax, byte [r9 + 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [r9 + 8]
shl ecx, 8
or ecx, eax
mov dword [r10 + 8], ecx
movzx eax, byte [r9 + 0xe]
movzx ecx, byte [r9 + 0xf]
shl ecx, 8
or ecx, eax
movzx eax, byte [r9 + 0xd]
shl ecx, 8
or ecx, eax
movzx eax, byte [r9 + 0xc]
shl ecx, 8
or ecx, eax
mov dword [r10 + 0xc], ecx
movzx eax, byte [rdx + 2]
movzx ecx, byte [rdx + 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx]
shl ecx, 8
or ecx, eax
mov dword [r10 + 0x10], ecx
movzx eax, byte [rdx + 6]
movzx ecx, byte [rdx + 7]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 4]
shl ecx, 8
or ecx, eax
mov dword [r10 + 0x14], ecx
movzx eax, byte [rdx + 0xa]
movzx ecx, byte [rdx + 0xb]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 8]
shl ecx, 8
or ecx, eax
mov dword [r10 + 0x18], ecx
movzx ecx, byte [rdx + 0xf]
shl ecx, 8
movzx eax, byte [rdx + 0xe]
or ecx, eax
movzx eax, byte [rdx + 0xd]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0xc]
shl ecx, 8
or ecx, eax
mov dword [r10 + 0x1c], ecx
movzx eax, byte [rdx + 0x12]
movzx ecx, byte [rdx + 0x13]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x11]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x10]
shl ecx, 8
or ecx, eax
mov dword [r10 + 0x20], ecx
movzx eax, byte [rdx + 0x16]
movzx ecx, byte [rdx + 0x17]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x15]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x14]
shl ecx, 8
or ecx, eax
mov dword [r10 + 0x24], ecx
movzx eax, byte [rdx + 0x1a]
movzx ecx, byte [rdx + 0x1b]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x19]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x18]
shl ecx, 8
or ecx, eax
mov dword [r10 + 0x28], ecx
movzx eax, byte [rdx + 0x1e]
movzx ecx, byte [rdx + 0x1f]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x1d]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x1c]
shl ecx, 8
or ecx, eax
mov dword [r10 + 0x40], 0x40
mov dword [r10 + 0x2c], ecx
ret