joyce8/EMBER2024-capa huggingface dataset:
Function at 0x59ef70
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 0x59f0a8
mov edx, r8d
mov ecx, r12d
shr edx, 3
and edx, 1
call sym.BIO_socket_nbio
test eax, eax
je 0x59f094
test sil, 4
jne 0x59f020
and esi, 0x10
je 0x59efe2
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 0x59f148
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 0x59f0e0
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 0x59efb4
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, 0xe
mov ecx, 2
mov dword [rsp + 0x20], 0x5c
mov r8d, eax
lea r9, str.crypto_bio_b_sock2.c
call sym.ERR_put_error
mov r8d, 0x89
mov edx, 0x8a
mov dword [rsp + 0x20], 0x5d
lea r9, str.crypto_bio_b_sock2.c
mov ecx, 0x20
call sym.ERR_put_error
xor r12d, r12d
mov eax, r12d
add rsp, 0x48
pop rbx
pop rsi
pop r12
pop r13
ret
mov dword [rsp + 0x20], 0x52
lea r9, str.crypto_bio_b_sock2.c
mov r8d, 0x87
xor r12d, r12d
mov edx, 0x8a
mov ecx, 0x20
call sym.ERR_put_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 0x59f094
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, 2
mov ecx, 2
mov dword [rsp + 0x20], 0x6e
mov r8d, eax
lea r9, str.crypto_bio_b_sock2.c
call sym.ERR_put_error
mov r8d, 0x67
mov edx, 0x8a
mov dword [rsp + 0x20], 0x6f
lea r9, str.crypto_bio_b_sock2.c
mov ecx, 0x20
call sym.ERR_put_error
jmp 0x59f012
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x20], 0x65
mov edx, 0xe
xor r12d, r12d
mov r8d, eax
lea r9, str.crypto_bio_b_sock2.c
mov ecx, 2
call sym.ERR_put_error
mov r8d, 0x8a
mov edx, 0x8a
mov dword [rsp + 0x20], 0x66
lea r9, str.crypto_bio_b_sock2.c
mov ecx, 0x20
call sym.ERR_put_error
jmp 0x59f012
Function at 0x5a2dc0
Capabilities:
Read file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov rbx, rcx
mov rcx, rdx
mov eax, dword [rbx + 0x20]
test eax, eax
je 0x5a2dd9
test rdx, rdx
jne 0x5a2df0
xor r12d, r12d
mov eax, r12d
add rsp, 0x38
pop rbx
pop r12
ret
mov r9, qword [rbx + 0x38]
movsxd r8, r8d
mov edx, 1
call sym.fread
mov rcx, qword [rbx + 0x38]
mov r12d, eax
call sym.ferror
test eax, eax
je 0x5a2ddc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0xb
mov ecx, 2
mov dword [rsp + 0x20], 0x95
mov r8d, eax
lea r9, str.crypto_bio_bss_file.c
mov r12d, 0xffffffff
call sym.ERR_put_error
mov r8d, 2
mov edx, 0x82
mov dword [rsp + 0x20], 0x96
lea r9, str.crypto_bio_bss_file.c
mov ecx, 0x20
call sym.ERR_put_error
jmp 0x5a2ddc

Function at 0x5a2e70
Capabilities:
Write file on windows

Disassembly:
push r12
sub rsp, 0x20
cmp byte [rdx], 0
mov r8, rcx
mov rcx, rdx
je 0x5a2ee8
mov rax, rdx
xor edx, edx
jmp 0x5a2e98
cmp edx, 0x80000000
je 0x5a2ee8
add rax, 1
add edx, 1
cmp byte [rax], 0
jne 0x5a2e90
and edx, 0x7fffffff
mov r12d, edx
mov eax, dword [r8 + 0x20]
test eax, eax
jne 0x5a2ec8
xor r12d, r12d
mov eax, r12d
add rsp, 0x20
pop r12
ret
mov r9, qword [r8 + 0x38]
mov r8d, 1
call sym.fwrite
test eax, eax
je 0x5a2eb5
mov eax, r12d
add rsp, 0x20
pop r12
ret
xor edx, edx
xor r12d, r12d
jmp 0x5a2ead

Function at 0x5a2ef0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [rcx + 0x20]
mov r10, rdx
mov ebx, r8d
test eax, eax
je 0x5a2f07
test rdx, rdx
jne 0x5a2f10
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov r9, qword [rcx + 0x38]
movsxd rdx, r8d
mov rcx, r10
mov r8d, 1
call sym.fwrite
mov r8, rax
mov eax, ebx
test r8d, r8d
je 0x5a2f07
add rsp, 0x20
pop rbx
ret

Function at 0x5a33a0
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 0x5a3420
lea rcx, [0x008cb700]
call sym.BIO_new
mov r12, rax
test rax, rax
je 0x5a34b8
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 qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 1
mov ecx, 2
mov dword [rsp + 0x20], 0x45
mov r8d, eax
lea r9, str.crypto_bio_bss_file.c
call sym.ERR_put_error
lea rax, [0x008cb632]
mov qword [rsp + 0x20], r12
mov r8, rsi
mov qword [rsp + 0x28], rax
lea r9, [0x008cb626]
mov ecx, 5
lea rdx, str.fopen_
call sym.ERR_add_error_data
mov rbx, qword [sym.imp.msvcrt.dll__errno]
call rbx
cmp dword [rax], 2
je 0x5a3488
call rbx
cmp dword [rax], 6
jne 0x5a34c8
mov dword [rsp + 0x20], 0x4c
lea r9, str.crypto_bio_bss_file.c
mov r8d, pe_nt_image_headers64
xor r12d, r12d
mov edx, 0x6d
mov ecx, 0x20
call sym.ERR_put_error
jmp 0x5a340b
mov rcx, r13
call sym.fclose
jmp 0x5a340b
mov dword [rsp + 0x20], 0x4e
lea r9, str.crypto_bio_bss_file.c
mov r8d, 2
xor r12d, r12d
mov edx, 0x6d
mov ecx, 0x20
call sym.ERR_put_error
jmp 0x5a340b
Function at 0x5a3f60
Capabilities:
Send data
Send data on socket

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x20
cmp byte [rdx], 0
mov r12, rcx
mov r13, rdx
je 0x5a4040
mov rax, rdx
xor r8d, r8d
jmp 0x5a3f8d
cmp r8d, 0x80000000
je 0x5a4040
add rax, 1
add r8d, 1
cmp byte [rax], 0
jne 0x5a3f80
mov ebx, r8d
and ebx, 0x7fffffff
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rdx, r13
movsxd rcx, dword [r12 + 0x30]
xor r9d, r9d
mov r8d, ebx
call qword [sym.imp.WS2_32.dll_send]
mov edx, 0xf
mov rcx, r12
mov r13d, eax
call sym.BIO_clear_flags
test r13d, r13d
jle 0x5a3fe8
mov eax, r13d
add rsp, 0x20
pop rbx
pop r12
pop r13
ret
lea eax, [r13 + 1]
cmp eax, 1
ja case.0x5a4032.104
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x8c
jg 0x5a4034
cmp eax, 0x66
jg 0x5a401c
cmp eax, 4
je case.0x5a4032.103
cmp eax, 0xb
jne case.0x5a4032.104
mov edx, 0xa
mov rcx, r12
call sym.BIO_set_flags
jmp case.0x5a4032.104
sub eax, 0x67
cmp eax, 0x25
ja case.0x5a4032.104
lea rdx, [0x008cb8c0]
movsxd rax, dword [rdx + rax*4]
add rax, rdx
jmp rax
cmp eax, 0x2733
jne case.0x5a4032.104
jmp case.0x5a4032.103
xor ebx, ebx
jmp 0x5a3fa3

Function at 0x5a4050
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 + 0x30]
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 0x5a40a0
mov eax, r12d
add rsp, 0x20
pop rbx
pop r12
pop r13
ret
lea eax, [r12 + 1]
cmp eax, 1
ja case.0x5a40ee.104
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x8c
jg 0x5a40f0
cmp eax, 0x66
jg 0x5a40d8
cmp eax, 4
je case.0x5a40ee.103
cmp eax, 0xb
jne case.0x5a40ee.104
mov edx, 0xa
mov rcx, r13
call sym.BIO_set_flags
jmp case.0x5a40ee.104
sub eax, 0x67
cmp eax, 0x25
ja case.0x5a40ee.104
lea rdx, [0x008cb958]
movsxd rax, dword [rdx + rax*4]
add rax, rdx
jmp rax
cmp eax, 0x2733
jne case.0x5a40ee.104
jmp case.0x5a40ee.103
Function at 0x5a4100
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 0x5a414c
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
movsxd rcx, dword [r14 + 0x30]
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 0x5a4160
mov eax, r12d
add rsp, 0x28
pop rbx
pop r12
pop r13
pop r14
ret
lea eax, [r12 + 1]
cmp eax, 1
jbe 0x5a4190
test r12d, r12d
jne 0x5a414c
or dword [r14 + 0x28], 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 0x5a41e0
cmp eax, 0x66
jg 0x5a41c0
cmp eax, 4
je case.0x5a41d6.103
cmp eax, 0xb
jne case.0x5a41d6.104
mov edx, 9
mov rcx, r14
call sym.BIO_set_flags
jmp 0x5a414c
sub eax, 0x67
cmp eax, 0x25
ja case.0x5a41d6.104
lea rdx, [0x008cb9f0]
movsxd rax, dword [rdx + rax*4]
add rax, rdx
jmp rax
cmp eax, 0x2733
jne case.0x5a41d6.104
jmp case.0x5a41d6.103

Function at 0x5a70c0
Capabilities:
Encode data using xor

Disassembly:
push rbx
mov rax, rdx
cmp rdx, r8
je 0x5a71da
mov r11, rcx
sub rcx, 1
not r11
and rcx, r11
shr rcx, 0x3f
lea r11, [rcx - 1]
mov ecx, dword [rdx + 8]
mov edx, dword [r8 + 8]
xor edx, ecx
movsxd rdx, edx
and rdx, r11
xor ecx, edx
mov dword [rax + 8], ecx
mov ecx, dword [rax + 0x10]
xor dword [r8 + 8], edx
mov edx, dword [r8 + 0x10]
xor edx, ecx
movsxd rdx, edx
and rdx, r11
xor ecx, edx
mov dword [rax + 0x10], ecx
mov ecx, dword [rax + 0x14]
xor dword [r8 + 0x10], edx
mov edx, dword [r8 + 0x14]
xor edx, ecx
and rdx, r11
and edx, 4
xor ecx, edx
mov dword [rax + 0x14], ecx
xor dword [r8 + 0x14], edx
test r9d, r9d
jle 0x5a71da
mov r10, qword [rax]
mov rbx, qword [r8]
lea eax, [r9 - 1]
lea rdx, [r10 + 0xf]
sub rdx, rbx
cmp rdx, 0x1e
jbe 0x5a71e0
cmp eax, 1
jbe 0x5a71e0
mov eax, r9d
movq xmm2, r11
mov rcx, r10
mov rdx, rbx
shr eax, 1
punpcklqdq xmm2, xmm2
shl rax, 4
add rax, r10
nop word [rax + rax]
movdqu xmm3, xmmword [rcx]
movdqu xmm0, xmmword [rdx]
add rcx, 0x10
add rdx, 0x10
pxor xmm0, xmm3
movdqu 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 rcx, rax
jne 0x5a7178
mov eax, r9d
and eax, 0xfffffffe
and r9d, 1
je 0x5a71da
shl rax, 3
lea r8, [r10 + rax]
add rax, rbx
mov rcx, qword [r8]
mov rdx, qword [rax]
xor rdx, rcx
and rdx, r11
xor rcx, rdx
mov qword [r8], rcx
xor qword [rax], rdx
pop rbx
ret
mov r8d, eax
xor ecx, ecx
nop dword [rax]
mov rdx, qword [r10 + rcx*8]
mov rax, qword [rbx + rcx*8]
xor rax, rdx
and rax, r11
xor rdx, rax
mov qword [r10 + rcx*8], rdx
xor qword [rbx + rcx*8], rax
mov rax, rcx
add rcx, 1
cmp rax, r8
jne 0x5a71e8
pop rbx
ret
Function at 0x5a77a0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xd8
movsxd rax, dword [r9 + 8]
mov rsi, rax
mov rdi, rdx
mov edx, eax
mov qword [rsp + 0x120], rcx
mov rbx, r8
mov qword [rsp + 0x28], rax
mov rbp, r9
call sym.bn_wexpand
test rax, rax
je 0x5a79a1
lea rax, [rsp + 0x50]
cmp qword [rsp + 0x28], 0x10
mov qword [rsp + 0x30], rax
mov r12, rax
ja 0x5a7978
mov rax, qword [rbp]
mov r10, qword [rdi]
movsxd rcx, esi
mov r11, qword [rbx]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x120]
test r10, r10
cmove r10, r12
test r11, r11
mov rax, qword [rax]
cmove r11, r12
mov qword [rsp + 0x40], rax
test rcx, rcx
je 0x5a79b0
movsxd r9, dword [rdi + 8]
movsxd rax, dword [rdi + 0xc]
xor r8d, r8d
movsxd rbp, dword [rbx + 8]
movsxd r15, dword [rbx + 0xc]
xor ebx, ebx
mov qword [rsp + 0x48], rax
mov rax, r9
sub rcx, r9
mov rdx, r9
lea rdi, [r9 + 1]
lea r13, [r12 + r9*8]
sub rax, rbp
sub r9, r15
mov r14, rcx
neg rdx
xor ecx, ecx
mov rbp, rax
sub rdi, qword [rsp + 0x48]
add r9, 1
nop word [rax + rax]
mov rax, qword [r10 + rcx*8]
mov r15, rdx
sar r15, 0x3f
and rax, r15
add rax, rbx
mov r15, rax
lea rax, [rbp + rdx]
setb bl
sar rax, 0x3f
and rax, qword [r11 + r8*8]
movzx ebx, bl
add rax, r15
mov qword [r13 + rdx*8], rax
lea rax, [rdi + rdx]
adc rbx, 0
shr rax, 0x3f
add rcx, rax
lea rax, [r9 + rdx]
add rdx, 1
shr rax, 0x3f
add r8, rax
cmp r14, rdx
jne 0x5a7880
mov rdi, qword [rsp + 0x40]
mov r8, qword [rsp + 0x38]
mov r9d, esi
mov rdx, r12
mov rcx, rdi
call sym.bn_sub_words
mov rdx, r12
mov rcx, rdi
sub rbx, rax
mov rax, qword [rsp + 0x28]
lea r9, [r12 + rax*8]
nop dword [rax]
mov r8, qword [rcx]
mov rax, qword [rdx]
add rdx, 8
add rcx, 8
xor rax, r8
and rax, rbx
xor rax, r8
mov qword [rcx - 8], rax
mov qword [rdx - 8], 0
cmp r9, rdx
jne 0x5a7900
mov rax, qword [rsp + 0x120]
mov r13d, 1
mov dword [rax + 8], esi
mov dword [rax + 0x10], 0
cmp r12, qword [rsp + 0x30]
je 0x5a795c
mov r8d, 0x5a
lea rdx, str.crypto_bn_bn_mod.c
mov rcx, r12
call sym.CRYPTO_free
mov eax, r13d
add rsp, 0xd8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
movsxd rax, esi
mov r8d, 0x3c
lea rdx, str.crypto_bn_bn_mod.c
lea rcx, [rax*8]
call sym.CRYPTO_malloc
mov r12, rax
test rax, rax
jne 0x5a77f9
xor r13d, r13d
jmp 0x5a795c
mov r8, qword [rsp + 0x38]
mov rcx, rax
xor r9d, r9d
mov rdx, r12
call sym.bn_sub_words
jmp 0x5a7928
Function at 0x5cd400
Capabilities:
Encrypt data using curve25519

Disassembly:
push r15
push r14
push r13
push r12
sub rsp, 0x38
mov r8d, 0x46
mov rax, qword [rcx]
mov ecx, 0x48
mov r14d, dword [rax]
mov r15, rdx
lea rdx, str.crypto_ec_ecx_meth.c
call sym.CRYPTO_zalloc
mov r13, rax
test rax, rax
je 0x5cd650
cmp r14d, 0x40a
je 0x5cd4f0
cmp r14d, 0x43f
je 0x5cd4f0
cmp r14d, 0x40b
je 0x5cd580
mov r8d, 0x50
lea rdx, str.crypto_ec_ecx_meth.c
mov ecx, 0x39
call sym.CRYPTO_secure_malloc
mov qword [r13 + 0x40], rax
mov r12, rax
test rax, rax
je 0x5cd680
mov edx, 0x39
mov rcx, r12
call sym.RAND_priv_bytes
test eax, eax
jle 0x5cd5f0
cmp r14d, 0x440
je 0x5cd5d8
jg 0x5cd4c8
cmp r14d, 0x43f
jne 0x5cd560
mov rdx, r12
mov rcx, r13
call sym.ED25519_public_from_private
nop word [rax + rax]
mov r8, r13
mov edx, r14d
mov rcx, r15
call sym.EVP_PKEY_assign
mov eax, 1
add rsp, 0x38
pop r12
pop r13
pop r14
pop r15
ret
mov r8d, 0x50
lea rdx, str.crypto_ec_ecx_meth.c
mov ecx, 0x20
call sym.CRYPTO_secure_malloc
mov qword [r13 + 0x40], rax
mov r12, rax
test rax, rax
je 0x5cd680
mov edx, 0x20
mov rcx, r12
call sym.RAND_priv_bytes
test eax, eax
jle 0x5cd5f0
cmp r14d, 0x40a
jne 0x5cd638
movzx eax, byte [r12 + 0x1f]
and byte [r12], 0xf8
and eax, 0x7f
or eax, 0x40
mov byte [r12 + 0x1f], al
mov rdx, r12
mov rcx, r13
call sym.X25519_public_from_private
jmp 0x5cd4c8
cmp r14d, 0x40a
je 0x5cd54f
cmp r14d, 0x40b
jne 0x5cd4c8
jmp 0x5cd5c3
mov r8d, 0x50
lea rdx, str.crypto_ec_ecx_meth.c
mov ecx, 0x38
call sym.CRYPTO_secure_malloc
mov qword [r13 + 0x40], rax
mov r12, rax
test rax, rax
je 0x5cd680
mov edx, 0x38
mov rcx, r12
call sym.RAND_priv_bytes
test eax, eax
jle 0x5cd5f0
and byte [r12], 0xfc
or byte [r12 + 0x37], 0x80
mov rdx, r12
mov rcx, r13
call sym.X448_public_from_private
jmp 0x5cd4c8
mov rdx, r12
mov rcx, r13
call sym.ED448_public_from_private
jmp 0x5cd4c8
mov r8d, 0x57
lea rdx, str.crypto_ec_ecx_meth.c
mov rcx, r12
call sym.CRYPTO_secure_free
mov qword [r13 + 0x40], 0
mov r8d, 0x79
lea rdx, str.crypto_ec_ecx_meth.c
mov rcx, r13
call sym.CRYPTO_free
xor eax, eax
add rsp, 0x38
pop r12
pop r13
pop r14
pop r15
ret
cmp r14d, 0x40b
jne 0x5cd49b
jmp 0x5cd5b8
mov r8d, 0x41
mov edx, 0x10a
mov ecx, 0x10
mov dword [rsp + 0x20], 0x48
lea r9, str.crypto_ec_ecx_meth.c
call sym.ERR_put_error
xor eax, eax
jmp 0x5cd4db
mov r8d, 0x41
mov edx, 0x10a
mov ecx, 0x10
mov dword [rsp + 0x20], 0x52
lea r9, str.crypto_ec_ecx_meth.c
call sym.ERR_put_error
jmp 0x5cd60d

Function at 0x5d22b0
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
cmp rcx, 0xffffffffffffffff
je 0x5d22c8
lea rcx, [0x009f9174]
jmp sym.CRYPTO_THREAD_set_local
ret
Function at 0x5d93c0
Capabilities:
Enumerate pe sections

Disassembly:
mov rax, qword [rcx + 0x70]
test rdx, rdx
je 0x5d9518
movzx ecx, byte [rdx + 1]
movzx r9d, byte [rdx + 2]
shl ecx, 8
shl r9d, 0x10
or ecx, r9d
movzx r9d, byte [rdx]
or ecx, r9d
movzx r9d, byte [rdx + 3]
shl r9d, 0x18
or ecx, r9d
mov dword [rax], ecx
movzx ecx, byte [rdx + 5]
movzx r9d, byte [rdx + 6]
shl ecx, 8
shl r9d, 0x10
or ecx, r9d
movzx r9d, byte [rdx + 4]
or ecx, r9d
movzx r9d, byte [rdx + 7]
shl r9d, 0x18
or ecx, r9d
mov dword [rax + 4], ecx
movzx ecx, byte [rdx + 9]
movzx r9d, byte [rdx + 0xa]
shl ecx, 8
shl r9d, 0x10
or ecx, r9d
movzx r9d, byte [rdx + 8]
or ecx, r9d
movzx r9d, byte [rdx + 0xb]
shl r9d, 0x18
or ecx, r9d
mov dword [rax + 8], ecx
movzx ecx, byte [rdx + 0xd]
movzx r9d, byte [rdx + 0xe]
shl ecx, 8
shl r9d, 0x10
or ecx, r9d
movzx r9d, byte [rdx + 0xc]
or ecx, r9d
movzx r9d, byte [rdx + 0xf]
shl r9d, 0x18
or ecx, r9d
mov dword [rax + 0xc], ecx
movzx ecx, byte [rdx + 0x11]
movzx r9d, byte [rdx + 0x12]
shl ecx, 8
shl r9d, 0x10
or ecx, r9d
movzx r9d, byte [rdx + 0x10]
or ecx, r9d
movzx r9d, byte [rdx + 0x13]
shl r9d, 0x18
or ecx, r9d
mov dword [rax + 0x10], ecx
movzx ecx, byte [rdx + 0x15]
movzx r9d, byte [rdx + 0x16]
shl ecx, 8
shl r9d, 0x10
or ecx, r9d
movzx r9d, byte [rdx + 0x14]
or ecx, r9d
movzx r9d, byte [rdx + 0x17]
shl r9d, 0x18
or ecx, r9d
mov dword [rax + 0x14], ecx
movzx ecx, byte [rdx + 0x19]
movzx r9d, byte [rdx + 0x1a]
shl ecx, 8
shl r9d, 0x10
or ecx, r9d
movzx r9d, byte [rdx + 0x18]
or ecx, r9d
movzx r9d, byte [rdx + 0x1b]
shl r9d, 0x18
or ecx, r9d
mov dword [rax + 0x18], ecx
movzx ecx, byte [rdx + 0x1d]
movzx r9d, byte [rdx + 0x1e]
shl ecx, 8
shl r9d, 0x10
or ecx, r9d
movzx r9d, byte [rdx + 0x1c]
movzx edx, byte [rdx + 0x1f]
or ecx, r9d
shl edx, 0x18
or edx, ecx
mov dword [rax + 0x1c], edx
test r8, r8
je 0x5d95b8
movzx edx, byte [r8 + 2]
movzx ecx, byte [r8 + 1]
shl edx, 0x10
shl ecx, 8
or edx, ecx
movzx ecx, byte [r8]
or edx, ecx
movzx ecx, byte [r8 + 3]
shl ecx, 0x18
or edx, ecx
mov dword [rax + 0x20], edx
movzx edx, byte [r8 + 6]
movzx ecx, byte [r8 + 5]
shl edx, 0x10
shl ecx, 8
or edx, ecx
movzx ecx, byte [r8 + 4]
or edx, ecx
movzx ecx, byte [r8 + 7]
shl ecx, 0x18
or edx, ecx
mov dword [rax + 0x24], edx
movzx edx, byte [r8 + 0xa]
movzx ecx, byte [r8 + 9]
shl edx, 0x10
shl ecx, 8
or edx, ecx
movzx ecx, byte [r8 + 8]
or edx, ecx
movzx ecx, byte [r8 + 0xb]
shl ecx, 0x18
or edx, ecx
mov dword [rax + 0x28], edx
movzx edx, byte [r8 + 0xd]
movzx ecx, byte [r8 + 0xe]
shl edx, 8
shl ecx, 0x10
or edx, ecx
movzx ecx, byte [r8 + 0xc]
or edx, ecx
movzx ecx, byte [r8 + 0xf]
shl ecx, 0x18
or edx, ecx
mov dword [rax + 0x2c], edx
mov dword [rax + 0x70], 0
mov eax, 1
ret
Function at 0x5e3460
Capabilities:
Hash data using sha256

Disassembly:
sub rsp, 0x28
call sym.EVP_MD_CTX_md_data
mov rcx, rax
add rsp, 0x28
jmp sym.SHA256_Init

Function at 0x5e3560
Capabilities:
Hash data using sha384

Disassembly:
sub rsp, 0x28
call sym.EVP_MD_CTX_md_data
mov rcx, rax
add rsp, 0x28
jmp sym.SHA384_Init

Function at 0x5e3580
Capabilities:
Hash data using sha512

Disassembly:
sub rsp, 0x28
call sym.EVP_MD_CTX_md_data
mov rcx, rax
add rsp, 0x28
jmp sym.SHA512_Init

Function at 0x5e9650
Capabilities:
Query environment variable

Disassembly:
push r12
sub rsp, 0x20
mov r12, rcx
call sym.OPENSSL_issetugid
test eax, eax
jne 0x5e9670
mov rcx, r12
add rsp, 0x20
pop r12
jmp sym.getenv
xor eax, eax
add rsp, 0x20
pop r12
ret
Function at 0x5eed90
Capabilities:
Encode data using xor

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
je 0x5eedf0
movsx ecx, byte [rcx]
xor eax, eax
test cl, cl
je 0x5eede0
mov edi, 0x100
xor ebx, ebx
nop
call sym.ossl_tolower
add rsi, 1
or eax, edi
add edi, 0x100
mov ecx, eax
shr ecx, 2
xor ecx, eax
imul eax, eax
and ecx, 0xf
rol ebx, cl
movsx ecx, byte [rsi]
xor ebx, eax
test cl, cl
jne 0x5eedb0
mov eax, ebx
shr eax, 0x10
xor eax, ebx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x5f2bb0
Capabilities:
Encode data using xor

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov rsi, qword [rsp + 0xb0]
mov rbp, qword [rsp + 0xc8]
mov rbx, rcx
mov rdi, rdx
mov r12, r9
test r8, r8
je 0x5f2c33
lea r13, [rcx + r8]
mov ecx, dword [rsp + 0xc0]
mov rax, qword [rsi]
mov rdx, qword [rsi + 8]
test ecx, ecx
jne 0x5f2c40
mov qword [rsp + 0x20], rax
mov r8, r12
mov rcx, rsi
add rbx, 1
mov qword [rsp + 0x28], rdx
mov rdx, rsi
add rdi, 1
call rbp
movzx eax, byte [rbx - 1]
movzx edx, byte [rsi]
xor edx, eax
mov byte [rsp + 0x30], al
mov rax, qword [rsp + 0x21]
mov byte [rdi - 1], dl
mov rdx, qword [rsp + 0x29]
mov qword [rsi], rax
mov qword [rsi + 8], rdx
cmp r13, rbx
jne 0x5f2bf0
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov qword [rsp + 0x20], rax
mov r8, r12
mov rcx, rsi
add rbx, 1
mov qword [rsp + 0x28], rdx
mov rdx, rsi
add rdi, 1
call rbp
movzx eax, byte [rbx - 1]
xor al, byte [rsi]
mov byte [rdi - 1], al
mov byte [rsp + 0x30], al
mov rax, qword [rsp + 0x21]
mov rdx, qword [rsp + 0x29]
mov qword [rsi], rax
mov qword [rsi + 8], rdx
cmp r13, rbx
jne 0x5f2c40
jmp 0x5f2c33
Function at 0x5f3560
Capabilities:
Encode data using xor

Disassembly:
push rdi
push rsi
push rbx
lea rbx, [0x008d9e40]
movzx r9d, byte [rcx + 0xf]
mov rax, r9
and r9d, 0xf0
and eax, 0xf
shl rax, 4
add r9, rdx
lea r11, [rcx + 0xe]
add rax, rdx
mov rdi, qword [rax]
mov rax, qword [rax + 8]
mov r10, rax
mov r8, rdi
shr rax, 4
shr r8, 4
and r10d, 0xf
xor r8, qword [r9]
shl rdi, 0x3c
xor r8, qword [rbx + r10*8]
mov r10, r8
mov r8, rax
or r8, rdi
mov rdi, qword [r9 + 8]
xor rdi, r8
nop
movzx r9d, byte [r11]
mov r8, rdi
mov rax, r10
shl r10, 0x3c
shr rdi, 4
and r8d, 0xf
shr rax, 4
mov rsi, r9
xor rax, qword [rbx + r8*8]
and r9d, 0xf0
mov r8, r10
and esi, 0xf
or r8, rdi
add r9, rdx
shl rsi, 4
mov rdi, qword [r9 + 8]
add rsi, rdx
xor rax, qword [rsi]
xor r8, qword [rsi + 8]
mov r10, rax
mov rsi, r8
shl rax, 0x3c
shr r8, 4
and esi, 0xf
shr r10, 4
xor r10, qword [r9]
or r8, rax
mov rax, r11
xor r10, qword [rbx + rsi*8]
sub r11, 1
xor rdi, r8
cmp rax, rcx
jne 0x5f35c0
bswap r10
bswap rdi
mov qword [rcx], r10
mov qword [rcx + 8], rdi
pop rbx
pop rsi
pop rdi
ret
Function at 0x5f56c0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rax, qword [rcx + 0x30]
lea rdi, [rax*8]
mov rax, qword [rcx + 0x38]
mov rbx, rcx
mov r12, rdx
lea r13, [rcx + 0x188]
mov rbp, r8
lea rsi, [rax*8]
mov eax, dword [rcx + 0x170]
lea r15, [rcx + 0x60]
lea r14, [rcx + 0x40]
test eax, eax
jne 0x5f57b8
mov edx, dword [rcx + 0x174]
mov rax, r13
mov r9d, 0x10
test edx, edx
jne 0x5f5798
movq xmm1, rsi
movq xmm0, rdi
bswap rsi
bswap rdi
punpcklqdq xmm0, xmm1
mov r8, r13
mov rdx, r15
mov rcx, r14
movups xmmword [rbx + 0x30], xmm0
mov qword [rax], rdi
mov qword [rax + 8], rsi
call sym.gcm_ghash_4bit
movdqu xmm0, xmmword [rbx + 0x40]
movdqu xmm2, xmmword [rbx + 0x20]
pxor xmm0, xmm2
movups xmmword [rbx + 0x40], xmm0
test r12, r12
je 0x5f5820
cmp rbp, 0x10
ja 0x5f5820
mov r8, rbp
mov rdx, r12
mov rcx, r14
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp sym.CRYPTO_memcmp
mov rdx, r15
mov rcx, r14
mov qword [rsp + 0x28], r9
call sym.gcm_gmult_4bit
mov r9, qword [rsp + 0x28]
mov rax, r13
jmp 0x5f5721
lea r9d, [rax + 0xf]
mov ecx, eax
xor edx, edx
and r9d, 0xfffffff0
add rcx, r13
mov r8d, r9d
mov dword [rsp + 0x28], r9d
sub r8d, eax
call sym.memset
mov r9d, dword [rsp + 0x28]
cmp r9d, 0x30
je 0x5f57f8
mov eax, r9d
add r9d, 0x10
add rax, r13
jmp 0x5f5721
mov r9d, 0x30
mov r8, r13
mov rdx, r15
mov rcx, r14
call sym.gcm_ghash_4bit
mov rax, r13
mov r9d, 0x10
jmp 0x5f5721
mov eax, 0xffffffff
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret