Function at 0x4a5b87
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x62fff4]
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.0049eb51
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.00559a20
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 0x4a5c30
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.0049eb1e
push edi
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0049eb1e
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 0x4a5c74
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 0x4a5c91
xor ecx, ecx
mov eax, dword [ebp + ecx - 0x4c]
add dword [ebp + ecx - 0x74], eax
add ecx, edx
cmp ecx, esi
jb 0x4a5ca8
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 0x4a5cb8
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0xec]
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.0049f043
lea eax, [ebp - 0xc4]
push eax
lea eax, [ebp - 0x4c]
push eax
push eax
call fcn.0049f043
lea eax, [ebp - 0xc4]
push eax
lea eax, [ebp - 0xec]
push eax
call fcn.0049fc18
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0xc4]
push eax
call fcn.0049fc18
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 0x4a5d20
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 0x4a5d3b
lea eax, [ebp - 0xec]
push eax
lea eax, [ebp - 0xc4]
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.0049f043
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 0x4a5d6d
lea eax, [ebp - 0x4c]
push eax
push eax
call fcn.0049fc18
lea eax, [ebp - 0xc4]
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.0049f7c8
lea eax, [ebp - 0x114]
push eax
push eax
call fcn.0049fc18
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 0x4a5db1
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x13c]
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.0049f043
lea eax, [ebp - 0xec]
push eax
lea eax, [ebp - 0xc4]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0049f043
add esp, 0x18
sub ebx, 1
jns 0x4a5c27
lea eax, [ebp - 0x4c]
push eax
push eax
call fcn.0049edda
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x74]
push eax
push eax
call fcn.0049f043
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x144]
call fcn.004a06c7
lea eax, [ebp - 0x24]
push 0x20
push eax
call fcn.00457860
mov ecx, dword [ebp - 4]
add esp, 0x24
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00540aaa
leave
ret