Function at 0x5dc3e0
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov edi, dword [esp + 0x60]
mov ebp, dword [esp + 0x50]
mov esi, dword [esp + 0x54]
mov ebx, dword [esp + 0x5c]
cmp edi, 2
je 0x5dc570
test ebp, ebp
je 0x5dc444
lea eax, [esp + 0x2c]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], 0
call fcn.004490c0
cmp dword [esp + 0x2c], 0xffffffff
jne 0x5dc760
mov eax, dword [ebp]
mov dword [esp], eax
test ebx, ebx
jne 0x5dc640
call fcn.004e05a0
mov ebx, eax
test esi, esi
je 0x5dc520
test ebx, ebx
je 0x5dc520
cmp ebx, 0x40a
je 0x5dc488
cmp ebx, 0x43f
je 0x5dc488
cmp ebx, 0x40b
je 0x5dc510
cmp dword [esp + 0x58], 0x39
jne 0x5dc520
mov eax, 3
jmp 0x5dc4b5
cmp dword [esp + 0x58], 0x20
jne 0x5dc520
cmp ebx, 0x40a
sete al
mov edx, eax
cmp ebx, 0x43f
je 0x5dc720
test al, al
je 0x5dc47b
mov ebx, 0x40a
xor eax, eax
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x64]
mov dword [esp + 8], 1
mov dword [esp + 0xc], ecx
mov dword [esp], eax
call fcn.0048b2e0
mov ebp, eax
test eax, eax
je 0x5dc7d8
test edi, edi
jne 0x5dc670
mov edx, dword [esp + 0x58]
lea eax, [eax + 0xc]
mov dword [esp + 4], esi
mov dword [esp], eax
mov dword [esp + 8], edx
call sub.msvcrt.dll_memcpy
add esp, 0x3c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret
cmp dword [esp + 0x58], 0x38
mov eax, 1
je 0x5dc4b5
lea esi, [esi]
call fcn.0049b030
mov dword [esp + 8], str.ossl_ecx_key_op
mov dword [esp + 4], 0xb9
mov dword [esp], str..._crypto_ec_ecx_backend.c
call fcn.0049b150
mov dword [esp + 8], 0
mov dword [esp + 4], 0x66
mov dword [esp], 0x10
call fcn.0049b230
xor ebp, ebp
add esp, 0x3c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret
cmp ebx, 0x40a
sete al
mov edx, eax
cmp ebx, 0x43f
je 0x5dc720
test al, al
jne 0x5dc4ae
cmp ebx, 0x40b
jne 0x5dc47b
mov eax, dword [esp + 0x68]
mov dword [esp + 8], 1
mov dword [esp + 4], 1
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x64]
mov dword [esp], eax
call fcn.0048b2e0
mov ebp, eax
test eax, eax
je 0x5dc7d8
mov dword [esp], ebp
call fcn.0048b4d0
mov edx, eax
test eax, eax
je 0x5dc820
cmp ebx, 0x40a
je 0x5dc780
cmp ebx, 0x43f
je 0x5dc780
cmp ebx, 0x40b
je 0x5dc862
mov eax, dword [esp + 0x64]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x39
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0040ec00
test eax, eax
jg 0x5dc6ce
lea esi, cs:[esi]
nop
mov dword [esp], ebp
call fcn.0048b410
jmp 0x5dc55d
call fcn.004e05a0
cmp eax, ebx
je 0x5dc444
call fcn.0049b030
mov dword [esp + 8], str.ossl_ecx_key_op
mov dword [esp + 4], 0xb3
jmp 0x5dc535
mov dword [esp], eax
call fcn.0048b4d0
mov edx, eax
test eax, eax
je 0x5dc820
cmp edi, 2
je 0x5dc740
cmp ebx, 0x40a
je 0x5dc750
cmp ebx, 0x43f
je 0x5dc750
xor ecx, ecx
cmp ebx, 0x40b
setne cl
add ecx, 0x38
mov eax, dword [esi]
lea edi, [edx + 4]
and edi, 0xfffffffc
mov dword [edx], eax
mov eax, dword [esi + ecx - 4]
mov dword [edx + ecx - 4], eax
sub edx, edi
add ecx, edx
sub esi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov dword [esp], ebp
call fcn.005dc000
test eax, eax
jne 0x5dc55f
call fcn.0049b030
mov dword [esp + 8], str.ossl_ecx_key_op
mov dword [esp + 4], 0xde
mov dword [esp], str..._crypto_ec_ecx_backend.c
call fcn.0049b150
mov dword [esp + 8], 0
mov dword [esp + 4], 0xa6
mov dword [esp], 0x10
call fcn.0049b230
jmp 0x5dc630
mov ebx, 0x43f
mov eax, 2
test dl, dl
je 0x5dc4b5
jmp 0x5dc4ae
test ebx, ebx
je 0x5dc6ce
jmp 0x5dc5db
mov ecx, 0x20
jmp 0x5dc6b1
call fcn.0049b030
mov dword [esp + 8], str.ossl_ecx_key_op
mov dword [esp + 4], 0xad
jmp 0x5dc535
mov eax, dword [esp + 0x64]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x20
mov dword [esp + 4], edx
mov dword [esp], eax
mov dword [esp + 0x1c], edx
call fcn.0040ec00
test eax, eax
jle 0x5dc630
cmp ebx, 0x40a
jne 0x5dc6ce
mov edx, dword [esp + 0x1c]
movzx eax, byte [edx + 0x1f]
and byte [edx], 0xf8
and eax, 0x7f
or eax, 0x40
mov byte [edx + 0x1f], al
jmp 0x5dc6ce
call fcn.0049b030
mov dword [esp + 8], str.ossl_ecx_key_op
mov dword [esp + 4], 0xc0
mov dword [esp], str..._crypto_ec_ecx_backend.c
call fcn.0049b150
mov dword [esp + 8], 0
mov dword [esp + 4], 0xc0100
mov dword [esp], 0x10
call fcn.0049b230
jmp 0x5dc55d
call fcn.0049b030
mov dword [esp + 8], str.ossl_ecx_key_op
mov dword [esp + 4], 0xca
mov dword [esp], str..._crypto_ec_ecx_backend.c
call fcn.0049b150
mov dword [esp + 8], 0
mov dword [esp + 4], 0xc0100
mov dword [esp], 0x10
call fcn.0049b230
jmp 0x5dc630
mov eax, dword [esp + 0x64]
mov dword [esp + 4], edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x38
mov dword [esp], eax
mov dword [esp + 0x1c], edx
call fcn.0040ec00
mov edx, dword [esp + 0x1c]
test eax, eax
jle 0x5dc630
and byte [edx], 0xfc
or byte [edx + 0x37], 0x80
jmp 0x5dc6ce