joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e2220
Capabilities:
Initialize winsock library

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x48
mov qword [rsp + 0x38], 0
mov rbx, rcx
mov rsi, rdx
test rcx, rcx
je 0x4e23a8
mov r12d, dword [0x00829738]
test r12d, r12d
je 0x4e22e0
lea rax, [rsp + 0x38]
mov r9d, 2
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x28], rax
mov rdx, rbx
mov dword [rsp + 0x20], 1
call sym.BIO_lookup
mov r12d, eax
test eax, eax
je 0x4e2380
mov rcx, qword [rsp + 0x38]
call sym.BIO_ADDRINFO_family
cmp eax, 2
je 0x4e23f0
call sym.ERR_new
lea r8, str.BIO_get_port
mov edx, 0x5a
xor r12d, r12d
lea rcx, [0x00796c40]
call sym.ERR_set_debug
xor r8d, r8d
mov edx, 0x8d
mov ecx, 0x20
call sym.ERR_set_error
mov rcx, qword [rsp + 0x38]
call sym.BIO_ADDRINFO_free
mov eax, r12d
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop r12
ret
lea rdx, [0x008295a0]
xor eax, eax
mov ecx, 0x33
mov dword [0x00829738], 1
mov rdi, rdx
rep stosq qword [rdi], rax
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4e2251
call sym.ERR_new
lea r8, str.BIO_sock_init
mov edx, 0x94
lea rcx, [0x00796c40]
call sym.ERR_set_debug
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.calling_wsastartup__
mov ecx, 2
mov edx, eax
call sym.ERR_set_error
call sym.ERR_new
lea r8, str.BIO_sock_init
mov edx, 0x96
lea rcx, [0x00796c40]
call sym.ERR_set_debug
xor r8d, r8d
mov edx, 0x7a
mov ecx, 0x20
call sym.ERR_set_error
jmp 0x4e2394
mov r8, rbx
lea rdx, [0x00796c7c]
mov ecx, 2
call sym.ERR_add_error_data
mov eax, r12d
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop r12
ret
call sym.ERR_new
lea r8, str.BIO_get_port
mov edx, 0x51
xor r12d, r12d
lea rcx, [0x00796c40]
call sym.ERR_set_debug
xor r8d, r8d
mov edx, 0x71
mov ecx, 0x20
call sym.ERR_set_error
mov eax, r12d
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop r12
ret
mov rcx, qword [rsp + 0x38]
mov r12d, 1
call sym.BIO_ADDRINFO_address
mov rcx, rax
call sym.BIO_ADDR_rawport
movzx ecx, ax
call qword [sym.imp.WS2_32.dll_ntohs]
mov word [rsi], ax
jmp 0x4e22c6

Function at 0x4e2490
Capabilities:
Initialize winsock library

Disassembly:
push rdi
sub rsp, 0x20
mov eax, dword [0x00829738]
test eax, eax
je 0x4e24b0
mov eax, 1
add rsp, 0x20
pop rdi
ret
lea rdx, [0x008295a0]
xor eax, eax
mov ecx, 0x33
mov dword [0x00829738], 1
mov rdi, rdx
rep stosq qword [rdi], rax
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4e249f
call sym.ERR_new
lea r8, str.BIO_sock_init
mov edx, 0x94
lea rcx, [0x00796c40]
call sym.ERR_set_debug
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.calling_wsastartup__
mov ecx, 2
mov edx, eax
call sym.ERR_set_error
call sym.ERR_new
lea r8, str.BIO_sock_init
mov edx, 0x96
lea rcx, [0x00796c40]
call sym.ERR_set_debug
xor r8d, r8d
mov edx, 0x7a
mov ecx, 0x20
call sym.ERR_set_error
mov eax, 0xffffffff
jmp 0x4e24a4
Function at 0x4e2580
Capabilities:
Set socket configuration

Disassembly:
push r12
sub rsp, 0x20
movsxd rcx, ecx
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov r12d, eax
test eax, eax
js 0x4e25a0
mov eax, r12d
add rsp, 0x20
pop r12
ret
call sym.ERR_new
lea r8, str.BIO_socket_ioctl
mov edx, 0xd1
lea rcx, [0x00796c40]
call sym.ERR_set_debug
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.calling_ioctlsocket__
mov ecx, 2
mov edx, eax
call sym.ERR_set_error
mov eax, r12d
add rsp, 0x20
pop r12
ret

Function at 0x4e25e0
Capabilities:
Initialize winsock library

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x58
mov r9d, 1
mov qword [rsp + 0x38], 0
mov ebx, edx
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
call sym.BIO_parse_hostserv
test eax, eax
je 0x4e27d0
mov eax, dword [0x00829738]
test eax, eax
je 0x4e2728
lea rax, [rsp + 0x48]
mov dword [rsp + 0x20], 1
mov rdx, qword [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x38]
mov r8d, 1
call sym.BIO_lookup
test eax, eax
je 0x4e26b0
mov r12d, 0xffffffff
mov rcx, qword [rsp + 0x48]
call sym.BIO_ADDRINFO_free
mov rcx, qword [rsp + 0x38]
mov r8d, 0xf4
lea rdx, [0x00796c40]
call sym.CRYPTO_free
mov rcx, qword [rsp + 0x40]
mov r8d, 0xf5
lea rdx, [0x00796c40]
call sym.CRYPTO_free
mov eax, r12d
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop r12
ret
mov rcx, qword [rsp + 0x48]
call sym.BIO_ADDRINFO_protocol
mov rcx, qword [rsp + 0x48]
mov esi, eax
call sym.BIO_ADDRINFO_socktype
mov rcx, qword [rsp + 0x48]
mov r12d, eax
call sym.BIO_ADDRINFO_family
mov edx, r12d
xor r9d, r9d
mov r8d, esi
mov ecx, eax
call sym.BIO_socket
mov r12d, eax
cmp eax, 0xffffffff
je 0x4e265f
mov rcx, qword [rsp + 0x48]
call sym.BIO_ADDRINFO_address
xor r8d, r8d
test ebx, ebx
mov ecx, r12d
setne r8b
mov rdx, rax
call sym.BIO_listen
test eax, eax
jne 0x4e2665
mov ecx, r12d
call sym.BIO_closesocket
jmp 0x4e265f
lea rdx, [0x008295a0]
xor eax, eax
mov ecx, 0x33
mov dword [0x00829738], 1
mov rdi, rdx
rep stosq qword [rdi], rax
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4e2631
call sym.ERR_new
mov edx, 0x94
lea r8, str.BIO_sock_init
lea rcx, [0x00796c40]
call sym.ERR_set_debug
mov r12d, 0xffffffff
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.calling_wsastartup__
mov ecx, 2
mov edx, eax
call sym.ERR_set_error
call sym.ERR_new
lea r8, str.BIO_sock_init
mov edx, 0x96
lea rcx, [0x00796c40]
call sym.ERR_set_debug
xor r8d, r8d
mov edx, 0x7a
mov ecx, 0x20
call sym.ERR_set_error
jmp 0x4e269d
mov r12d, 0xffffffff
jmp 0x4e269d

Function at 0x4e2a30
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
mov r8d, 1
mov dword [rsp + 0x48], edx
movsxd rcx, ecx
lea r9, [rsp + 0x48]
mov edx, 6
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
sete al
movzx eax, al
add rsp, 0x38
ret
Function at 0x4e2a70
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov dword [rsp + 0x2c], edx
movsxd rcx, ecx
lea r8, [rsp + 0x2c]
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov ebx, eax
test eax, eax
js 0x4e2aa0
xor eax, eax
test ebx, ebx
sete al
add rsp, 0x30
pop rbx
ret
call sym.ERR_new
lea r8, str.BIO_socket_ioctl
mov edx, 0xd1
lea rcx, [0x00796c40]
call sym.ERR_set_debug
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.calling_ioctlsocket__
mov ecx, 2
mov edx, eax
call sym.ERR_set_error
xor eax, eax
test ebx, ebx
sete al
add rsp, 0x30
pop rbx
ret

Function at 0x4e2af0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x30
mov ebx, ecx
test edx, edx
jne 0x4e2b40
mov rcx, qword [r8]
mov dword [rsp + 0x2c], 0x1c
call sym.BIO_ADDR_sockaddr_noconst
movsxd rcx, ebx
lea r8, [rsp + 0x2c]
mov rdx, rax
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x4e2b80
cmp dword [rsp + 0x2c], 0x1c
mov eax, 1
ja 0x4e2bf0
add rsp, 0x30
pop rbx
ret
call sym.ERR_new
lea r8, str.BIO_sock_info
mov edx, 0x17e
lea rcx, [0x00796c40]
call sym.ERR_set_debug
xor r8d, r8d
mov edx, 0x8c
mov ecx, 0x20
call sym.ERR_set_error
xor eax, eax
add rsp, 0x30
pop rbx
ret
call sym.ERR_new
lea r8, str.BIO_sock_info
mov edx, 0x172
lea rcx, [0x00796c40]
call sym.ERR_set_debug
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.calling_getsockname__
mov ecx, 2
mov edx, eax
call sym.ERR_set_error
call sym.ERR_new
lea r8, str.BIO_sock_info
mov edx, 0x174
lea rcx, [0x00796c40]
call sym.ERR_set_debug
xor r8d, r8d
mov edx, 0x84
mov ecx, 0x20
call sym.ERR_set_error
xor eax, eax
jmp 0x4e2b71
call sym.ERR_new
lea r8, str.BIO_sock_info
mov edx, 0x178
lea rcx, [0x00796c40]
call sym.ERR_set_debug
xor r8d, r8d
mov edx, 0x85
mov ecx, 0x20
call sym.ERR_set_error
xor eax, eax
jmp 0x4e2b71

Function at 0x4e2c30
Capabilities:
Get socket status

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x250
mov esi, ecx
mov edi, edx
mov rbx, r8
cmp ecx, 0x3f
ja 0x4e2cd0
mov eax, 1
test r8, r8
jne 0x4e2c60
add rsp, 0x250
pop rbx
pop rsi
pop rdi
ret
xor ecx, ecx
call qword [sym.imp.msvcrt.dll__time64]
mov rdx, rax
xor eax, eax
cmp rbx, rdx
jl 0x4e2c54
mov eax, esi
sub ebx, edx
mov dword [rsp + 0x40], 1
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x3c], 0
mov dword [rsp + 0x38], ebx
test edi, edi
je 0x4e2cc0
xor r8d, r8d
lea rdx, [rsp + 0x40]
lea rax, [rsp + 0x38]
lea ecx, [rsi + 1]
xor r9d, r9d
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
add rsp, 0x250
pop rbx
pop rsi
pop rdi
ret
lea r8, [rsp + 0x40]
xor edx, edx
jmp 0x4e2c9b
mov eax, 0xffffffff
jmp 0x4e2c54
Function at 0x4e2d90
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push r13
push r12
push rsi
push rbx
sub rsp, 0x48
movsxd r12, ecx
mov dword [rsp + 0x3c], 1
mov r13, rdx
mov esi, r8d
cmp r12d, 0xffffffff
je 0x4e2ee0
mov edx, r8d
mov ecx, r12d
shr edx, 3
and edx, 1
call sym.BIO_socket_nbio
test eax, eax
je 0x4e2ece
test sil, 4
jne 0x4e2e40
and esi, 0x10
je 0x4e2e02
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x3c]
mov edx, 6
mov rcx, r12
mov r8d, 1
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x4e2fa0
mov rcx, r13
call sym.BIO_ADDR_sockaddr_size
mov rcx, r13
mov ebx, eax
call sym.BIO_ADDR_sockaddr
mov rcx, r12
mov r8d, ebx
mov r12d, 1
mov rdx, rax
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x4e2f20
mov eax, r12d
add rsp, 0x48
pop rbx
pop rsi
pop r12
pop r13
ret
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x3c]
mov edx, 0xffff
mov rcx, r12
mov r8d, 8
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x4e2dd4
call sym.ERR_new
lea r8, str.BIO_connect
mov edx, 0x5e
lea rcx, str..._openssl_3.1.1_crypto_bio_bio_sock2.c
call sym.ERR_set_debug
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.calling_setsockopt__
mov ecx, 2
mov edx, eax
call sym.ERR_set_error
call sym.ERR_new
lea r8, str.BIO_connect
mov edx, 0x60
lea rcx, str..._openssl_3.1.1_crypto_bio_bio_sock2.c
call sym.ERR_set_debug
xor r8d, r8d
mov edx, 0x89
mov ecx, 0x20
call sym.ERR_set_error
xor r12d, r12d
mov eax, r12d
add rsp, 0x48
pop rbx
pop rsi
pop r12
pop r13
ret
call sym.ERR_new
lea r8, str.BIO_connect
mov edx, 0x54
xor r12d, r12d
lea rcx, str..._openssl_3.1.1_crypto_bio_bio_sock2.c
call sym.ERR_set_debug
xor r8d, r8d
mov edx, 0x87
mov ecx, 0x20
call sym.ERR_set_error
mov eax, r12d
add rsp, 0x48
pop rbx
pop rsi
pop r12
pop r13
ret
mov ecx, 0xffffffff
call sym.BIO_sock_should_retry
mov r12d, eax
test eax, eax
jne 0x4e2ece
call sym.ERR_new
lea r8, str.BIO_connect
mov edx, 0x72
lea rcx, str..._openssl_3.1.1_crypto_bio_bio_sock2.c
call sym.ERR_set_debug
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.calling_connect__
mov ecx, 2
mov edx, eax
call sym.ERR_set_error
call sym.ERR_new
lea r8, str.BIO_connect
mov edx, 0x74
lea rcx, str..._openssl_3.1.1_crypto_bio_bio_sock2.c
call sym.ERR_set_debug
xor r8d, r8d
mov edx, 0x67
mov ecx, 0x20
call sym.ERR_set_error
jmp 0x4e2e32
call sym.ERR_new
lea r8, str.BIO_connect
mov edx, 0x68
xor r12d, r12d
lea rcx, str..._openssl_3.1.1_crypto_bio_bio_sock2.c
call sym.ERR_set_debug
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.calling_setsockopt__
mov ecx, 2
mov edx, eax
call sym.ERR_set_error
call sym.ERR_new
lea r8, str.BIO_connect
mov edx, 0x6a
lea rcx, str..._openssl_3.1.1_crypto_bio_bio_sock2.c
call sym.ERR_set_debug
xor r8d, r8d
mov edx, 0x8a
mov ecx, 0x20
call sym.ERR_set_error
jmp 0x4e2e32
Function at 0x4e3b80
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, rdx
mov eax, dword [rbx + 0x28]
test eax, eax
je 0x4e3b97
test rdx, rdx
jne 0x4e3ba0
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov r9, qword [rbx + 0x40]
movsxd r8, r8d
mov edx, 1
call sym.fread
test eax, eax
jne 0x4e3b99
mov rcx, qword [rbx + 0x40]
call sym.ferror
test eax, eax
je 0x4e3b97
call sym.ERR_new
lea r8, str.file_read
mov edx, 0x94
lea rcx, str..._openssl_3.1.1_crypto_bio_bss_file.c
call sym.ERR_set_debug
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.calling_fread__
mov ecx, 2
mov edx, eax
call sym.ERR_set_error
call sym.ERR_new
lea r8, str.file_read
mov edx, 0x96
lea rcx, str..._openssl_3.1.1_crypto_bio_bss_file.c
call sym.ERR_set_debug
xor r8d, r8d
mov edx, 0x80002
mov ecx, 0x20
call sym.ERR_set_error
or eax, 0xffffffff
jmp 0x4e3b99

Function at 0x4e3c30
Capabilities:
Write file on windows

Disassembly:
push r12
sub rsp, 0x20
cmp byte [rdx], 0
mov r8, rcx
mov rcx, rdx
je 0x4e3ca8
mov rax, rdx
xor edx, edx
jmp 0x4e3c58
cmp edx, 0x80000000
je 0x4e3ca8
add rax, 1
add edx, 1
cmp byte [rax], 0
jne 0x4e3c50
and edx, 0x7fffffff
mov r12d, edx
mov eax, dword [r8 + 0x28]
test eax, eax
jne 0x4e3c88
xor r12d, r12d
mov eax, r12d
add rsp, 0x20
pop r12
ret
mov r9, qword [r8 + 0x40]
mov r8d, 1
call sym.fwrite
test eax, eax
je 0x4e3c75
mov eax, r12d
add rsp, 0x20
pop r12
ret
xor edx, edx
xor r12d, r12d
jmp 0x4e3c6d

Function at 0x4e3cb0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [rcx + 0x28]
mov r10, rdx
mov ebx, r8d
test eax, eax
je 0x4e3cc7
test rdx, rdx
jne 0x4e3cd0
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov r9, qword [rcx + 0x40]
movsxd rdx, r8d
mov rcx, r10
mov r8d, 1
call sym.fwrite
mov r8, rax
mov eax, ebx
test r8d, r8d
je 0x4e3cc7
add rsp, 0x20
pop rbx
ret
Function at 0x4e41c0
Capabilities:
Check if file exists

Disassembly:
push r13
push r12
push rsi
push rbx
sub rsp, 0x38
mov r12, rdx
mov rsi, rcx
call sym.openssl_fopen
mov edx, 0x62
mov rcx, r12
mov r13, rax
call sym.strchr
cmp rax, 1
sbb ebx, ebx
and ebx, 0x10
add ebx, 1
test r13, r13
je 0x4e4240
lea rcx, [0x00797060]
call sym.BIO_new
mov r12, rax
test rax, rax
je 0x4e42d0
xor edx, edx
mov rcx, rax
call sym.BIO_clear_flags
mov r9, r13
mov r8d, ebx
mov edx, 0x6a
mov rcx, r12
call sym.BIO_ctrl
mov rax, r12
add rsp, 0x38
pop rbx
pop rsi
pop r12
pop r13
ret
call sym.ERR_new
lea r8, str.BIO_new_file
mov edx, 0x43
lea rcx, str..._openssl_3.1.1_crypto_bio_bss_file.c
call sym.ERR_set_debug
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x20], r12
mov r9, rsi
lea r8, [0x00796f47]
mov edx, eax
mov ecx, 2
call sym.ERR_set_error
mov rbx, qword [sym.imp.msvcrt.dll__errno]
call rbx
cmp dword [rax], 2
je 0x4e4293
call rbx
cmp dword [rax], 6
jne 0x4e42e0
call sym.ERR_new
lea r8, str.BIO_new_file
mov edx, 0x4b
xor r12d, r12d
lea rcx, str..._openssl_3.1.1_crypto_bio_bss_file.c
call sym.ERR_set_debug
xor r8d, r8d
mov edx, pe_nt_image_headers64
mov ecx, 0x20
call sym.ERR_set_error
jmp 0x4e422b
mov rcx, r13
call sym.fclose
jmp 0x4e422b
call sym.ERR_new
lea r8, str.BIO_new_file
mov edx, 0x4d
xor r12d, r12d
lea rcx, str..._openssl_3.1.1_crypto_bio_bss_file.c
call sym.ERR_set_debug
xor r8d, r8d
mov edx, 0x80002
mov ecx, 0x20
call sym.ERR_set_error
jmp 0x4e422b

Function at 0x4e4520
Capabilities:
Send data
Send data on socket

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x20
mov r13, rcx
mov r12, rdx
mov ebx, r8d
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rdx, r12
movsxd rcx, dword [r13 + 0x38]
xor r9d, r9d
mov r8d, ebx
call qword [sym.imp.WS2_32.dll_send]
mov edx, 0xf
mov rcx, r13
mov r12d, eax
call sym.BIO_clear_flags
test r12d, r12d
jle 0x4e4570
mov eax, r12d
add rsp, 0x20
pop rbx
pop r12
pop r13
ret
lea eax, [r12 + 1]
cmp eax, 1
ja case.0x4e45be.104
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x8c
jg 0x4e45c0
cmp eax, 0x66
jg 0x4e45a8
cmp eax, 4
je case.0x4e45be.103
cmp eax, 0xb
jne case.0x4e45be.104
mov edx, 0xa
mov rcx, r13
call sym.BIO_set_flags
jmp case.0x4e45be.104
sub eax, 0x67
cmp eax, 0x25
ja case.0x4e45be.104
lea rdx, [0x007970c0]
movsxd rax, dword [rdx + rax*4]
add rax, rdx
jmp rax
cmp eax, 0x2733
jne case.0x4e45be.104
jmp case.0x4e45be.103
Function at 0x4e45d0
Capabilities:
Send data
Send data on socket

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x20
cmp byte [rdx], 0
mov r13, rcx
mov r12, rdx
je 0x4e46b0
mov rax, rdx
xor r8d, r8d
jmp 0x4e45fd
cmp r8d, 0x80000000
je 0x4e46b0
add rax, 1
add r8d, 1
cmp byte [rax], 0
jne 0x4e45f0
mov ebx, r8d
and ebx, 0x7fffffff
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rdx, r12
movsxd rcx, dword [r13 + 0x38]
xor r9d, r9d
mov r8d, ebx
call qword [sym.imp.WS2_32.dll_send]
mov edx, 0xf
mov rcx, r13
mov r12d, eax
call sym.BIO_clear_flags
test r12d, r12d
jle 0x4e4650
mov eax, r12d
add rsp, 0x20
pop rbx
pop r12
pop r13
ret
lea eax, [r12 + 1]
cmp eax, 1
ja case.0x4e469b.104
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x8c
jg 0x4e469d
cmp eax, 0x66
jg 0x4e4685
cmp eax, 4
je case.0x4e469b.103
cmp eax, 0xb
jne case.0x4e469b.104
mov edx, 0xa
mov rcx, r13
call sym.BIO_set_flags
jmp case.0x4e469b.104
sub eax, 0x67
cmp eax, 0x25
ja case.0x4e469b.104
lea rdx, [0x00797158]
movsxd rax, dword [rdx + rax*4]
add rax, rdx
jmp rax
cmp eax, 0x2733
jne case.0x4e469b.104
jmp case.0x4e469b.103
xor ebx, ebx
jmp 0x4e4613

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

Disassembly:
push r14
push r13
push r12
push rbx
sub rsp, 0x28
xor r12d, r12d
mov r14, rcx
mov r13, rdx
mov ebx, r8d
test rdx, rdx
je 0x4e470c
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
movsxd rcx, dword [r14 + 0x38]
xor r9d, r9d
mov rdx, r13
mov r8d, ebx
call qword [sym.imp.WS2_32.dll_recv]
mov edx, 0xf
mov rcx, r14
mov r12d, eax
call sym.BIO_clear_flags
test r12d, r12d
jle 0x4e4720
mov eax, r12d
add rsp, 0x28
pop rbx
pop r12
pop r13
pop r14
ret
lea eax, [r12 + 1]
cmp eax, 1
jbe 0x4e4750
test r12d, r12d
jne 0x4e470c
or dword [r14 + 0x30], 0x800
mov eax, r12d
add rsp, 0x28
pop rbx
pop r12
pop r13
pop r14
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x8c
jg 0x4e47a0
cmp eax, 0x66
jg 0x4e4780
cmp eax, 4
je case.0x4e4796.103
cmp eax, 0xb
jne case.0x4e4796.104
mov edx, 9
mov rcx, r14
call sym.BIO_set_flags
jmp 0x4e470c
sub eax, 0x67
cmp eax, 0x25
ja case.0x4e4796.104
lea rdx, [0x007971f0]
movsxd rax, dword [rdx + rax*4]
add rax, rdx
jmp rax
cmp eax, 0x2733
jne case.0x4e4796.104
jmp case.0x4e4796.103
Function at 0x4e7cb0
Capabilities:
Encode data using xor

Disassembly:
mov r11, rcx
mov rax, r8
mov rcx, rdx
mov r8d, dword [rdx + 8]
mov r10, r11
mov edx, dword [rax + 8]
sub r11, 1
not r10
and r11, r10
xor edx, r8d
shr r11, 0x3f
movsxd rdx, edx
lea r10, [r11 - 1]
and rdx, r10
xor r8d, edx
mov dword [rcx + 8], r8d
mov r8d, dword [rcx + 0x10]
xor dword [rax + 8], edx
mov edx, dword [rax + 0x10]
xor edx, r8d
movsxd rdx, edx
and rdx, r10
xor r8d, edx
mov dword [rcx + 0x10], r8d
mov r8d, dword [rcx + 0x14]
xor dword [rax + 0x10], edx
mov edx, dword [rax + 0x14]
xor edx, r8d
and rdx, r10
and edx, 4
xor r8d, edx
mov dword [rcx + 0x14], r8d
xor dword [rax + 0x14], edx
test r9d, r9d
jle 0x4e7dc9
mov r8, qword [rcx]
mov r11, qword [rax]
lea rax, [r8 + 0xf]
sub rax, r11
cmp rax, 0x1e
jbe 0x4e7dd0
lea eax, [r9 - 1]
cmp eax, 1
jbe 0x4e7dd0
mov eax, r9d
movq xmm2, r10
mov rcx, r8
mov rdx, r11
shr eax, 1
punpcklqdq xmm2, xmm2
shl rax, 4
add rax, r8
nop dword [rax]
movdqu xmm3, xmmword [rcx]
movdqu xmm0, xmmword [rdx]
add rcx, 0x10
add rdx, 0x10
pxor xmm0, xmm3
movdqa xmm1, xmm3
pand xmm0, xmm2
pxor xmm1, xmm0
movups xmmword [rcx - 0x10], xmm1
movdqu xmm4, xmmword [rdx - 0x10]
pxor xmm0, xmm4
movups xmmword [rdx - 0x10], xmm0
cmp rax, rcx
jne 0x4e7d68
mov eax, r9d
and eax, 0xfffffffe
and r9d, 1
je 0x4e7dc9
shl rax, 3
add r8, rax
add rax, r11
mov rcx, qword [r8]
mov rdx, qword [rax]
xor rdx, rcx
and rdx, r10
xor rcx, rdx
mov qword [r8], rcx
xor qword [rax], rdx
ret
mov r9d, r9d
xor ecx, ecx
nop dword [rax]
mov rdx, qword [r8 + rcx*8]
mov rax, qword [r11 + rcx*8]
xor rax, rdx
and rax, r10
xor rdx, rax
mov qword [r8 + rcx*8], rdx
xor qword [r11 + rcx*8], rax
add rcx, 1
cmp r9, rcx
jne 0x4e7dd8
ret
Function at 0x4f654d
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov qword [rsp + 8], rdi
mov qword [rsp + 0x10], rsi
mov rax, rsp
mov rdi, rcx
mov rsi, rdx
mov rdx, r8
mov rcx, r9
mov r8, qword [rsp + 0x28]

Function at 0x4f67ad
Capabilities:
Encode data using xor
Encrypt data using salsa20 or chacha

Disassembly:
mov qword [rsp + 8], rdi
mov qword [rsp + 0x10], rsi
mov rax, rsp
mov rdi, rcx
mov rsi, rdx
mov rdx, r8
mov rcx, r9
mov r8, qword [rsp + 0x28]

Function at 0x4f6b0d
Capabilities:
Encode data using xor
Encrypt data using salsa20 or chacha

Disassembly:
mov qword [rsp + 8], rdi
mov qword [rsp + 0x10], rsi
mov rax, rsp
mov rdi, rcx
mov rsi, rdx
mov rdx, r8
mov rcx, r9
mov r8, qword [rsp + 0x28]

Function at 0x4f75ad
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov qword [rsp + 8], rdi
mov qword [rsp + 0x10], rsi
mov rax, rsp
mov rdi, rcx
mov rsi, rdx
mov rdx, r8
mov rcx, r9
mov r8, qword [rsp + 0x28]

Function at 0x4f7d8d
Capabilities:
Encode data using xor
Encrypt data using salsa20 or chacha

Disassembly:
mov qword [rsp + 8], rdi
mov qword [rsp + 0x10], rsi
mov rax, rsp
mov rdi, rcx
mov rsi, rdx
mov rdx, r8
mov rcx, r9
mov r8, qword [rsp + 0x28]

Function at 0x4f898d
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov qword [rsp + 8], rdi
mov qword [rsp + 0x10], rsi
mov rax, rsp
mov rdi, rcx
mov rsi, rdx
mov rdx, r8
mov rcx, r9
mov r8, qword [rsp + 0x28]

Function at 0x4f8d6d
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov qword [rsp + 8], rdi
mov qword [rsp + 0x10], rsi
mov rax, rsp
mov rdi, rcx
mov rsi, rdx
mov rdx, r8
mov rcx, r9
mov r8, qword [rsp + 0x28]

Function at 0x4f906d
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov qword [rsp + 8], rdi
mov qword [rsp + 0x10], rsi
mov rax, rsp
mov rdi, rcx
mov rsi, rdx
mov rdx, r8
mov rcx, r9
mov r8, qword [rsp + 0x28]

Function at 0x4f9b0d
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov qword [rsp + 8], rdi
mov qword [rsp + 0x10], rsi
mov rax, rsp
mov rdi, rcx
mov rsi, rdx
mov rdx, r8
mov rcx, r9
mov r8, qword [rsp + 0x28]
Function at 0x51e230
Capabilities:
Encrypt data using curve25519

Disassembly:
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0x1c0
xor r13d, r13d
mov rbx, rdx
mov r14, r8
lea rdx, [0x007a26c0]
mov r8, r9
call sym.EVP_MD_fetch
mov r12, rax
test rax, rax
je 0x51e34d
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov rcx, r14
mov edx, 0x20
mov qword [rsp + 0x28], 0
lea r15, [rsp + 0xe0]
mov r8, r15
call sym.EVP_Digest
mov rcx, r12
mov r13d, eax
call sym.EVP_MD_free
test r13d, r13d
je 0x51e368
movzx eax, byte [rsp + 0xff]
lea r14, [rsp + 0x120]
lea r12, [rsp + 0x50]
mov rdx, r15
mov rcx, r14
lea r13, [rsp + 0x80]
and byte [rsp + 0xe0], 0xf8
and eax, 0x3f
or eax, 0x40
mov byte [rsp + 0xff], al
call sym.ge_scalarmult_base
lea rdx, [rsp + 0x170]
mov rcx, r12
call sym.fe_invert
mov rdx, r14
mov rcx, r13
mov r8, r12
call sym.fe_mul
lea r14, [rsp + 0xb0]
mov r8, r12
lea rdx, [rsp + 0x148]
mov rcx, r14
call sym.fe_mul
mov rdx, r14
mov rcx, rbx
call sym.fe_tobytes
mov rdx, r13
lea rcx, [rsp + 0x30]
mov r13d, 1
call sym.fe_tobytes
movzx eax, byte [rsp + 0x30]
mov edx, 0x40
mov rcx, r15
shl eax, 7
xor byte [rbx + 0x1f], al
call sym.OPENSSL_cleanse
mov eax, r13d
add rsp, 0x1c0
pop rbx
pop r12
pop r13
pop r14
pop r15
ret
mov edx, 0x40
mov rcx, r15
call sym.OPENSSL_cleanse
jmp 0x51e34d

Function at 0x51e3c0
Capabilities:
Encrypt data using curve25519

Disassembly:
push r14
push r13
push r12
push rbx
sub rsp, 0x178
movdqu xmm4, xmmword [rdx + 0x10]
movdqu xmm3, xmmword [rdx]
movaps xmmword [rsp + 0x30], xmm4
movzx eax, byte [rsp + 0x3f]
mov r12, rcx
lea r14, [rsp + 0x20]
lea rcx, [rsp + 0xd0]
mov rdx, r14
movaps xmmword [rsp + 0x20], xmm3
lea rbx, [rsp + 0xa0]
and eax, 0x7f
and byte [rsp + 0x20], 0xf8
lea r13, [rsp + 0x40]
or eax, 0x40
mov byte [rsp + 0x3f], al
call sym.ge_scalarmult_base
lea rdx, [rsp + 0x70]
mov rcx, rbx
movdqu xmm0, xmmword [rsp + 0xf8]
paddd xmm0, xmmword [rsp + 0x120]
movq xmm2, qword [rsp + 0x118]
movdqu xmm5, xmmword [rsp + 0xf8]
movdqu xmm3, xmmword [rsp + 0x108]
movaps xmmword [rsp + 0x40], xmm0
movdqu xmm0, xmmword [rsp + 0x108]
paddd xmm0, xmmword [rsp + 0x130]
movaps xmmword [rsp + 0x50], xmm0
movq xmm0, qword [rsp + 0x140]
movdqa xmm1, xmm0
psubd xmm0, xmm2
paddd xmm1, xmm2
movq qword [rsp + 0x90], xmm0
movq qword [rsp + 0x60], xmm1
movdqa xmm1, xmmword [rsp + 0x120]
psubd xmm1, xmm5
movaps xmmword [rsp + 0x70], xmm1
movdqa xmm1, xmmword [rsp + 0x130]
psubd xmm1, xmm3
movaps xmmword [rsp + 0x80], xmm1
call sym.fe_invert
mov r8, rbx
mov rdx, r13
mov rcx, r13
call sym.fe_mul
mov rdx, r13
mov rcx, r12
call sym.fe_tobytes
mov edx, 0x20
mov rcx, r14
call sym.OPENSSL_cleanse
nop
add rsp, 0x178
pop rbx
pop r12
pop r13
pop r14
ret