Function at 0x6ab460
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xc
call fcn.006db7b0
cmp dword [ebp + 8], 0
jne 0x6ab47a
xor eax, eax
jmp 0x6ab6b5
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call fcn.005bf5f0
add esp, 0x10
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x6ab4d5
call fcn.005798d0
push str.ecx_gen
push 0x249
push str.providersimplementationskeymgmtecx_kmgmt.c
call fcn.00579920
add esp, 0xc
push 0
push 0xc0100
push 0x39
call fcn.00579970
add esp, 0xc
xor eax, eax
jmp 0x6ab6b5
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
and ecx, 3
jne 0x6ab4e8
mov eax, dword [ebp - 8]
jmp 0x6ab6b5
mov edx, dword [ebp - 8]
push edx
call fcn.005bf530
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x6ab52f
call fcn.005798d0
push str.ecx_gen
push 0x252
push str.providersimplementationskeymgmtecx_kmgmt.c
call fcn.00579920
add esp, 0xc
push 0
push 0xc0100
push 0x39
call fcn.00579970
add esp, 0xc
jmp 0x6ab6a7
push 0
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call fcn.0053d070
add esp, 0x10
test eax, eax
jg 0x6ab553
jmp 0x6ab6a7
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 3
ja case.default.0x6ab569
mov ecx, dword [ebp - 0xc]
jmp dword [ecx*4 + 0x6ab6bc]
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx + eax]
and edx, 0xf8
mov eax, 1
imul ecx, eax, 0
mov eax, dword [ebp - 4]
mov byte [eax + ecx], dl
mov ecx, 1
imul edx, ecx, 0x1f
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + edx]
and ecx, 0x7f
mov edx, 1
imul eax, edx, 0x1f
mov edx, dword [ebp - 4]
mov byte [edx + eax], cl
mov eax, 1
imul ecx, eax, 0x1f
mov edx, dword [ebp - 4]
movzx eax, byte [edx + ecx]
or eax, 0x40
mov ecx, 1
imul edx, ecx, 0x1f
mov ecx, dword [ebp - 4]
mov byte [ecx + edx], al
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
add eax, 0xc
push eax
call fcn.00621a10
add esp, 8
jmp case.default.0x6ab569
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + edx]
and ecx, 0xfc
mov edx, 1
imul eax, edx, 0
mov edx, dword [ebp - 4]
mov byte [edx + eax], cl
mov eax, 1
imul ecx, eax, 0x37
mov edx, dword [ebp - 4]
movzx eax, byte [edx + ecx]
or eax, 0x80
mov ecx, 1
imul edx, ecx, 0x37
mov ecx, dword [ebp - 4]
mov byte [ecx + edx], al
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
add eax, 0xc
push eax
call fcn.0062b970
add esp, 8
jmp case.default.0x6ab569
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
add ecx, 0xc
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.00621280
add esp, 0x10
test eax, eax
jne 0x6ab66b
jmp 0x6ab6a7
jmp case.default.0x6ab569
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
add ecx, 0xc
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.00629a30
add esp, 0x10
test eax, eax
jne case.default.0x6ab569
jmp 0x6ab6a7
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 8]
or edx, 1
mov eax, dword [ebp - 8]
mov dword [eax + 8], edx
mov eax, dword [ebp - 8]
jmp 0x6ab6b5
mov ecx, dword [ebp - 8]
push ecx
call fcn.005bf560
add esp, 4
xor eax, eax
mov esp, ebp
pop ebp
ret