Function at 0x5e27ff
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x8d5f40]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
and dword [ebp - 0x140], 0
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push 8
mov dword [ebp - 0x144], eax
lea edi, [ebp - 0x24]
pop ecx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 8]
and byte [ebp - 0x24], 0xf8
shr eax, 0x18
and al, 0x3f
or al, 0x40
mov byte [ebp - 5], al
lea eax, [ebp - 0x13c]
push edx
push eax
call fcn.005db7c9
push 0xa
pop ecx
xor eax, eax
lea edi, [ebp - 0x74]
rep stosd dword es:[edi], eax
push 0xa
pop ecx
lea edi, [ebp - 0x4c]
xor ebx, ebx
rep stosd dword es:[edi], eax
push 0x28
lea eax, [ebp - 0x13c]
inc ebx
push eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x74], ebx
push eax
call fcn.00717be0
add esp, 0x14
lea edi, [ebp - 0x9c]
xor eax, eax
push 0xa
pop ecx
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0x140]
mov dword [ebp - 0x9c], ebx
mov ebx, 0xfe
mov eax, ebx
test eax, eax
jns 0x5e28a8
add eax, 7
sar eax, 3
movzx esi, byte [ebp + eax - 0x24]
lea eax, [ebp - 0x114]
movzx ecx, bl
and ecx, 7
shr esi, cl
and esi, 1
xor edi, esi
push edi
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.005db796
push edi
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.005db796
add esp, 0x18
mov edi, esi
xor ecx, ecx
push 0x28
pop esi
push 4
pop edx
mov eax, dword [ebp + ecx - 0x114]
sub eax, dword [ebp + ecx - 0x9c]
mov dword [ebp + ecx - 0xec], eax
add ecx, edx
cmp ecx, esi
jb 0x5e28ec
xor ecx, ecx
mov eax, dword [ebp + ecx - 0x74]
sub eax, dword [ebp + ecx - 0x4c]
mov dword [ebp + ecx - 0xc4], eax
add ecx, edx
cmp ecx, esi
jb 0x5e2909
xor ecx, ecx
mov eax, dword [ebp + ecx - 0x4c]
add dword [ebp + ecx - 0x74], eax
add ecx, edx
cmp ecx, esi
jb 0x5e2920
xor ecx, ecx
mov eax, dword [ebp + ecx - 0x9c]
add eax, dword [ebp + ecx - 0x114]
mov dword [ebp + ecx - 0x4c], eax
add ecx, edx
cmp ecx, esi
jb 0x5e2930
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0xec]
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.005dbcbb
lea eax, [ebp - 0xc4]
push eax
lea eax, [ebp - 0x4c]
push eax
push eax
call fcn.005dbcbb
lea eax, [ebp - 0xc4]
push eax
lea eax, [ebp - 0xec]
push eax
call fcn.005dc890
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0xc4]
push eax
call fcn.005dc890
add esp, 0x28
xor ecx, ecx
mov eax, dword [ebp + ecx - 0x9c]
add eax, dword [ebp + ecx - 0x4c]
mov dword [ebp + ecx - 0x114], eax
add ecx, 4
cmp ecx, esi
jb 0x5e2998
xor ecx, ecx
mov eax, dword [ebp + ecx - 0x9c]
sub eax, dword [ebp + ecx - 0x4c]
mov dword [ebp + ecx - 0x4c], eax
add ecx, 4
cmp ecx, esi
jb 0x5e29b3
lea eax, [ebp - 0xec]
push eax
lea eax, [ebp - 0xc4]
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.005dbcbb
add esp, 0xc
xor ecx, ecx
mov eax, dword [ebp + ecx - 0xec]
sub dword [ebp + ecx - 0xc4], eax
add ecx, 4
cmp ecx, esi
jb 0x5e29e5
lea eax, [ebp - 0x4c]
push eax
push eax
call fcn.005dc890
lea eax, [ebp - 0xc4]
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.005dc440
lea eax, [ebp - 0x114]
push eax
push eax
call fcn.005dc890
add esp, 0x18
xor ecx, ecx
mov eax, dword [ebp + ecx - 0x9c]
add dword [ebp + ecx - 0xec], eax
add ecx, 4
cmp ecx, esi
jb 0x5e2a29
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x13c]
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.005dbcbb
lea eax, [ebp - 0xec]
push eax
lea eax, [ebp - 0xc4]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.005dbcbb
add esp, 0x18
sub ebx, 1
jns 0x5e289f
lea eax, [ebp - 0x4c]
push eax
push eax
call fcn.005dba52
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x74]
push eax
push eax
call fcn.005dbcbb
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x144]
call fcn.005dd33f
lea eax, [ebp - 0x24]
push 0x20
push eax
call fcn.0054ec79
mov ecx, dword [ebp - 4]
add esp, 0x24
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.006fedff
leave
ret