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

Disassembly:
mov eax, 4
call fcn.005e0210
push edi
mov edi, dword [esp + 0xc]
mov dword [esp + 4], 1
cmp edi, 0xffffffff
jne 0x4b4e98
call fcn.00457560
push str.BIO_connect
push 0x56
push str.crypto_bio_bio_sock2.c
call fcn.00457660
push 0
push 0x87
push 0x20
call fcn.00457770
add esp, 0x18
xor eax, eax
pop edi
pop ecx
ret
push ebx
mov ebx, dword [esp + 0x18]
mov eax, ebx
shr eax, 3
push esi
and eax, 1
push eax
push edi
call fcn.004841d0
add esp, 8
test eax, eax
je 0x4b4f27
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
test bl, 4
je 0x4b4f2e
push 4
lea eax, [esp + 0x10]
push eax
push 8
push 0xffff
push edi
call esi
test eax, eax
je 0x4b4f2e
call fcn.00457560
push str.BIO_connect
push 0x60
push str.crypto_bio_bio_sock2.c
call fcn.00457660
add esp, 0xc
push str.calling_setsockopt__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.00457770
call fcn.00457560
push str.BIO_connect
push 0x62
push str.crypto_bio_bio_sock2.c
call fcn.00457660
push 0
push 0x89
push 0x20
call fcn.00457770
add esp, 0x24
pop esi
pop ebx
xor eax, eax
pop edi
pop ecx
ret
test bl, 0x10
je 0x4b4f9f
push 4
lea eax, [esp + 0x10]
push eax
push 1
push 6
push edi
call esi
test eax, eax
je 0x4b4f9f
call fcn.00457560
push str.BIO_connect
push 0x6a
push str.crypto_bio_bio_sock2.c
call fcn.00457660
add esp, 0xc
push str.calling_setsockopt__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.00457770
call fcn.00457560
push str.BIO_connect
push 0x6c
push str.crypto_bio_bio_sock2.c
call fcn.00457660
push 0
push 0x8a
push 0x20
call fcn.00457770
add esp, 0x24
xor eax, eax
pop esi
pop ebx
pop edi
pop ecx
ret
mov esi, dword [esp + 0x18]
push esi
call fcn.00484500
add esp, 4
push eax
push esi
call fcn.004844f0
add esp, 4
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4b5031
push eax
call fcn.004b4d60
add esp, 4
test eax, eax
jne 0x4b4f27
call fcn.00457560
push str.BIO_connect
push 0xb2
push str.crypto_bio_bio_sock2.c
call fcn.00457660
add esp, 0xc
push str.calling_connect__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.00457770
call fcn.00457560
push str.BIO_connect
push 0xb4
push str.crypto_bio_bio_sock2.c
call fcn.00457660
push 0
push 0x67
push 0x20
call fcn.00457770
add esp, 0x24
xor eax, eax
pop esi
pop ebx
pop edi
pop ecx
ret
pop esi
pop ebx
mov eax, 1
pop edi
pop ecx
ret

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

Disassembly:
mov cl, byte [esp + 0x10]
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
movzx eax, cl
and eax, 1
push edi
mov edi, dword [esp + 0x10]
test esi, esi
je 0x4b6442
push ebx
add edi, esi
lea ebx, [edx + esi]
movzx edx, byte [edi - 1]
lea edi, [edi - 1]
movzx ecx, cl
lea ebx, [ebx - 1]
xor edx, ecx
mov cl, byte [esp + 0x1c]
add eax, edx
mov byte [ebx], al
shr eax, 8
sub esi, 1
jne 0x4b6422
pop ebx
pop edi
pop esi
ret
Function at 0x4c2e90
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
mov edi, dword [esp + 0x14]
cmp ebp, 2
je 0x4c2f69
mov esi, dword [esp + 0x10]
test esi, esi
je 0x4c2f1e
push esi
push 0
lea eax, [esp + 0x28]
push eax
push 0
call fcn.004c0080
add esp, 0x10
cmp dword [esp + 0x20], 0xffffffff
je 0x4c2ef2
call fcn.00457560
push str.ossl_ecx_key_op
push 0xa9
push str.cryptoececx_backend.c
call fcn.00457660
push 0
push 0x66
push 0x10
call fcn.00457770
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebp
ret
mov eax, dword [esi]
mov esi, dword [esp + 0x1c]
push eax
call fcn.00455230
add esp, 4
test esi, esi
jne 0x4c2f09
mov esi, eax
jmp 0x4c2f22
cmp esi, eax
je 0x4c2f22
call fcn.00457560
push str.ossl_ecx_key_op
push 0xaf
jmp 0x4c2ed4
mov esi, dword [esp + 0x1c]
test edi, edi
je 0x4c2f55
test esi, esi
je 0x4c2f55
cmp esi, 0x40a
je 0x4c2f4a
cmp esi, 0x43f
je 0x4c2f4a
xor eax, eax
cmp esi, 0x40b
setne al
add eax, 0x38
jmp 0x4c2f4f
mov eax, 0x20
cmp dword [esp + 0x18], eax
je 0x4c2f6d
call fcn.00457560
push str.ossl_ecx_key_op
push 0xb5
jmp 0x4c2ed4
mov esi, dword [esp + 0x1c]
cmp esi, 0x40a
je 0x4c2f91
cmp esi, 0x43f
je 0x4c2f91
xor eax, eax
cmp esi, 0x40b
setne al
lea eax, [eax*2 + 1]
jmp 0x4c2fa1
xor ecx, ecx
mov eax, 2
cmp esi, 0x40a
cmove eax, ecx
push ebx
push dword [esp + 0x2c]
push 1
push eax
push dword [esp + 0x34]
call fcn.004c2b00
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x4c2feb
call fcn.00457560
push str.ossl_ecx_key_op
push 0xbc
push str.cryptoececx_backend.c
call fcn.00457660
push ebx
push 0x80010
push 0x10
call fcn.00457770
add esp, 0x18
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret
test ebp, ebp
jne 0x4c3007
push dword [esp + 0x1c]
lea eax, [ebx + 0xc]
push edi
push eax
call fcn.005e17e0
add esp, 0xc
mov eax, ebx
pop ebx
pop edi
pop esi
pop ebp
ret
push ebx
call fcn.004c2a90
mov edi, eax
add esp, 4
test edi, edi
jne 0x4c303a
call fcn.00457560
push str.ossl_ecx_key_op
push 0xc6
push str.cryptoececx_backend.c
call fcn.00457660
push edi
push 0x80010
jmp 0x4c3110
cmp ebp, 2
jne 0x4c30ac
test esi, esi
je 0x4c30df
cmp esi, 0x40a
je 0x4c3067
cmp esi, 0x43f
je 0x4c3067
xor eax, eax
cmp esi, 0x40b
setne al
add eax, 0x38
jmp 0x4c306c
mov eax, 0x20
push 0
push eax
push edi
push dword [esp + 0x34]
call fcn.00457fa0
add esp, 0x10
test eax, eax
jle 0x4c311a
cmp esi, 0x40a
jne 0x4c309b
mov al, byte [edi + 0x1f]
and byte [edi], 0xf8
and al, 0x3f
or al, 0x40
mov byte [edi + 0x1f], al
jmp 0x4c30df
cmp esi, 0x40b
jne 0x4c30df
and byte [edi], 0xfc
or byte [edi + 0x37], 0x80
jmp 0x4c30df
cmp esi, 0x40a
je 0x4c30cc
cmp esi, 0x43f
je 0x4c30cc
xor eax, eax
cmp esi, 0x40b
setne al
add eax, 0x38
jmp 0x4c30d1
mov eax, 0x20
push eax
push dword [esp + 0x1c]
push edi
call fcn.005e17e0
add esp, 0xc
push ebx
call fcn.004c3130
add esp, 4
test eax, eax
jne 0x4c3000
call fcn.00457560
push str.ossl_ecx_key_op
push 0xda
push str.cryptoececx_backend.c
call fcn.00457660
push 0
push 0xa6
push 0x10
call fcn.00457770
add esp, 0x18
push ebx
call fcn.004c2ab0
add esp, 4
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x4c7be0
Capabilities:
Encrypt data using curve25519

Disassembly:
mov eax, 0xe4
call fcn.005e0210
mov eax, dword [0x699280]
xor eax, esp
mov dword [esp + 0xe0], eax
mov eax, dword [esp + 0xf4]
mov ecx, dword [esp + 0xe8]
push ebx
mov ebx, dword [esp + 0xf0]
push esi
mov esi, dword [esp + 0xf8]
push edi
push eax
push str.SHA512
push ecx
call fcn.0046ba20
mov edi, eax
add esp, 0xc
test edi, edi
je 0x4c7c62
push 0
push edi
push 0
lea eax, [esp + 0xb8]
push eax
push 0x20
push esi
call fcn.0046add0
push edi
mov esi, eax
call fcn.0046ba50
add esp, 0x1c
test esi, esi
jne 0x4c7c7c
lea eax, [esp + 0xac]
push 0x40
push eax
call fcn.00401320
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xe0]
xor ecx, esp
call fcn.005dffa1
add esp, 0xe4
ret
mov al, byte [esp + 0xcb]
and byte [esp + 0xac], 0xf8
and al, 0x3f
or al, 0x40
mov byte [esp + 0xcb], al
lea eax, [esp + 0xac]
push eax
lea eax, [esp + 0x10]
push eax
call fcn.004c7330
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.004c72b0
lea eax, [esp + 0xbc]
push 0x40
push eax
call fcn.00401320
mov ecx, dword [esp + 0x104]
add esp, 0x18
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005dffa1
add esp, 0xe4
ret
Function at 0x4cfe30
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
lea edx, [eax + 0x3c]
movd xmm0, ebx
pshufd xmm4, xmm0, 0
lea ecx, [esi + 0x3c]
cmp eax, ecx
ja 0x4cfe7f
cmp edx, esi
jb 0x4cfe7f
push edi
sub esi, eax
mov edi, 0x10
nop dword [eax]
mov edx, dword [eax + esi]
lea eax, [eax + 4]
mov ecx, dword [eax - 4]
xor ecx, edx
and ecx, ebx
xor edx, ecx
mov dword [eax + esi - 4], edx
xor dword [eax - 4], ecx
sub edi, 1
jne 0x4cfe60
pop edi
pop esi
pop ebx
ret
sub esi, eax
mov ecx, 4
nop word [eax + eax]
lea eax, [eax + 0x10]
movups xmm1, xmmword [esi + eax - 0x10]
movups xmm3, xmmword [eax - 0x10]
movaps xmm2, xmm1
xorps xmm2, xmm3
andps xmm2, xmm4
movaps xmm0, xmm2
xorps xmm2, xmm3
xorps xmm0, xmm1
movups xmmword [esi + eax - 0x10], xmm0
movups xmmword [eax - 0x10], xmm2
sub ecx, 1
jne 0x4cfe90
pop esi
pop ebx
ret
Function at 0x4d4320
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 0x14]
cmp dword [esp + 0x18], esi
jne 0x4d43e9
mov ecx, dword [esp + 0x10]
mov al, byte [ecx]
cmp al, 0x6a
je 0x4d4341
cmp al, 0x6b
jne 0x4d43e9
inc ecx
cmp al, 0x6b
jne 0x4d43a2
add esi, 0xfffffffd
xor eax, eax
test esi, esi
jle 0x4d4362
nop
mov dl, byte [ecx]
inc ecx
cmp dl, 0xba
je 0x4d4362
cmp dl, 0xbb
jne 0x4d4376
inc eax
cmp eax, esi
jl 0x4d4350
sub esi, eax
test eax, eax
jne 0x4d43a5
call fcn.00457560
push str.RSA_padding_check_X931
push 0x56
jmp 0x4d4382
call fcn.00457560
push str.RSA_padding_check_X931
push 0x4e
push str.crypto_rsa_rsa_x931.c
call fcn.00457660
push 0
push 0x8a
push 4
call fcn.00457770
add esp, 0x18
or eax, 0xffffffff
pop esi
ret
add esi, 0xfffffffe
cmp byte [esi + ecx], 0xcc
je 0x4d43d7
call fcn.00457560
push str.RSA_padding_check_X931
push 0x5f
push str.crypto_rsa_rsa_x931.c
call fcn.00457660
push 0
push 0x8b
push 4
call fcn.00457770
add esp, 0x18
or eax, 0xffffffff
pop esi
ret
push esi
push ecx
push dword [esp + 0x10]
call fcn.005e17e0
add esp, 0xc
mov eax, esi
pop esi
ret
call fcn.00457560
push str.RSA_padding_check_X931
push 0x43
push str.crypto_rsa_rsa_x931.c
call fcn.00457660
push 0
push 0x89
push 4
call fcn.00457770
add esp, 0x18
or eax, 0xffffffff
pop esi
ret
Function at 0x4db0f0
Capabilities:
Create thread

Disassembly:
push esi
push edi
push 0x27
push str.crypto_thread_arch_thread_win.c
push 4
call fcn.00451ea0
mov edi, dword [esp + 0x18]
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4db134
push 0
push 0
push edi
push 0x4db150
push 0
push 0
call fcn.005ed96f
add esp, 0x18
mov dword [esi], eax
test eax, eax
je 0x4db134
mov dword [edi + 0x10], esi
mov eax, 1
pop edi
pop esi
ret
push 0x34
push str.crypto_thread_arch_thread_win.c
push esi
mov dword [edi + 0x10], 0
call fcn.00451ca0
add esp, 0xc
xor eax, eax
pop edi
pop esi
ret
Function at 0x4fa760
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.005e0210
cmp dword [esp + 0xc], 0
je 0x4fa91d
mov eax, dword [esp + 0x14]
push ebx
push ebp
mov ebp, dword [esp + 0x18]
inc eax
push esi
mov esi, dword [esp + 0x30]
push edi
mov edi, dword [esp + 0x30]
push esi
push edi
push dword [esp + 0x34]
shr eax, 1
push dword [esp + 0x34]
mov dword [esp + 0x20], eax
push eax
push ebp
push dword [esp + 0x30]
call fcn.004fa590
add esp, 0x1c
test eax, eax
je 0x4fa7ff
push 0x1b8
push str.providersimplementationskdfs_tls1_prf.c
push esi
call fcn.00451c10
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x4fa7ff
mov eax, dword [esp + 0x10]
sub ebp, eax
add ebp, dword [esp + 0x24]
push esi
push ebx
push dword [esp + 0x34]
push dword [esp + 0x34]
push eax
push ebp
push dword [esp + 0x34]
call fcn.004fa590
add esp, 0x1c
test eax, eax
jne 0x4fa807
push 0x1bd
push str.providersimplementationskdfs_tls1_prf.c
push esi
push ebx
call fcn.00451d30
add esp, 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
xor edx, edx
test esi, esi
je 0x4fa8fe
cmp esi, 8
jb 0x4fa8e1
lea eax, [esi - 1]
lea ecx, [edi - 1]
add eax, ebx
add ecx, esi
cmp edi, eax
ja 0x4fa830
cmp ecx, ebx
jae 0x4fa8e1
cmp esi, 0x40
jb 0x4fa8b5
mov ebp, esi
lea ecx, [ebx + 0x30]
mov eax, esi
and ebp, 0x3f
sub eax, ebp
mov esi, ebx
sub esi, edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], esi
lea eax, [edi + 0x10]
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x1c]
nop dword [eax]
movups xmm0, xmmword [eax - 0x10]
add edx, 0x40
lea ecx, [ecx + 0x40]
lea eax, [eax + 0x40]
movups xmm1, xmmword [ecx - 0x70]
xorps xmm1, xmm0
movups xmmword [eax - 0x50], xmm1
movups xmm0, xmmword [eax - 0x40]
movups xmm1, xmmword [edi + eax - 0x40]
xorps xmm1, xmm0
movups xmmword [eax - 0x40], xmm1
movups xmm0, xmmword [eax - 0x30]
movups xmm1, xmmword [ecx - 0x50]
xorps xmm1, xmm0
movups xmmword [eax - 0x30], xmm1
movups xmm1, xmmword [eax - 0x20]
movups xmm0, xmmword [ecx - 0x40]
xorps xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
cmp edx, dword [esp + 0x10]
jb 0x4fa860
mov edi, dword [esp + 0x30]
cmp ebp, 8
jb 0x4fa8dd
mov ecx, esi
lea eax, [edx + edi]
mov ebp, ebx
and ecx, 0xfffffff8
sub ebp, edi
movq xmm1, qword [eax + ebp]
lea eax, [eax + 8]
movq xmm0, qword [eax - 8]
add edx, 8
xorps xmm1, xmm0
movq qword [eax - 8], xmm1
cmp edx, ecx
jb 0x4fa8c1
cmp edx, esi
jae 0x4fa8fe
mov ebp, ebx
lea ecx, [edx + edi]
sub ebp, edi
mov edi, esi
sub edi, edx
nop dword [eax]
mov al, byte [ecx + ebp]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub edi, 1
jne 0x4fa8f0
push 0x1c2
push str.providersimplementationskdfs_tls1_prf.c
push esi
push ebx
call fcn.00451d30
add esp, 0x10
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x20]
call fcn.004fa590
add esp, 0x1c
neg eax
sbb eax, eax
neg eax
pop ecx
ret
Function at 0x503400
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
push esi
lea ecx, [edx + 0x3f8]
lea esi, [eax + 0x3f8]
cmp eax, ecx
ja 0x50343b
cmp esi, edx
jb 0x50343b
sub edx, eax
mov esi, 0x80
mov ecx, dword [eax + edx]
lea eax, [eax + 8]
xor dword [eax - 8], ecx
mov ecx, dword [eax + edx - 4]
xor dword [eax - 4], ecx
sub esi, 1
jne 0x503424
pop esi
ret
lea esi, [edx + 0x30]
sub edx, eax
lea ecx, [eax + 0x10]
mov eax, 0x10
nop dword [eax + eax]
lea ecx, [ecx + 0x40]
lea esi, [esi + 0x40]
movups xmm0, xmmword [ecx - 0x50]
movups xmm1, xmmword [esi - 0x70]
xorps xmm1, xmm0
movups xmmword [ecx - 0x50], xmm1
movups xmm0, xmmword [ecx - 0x40]
movups xmm1, xmmword [edx + ecx - 0x40]
xorps xmm1, xmm0
movups xmmword [ecx - 0x40], xmm1
movups xmm0, xmmword [ecx - 0x30]
movups xmm1, xmmword [esi - 0x50]
xorps xmm1, xmm0
movups xmmword [ecx - 0x30], xmm1
movups xmm1, xmmword [esi - 0x40]
movups xmm0, xmmword [ecx - 0x20]
xorps xmm1, xmm0
movups xmmword [ecx - 0x20], xmm1
sub eax, 1
jne 0x503450
pop esi
ret

Function at 0x5055f0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.005e0210
push ebx
mov ebx, dword [esp + 0x10]
xor ecx, ecx
push esi
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x1c], 0x10
push edi
mov edi, dword [esp + 0x1c]
test esi, esi
jle 0x5056ee
cmp esi, 8
jb 0x5056d4
lea eax, [esi - 1]
lea edx, [esi - 1]
add eax, edi
add edx, ebx
cmp ebx, eax
ja 0x50563a
cmp edx, edi
jae 0x5056d4
mov edx, edi
push ebp
cmp esi, 0x40
jb 0x5056a9
mov eax, esi
lea ebp, [edi + 0x30]
and eax, 0xffffffc0
sub edx, ebx
mov dword [esp + 0x10], eax
lea eax, [ebx + 0x10]
movups xmm0, xmmword [eax - 0x10]
add ecx, 0x40
lea ebp, [ebp + 0x40]
lea eax, [eax + 0x40]
movups xmm1, xmmword [ebp - 0x70]
xorps xmm1, xmm0
movups xmmword [eax - 0x50], xmm1
movups xmm0, xmmword [eax - 0x40]
movups xmm1, xmmword [edx + eax - 0x40]
xorps xmm1, xmm0
movups xmmword [eax - 0x40], xmm1
movups xmm0, xmmword [eax - 0x30]
movups xmm1, xmmword [ebp - 0x50]
xorps xmm1, xmm0
movups xmmword [eax - 0x30], xmm1
movups xmm1, xmmword [eax - 0x20]
movups xmm0, xmmword [ebp - 0x40]
xorps xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
cmp ecx, dword [esp + 0x10]
jl 0x505653
mov eax, esi
and al, 0x3f
cmp al, 8
jb 0x5056cf
jmp 0x5056ab
sub edx, ebx
mov ebp, esi
lea eax, [ecx + ebx]
and ebp, 0xfffffff8
movq xmm1, qword [edx + eax]
lea eax, [eax + 8]
movq xmm0, qword [eax - 8]
add ecx, 8
xorps xmm1, xmm0
movq qword [eax - 8], xmm1
cmp ecx, ebp
jl 0x5056b3
pop ebp
cmp ecx, esi
jge 0x5056ee
mov edx, esi
lea eax, [ecx + ebx]
sub edi, ebx
sub edx, ecx
nop dword [eax]
mov cl, byte [eax + edi]
lea eax, [eax + 1]
xor byte [eax - 1], cl
sub edx, 1
jne 0x5056e0
push esi
push ebx
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x20]
push ebx
push dword [eax + 8]
call fcn.0044cd60
add esp, 0x14
test eax, eax
je 0x505717
xor eax, eax
cmp dword [esp + 0x20], esi
pop edi
pop esi
sete al
pop ebx
pop ecx
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x5058b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
test ebp, ebp
je 0x505923
mov edx, dword [esp + 0x10]
test edx, edx
je 0x505923
push ebx
mov ebx, dword [esp + 0xc]
push edi
mov edi, dword [ebx + 0x14]
cmp edx, edi
cmovb edi, edx
test edi, edi
je 0x5058f0
push esi
mov esi, ebp
lea ecx, [ebx + 0x1c]
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
xor byte [ecx], al
lea ecx, [ecx + 1]
sub edi, 1
jne 0x5058e0
pop esi
mov eax, dword [ebx + 0x14]
cmp edx, eax
jbe 0x505921
sub edx, eax
cmp edx, 0x10
jbe 0x505905
mov edx, 0x10
jmp 0x505909
test edx, edx
je 0x505921
xor ecx, ecx
nop dword [eax + eax]
mov eax, dword [ebx + 0x14]
add eax, ecx
mov al, byte [eax + ebp]
xor byte [ebx + ecx + 0x3c], al
inc ecx
cmp ecx, edx
jb 0x505910
pop edi
pop ebx
pop ebp
ret
Function at 0x505ba0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x74
call fcn.005e0210
mov eax, dword [0x699280]
xor eax, esp
mov dword [esp + 0x70], eax
mov ecx, dword [esp + 0x78]
mov edx, 0x10
mov eax, dword [esp + 0x84]
push ebx
push ebp
mov ebp, dword [esp + 0x84]
push esi
mov esi, dword [ecx + 0x94]
mov dword [esp + 0x10], 0x10
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x98]
movups xmm0, xmmword [esi + 0x3c]
mov dword [esp + 0x18], ecx
mov ecx, 1
push edi
mov dword [esp + 0x18], eax
movups xmmword [esp + 0x20], xmm0
nop
movzx eax, byte [edx + esi + 0x3b]
dec edx
add ecx, eax
mov byte [edx + esi + 0x3c], cl
shr ecx, 8
test edx, edx
jne 0x505c00
movups xmm0, xmmword [esi + 0x3c]
movups xmmword [esp + 0x30], xmm0
cmp dword [esi + 0x14], 0x10
jne 0x505c27
lea edi, [edx + 0x20]
jmp 0x505c52
mov edx, 0x10
mov ecx, 1
movzx eax, byte [edx + esi + 0x3b]
dec edx
add ecx, eax
mov byte [edx + esi + 0x3c], cl
shr ecx, 8
test edx, edx
jne 0x505c31
movups xmm0, xmmword [esi + 0x3c]
mov edi, 0x30
movups xmmword [esp + 0x40], xmm0
push edi
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x5c]
push eax
push dword [esi]
call fcn.0044cd60
add esp, 0x14
test eax, eax
je 0x505d69
cmp dword [esp + 0x14], edi
jne 0x505d69
push dword [esi + 0x14]
lea eax, [esp + 0x54]
push eax
lea ebx, [esi + 0x1c]
push ebx
call fcn.005e17e0
mov eax, dword [esi + 0x14]
add esp, 0xc
cmp dword [esi + 0x18], 0
movups xmm0, xmmword [esp + eax + 0x50]
movups xmmword [esi + 0x3c], xmm0
je 0x505cff
mov edi, dword [esp + 0x90]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
test ebp, ebp
jne 0x505cbf
test ecx, ecx
jne 0x505cbf
test eax, eax
je 0x505ce2
push dword [esp + 0x98]
push eax
push dword [esp + 0xa8]
push ecx
push edi
push ebp
push esi
call fcn.00505930
add esp, 0x1c
test eax, eax
je 0x505d69
test edi, edi
je 0x505d22
mov eax, dword [esp + 0x1c]
push dword [eax + 0x8c]
lea eax, [esi + 0x60]
push eax
push esi
call fcn.005058b0
add esp, 0xc
jmp 0x505d22
push dword [esp + 0x90]
push ebp
push esi
call fcn.005058b0
push dword [esp + 0xa4]
mov eax, dword [esp + 0x20]
push eax
push esi
call fcn.005058b0
add esp, 0x18
push 0xffffffffffffffff
push 0
push ebx
push 0
push 0
push dword [esi]
call fcn.0044cd30
add esp, 0x18
test eax, eax
je 0x505d69
push 0xffffffffffffffff
push 0
push ebx
push 0
push 0
push dword [esi + 4]
call fcn.0044cd30
add esp, 0x18
test eax, eax
je 0x505d69
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.005dffa1
add esp, 0x74
ret
mov ecx, dword [esp + 0x80]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005dffa1
add esp, 0x74
ret
Function at 0x509592
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, ebx
jne 0x5094ad
xor eax, eax
pop ebx
ret
push edi
push dword [ebx + 4]
push 0
push dword [ebx + 8]
push dword [ebx]
call fcn.004c2b00
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x5094f4
call fcn.00457560
push str.ecx_gen
push 0x258
push str.providersimplementationskeymgmtecx_kmgmt.c
call fcn.00457660
push edi
push 0x80010
push 0x39
call fcn.00457770
add esp, 0x18
xor eax, eax
pop edi
pop ebx
ret
test byte [ebx + 0xc], 3
je 0x50953f
push esi
push edi
call fcn.004c2a90
mov esi, eax
add esp, 4
test esi, esi
jne 0x509542
call fcn.00457560
push str.ecx_gen
push 0x261
push str.providersimplementationskeymgmtecx_kmgmt.c
call fcn.00457660
push esi
push 0x80010
push 0x39
call fcn.00457770
add esp, 0x18
push edi
call fcn.004c2ab0
add esp, 4
xor eax, eax
pop esi
pop edi
pop ebx
ret
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x50956f
mov ecx, dword [ebx + 0x14]
test ecx, ecx
je 0x50956f
mov edx, dword [ebx + 8]
cmp edx, 2
je 0x509533
cmp edx, 3
je 0x509533
push ecx
push eax
push esi
push edi
call fcn.005157e0
add esp, 0x10
test eax, eax
je 0x509533
jmp 0x509583
push 0
push dword [edi + 0x4c]
push esi
push dword [ebx]
call fcn.00457fa0
add esp, 0x10
test eax, eax
jle 0x509533
mov eax, dword [ebx + 8]
cmp eax, 3
ja case.default.0x50958b
jmp dword [eax*4 + 0x50960c]
mov al, byte [esi + 0x1f]
and byte [esi], 0xf8
and al, 0x3f
or al, 0x40
mov byte [esi + 0x1f], al
lea eax, [edi + 0xc]
push esi
push eax
call fcn.004c82f0
add esp, 8
mov eax, edi
or dword [edi + 8], 1
pop esi
pop edi
pop ebx
ret
and byte [esi], 0xfc
lea eax, [edi + 0xc]
or byte [esi + 0x37], 0x80
push esi
push eax
call fcn.004d1560
add esp, 8
mov eax, edi
or dword [edi + 8], 1
pop esi
pop edi
pop ebx
ret
push dword [ebx + 4]
lea eax, [edi + 0xc]
push esi
push eax
push dword [ebx]
call fcn.004c7be0
jmp 0x5095f4
push dword [ebx + 4]
lea eax, [edi + 0xc]
push esi
push eax
push dword [ebx]
call fcn.004cf950
add esp, 0x10
test eax, eax
je 0x509533
or dword [edi + 8], 1
mov eax, edi
pop esi
pop edi
pop ebx
ret
Function at 0x5157e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x54
call fcn.005e0210
mov eax, dword [0x699280]
xor eax, esp
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 0x58]
mov edx, str.X25519
mov eax, dword [esp + 0x5c]
push ebx
push ebp
push esi
mov dword [esp + 0x18], eax
xor ebx, ebx
mov eax, dword [esp + 0x6c]
push edi
mov dword [esp + 0x18], eax
xor edi, edi
cmp dword [ecx + 0x50], ebx
mov eax, str.X448
mov dword [esp + 0x14], ecx
cmove eax, edx
push eax
call fcn.0056be50
mov ebp, dword [esp + 0x78]
mov esi, eax
add esp, 4
cmp ebp, dword [esi + 0x1c]
jae 0x51586f
call fcn.00457560
push str.ossl_ecx_dhkem_derive_private
push 0x15d
push str.providersimplementationskemecx_kem.c
call fcn.00457660
push dword [esi + 0x1c]
push ebp
push str.ikm_length_is_:_zu__should_be_at_least__zu
push 0xe6
push 0x39
call fcn.00457770
add esp, 0x20
jmp 0x515916
mov eax, dword [esp + 0x14]
push dword [eax + 4]
push dword [eax]
push dword [esi + 0xc]
push str.HKDF
call fcn.0056c270
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x5158a1
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.005dffa1
add esp, 0x54
ret
movzx eax, byte [esi + 1]
push ebp
push dword [esp + 0x1c]
mov byte [esp + 0x18], al
movzx eax, byte [esi]
push str.dkp_prk
push 2
mov byte [esp + 0x21], al
lea eax, [esp + 0x20]
push eax
push 0x65e460
push 0
push 0
push dword [esi + 0x10]
lea eax, [esp + 0x44]
push eax
push edi
call fcn.0056c0b0
add esp, 0x2c
test eax, eax
je 0x515916
push 0
push 0
push 0x65e548
push 2
lea eax, [esp + 0x20]
push eax
push 0x65e460
push dword [esi + 0x10]
lea eax, [esp + 0x3c]
push eax
push dword [esi + 0x1c]
push dword [esp + 0x40]
push edi
call fcn.0056bed0
add esp, 0x2c
mov ecx, 1
test eax, eax
cmovne ebx, ecx
lea eax, [esp + 0x20]
push 0x40
push eax
call fcn.00401320
push edi
call fcn.0054fb70
mov ecx, dword [esp + 0x6c]
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005dffa1
add esp, 0x54
ret