Function at 0x57d2d0
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x28
call fcn.004c03f0
mov dword [ebp - 8], 0
cmp dword [ebp + 0x1c], 2
je 0x57d387
cmp dword [ebp + 0x10], 0
je 0x57d32d
mov eax, dword [ebp + 0x10]
push eax
push 0
lea ecx, [ebp - 0x10]
push ecx
push 0
call fcn.00553a00
add esp, 0x10
cmp dword [ebp - 0x10], 0xffffffff
je 0x57d32d
push 0x3b
push str.cryptoececx_meth.c
push 0x66
push 0x10a
push 0x10
call fcn.004e9ee0
add esp, 0x14
xor eax, eax
jmp 0x57d612
cmp dword [ebp + 0x14], 0
je 0x57d368
cmp dword [ebp + 0xc], 0x40a
je 0x57d359
cmp dword [ebp + 0xc], 0x43f
je 0x57d359
xor edx, edx
cmp dword [ebp + 0xc], 0x40b
setne dl
add edx, 0x38
mov dword [ebp - 0x14], edx
jmp 0x57d360
mov dword [ebp - 0x14], 0x20
mov eax, dword [ebp + 0x18]
cmp eax, dword [ebp - 0x14]
je 0x57d387
push 0x41
push str.cryptoececx_meth.c
push 0x66
push 0x10a
push 0x10
call fcn.004e9ee0
add esp, 0x14
xor eax, eax
jmp 0x57d612
push 0x46
push str.cryptoececx_meth.c
push 0x40
call fcn.004f4b10
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x57d3c0
push 0x48
push str.cryptoececx_meth.c
push 0x41
push 0x10a
push 0x10
call fcn.004e9ee0
add esp, 0x14
xor eax, eax
jmp 0x57d612
mov ecx, dword [ebp - 8]
mov dword [ebp - 0xc], ecx
cmp dword [ebp + 0x1c], 0
jne 0x57d3e5
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.004bd990
add esp, 0xc
jmp case.0x57d595.2
cmp dword [ebp + 0xc], 0x40a
je 0x57d40b
cmp dword [ebp + 0xc], 0x43f
je 0x57d40b
xor edx, edx
cmp dword [ebp + 0xc], 0x40b
setne dl
add edx, 0x38
mov dword [ebp - 0x18], edx
jmp 0x57d412
mov dword [ebp - 0x18], 0x20
push 0x50
push str.cryptoececx_meth.c
mov eax, dword [ebp - 0x18]
push eax
call fcn.005167a0
add esp, 0xc
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
mov dword [ecx + 0x3c], edx
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x57d45a
push 0x52
push str.cryptoececx_meth.c
push 0x41
push 0x10a
push 0x10
call fcn.004e9ee0
add esp, 0x14
jmp 0x57d5fd
cmp dword [ebp + 0x1c], 2
jne 0x57d532
cmp dword [ebp + 0xc], 0x40a
je 0x57d48a
cmp dword [ebp + 0xc], 0x43f
je 0x57d48a
xor ecx, ecx
cmp dword [ebp + 0xc], 0x40b
setne cl
add ecx, 0x38
mov dword [ebp - 0x20], ecx
jmp 0x57d491
mov dword [ebp - 0x20], 0x20
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.004ecdc0
add esp, 8
test eax, eax
jg 0x57d4c7
push 0x57
push str.cryptoececx_meth.c
mov ecx, dword [ebp - 4]
push ecx
call fcn.005167e0
add esp, 0xc
mov edx, dword [ebp - 8]
mov dword [edx + 0x3c], 0
jmp 0x57d5fd
cmp dword [ebp + 0xc], 0x40a
jne 0x57d503
mov eax, dword [ebp - 4]
movzx ecx, byte [eax]
and ecx, 0xf8
mov edx, dword [ebp - 4]
mov byte [edx], cl
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + 0x1f]
and ecx, 0x7f
mov edx, dword [ebp - 4]
mov byte [edx + 0x1f], cl
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + 0x1f]
or ecx, 0x40
mov edx, dword [ebp - 4]
mov byte [edx + 0x1f], cl
jmp 0x57d530
cmp dword [ebp + 0xc], 0x40b
jne 0x57d530
mov eax, dword [ebp - 4]
movzx ecx, byte [eax]
and ecx, 0xfc
mov edx, dword [ebp - 4]
mov byte [edx], cl
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + 0x37]
or ecx, 0x80
mov edx, dword [ebp - 4]
mov byte [edx + 0x37], cl
jmp 0x57d573
cmp dword [ebp + 0xc], 0x40a
je 0x57d558
cmp dword [ebp + 0xc], 0x43f
je 0x57d558
xor eax, eax
cmp dword [ebp + 0xc], 0x40b
setne al
add eax, 0x38
mov dword [ebp - 0x24], eax
jmp 0x57d55f
mov dword [ebp - 0x24], 0x20
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.004bd990
add esp, 0xc
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
sub edx, 0x40a
mov dword [ebp - 0x28], edx
cmp dword [ebp - 0x28], 0x36
ja case.0x57d595.2
mov eax, dword [ebp - 0x28]
movzx ecx, byte [eax + 0x57d62c]
jmp dword [ecx*4 + 0x57d618]
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.005f4370
add esp, 8
jmp case.0x57d595.2
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.005f38e0
add esp, 8
jmp case.0x57d595.2
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.005e4fd0
add esp, 8
jmp case.0x57d595.2
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.005e2880
add esp, 8
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004fd4f0
add esp, 0xc
mov eax, 1
jmp 0x57d612
push 0x79
push str.cryptoececx_meth.c
mov ecx, dword [ebp - 8]
push ecx
call fcn.004f4cb0
add esp, 0xc
xor eax, eax
mov esp, ebp
pop ebp
ret