joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14017adf0
Capabilities:
Connect socket
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
mov eax, gethostbyaddr
call fcn.1402d2bf0
sub rsp, rax
movsxd rbx, ecx
mov edi, r8d
mov dword [rsp + 0x40], 1
mov rbp, rdx
cmp ebx, 0xffffffff
jne 0x14017ae5b
call fcn.1401263b0
lea r8, str.BIO_connect
lea edx, [rbx + 0x55]
lea rcx, str.crypto_bio_bio_sock2.c
call fcn.1401264d0
xor r8d, r8d
lea ecx, [rbx + 0x21]
mov edx, 0x87
call fcn.1401265d0
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov edx, edi
mov qword [rsp + 0x48], rsi
shr edx, 3
mov ecx, ebx
and edx, 1
call fcn.14017aa40
test eax, eax
je 0x14017af0e
mov rsi, rbx
test dil, 4
je 0x14017af25
lea r9, [rsp + 0x40]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 8
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x14017af25
call fcn.1401263b0
lea r8, str.BIO_connect
mov edx, 0x5e
lea rcx, str.crypto_bio_bio_sock2.c
call fcn.1401264d0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.calling_setsockopt__
mov ecx, 2
mov edx, eax
call fcn.1401265d0
call fcn.1401263b0
lea r8, str.BIO_connect
mov edx, 0x60
lea rcx, str.crypto_bio_bio_sock2.c
call fcn.1401264d0
xor r8d, r8d
mov edx, 0x89
mov ecx, 0x20
call fcn.1401265d0
xor eax, eax
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
test dil, 0x10
je 0x14017afb2
mov edx, 6
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x40]
mov rcx, rsi
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x14017afb2
call fcn.1401263b0
lea r8, str.BIO_connect
mov edx, 0x68
lea rcx, str.crypto_bio_bio_sock2.c
call fcn.1401264d0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.calling_setsockopt__
mov ecx, 2
mov edx, eax
call fcn.1401265d0
call fcn.1401263b0
lea r8, str.BIO_connect
mov edx, 0x6a
lea rcx, str.crypto_bio_bio_sock2.c
call fcn.1401264d0
xor r8d, r8d
mov edx, 0x8a
jmp 0x14017af04
mov rcx, rbp
call fcn.140169fc0
mov rcx, rbp
mov ebx, eax
call fcn.14007c250
mov rdx, rax
mov r8d, ebx
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x14017b046
mov ecx, eax
call fcn.140124b90
test eax, eax
jne 0x14017af0e
call fcn.1401263b0
lea r8, str.BIO_connect
mov edx, WSACleanup
lea rcx, str.crypto_bio_bio_sock2.c
call fcn.1401264d0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.calling_connect__
mov ecx, 2
mov edx, eax
call fcn.1401265d0
call fcn.1401263b0
lea r8, str.BIO_connect
mov edx, reloc.WS2_32.dll_WSACleanup
lea rcx, str.crypto_bio_bio_sock2.c
call fcn.1401264d0
xor r8d, r8d
lea edx, [r8 + 0x67]
jmp 0x14017af04
mov eax, 1
jmp 0x14017af10
Function at 0x14019af90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
xor r10d, r10d
movsxd rbx, r8d
mov r11, rdx
mov rdi, rcx
test r8d, r8d
jle 0x14019afcf
mov r9, rdx
mov rdx, rcx
sub rdx, r9
movzx eax, byte [r9]
cmp byte [rdx + r9], al
jne 0x14019afcf
inc r9
inc r10d
mov rax, r9
sub rax, r11
cmp rax, rbx
jl 0x14019afb4
lea edx, [r8 - 1]
movsxd rax, edx
test edx, edx
js 0x14019affa
mov r8, rdi
lea rcx, [rax + r11]
sub r8, r11
cmp byte [rcx + r8], 0
jne 0x14019affa
cmp byte [rcx], 0xff
jne 0x14019affa
dec edx
dec rcx
cmp rcx, r11
jns 0x14019afe4
cmp r10d, edx
jl case.0x14019b053.2
jle 0x14019b018
lea eax, [r10*8]
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
ret
movsxd rax, r10d
movzx r8d, byte [rax + r11]
movzx r9d, byte [rax + rdi]
movzx edx, r8b
xor dl, r9b
movzx eax, dl
dec eax
cmp eax, 0x7e
ja case.0x14019b053.2
lea r11, [0x140000000]
cdqe
movzx eax, byte [r11 + rax + 0x19b0c8]
mov ecx, dword [r11 + rax*4 + 0x19b0a8]
add rcx, r11
jmp rcx
mov eax, 7
jmp 0x14019b084
mov eax, 6
jmp 0x14019b084
mov eax, 5
jmp 0x14019b084
mov eax, 4
jmp 0x14019b084
mov eax, 3
jmp 0x14019b084
mov eax, 2
jmp 0x14019b084
mov eax, 1
test dl, r9b
jne case.0x14019b053.2
and r8b, dl
lea eax, [rax + r10*8]
cmp r8b, dl
je 0x14019b09a
mov eax, 0xffffffff
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
ret
Function at 0x14019be30
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x28
call fcn.1402d2bf0
sub rsp, rax
mov r10, rcx
test r9, r9
jne 0x14019be7a
call fcn.1401263b0
lea r8, str.c2i_ibuf
mov edx, 0xa0
lea rcx, str.crypto_asn1_a_int.c
call fcn.1401264d0
xor r8d, r8d
mov edx, 0xde
lea ecx, [r8 + 0xd]
call fcn.1401265d0
xor eax, eax
add rsp, 0x28
ret
movzx r11d, byte [r8]
and r11d, 0x80
test rdx, rdx
je 0x14019be8d
mov dword [rdx], r11d
cmp r9, 1
jne 0x14019beaf
test r10, r10
je 0x14019bea5
movzx eax, byte [r8]
test r11d, r11d
je 0x14019bea3
neg al
mov byte [rcx], al
mov eax, 1
add rsp, 0x28
ret
movzx ecx, byte [r8]
test cl, cl
jne 0x14019bec1
mov eax, 1
jmp 0x14019bf7a
xor eax, eax
cmp cl, 0xff
jne 0x14019bfbf
xor edx, edx
lea rcx, [r9 - 1]
mov eax, 1
cmp r9, rax
jbe 0x14019bf6f
cmp rcx, 8
jb 0x14019bf60
and ecx, 7
mov rdx, r9
sub rdx, rcx
xorps xmm2, xmm2
xorps xmm3, xmm3
nop word [rax + rax]
movd xmm1, dword [rax + r8]
xorps xmm0, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
por xmm2, xmm1
movd xmm1, dword [rax + r8 + 4]
punpcklbw xmm1, xmm0
add rax, 8
punpcklwd xmm1, xmm0
por xmm1, xmm3
movdqa xmm3, xmm1
cmp rax, rdx
jb 0x14019bf00
por xmm2, xmm1
movdqa xmm0, xmm2
psrldq xmm0, 8
por xmm2, xmm0
movdqa xmm0, xmm2
psrldq xmm0, 4
por xmm2, xmm0
movd edx, xmm2
cmp rax, r9
jae 0x14019bf6f
nop dword [rax]
movzx ecx, byte [rax + r8]
inc rax
or edx, ecx
cmp rax, r9
jb 0x14019bf60
xor eax, eax
test edx, edx
setne al
test edx, edx
je 0x14019bfbf
movzx ecx, byte [r8 + 1]
and ecx, 0x80
cmp r11d, ecx
jne 0x14019bfbf
call fcn.1401263b0
lea r8, str.c2i_ibuf
mov edx, 0xc1
lea rcx, str.crypto_asn1_a_int.c
call fcn.1401264d0
xor r8d, r8d
mov edx, 0xdd
lea ecx, [r8 + 0xd]
call fcn.1401265d0
xor eax, eax
add rsp, 0x28
ret
mov qword [rsp + 0x20], rbx
mov rbx, r9
sub rbx, rax
test r10, r10
je 0x14019c00d
neg r11d
sbb r11d, r11d
movzx r11d, r11b
mov edx, r11d
and edx, 1
test rbx, rbx
je 0x14019c00d
add r9, r8
mov r8, rbx
nop word [rax + rax]
movzx ecx, byte [r9 - 1]
lea r9, [r9 - 1]
dec r8
xor ecx, r11d
add edx, ecx
mov byte [r8 + r10], dl
shr edx, 8
test r8, r8
jne 0x14019bff0
mov rax, rbx
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
ret
Function at 0x14019c020
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
mov r10, rdx
xor r11b, r11b
xor edx, edx
mov rdi, r9
mov rbx, rcx
test rcx, rcx
je 0x14019c134
test r10, r10
je 0x14019c134
movzx eax, byte [rcx]
test r8d, r8d
jne 0x14019c069
cmp al, 0x7f
jbe 0x14019c12d
mov edx, 1
mov eax, edx
add rax, r10
jmp 0x14019c13c
mov r11b, 0xff
cmp al, 0x80
jbe 0x14019c07f
mov edx, 1
mov eax, edx
add rax, r10
jmp 0x14019c13c
jne 0x14019c12d
mov eax, 1
lea rcx, [r10 - 1]
cmp r10, rax
jbe 0x14019c11e
cmp rcx, 8
jb 0x14019c110
and ecx, 7
mov rdx, r10
sub rdx, rcx
xorps xmm3, xmm3
xorps xmm2, xmm2
nop dword [rax]
movd xmm1, dword [rax + rbx]
xorps xmm0, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
por xmm3, xmm1
movd xmm1, dword [rax + rbx + 4]
punpcklbw xmm1, xmm0
add rax, 8
punpcklwd xmm1, xmm0
por xmm2, xmm1
cmp rax, rdx
jb 0x14019c0b0
por xmm2, xmm3
movdqa xmm0, xmm2
psrldq xmm0, 8
por xmm2, xmm0
movdqa xmm0, xmm2
psrldq xmm0, 4
por xmm2, xmm0
movd edx, xmm2
cmp rax, r10
jae 0x14019c11e
nop word [rax + rax]
movzx ecx, byte [rax + rbx]
inc rax
or edx, ecx
cmp rax, r10
jb 0x14019c110
neg edx
sbb r11b, r11b
movzx r11d, r11b
mov edx, r11d
and edx, 1
mov eax, edx
add rax, r10
jmp 0x14019c13c
mov eax, 1
mov r10, rdx
test rdi, rdi
je 0x14019c195
mov rcx, qword [r9]
test rcx, rcx
je 0x14019c195
mov edx, edx
movzx r8d, r11b
add rdx, rcx
and r8d, 1
mov byte [rcx], r11b
test r10, r10
je 0x14019c192
lea r9, [r10 + rbx]
mov rbx, r10
sub rbx, r10
add rbx, rdx
nop dword [rax + rax]
movzx edx, byte [r9 - 1]
lea r9, [r9 - 1]
dec r10
movzx ecx, r11b
xor edx, ecx
add r8d, edx
mov byte [rbx + r10], r8b
shr r8d, 8
test r10, r10
jne 0x14019c170
add qword [rdi], rax
mov rbx, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret

Function at 0x14019c380
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x28
call fcn.1402d2bf0
sub rsp, rax
mov r8d, dword [rcx + 4]
mov r9, rdx
movsxd rdx, dword [rcx]
and r8d, 0x100
mov rcx, qword [rcx + 8]
add rsp, 0x28
jmp fcn.14019c020
Function at 0x1401c7240
Capabilities:
Hash data using sha1

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, reloc.WS2_32.dll_WSASetLastError
call fcn.1402d2bf0
sub rsp, rax
mov rax, qword [0x1403bf008]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, r9
mov rbx, rcx
cmp edx, 0x1d
je 0x1401c7277
mov eax, 0xfffffffe
jmp 0x1401c7397
test rbx, rbx
je 0x1401c7395
cmp r8d, 0x30
jne 0x1401c7395
mov r8d, gethostbyaddr
mov rdx, rdi
call fcn.1401c7120
test eax, eax
jle 0x1401c7395
movdqa xmm0, xmmword [str.666666666666666600]
lea rdx, [rsp + 0x20]
mov r8d, 0x28
movq qword [rsp + 0x40], xmm0
mov rcx, rbx
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
call fcn.1401c7120
test eax, eax
je 0x1401c7395
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.1401c6f20
test eax, eax
je 0x1401c7395
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx + 0x14], xmm0
mov rdx, rdi
mov rcx, rbx
movups xmmword [rbx + 0x24], xmm0
lea r8d, [rax + 0x30]
movups xmmword [rbx + 0x34], xmm0
movups xmmword [rbx + 0x44], xmm0
mov qword [rbx + 0x54], rax
mov dword [rbx + 0x5c], eax
mov dword [rbx], 0x67452301
mov dword [rbx + 4], 0xefcdab89
mov dword [rbx + 8], 0x98badcfe
mov dword [rbx + 0xc], 0x10325476
mov dword [rbx + 0x10], 0xc3d2e1f0
call fcn.1401c7120
test eax, eax
jle 0x1401c7395
movdqa xmm0, xmmword [0x140309b10]
lea rdx, [rsp + 0x20]
mov r8d, 0x28
movq qword [rsp + 0x40], xmm0
mov rcx, rbx
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
call fcn.1401c7120
test eax, eax
je 0x1401c7395
mov r8d, setsockopt
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.1401c7120
test eax, eax
je 0x1401c7395
mov edx, setsockopt
lea rcx, [rsp + 0x48]
call fcn.140001240
mov eax, 1
jmp 0x1401c7397
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400adbc0
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
Function at 0x1401d79a0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push r13
push r14
mov eax, 0x40
call fcn.1402d2bf0
sub rsp, rax
mov rsi, qword [rcx + 0x70]
mov rbx, r8
mov r8d, dword [rsi + 0x70]
lea r13, [rsi + 0x70]
mov qword [rsp + 0x38], r13
mov rbp, r9
mov r14, rdx
test r8d, r8d
je 0x1401d7a26
test r9, r9
je 0x1401d7a02
nop dword [rax]
cmp r8d, 0x40
jae 0x1401d7a02
mov eax, r8d
inc r8d
movzx ecx, byte [rax + rsi + 0x30]
xor cl, byte [rbx]
inc rbx
mov byte [r14], cl
inc r14
sub rbp, 1
jne 0x1401d79e0
mov dword [r13], r8d
test rbp, rbp
je 0x1401d7b59
cmp r8d, 0x40
jne 0x1401d7a26
mov dword [r13], 0
add dword [rsi + 0x20], 1
jne 0x1401d7a26
inc dword [rsi + 0x24]
mov ecx, dword [rsi + 0x20]
lea rax, [rsi + 0x20]
mov qword [rsp + 0x80], r12
mov r12d, ebp
and r12d, 0x3f
mov qword [rsp + 0x88], r15
mov r15d, r12d
sub rbp, r15
mov dword [rsp + 0x30], r12d
cmp rbp, 0x40
jb 0x1401d7ae6
mov qword [rsp + 0x78], rdi
lea r13, [rsi + 0x20]
mov r12d, 0x10000000
mov r15d, ecx
nop dword [rax + rax]
mov rdx, rbp
mov qword [rsp + 0x20], r13
shr rdx, 6
mov r9, rsi
cmp rdx, r12
cmova rdx, r12
mov rdi, rdx
lea eax, [rdx + r15]
xor r15d, r15d
mov ecx, eax
cmp rcx, rdx
cmovae r15d, eax
sub rdi, rcx
cmp rcx, rdx
mov rcx, r14
cmovae rdi, rdx
mov rdx, rbx
shl rdi, 6
mov r8, rdi
call fcn.14006e700
sub rbp, rdi
mov dword [r13], r15d
add rbx, rdi
add r14, rdi
test r15d, r15d
jne 0x1401d7aca
inc dword [rsi + 0x24]
cmp rbp, 0x40
jae 0x1401d7a70
mov r12d, dword [rsp + 0x30]
lea rax, [rsi + 0x20]
mov r13, qword [rsp + 0x38]
mov r15d, r12d
mov rdi, qword [rsp + 0x78]
test r12d, r12d
je 0x1401d7b49
lea rcx, [rsi + 0x30]
mov qword [rsp + 0x20], rax
xorps xmm0, xmm0
mov r9, rsi
movups xmmword [rcx], xmm0
mov r8d, 0x40
mov rdx, rcx
movups xmmword [rcx + 0x10], xmm0
movups xmmword [rcx + 0x20], xmm0
movups xmmword [rcx + 0x30], xmm0
call fcn.14006e700
test r12d, r12d
je 0x1401d7b45
sub rsi, rbx
sub r14, rbx
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rsi + rbx + 0x30]
xor al, byte [rbx]
mov byte [r14 + rbx], al
lea rbx, [rbx + 1]
sub r15, 1
jne 0x1401d7b30
mov dword [r13], r12d
mov r12, qword [rsp + 0x80]
mov r15, qword [rsp + 0x88]
mov eax, 1
add rsp, 0x40
pop r14
pop r13
pop rsi
pop rbp
pop rbx
ret
Function at 0x1401db390
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], r9
push rbx
push rbp
push rsi
push rdi
push r13
push r14
push r15
mov eax, 0x40
call fcn.1402d2bf0
sub rsp, rax
mov rbx, r8
mov r14, rdx
mov r8, qword [rsp + 0xb0]
mov rbp, rcx
mov edi, dword [r8]
mov dword [rsp + 0x30], edi
test edi, edi
je 0x1401db3f5
mov rdx, qword [rsp + 0xa8]
test rbx, rbx
je 0x1401db3f1
mov eax, edi
dec rbx
movzx ecx, byte [rax + rdx]
xor cl, byte [rbp]
inc rbp
mov byte [r14], cl
inc r14
inc edi
and edi, 0xf
jne 0x1401db3d0
mov dword [rsp + 0x30], edi
mov rax, qword [rsp + 0xa0]
mov esi, 1
mov ecx, dword [rax + 0xc]
lea r15, [rax + 0xc]
mov r10, qword [rsp + 0xb8]
mov qword [rsp + 0x80], r12
lea r13d, [rsi + 0xb]
bswap ecx
mov dword [rsp + 0x90], ecx
cmp rbx, 0x10
jb 0x1401db503
mov rdi, qword [rsp + 0xa0]
mov eax, 0x10000000
nop dword [rax]
mov rdx, rbx
mov qword [rsp + 0x20], rdi
shr rdx, 4
cmp rdx, rax
cmova rdx, rax
add ecx, edx
mov r12, rdx
mov eax, ecx
sub r12, rax
cmp rax, rdx
cmovae r12, rdx
xor r8d, r8d
cmp rax, rdx
mov rdx, r14
cmovae r8d, ecx
mov rcx, rbp
mov dword [rsp + 0x90], r8d
mov r8, r12
call r10
mov ecx, dword [rsp + 0x90]
mov eax, ecx
bswap eax
mov dword [r15], eax
test ecx, ecx
jne 0x1401db4bc
mov r8d, r13d
mov eax, esi
mov rdx, r15
nop dword [rax]
movzx ecx, byte [rdx - 1]
lea rdx, [rdx - 1]
add eax, ecx
mov byte [rdx], al
shr eax, 8
add r8d, 0xffffffff
jne 0x1401db4a0
mov ecx, dword [rsp + 0x90]
mov r10, qword [rsp + 0xb8]
mov eax, 0x10000000
mov r9, qword [rsp + 0x98]
shl r12, 4
sub rbx, r12
add r14, r12
add rbp, r12
cmp rbx, 0x10
jae 0x1401db440
mov edi, dword [rsp + 0x30]
mov r8, qword [rsp + 0xb0]
mov rax, qword [rsp + 0xa0]
mov dword [rsp + 0x90], ecx
test rbx, rbx
je 0x1401db582
mov r12, qword [rsp + 0xa8]
xorps xmm0, xmm0
mov r8, rsi
mov qword [rsp + 0x20], rax
mov rdx, r12
mov rcx, r12
movups xmmword [r12], xmm0
call r10
mov r8d, dword [rsp + 0x90]
add r8d, esi
bswap r8d
mov dword [r15], r8d
jne 0x1401db560
nop dword [rax]
movzx eax, byte [r15 - 1]
lea r15, [r15 - 1]
add esi, eax
mov byte [r15], sil
shr esi, 8
add r13d, 0xffffffff
jne 0x1401db540
nop word [rax + rax]
mov ecx, edi
inc edi
movzx eax, byte [rcx + rbp]
xor al, byte [rcx + r12]
mov byte [rcx + r14], al
sub rbx, 1
jne 0x1401db560
mov rax, qword [rsp + 0xb0]
mov dword [rax], edi
jmp 0x1401db585
mov dword [r8], edi
mov r12, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x1401db660
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x28
call fcn.1402d2bf0
sub rsp, rax
mov rcx, qword [rcx + 0x28]
add rsp, 0x28
jmp fcn.140153030
Function at 0x1401f7710
Capabilities:
Encrypt data using curve25519

Disassembly:
push rbx
push rsi
push rdi
mov eax, 0x1a0
call fcn.1402d2bf0
sub rsp, rax
mov rax, qword [0x1403bf008]
xor rax, rsp
mov qword [rsp + 0x190], rax
mov rbx, r8
mov rsi, rdx
mov r8, r9
lea rdx, str.SHA512
call fcn.14012f110
mov rdi, rax
test rax, rax
je 0x1401f7793
xor r9d, r9d
mov qword [rsp + 0x28], 0
lea r8, [rsp + 0x150]
mov qword [rsp + 0x20], rax
mov rcx, rbx
lea edx, [r9 + 0x20]
call fcn.14012dfb0
mov rcx, rdi
mov ebx, eax
call fcn.14012f160
test ebx, ebx
jne 0x1401f779a
lea edx, [rbx + 0x40]
lea rcx, [rsp + 0x150]
call fcn.140001240
xor eax, eax
jmp 0x1401f784e
movzx eax, byte [rsp + 0x16f]
lea rdx, [rsp + 0x150]
and byte [rsp + 0x150], 0xf8
lea rcx, [rsp + 0xb0]
and al, 0x3f
or al, 0x40
mov byte [rsp + 0x16f], al
call fcn.1401f6a50
lea rdx, [rsp + 0x100]
lea rcx, [rsp + 0x30]
call fcn.1401f33a0
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x80]
call fcn.1401f3620
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0xd8]
lea rcx, [rsp + 0x58]
call fcn.1401f3620
lea rdx, [rsp + 0x58]
mov rcx, rsi
call fcn.1401f4cc0
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x80]
call fcn.1401f4cc0
movzx eax, byte [rsp + 0x30]
lea rcx, [rsp + 0x150]
shl al, 7
mov edx, 0x40
xor byte [rsi + 0x1f], al
call fcn.140001240
mov eax, 1
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.1400adbc0
add rsp, 0x1a0
pop rdi
pop rsi
pop rbx
ret
Function at 0x1401f7870
Capabilities:
Encrypt data using curve25519

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1a8
call fcn.1402d2bf0
sub rsp, rax
mov rax, qword [0x1403bf008]
xor rax, rsp
mov qword [rsp + 0x190], rax
mov r12, qword [rsp + 0x210]
mov r15, r8
mov r8, qword [rsp + 0x220]
mov r14, rdx
mov rsi, rcx
lea rdx, str.SHA512
mov rcx, qword [rsp + 0x218]
mov r13, r9
call fcn.14012f110
mov rdi, rax
call fcn.14012f050
xor ebp, ebp
mov rbx, rax
test rdi, rdi
je 0x1401f7a7b
test rax, rax
je 0x1401f7a7b
xor r8d, r8d
mov rdx, rdi
mov rcx, rax
call fcn.14012e5b0
test eax, eax
je 0x1401f7a7b
lea r8d, [rbp + 0x20]
mov rdx, r12
mov rcx, rbx
call fcn.14012e5f0
test eax, eax
je 0x1401f7a7b
lea r8, [rsp + 0x20]
mov rcx, rbx
lea rdx, [rsp + 0xd0]
call fcn.14012e410
test eax, eax
je 0x1401f7a7b
movzx eax, byte [rsp + 0xef]
xor r8d, r8d
and byte [rsp + 0xd0], 0xf8
and al, 0x3f
or al, 0x40
mov rdx, rdi
mov rcx, rbx
mov byte [rsp + 0xef], al
call fcn.14012e5b0
test eax, eax
je 0x1401f7a7b
lea r8d, [rbp + 0x20]
mov rcx, rbx
lea rdx, [rsp + 0xf0]
call fcn.14012e5f0
test eax, eax
je 0x1401f7a7b
mov r8, r15
mov rdx, r14
mov rcx, rbx
call fcn.14012e5f0
test eax, eax
je 0x1401f7a7b
lea r8, [rsp + 0x20]
mov rcx, rbx
lea rdx, [rsp + 0x110]
call fcn.14012e410
test eax, eax
je 0x1401f7a7b
lea rcx, [rsp + 0x110]
call fcn.1401f9ff0
lea rdx, [rsp + 0x110]
lea rcx, [rsp + 0x30]
call fcn.1401f6a50
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.1401f69c0
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call fcn.14012e5b0
test eax, eax
je 0x1401f7a7b
lea r8d, [rbp + 0x20]
mov rdx, rsi
mov rcx, rbx
call fcn.14012e5f0
test eax, eax
je 0x1401f7a7b
lea r8d, [rbp + 0x20]
mov rdx, r13
mov rcx, rbx
call fcn.14012e5f0
test eax, eax
je 0x1401f7a7b
mov r8, r15
mov rdx, r14
mov rcx, rbx
call fcn.14012e5f0
test eax, eax
je 0x1401f7a7b
lea r8, [rsp + 0x20]
mov rcx, rbx
lea rdx, [rsp + 0x150]
call fcn.14012e410
test eax, eax
je 0x1401f7a7b
lea rcx, [rsp + 0x150]
call fcn.1401f9ff0
lea rcx, [rsi + 0x20]
lea r9, [rsp + 0x110]
lea r8, [rsp + 0xd0]
lea rdx, [rsp + 0x150]
call fcn.1401f7f60
mov ebp, 1
mov edx, 0x40
lea rcx, [rsp + 0x110]
call fcn.140001240
mov edx, 0x40
lea rcx, [rsp + 0xd0]
call fcn.140001240
mov rcx, rdi
call fcn.14012f160
mov rcx, rbx
call fcn.14012efa0
mov eax, ebp
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.1400adbc0
add rsp, 0x1a8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1402054c0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0xe8
call fcn.1402d2bf0
sub rsp, rax
mov rax, qword [0x1403bf008]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov r15, qword [rsp + 0x150]
mov rax, rcx
mov rbx, qword [rsp + 0x158]
mov rdi, r9
mov r12, qword [rsp + 0x178]
mov r13, rdx
mov qword [rsp + 0x40], rcx
xor esi, esi
mov rcx, qword [rsp + 0x168]
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x38], r8
mov r14d, dword [rcx]
mov rcx, rax
call fcn.1401b63f0
mov r8d, r14d
mov qword [rsp + 0x30], rax
xor edx, edx
mov rcx, r12
call fcn.14023a320
test eax, eax
je 0x14020572f
mov ebp, dword [rsp + 0x160]
inc r14d
test ebp, ebp
je 0x140205574
mov rcx, qword [rsp + 0x30]
xor r9d, r9d
mov r8, rbx
mov rdx, r15
call fcn.140141970
test eax, eax
jle 0x140205732
mov r8, rbx
mov rdx, r15
mov rcx, rdi
call fcn.14029ddb0
mov r8, rbx
lea rcx, [rsp + 0x90]
mov rdx, r15
call fcn.14029ddb0
movsxd rax, ebx
sub rax, 1
js 0x1402055ae
add rax, rdi
add byte [rax], 1
jne 0x1402055ae
dec rax
cmp rax, rdi
jns 0x1402055a1
mov rbp, qword [rsp + 0x38]
lea r8, [rsp + 0x50]
mov qword [rsp + 0x28], rsi
xor r9d, r9d
mov rdx, rbx
mov qword [rsp + 0x20], rbp
mov rcx, r15
call fcn.14012dfb0
test eax, eax
je 0x140205732
mov qword [rsp + 0x28], rsi
lea r8, [rsp + 0x90]
xor r9d, r9d
mov qword [rsp + 0x20], rbp
mov rdx, rbx
mov rcx, rdi
call fcn.14012dfb0
test eax, eax
je 0x140205732
mov r9d, esi
mov rdx, rsi
test ebx, ebx
jle 0x1402056e1
cmp ebx, 0x40
jb 0x1402056ac
mov ecx, ebx
and ecx, 0x8000003f
jge 0x140205628
dec ecx
or ecx, 0xffffffc0
inc ecx
mov eax, ebx
sub eax, ecx
movsxd rcx, eax
nop
movdqu xmm0, xmmword [rsp + rdx + 0x50]
add r9d, 0x40
movdqu xmm1, xmmword [rsp + rdx + 0x90]
pxor xmm1, xmm0
movdqu xmmword [rsp + rdx + 0x50], xmm1
movdqu xmm0, xmmword [rsp + rdx + 0x60]
movdqu xmm1, xmmword [rsp + rdx + 0xa0]
pxor xmm1, xmm0
movdqu xmmword [rsp + rdx + 0x60], xmm1
movdqu xmm0, xmmword [rsp + rdx + 0x70]
movdqu xmm1, xmmword [rsp + rdx + 0xb0]
pxor xmm1, xmm0
movdqu xmmword [rsp + rdx + 0x70], xmm1
movdqu xmm0, xmmword [rsp + rdx + 0x80]
movdqu xmm1, xmmword [rsp + rdx + 0xc0]
pxor xmm1, xmm0
movdqu xmmword [rsp + rdx + 0x80], xmm1
add rdx, 0x40
cmp rdx, rcx
jl 0x140205630
cmp r9d, ebx
jge 0x1402056e1
lea rcx, [rsp + 0x50]
add rcx, rdx
lea r8, [rsp + 0x90]
lea rax, [rsp + 0x50]
mov edx, ebx
sub r8, rax
sub edx, r9d
nop dword [rax]
movzx eax, byte [r8 + rcx]
xor byte [rcx], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x1402056d0
or byte [rsp + 0x50], 0x80
lea rcx, [rsp + 0x50]
or byte [rsp + rbx + 0x4f], 1
mov r8, r13
mov edx, ebx
call fcn.140152580
test rax, rax
je 0x140205732
mov rdx, qword [rsp + 0x40]
mov r8, r12
mov rcx, r13
call fcn.14023a380
test eax, eax
jg 0x140205760
jne 0x140205732
mov r8d, r14d
xor edx, edx
mov rcx, r12
mov ebp, 1
call fcn.14023a320
test eax, eax
jne 0x140205552
inc r14d
mov rax, qword [rsp + 0x48]
mov dword [rax], r14d
mov eax, esi
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.1400adbc0
add rsp, 0xe8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov esi, 1
jmp 0x140205732
Function at 0x140209da0
Capabilities:
Check for software breakpoints

Disassembly:
mov eax, 0x28
call fcn.1402d2bf0
sub rsp, rax
mov r11, rcx
cmp dword [rsp + 0x50], r9d
jne 0x140209e98
movzx r10d, byte [r8]
lea eax, [r10 - 0x6a]
cmp al, 1
ja 0x140209e98
mov qword [rsp + 0x20], rbx
lea rdx, [r8 + 1]
cmp r10b, 0x6b
jne 0x140209e50
lea ebx, [r9 - 3]
xor eax, eax
test ebx, ebx
jle 0x140209dfa
movzx ecx, byte [rdx]
inc rdx
cmp cl, 0xba
je 0x140209dfa
cmp cl, 0xbb
jne 0x140209e3d
inc eax
cmp eax, ebx
jl 0x140209de4
sub ebx, eax
test eax, eax
jne 0x140209e54
call fcn.1401263b0
lea r8, str.RSA_padding_check_X931
mov edx, 0x56
lea rcx, str.crypto_rsa_rsa_x931.c
call fcn.1401264d0
mov edx, 0x8a
xor r8d, r8d
lea ecx, [r8 + 4]
call fcn.1401265d0
mov rbx, qword [rsp + 0x20]
mov eax, 0xffffffff
add rsp, 0x28
ret
call fcn.1401263b0
lea r8, str.RSA_padding_check_X931
mov edx, 0x4e
jmp 0x140209e11
lea ebx, [r9 - 2]
movsxd rax, ebx
cmp byte [rax + rdx], 0xcc
je 0x140209e81
call fcn.1401263b0
lea r8, str.RSA_padding_check_X931
mov edx, 0x5f
lea rcx, str.crypto_rsa_rsa_x931.c
call fcn.1401264d0
mov edx, 0x8b
jmp 0x140209e22
mov r8d, ebx
mov rcx, r11
call fcn.14029ddb0
mov eax, ebx
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
ret
call fcn.1401263b0
lea r8, str.RSA_padding_check_X931
mov edx, 0x43
lea rcx, str.crypto_rsa_rsa_x931.c
call fcn.1401264d0
xor r8d, r8d
mov edx, 0x89
lea ecx, [r8 + 4]
call fcn.1401265d0
mov eax, 0xffffffff
add rsp, 0x28
ret