Function at 0x4bfafa
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov eax, 0x338
call fcn.00628620
mov eax, dword [0x70d514]
xor eax, esp
mov dword [esp + 0x334], eax
cmp dword [ebp + 0x14], 2
mov eax, dword [ebp + 0xc]
push esi
push edi
mov edi, edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
je 0x4bf944
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x4bf908
mov ecx, dword [ecx + 4]
test ecx, ecx
je 0x4bf908
cmp dword [ecx], 0xffffffff
je 0x4bf908
push 0x3b
push str.C:mediagetdependencies_installeropenssl1_1_win_build_1.1.1qcryptoececx_meth.c
push 0x66
jmp 0x4c004f
test eax, eax
je 0x4bf936
cmp edi, 0x40a
je 0x4bf92c
cmp edi, 0x43f
je 0x4bf92c
xor eax, eax
cmp edi, 0x40b
setne al
add eax, 0x38
jmp 0x4bf931
mov eax, 0x20
cmp dword [ebp + 0x10], eax
je 0x4bf944
push 0x41
push str.C:mediagetdependencies_installeropenssl1_1_win_build_1.1.1qcryptoececx_meth.c
push 0x66
jmp 0x4c004f
push 0x40
mov dword [0x70e32c], 0
call fcn.0063280d
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
test esi, esi
je 0x4c0046
push 0x40
push 0
push esi
call fcn.0062b760
add esp, 0xc
cmp dword [ebp + 0x14], 0
jne 0x4bf98e
push dword [ebp + 0x10]
push dword [esp + 0x18]
push esi
call fcn.0062b1e0
add esp, 0xc
jmp 0x4c000b
cmp edi, 0x40a
je 0x4bf9ae
cmp edi, 0x43f
je 0x4bf9ae
xor eax, eax
cmp edi, 0x40b
setne al
add eax, 0x38
jmp 0x4bf9b3
mov eax, 0x20
push eax
mov dword [0x70e32c], 0
call fcn.0063280d
mov esi, eax
add esp, 4
mov eax, dword [esp + 0x10]
mov dword [eax + 0x3c], esi
test esi, esi
jne 0x4bfa0f
push 0x52
push str.C:mediagetdependencies_installeropenssl1_1_win_build_1.1.1qcryptoececx_meth.c
push 0x41
mov edx, 0x10a
lea ecx, [esi + 0x10]
call fcn.004818c0
mov eax, dword [esp + 0x1c]
add esp, 0xc
push eax
call fcn.0062f107
add esp, 4
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x334]
xor ecx, esp
call fcn.006284fa
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x14], 2
jne 0x4bfaaa
cmp edi, 0x40a
je 0x4bfa39
cmp edi, 0x43f
je 0x4bfa39
xor edx, edx
cmp edi, 0x40b
setne dl
add edx, 0x38
jmp 0x4bfa3e
mov edx, 0x20
mov ecx, esi
call fcn.0047f5c0
test eax, eax
jg 0x4bfa7c
push esi
call fcn.0062f107
mov eax, dword [esp + 0x14]
add esp, 4
mov dword [eax + 0x3c], 0
push eax
call fcn.0062f107
add esp, 4
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x334]
xor ecx, esp
call fcn.006284fa
mov esp, ebp
pop ebp
ret
cmp edi, 0x40a
jne 0x4bfa99
mov al, byte [esi + 0x1f]
and byte [esi], 0xf8
and al, 0x3f
or al, 0x40
mov byte [esi + 0x1f], al
lea eax, [edi - 0x40a]
jmp 0x4bfaec
cmp edi, 0x40b
jne 0x4bfadd
and byte [esi], 0xfc
or byte [esi + 0x37], 0x80
jmp 0x4bfadd
cmp edi, 0x40a
je 0x4bfaca
cmp edi, 0x43f
je 0x4bfaca
xor eax, eax
cmp edi, 0x40b
setne al
add eax, 0x38
jmp 0x4bfacf
mov eax, 0x20
push eax
push dword [esp + 0x18]
push esi
call fcn.0062b1e0
add esp, 0xc
lea eax, [edi - 0x40a]
cmp eax, 0x36
ja case.0x4bfaf3.1036
movzx eax, byte [eax + 0x4c008c]
jmp dword [eax*4 + 0x4c0078]
movups xmm0, xmmword [esi]
lea edx, [esp + 0x310]
movups xmm1, xmmword [esi + 0x10]
lea ecx, [esp + 0xd0]
movd eax, xmm0
movaps xmmword [esp + 0x320], xmm1
movaps xmmword [esp + 0x310], xmm0
and al, 0xf8
psrldq xmm1, 0xc
mov byte [esp + 0x310], al
movd eax, xmm1
shr eax, 0x18
and al, 0x3f
or al, 0x40
mov byte [esp + 0x32f], al
call fcn.004f4c40
mov ecx, dword [esp + 0xf8]
mov edx, dword [esp + 0x120]
lea eax, [ecx + edx]
sub edx, ecx
mov ecx, dword [esp + 0xfc]
mov dword [esp + 0x2d4], edx
mov edx, dword [esp + 0x124]
mov dword [esp + 0x68], eax
lea eax, [edx + ecx]
sub edx, ecx
mov ecx, dword [esp + 0x100]
mov dword [esp + 0x2d8], edx
mov edx, dword [esp + 0x128]
mov dword [esp + 0x6c], eax
lea eax, [edx + ecx]
sub edx, ecx
mov ecx, dword [esp + 0x104]
mov dword [esp + 0x2dc], edx
mov edx, dword [esp + 0x12c]
mov dword [esp + 0x70], eax
lea eax, [edx + ecx]
sub edx, ecx
mov ecx, dword [esp + 0x108]
mov dword [esp + 0x2e0], edx
mov edx, dword [esp + 0x130]
mov dword [esp + 0x74], eax
lea eax, [edx + ecx]
sub edx, ecx
mov ecx, dword [esp + 0x10c]
mov dword [esp + 0x2e4], edx
mov edx, dword [esp + 0x134]
mov dword [esp + 0x78], eax
lea eax, [edx + ecx]
sub edx, ecx
mov ecx, dword [esp + 0x110]
mov dword [esp + 0x2e8], edx
mov edx, dword [esp + 0x138]
mov dword [esp + 0x7c], eax
lea eax, [edx + ecx]
sub edx, ecx
mov ecx, dword [esp + 0x114]
mov dword [esp + 0x2ec], edx
mov edx, dword [esp + 0x13c]
mov dword [esp + 0x80], eax
lea eax, [edx + ecx]
sub edx, ecx
mov ecx, dword [esp + 0x118]
mov dword [esp + 0x2f0], edx
mov edx, dword [esp + 0x140]
mov dword [esp + 0x84], eax
lea eax, [edx + ecx]
sub edx, ecx
mov ecx, dword [esp + 0x11c]
mov dword [esp + 0x2f4], edx
mov edx, dword [esp + 0x144]
mov dword [esp + 0x88], eax
lea eax, [edx + ecx]
sub edx, ecx
mov dword [esp + 0x2f8], edx
lea ecx, [esp + 0x20]
lea edx, [esp + 0x2d4]
mov dword [esp + 0x8c], eax
call fcn.004f2a10
lea eax, [esp + 0x20]
push eax
lea edx, [esp + 0x6c]
mov ecx, edx
call fcn.004f1d30
mov esi, dword [esp + 0x14]
lea edx, [esp + 0x6c]
mov ecx, esi
call fcn.004f1ac0
lea eax, [esp + 0x314]
push 0x20
push eax
call fcn.00401320
add esp, 0xc
jmp 0x4c000b
lea ecx, [esp + 0x1d0]
call fcn.0048b5c0
push 0x20
mov edx, esi
call fcn.0048bdd0
lea edx, [esp + 0x1d4]
lea ecx, [esp + 0x94]
call fcn.0048b670
lea eax, [esp + 0x1d4]
push 0xd8
push eax
call fcn.00401320
movzx eax, byte [esp + 0xbb]
lea edx, [esp + 0x9c]
and byte [esp + 0x9c], 0xf8
lea ecx, [esp + 0xdc]
and al, 0x3f
or al, 0x40
mov byte [esp + 0xbb], al
call fcn.004f4c40
lea edx, [esp + 0x12c]
lea ecx, [esp + 0x2e0]
call fcn.004f2a10
lea eax, [esp + 0x2e0]
push eax
lea edx, [esp + 0xe0]
lea ecx, [esp + 0x78]
call fcn.004f1d30
lea eax, [esp + 0x2e4]
push eax
lea edx, [esp + 0x10c]
lea ecx, [esp + 0x34]
call fcn.004f1d30
mov esi, dword [esp + 0x24]
lea edx, [esp + 0x34]
mov ecx, esi
call fcn.004f1ac0
lea edx, [esp + 0x7c]
lea ecx, [esp + 0x324]
call fcn.004f1ac0
movzx eax, byte [esp + 0x324]
shl al, 7
xor byte [esi + 0x1f], al
lea eax, [esp + 0xa4]
push 0x40
push eax
call fcn.00401320
add esp, 0x1c
jmp 0x4c000b
movups xmm0, xmmword [esi + 0x10]
push 0x38
movups xmm1, xmmword [esi]
lea edx, [esp + 0x24]
movups xmmword [esp + 0x34], xmm0
lea ecx, [esp + 0x2d8]
movups xmm0, xmmword [esi + 0x20]
movd eax, xmm1
movups xmmword [esp + 0x44], xmm0
movq xmm0, qword [esi + 0x30]
and al, 0xfc
movaps xmmword [esp + 0x24], xmm1
movq qword [esp + 0x54], xmm0
or byte [esp + 0x5b], 0x80
mov byte [esp + 0x24], al
call fcn.0051e1d0
add esp, 4
mov esi, 1
nop dword [eax]
nop word [eax + eax]
lea edx, [esp + 0x2d4]
mov ecx, edx
call fcn.0051e340
add esi, esi
cmp esi, 2
jb 0x4bfe10
lea eax, [esp + 0x2d4]
push eax
lea ecx, [esp + 0xd4]
call fcn.004fc9d0
mov ecx, 0x40
lea esi, [esp + 0xd4]
lea edi, [esp + 0x1d4]
lea eax, [esp + 0x1d4]
rep movsd dword es:[edi], dword [esi]
push eax
mov edx, eax
lea ecx, [esp + 0x98]
call fcn.0051ee60
lea edx, [esp + 0x98]
lea ecx, [esp + 0x28]
call fcn.0051ea20
lea eax, [esp + 0x28]
push eax
mov edx, eax
lea ecx, [esp + 0x9c]
call fcn.0051ee60
lea eax, [esp + 0x1dc]
push eax
lea edx, [esp + 0xa0]
lea ecx, [esp + 0x30]
call fcn.0051ee60
movups xmm0, xmmword [esp + 0x30]
lea eax, [esp + 0x220]
push eax
movups xmmword [esp + 0x2a4], xmm0
lea edx, [esp + 0x2a4]
movups xmm0, xmmword [esp + 0x44]
lea ecx, [esp + 0x264]
movups xmmword [esp + 0x2b4], xmm0
movups xmm0, xmmword [esp + 0x54]
movups xmmword [esp + 0x2c4], xmm0
movups xmm0, xmmword [esp + 0x64]
movups xmmword [esp + 0x2d4], xmm0
call fcn.0051ee60
lea eax, [esp + 0x264]
push eax
mov edx, eax
lea ecx, [esp + 0x228]
call fcn.0051ee60
mov esi, dword [esp + 0x28]
lea edx, [esp + 0x228]
add esp, 0x14
mov ecx, esi
call fcn.0051e460
lea eax, [esp + 0x1d4]
push 0x100
push eax
call fcn.00401320
lea eax, [esp + 0xdc]
push 0x100
push eax
call fcn.00401320
mov edi, dword [esp + 0x30]
add esp, 0x14
jmp 0x4c000b
push ecx
push esi
mov edx, 0x39
lea ecx, [esp + 0x2dc]
call fcn.004f0f50
add esp, 8
test eax, eax
je case.0x4bfaf3.1036
and byte [esp + 0x2d4], 0xfc
lea edx, [esp + 0x2d4]
or byte [esp + 0x30b], 0x80
lea ecx, [esp + 0x20]
push 0x39
mov byte [esp + 0x310], 0
call fcn.0051e1d0
add esp, 4
mov esi, 1
nop dword [eax]
lea edx, [esp + 0x20]
mov ecx, edx
call fcn.0051e340
add esi, esi
cmp esi, 4
jb 0x4bffa0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x1d4]
call fcn.004fc9d0
mov esi, dword [esp + 0x14]
lea edx, [esp + 0x1d4]
mov ecx, esi
call fcn.004fcd70
lea eax, [esp + 0x24]
push 0x38
push eax
call fcn.00401320
lea eax, [esp + 0x1dc]
push 0x100
push eax
call fcn.00401320
lea eax, [esp + 0x2e8]
push 0x39
push eax
call fcn.00401320
add esp, 0x1c
jmp 0x4c000b
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4c002d
push 0xffffffffffffffff
push 0
push edi
mov ecx, eax
call fcn.00478c10
add esp, 0xc
test eax, eax
je 0x4c002d
mov ecx, dword [esp + 0x18]
mov dword [ecx + 0x18], esi
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x334]
xor ecx, esp
call fcn.006284fa
mov esp, ebp
pop ebp
ret
push 0x48
push str.C:mediagetdependencies_installeropenssl1_1_win_build_1.1.1qcryptoececx_meth.c
push 0x41
mov edx, 0x10a
mov ecx, 0x10
call fcn.004818c0
mov ecx, dword [esp + 0x348]
add esp, 0xc
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.006284fa
mov esp, ebp
pop ebp
ret