Function at 0x578b10
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x17c
call fcn.006499b0
mov eax, dword [0x71d770]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x20]
push eax
push str.SHA512
mov ecx, dword [ebp + 0x1c]
push ecx
call fcn.0043c0d0
add esp, 0xc
mov dword [ebp - 0x54], eax
call fcn.0043a890
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x54], 0
je 0x578b5a
cmp dword [ebp - 8], 0
jne 0x578b5f
jmp 0x578d1e
push 0
mov edx, dword [ebp - 0x54]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.0043af10
add esp, 0xc
test eax, eax
je 0x578ba9
push 0x20
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.0043af30
add esp, 0xc
test eax, eax
je 0x578ba9
lea eax, [ebp - 0x17c]
push eax
lea ecx, [ebp - 0x98]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.0043b100
add esp, 0xc
test eax, eax
jne 0x578bae
jmp 0x578d1e
movzx eax, byte [ebp - 0x98]
and eax, 0xf8
mov byte [ebp - 0x98], al
movzx ecx, byte [ebp - 0x79]
and ecx, 0x3f
mov byte [ebp - 0x79], cl
movzx edx, byte [ebp - 0x79]
or edx, 0x40
mov byte [ebp - 0x79], dl
push 0
mov eax, dword [ebp - 0x54]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.0043af10
add esp, 0xc
test eax, eax
je 0x578c36
push 0x20
lea edx, [ebp - 0x78]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.0043af30
add esp, 0xc
test eax, eax
je 0x578c36
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.0043af30
add esp, 0xc
test eax, eax
je 0x578c36
lea ecx, [ebp - 0x17c]
push ecx
lea edx, [ebp - 0xd8]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.0043b100
add esp, 0xc
test eax, eax
jne 0x578c3b
jmp 0x578d1e
lea ecx, [ebp - 0xd8]
push ecx
call fcn.0057e140
add esp, 4
lea edx, [ebp - 0xd8]
push edx
lea eax, [ebp - 0x178]
push eax
call fcn.0057c2d0
add esp, 8
lea ecx, [ebp - 0x178]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00578d70
add esp, 8
push 0
mov eax, dword [ebp - 0x54]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.0043af10
add esp, 0xc
test eax, eax
je 0x578ce8
push 0x20
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.0043af30
add esp, 0xc
test eax, eax
je 0x578ce8
push 0x20
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.0043af30
add esp, 0xc
test eax, eax
je 0x578ce8
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.0043af30
add esp, 0xc
test eax, eax
je 0x578ce8
lea eax, [ebp - 0x17c]
push eax
lea ecx, [ebp - 0x50]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.0043b100
add esp, 0xc
test eax, eax
jne 0x578cea
jmp 0x578d1e
lea eax, [ebp - 0x50]
push eax
call fcn.0057e140
add esp, 4
lea ecx, [ebp - 0xd8]
push ecx
lea edx, [ebp - 0x98]
push edx
lea eax, [ebp - 0x50]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x20
push ecx
call fcn.00580c80
add esp, 0x10
mov dword [ebp - 4], 1
push 0x40
lea edx, [ebp - 0xd8]
push edx
call fcn.0047f930
add esp, 8
push 0x40
lea eax, [ebp - 0x98]
push eax
call fcn.0047f930
add esp, 8
mov ecx, dword [ebp - 0x54]
push ecx
call fcn.0043c8c0
add esp, 4
mov edx, dword [ebp - 8]
push edx
call fcn.0043a8b0
add esp, 4
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0064815a
mov esp, ebp
pop ebp
ret