Function at 0x5115e0
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
movups xmm0, xmmword [eax]
xor ebx, ebx
movups xmm1, xmmword [eax + 0x10]
push dword [ebp + 0x10]
movd eax, xmm0
movups xmmword [ebp - 0x104], xmm1
and al, 0xf8
psrldq xmm1, 0xc
movups xmmword [ebp - 0x114], xmm0
mov byte [ebp - 0x114], al
movd eax, xmm1
shr eax, 0x18
and al, 0x3f
or al, 0x40
mov byte [ebp - 0xf5], al
lea eax, [ebp - 0x13c]
push eax
call fcn.00507eb0
xorps xmm0, xmm0
lea eax, [ebp - 0x13c]
push 0x28
push eax
lea eax, [ebp - 0xf0]
movq qword [ebp - 0x80], xmm0
movups xmmword [ebp - 0xa0], xmm0
push eax
movups xmmword [ebp - 0x90], xmm0
mov dword [ebp - 0xa0], 1
movups xmmword [ebp - 0x28], xmm0
movups xmmword [ebp - 0x18], xmm0
movq qword [ebp - 8], xmm0
call fcn.0053f9f0
xorps xmm0, xmm0
mov ecx, 0xfe
movups xmmword [ebp - 0x50], xmm0
add esp, 0x14
mov dword [ebp - 0x50], 1
movq qword [ebp - 0x30], xmm0
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp + 0xc], ecx
nop dword [eax + eax]
mov eax, ecx
test eax, eax
jns 0x5116a9
add eax, 7
sar eax, 3
movzx esi, byte [ebp + eax - 0x114]
lea eax, [ebp - 0xf0]
movzx ecx, cl
and ecx, 7
shr esi, cl
and esi, 1
xor ebx, esi
push ebx
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.00507de0
push ebx
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00507de0
mov eax, dword [ebp - 0xf0]
sub eax, dword [ebp - 0x50]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0xec]
sub eax, dword [ebp - 0x4c]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0xe8]
sub eax, dword [ebp - 0x48]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0xe4]
sub eax, dword [ebp - 0x44]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0xe0]
sub eax, dword [ebp - 0x40]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0xdc]
sub eax, dword [ebp - 0x3c]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0xd8]
sub eax, dword [ebp - 0x38]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0xd4]
sub eax, dword [ebp - 0x34]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0xd0]
sub eax, dword [ebp - 0x30]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0xcc]
sub eax, dword [ebp - 0x2c]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0xa0]
sub eax, dword [ebp - 0x28]
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0x9c]
sub eax, dword [ebp - 0x24]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0x98]
sub eax, dword [ebp - 0x20]
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0x94]
sub eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x80]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0x90]
sub eax, dword [ebp - 0x18]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0x8c]
sub eax, dword [ebp - 0x14]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0x88]
sub eax, dword [ebp - 0x10]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0x84]
sub eax, edi
mov dword [ebp - 0xf4], esi
mov esi, dword [ebp - 0x7c]
mov dword [ebp - 0xac], eax
mov eax, ebx
sub eax, dword [ebp - 8]
mov dword [ebp - 0xa8], eax
mov eax, esi
sub eax, dword [ebp - 4]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0xa0]
add eax, dword [ebp - 0x28]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0x9c]
add eax, dword [ebp - 0x24]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x98]
add eax, dword [ebp - 0x20]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x94]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x90]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x8c]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x88]
add eax, dword [ebp - 0x10]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x50]
add eax, dword [ebp - 0xf0]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x4c]
add eax, dword [ebp - 0xec]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x48]
add eax, dword [ebp - 0xe8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x44]
add eax, dword [ebp - 0xe4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x40]
add eax, dword [ebp - 0xe0]
add ebx, dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x3c]
add eax, dword [ebp - 0xdc]
add esi, dword [ebp - 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x38]
add eax, dword [ebp - 0xd8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x34]
add eax, dword [ebp - 0xd4]
add dword [ebp - 0x84], edi
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x30]
add eax, dword [ebp - 0xd0]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0xcc]
mov dword [ebp - 4], eax
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x78]
mov dword [ebp - 0x80], ebx
push eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0x7c], esi
push eax
call fcn.00508500
lea eax, [ebp - 0xc8]
push eax
lea eax, [ebp - 0x28]
push eax
push eax
call fcn.00508500
lea eax, [ebp - 0xc8]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.00509180
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0xc8]
push eax
call fcn.00509180
mov eax, dword [ebp - 0x28]
add esp, 0x40
add eax, dword [ebp - 0x50]
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x4c]
mov dword [ebp - 0xec], eax
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x48]
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x44]
mov dword [ebp - 0xe4], eax
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x40]
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x3c]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0x30]
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xdc], eax
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp - 0x34]
add eax, dword [ebp - 0xc]
mov dword [ebp - 0xd4], eax
lea eax, [esi + edi]
mov dword [ebp - 0xd0], eax
sub edi, esi
lea eax, [ecx + edx]
mov dword [ebp - 8], edi
mov dword [ebp - 0xcc], eax
sub edx, ecx
mov eax, dword [ebp - 0x50]
sub eax, dword [ebp - 0x28]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x4c]
sub eax, dword [ebp - 0x24]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x48]
sub eax, dword [ebp - 0x20]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x44]
sub eax, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0x18]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x38]
sub eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0xc]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0xc8]
mov dword [ebp - 4], edx
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.00508500
mov eax, dword [ebp - 0x6c]
sub dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0x68]
sub dword [ebp - 0xb8], eax
mov esi, dword [ebp - 0x78]
mov edi, dword [ebp - 0x74]
mov ebx, dword [ebp - 0x70]
mov eax, dword [ebp - 0x64]
sub dword [ebp - 0xc8], esi
sub dword [ebp - 0xc4], edi
sub dword [ebp - 0xc0], ebx
sub dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0x60]
sub dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0x5c]
sub dword [ebp - 0xac], eax
mov eax, dword [ebp - 0x58]
sub dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0x54]
sub dword [ebp - 0xa4], eax
lea eax, [ebp - 0x28]
push eax
push eax
call fcn.00509180
lea eax, [ebp - 0xc8]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.00508ca0
lea eax, [ebp - 0xf0]
push eax
push eax
call fcn.00509180
mov eax, dword [ebp - 0x6c]
add eax, dword [ebp - 0x44]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x68]
add eax, dword [ebp - 0x40]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x64]
add eax, dword [ebp - 0x3c]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x60]
add eax, dword [ebp - 0x38]
add esi, dword [ebp - 0x50]
add edi, dword [ebp - 0x4c]
add ebx, dword [ebp - 0x48]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x5c]
add eax, dword [ebp - 0x34]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x58]
add eax, dword [ebp - 0x30]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x54]
add eax, dword [ebp - 0x2c]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x13c]
mov dword [ebp - 0x78], esi
push eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0x74], edi
push eax
mov dword [ebp - 0x70], ebx
call fcn.00508500
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0xc8]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00508500
mov ecx, dword [ebp + 0xc]
add esp, 0x3c
mov ebx, dword [ebp - 0xf4]
sub ecx, 1
mov dword [ebp + 0xc], ecx
jns 0x5116a0
lea eax, [ebp - 0x28]
push eax
push eax
call fcn.005082d0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0xa0]
push eax
push eax
call fcn.00508500
lea eax, [ebp - 0xa0]
push eax
push dword [ebp + 8]
call fcn.00509c20
lea eax, [ebp - 0x114]
push 0x20
push eax
call fcn.004579a0
add esp, 0x24
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret