Function at 0x4a2bf0
Capabilities:
Encrypt data using curve25519
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x310
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
lea ecx, [esp + 0x1f0]
movsd xmm0, qword [eax]
movsd xmm1, qword [eax + 8]
movsd qword [esp + 0x180], xmm0
movsd xmm0, qword [eax + 0x18]
movsd qword [esp + 0x198], xmm0
movq xmm0, qword [eax + 0x10]
movsd qword [esp + 0x188], xmm1
movq qword [esp + 0x190], xmm0
and byte [esp + 0x180], 0xf8
mov al, byte [esp + 0x19f]
and al, 0x3f
or al, 0x40
mov byte [esp + 0x19f], al
call fcn.00499a60
movsd xmm1, qword [esp + 0x1f8]
movsd xmm2, qword [esp + 0x1f0]
pxor xmm0, xmm0
mov eax, 0xfe
xor esi, esi
mov dword [esp + 0x70], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x68], 1
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x18], 1
movdqa xmmword [esp + 0x50], xmm0
movdqa xmmword [esp + 0x40], xmm0
movsd qword [esp + 0xb0], xmm1
movsd xmm1, qword [esp + 0x200]
movsd qword [esp + 0xa8], xmm2
movq xmm2, qword [esp + 0x208]
movsd qword [esp + 0xb8], xmm1
movq xmm1, qword [esp + 0x210]
movq qword [esp + 0xc0], xmm2
movq qword [esp + 0xc8], xmm1
nop
mov ecx, eax
movdqu xmm3, xmmword [esp + 0xa8]
movdqu xmm5, xmmword [esp + 0x68]
movdqu xmm4, xmmword [esp + 0xb8]
movdqu xmm0, xmmword [esp + 0x78]
movdqu xmm6, xmmword [esp + 0x18]
mov dword [esp + 0x10c], eax
shr ecx, 3
movzx edx, byte [esp + ecx + 0x180]
mov ecx, eax
and cl, 7
movdqa xmm2, xmm3
pxor xmm2, xmm5
shr edx, cl
and edx, 1
xor esi, edx
mov dword [esp + 0x108], edx
neg esi
movd xmm1, esi
mov edi, esi
mov dword [esp + 0x10], esi
pshufd xmm1, xmm1, 0
pand xmm2, xmm1
pxor xmm5, xmm2
pxor xmm2, xmm3
movdqa xmm3, xmm4
movdqa xmmword [esp + 0x140], xmm5
movdqa xmm5, xmmword [esp + 0x40]
pxor xmm3, xmm0
movdqa xmmword [esp + 0x120], xmm2
pand xmm3, xmm1
pxor xmm0, xmm3
pxor xmm3, xmm4
movdqa xmm4, xmm6
movdqa xmmword [esp + 0x130], xmm0
pxor xmm4, xmm5
pand xmm4, xmm1
pxor xmm5, xmm4
pxor xmm4, xmm6
movdqu xmmword [esp + 0x18], xmm4
movdqa xmmword [esp + 0x40], xmm5
movdqu xmm0, xmmword [esp + 0x28]
movdqa xmm7, xmmword [esp + 0x50]
movdqa xmm6, xmm0
pxor xmm6, xmm7
pand xmm6, xmm1
movdqa xmm1, xmmword [0x5965d0]
pxor xmm7, xmm6
pxor xmm6, xmm0
movdqa xmm0, xmm2
movdqa xmm2, xmmword [esp + 0x140]
movdqu xmmword [esp + 0x28], xmm6
movdqa xmmword [esp + 0x50], xmm7
paddd xmm0, xmm1
movdqa xmm1, xmmword [0x5965e0]
psubd xmm0, xmm4
movdqu xmmword [esp + 0x68], xmm2
movdqu xmmword [esp + 0x158], xmm0
movdqa xmm0, xmm3
paddd xmm0, xmm1
movdqa xmm1, xmmword [esp + 0x130]
psubd xmm0, xmm6
paddd xmm6, xmm3
movdqu xmmword [esp + 0x168], xmm0
movdqa xmm0, xmm2
paddd xmm0, xmmword [0x5965d0]
movdqu xmmword [esp + 0x78], xmm1
mov ecx, dword [esp + 0x88]
psubd xmm0, xmm5
paddd xmm5, xmm2
movdqu xmmword [esp + 0x1a0], xmm0
movdqa xmm0, xmm1
movdqu xmmword [esp + 0x290], xmm5
paddd xmm0, xmmword [0x5965e0]
psubd xmm0, xmm7
paddd xmm7, xmm1
movdqu xmmword [esp + 0x1b0], xmm0
movdqa xmm0, xmmword [esp + 0x120]
movdqu xmmword [esp + 0x2a0], xmm7
movdqu xmmword [esp + 0xa8], xmm0
movdqu xmmword [esp + 0xb8], xmm3
paddd xmm4, xmm0
mov edx, dword [esp + 0xc8]
movdqu xmmword [esp + 0x1c8], xmm4
movdqu xmmword [esp + 0x1d8], xmm6
mov eax, edx
xor eax, ecx
and eax, esi
xor ecx, eax
xor eax, edx
mov dword [esp + 0xc8], eax
mov dword [esp + 0x88], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x90], ecx
mov ebx, dword [esp + 0xcc]
mov eax, dword [esp + 0x8c]
mov esi, ebx
xor esi, eax
and esi, edi
xor eax, esi
xor esi, ebx
mov ebx, dword [esp + 0x60]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0xcc], esi
mov ecx, eax
xor ecx, ebx
and ecx, edi
xor ebx, ecx
xor ecx, eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x60], ebx
mov edi, dword [esp + 0x3c]
mov edx, dword [esp + 0x64]
mov eax, edi
xor eax, edx
and eax, dword [esp + 0x10]
xor edx, eax
xor eax, edi
mov edi, dword [esp + 0x14]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x64], edx
lea edi, [edi + 0x7fffffe]
sub edi, ecx
add ecx, dword [esp + 0x14]
mov dword [esp + 0x178], edi
lea edi, [esi + 0x3fffffe]
sub edi, eax
add eax, esi
lea esi, [esp + 0x290]
mov dword [esp + 0x17c], edi
mov edi, dword [esp + 0x90]
mov dword [esp + 0x1e8], ecx
mov dword [esp + 0x1ec], eax
lea eax, [esp + 0x18]
mov ecx, eax
lea eax, [esp + 0x158]
lea edi, [edi + 0x7fffffe]
sub edi, ebx
add ebx, dword [esp + 0x90]
mov dword [esp + 0x1c0], edi
mov edi, dword [esp + 0xc]
mov dword [esp + 0x2b0], ebx
lea edi, [edi + 0x3fffffe]
sub edi, edx
mov dword [esp + 0x1c4], edi
mov edi, dword [esp + 0xc]
add edx, edi
mov dword [esp + 0x8c], edi
mov dword [esp + 0x2b4], edx
mov edx, eax
push esi
call fcn.004a3af0
add esp, 4
lea eax, [esp + 0x40]
lea ebx, [esp + 0x1c8]
lea edi, [esp + 0x1a0]
mov ecx, eax
mov edx, ebx
push edi
call fcn.004a3af0
add esp, 4
lea ebx, [esp + 0x218]
mov edx, edi
mov ecx, ebx
call fcn.004a4980
lea ebx, [esp + 0x2b8]
mov edx, esi
mov ecx, ebx
call fcn.004a4980
movdqa xmm3, xmmword [esp + 0x40]
movdqu xmm2, xmmword [esp + 0x58]
movdqu xmm1, xmmword [esp + 0x18]
movdqu xmm0, xmmword [esp + 0x30]
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x50]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x54]
movdqa xmm4, xmm3
movdqa xmm5, xmm2
lea edi, [esi + ecx]
add ecx, 0x7fffffe
paddd xmm4, xmm1
paddd xmm1, xmmword [0x5965d0]
paddd xmm5, xmm0
paddd xmm0, xmmword [0x5965e0]
sub ecx, esi
movdqu xmmword [esp + 0x268], xmm4
mov dword [esp + 0x278], edi
lea edi, [edx + eax]
add eax, 0x3fffffe
sub eax, edx
mov dword [esp + 0x27c], edi
movdqu xmmword [esp + 0x280], xmm5
mov edx, ebx
psubd xmm1, xmm3
psubd xmm0, xmm2
movdqu xmmword [esp + 0x1c8], xmm1
mov dword [esp + 0x1d8], ecx
mov dword [esp + 0x1dc], eax
lea eax, [esp + 0x218]
movdqu xmmword [esp + 0x1e0], xmm0
lea ecx, [esp + 0x68]
push eax
call fcn.004a3af0
add esp, 4
movdqu xmm3, xmmword [esp + 0x2b8]
movdqu xmm2, xmmword [esp + 0x2d0]
mov esi, dword [esp + 0x2c8]
mov edi, dword [esp + 0x2cc]
movdqu xmm0, xmmword [esp + 0x230]
mov ecx, dword [esp + 0x22c]
mov edx, dword [esp + 0x228]
movdqu xmm1, xmmword [esp + 0x218]
mov eax, 0x7fffffe
paddd xmm3, xmmword [0x5965d0]
paddd xmm2, xmmword [0x5965e0]
add esi, eax
mov eax, 0x3fffffe
mov dword [esp + 0x100], ecx
mov dword [esp + 0x104], edx
movdqa xmmword [esp + 0x250], xmm0
movdqa xmmword [esp + 0x240], xmm1
add edi, eax
sub esi, edx
lea edx, [esp + 0x1c8]
sub edi, ecx
lea ecx, [esp + 0x40]
psubd xmm3, xmm1
psubd xmm2, xmm0
movdqu xmmword [esp + 0x1a0], xmm3
mov dword [esp + 0x1b0], esi
mov dword [esp + 0x1b4], edi
movdqa xmmword [esp + 0x90], xmm3
movdqa xmmword [esp + 0x110], xmm2
movdqu xmmword [esp + 0x1b8], xmm2
call fcn.004a4980
movdqa xmm1, xmmword [esp + 0x90]
mov ecx, 0x1db42
movd eax, xmm1
pshufd xmm0, xmm1, 0xe5
mov dword [esp + 0xfc], eax
mul ecx
mov dword [esp + 0x14], eax
movd eax, xmm0
mov ebx, edx
pshufd xmm0, xmm1, 0x4e
mul ecx
mov dword [esp + 0xd4], eax
movd eax, xmm0
mov dword [esp + 0xd8], edx
pshufd xmm0, xmm1, 0xe7
movdqa xmm1, xmmword [esp + 0x110]
mul ecx
mov dword [esp + 0xdc], eax
movd eax, xmm0
mov dword [esp + 0xe0], edx
mul ecx
mov dword [esp + 0xe4], eax
mov eax, esi
mov dword [esp + 0x90], edx
pshufd xmm0, xmm1, 0xe5
mov esi, dword [esp + 0x14]
mul ecx
mov dword [esp + 0xe8], eax
mov eax, edi
mov dword [esp + 0xc], edx
mul ecx
mov dword [esp + 0xec], eax
movd eax, xmm1
mov dword [esp + 0x140], edx
shrd esi, ebx, 0x1a
mul ecx
mov dword [esp + 0xf0], eax
movd eax, xmm0
mov dword [esp + 0x130], edx
pshufd xmm0, xmm1, 0x4e
mul ecx
mov dword [esp + 0xf4], eax
movd eax, xmm0
mov dword [esp + 0x120], edx
pshufd xmm0, xmm1, 0xe7
mul ecx
mov dword [esp + 0xf8], eax
movd eax, xmm0
mov dword [esp + 0x10], edx
mul ecx
mov dword [esp + 0x110], eax
mov eax, ebx
shr eax, 0x1a
add esi, dword [esp + 0xd4]
adc eax, dword [esp + 0xd8]
mov ecx, eax
shr eax, 0x19
shld ecx, esi, 7
and esi, 0x1ffffff
add ecx, dword [esp + 0xdc]
mov dword [esp + 0x14], esi
adc eax, dword [esp + 0xe0]
mov esi, eax
shr eax, 0x1a
shld esi, ecx, 6
and ecx, 0x3ffffff
add esi, dword [esp + 0xe4]
adc eax, dword [esp + 0x90]
mov edi, eax
shr eax, 0x19
shld edi, esi, 7
and esi, 0x1ffffff
add edi, dword [esp + 0xe8]
mov dword [esp + 0x90], esi
adc eax, dword [esp + 0xc]
mov esi, eax
shr eax, 0x1a
shld esi, edi, 6
and edi, 0x3ffffff
add esi, dword [esp + 0xec]
mov dword [esp + 0xc], edi
adc eax, dword [esp + 0x140]
mov edi, eax
shr eax, 0x19
shld edi, esi, 7
and esi, 0x1ffffff
add edi, dword [esp + 0xf0]
mov dword [esp + 0x140], esi
adc eax, dword [esp + 0x130]
mov esi, eax
shr eax, 0x1a
shld esi, edi, 6
and edi, 0x3ffffff
add esi, dword [esp + 0xf4]
mov dword [esp + 0x130], edi
adc eax, dword [esp + 0x120]
mov edi, eax
shr eax, 0x19
shld edi, esi, 7
and esi, 0x1ffffff
add edi, dword [esp + 0xf8]
mov dword [esp + 0x120], esi
adc eax, dword [esp + 0x10]
mov esi, eax
shr eax, 0x1a
shld esi, edi, 6
and edi, 0x3ffffff
add esi, dword [esp + 0x110]
mov dword [esp + 0x10], edi
adc eax, edx
imul ebx, dword [esp + 0xfc], 0x1db42
mov edx, 0x13
shld eax, esi, 7
and esi, 0x1ffffff
mul edx
mov dword [esp + 0x110], esi
mov edi, eax
mov esi, edx
mov eax, dword [esp + 0x90]
mov edx, dword [esp + 0xc]
and ebx, 0x3fffffe
add edi, ebx
adc esi, 0
shld esi, edi, 6
and edi, 0x3ffffff
add esi, dword [esp + 0x14]
mov dword [esp + 0x18], edi
mov ebx, esi
and esi, 0x1ffffff
shr ebx, 0x19
mov dword [esp + 0x1c], esi
add ebx, ecx
mov ecx, dword [esp + 0x140]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x130]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x120]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x110]
mov dword [esp + 0x38], edx
lea edx, [esp + 0x268]
mov dword [esp + 0x3c], ecx
lea ecx, [esp + 0xa8]
call fcn.004a4980
movdqa xmm1, xmmword [esp + 0x240]
pshufd xmm0, xmm1, 0xe5
movd eax, xmm1
movd ecx, xmm0
pshufd xmm0, xmm1, 0x4e
add eax, edi
lea edi, [esp + 0x40]
movd edx, xmm0
add ecx, esi
pshufd xmm0, xmm1, 0xe7
mov dword [esp + 0x158], eax
movdqa xmm1, xmmword [esp + 0x250]
mov esi, dword [esp + 0x108]
mov dword [esp + 0x15c], ecx
movd ecx, xmm0
add edx, ebx
add ecx, dword [esp + 0x90]
mov dword [esp + 0x160], edx
mov edx, dword [esp + 0xc]
pshufd xmm0, xmm1, 0xe5
mov dword [esp + 0x164], ecx
mov ecx, dword [esp + 0x140]
add edx, dword [esp + 0x104]
add ecx, dword [esp + 0x100]
mov dword [esp + 0x168], edx
movd edx, xmm1
add edx, dword [esp + 0x130]
mov dword [esp + 0x16c], ecx
movd ecx, xmm0
pshufd xmm0, xmm1, 0x4e
add ecx, dword [esp + 0x120]
mov dword [esp + 0x170], edx
movd edx, xmm0
pshufd xmm0, xmm1, 0xe7
add edx, dword [esp + 0x10]
mov dword [esp + 0x174], ecx
movd ecx, xmm0
add ecx, dword [esp + 0x110]
mov dword [esp + 0x178], edx
lea edx, [esp + 0x1f0]
mov dword [esp + 0x17c], ecx
lea ecx, [esp + 0x18]
push edi
call fcn.004a3af0
add esp, 4
lea eax, [esp + 0x158]
mov ecx, edi
lea edx, [esp + 0x1a0]
push eax
call fcn.004a3af0
add esp, 4
mov ecx, dword [esp + 0x10c]
dec ecx
mov eax, ecx
cmp ecx, 0xffffffff
jne 0x4a2d90
movdqu xmm3, xmmword [esp + 0xa8]
movdqu xmm1, xmmword [esp + 0x68]
neg esi
movdqu xmm4, xmmword [esp + 0xb8]
movdqu xmm2, xmmword [esp + 0x78]
lea edi, [esp + 0x40]
movd xmm0, esi
pshufd xmm0, xmm0, 0
movdqa xmm5, xmm3
pxor xmm5, xmm1
pand xmm5, xmm0
pxor xmm1, xmm5
pxor xmm5, xmm3
movdqu xmmword [esp + 0x68], xmm1
movdqa xmm1, xmm4
movdqu xmmword [esp + 0xa8], xmm5
pxor xmm1, xmm2
pand xmm1, xmm0
pxor xmm2, xmm1
pxor xmm1, xmm4
movdqu xmmword [esp + 0x78], xmm2
movdqu xmm2, xmmword [esp + 0x18]
movdqu xmmword [esp + 0xb8], xmm1
movdqa xmm1, xmmword [esp + 0x40]
mov ecx, dword [esp + 0xc8]
mov eax, dword [esp + 0x88]
movdqa xmm3, xmm2
pxor xmm3, xmm1
mov edx, ecx
pand xmm3, xmm0
xor edx, eax
pxor xmm1, xmm3
pxor xmm3, xmm2
and edx, esi
movdqu xmmword [esp + 0x18], xmm3
xor eax, edx
movdqa xmmword [esp + 0x40], xmm1
xor edx, ecx
movdqu xmm2, xmmword [esp + 0x28]
mov dword [esp + 0x88], eax
mov dword [esp + 0xc8], edx
movdqa xmm1, xmmword [esp + 0x50]
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0xcc]
movdqa xmm3, xmm2
pxor xmm3, xmm1
xor ecx, eax
pand xmm3, xmm0
and ecx, esi
pxor xmm1, xmm3
pxor xmm3, xmm2
xor ecx, eax
movdqu xmmword [esp + 0x28], xmm3
mov dword [esp + 0x8c], ecx
movdqa xmmword [esp + 0x50], xmm1
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x60]
mov edx, ecx
xor edx, eax
and edx, esi
xor eax, edx
xor edx, ecx
mov dword [esp + 0x60], eax
mov dword [esp + 0x38], edx
lea edx, [esp + 0x2e0]
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x3c]
xor ecx, eax
and ecx, esi
xor ecx, eax
mov dword [esp + 0x64], ecx
mov ecx, edi
movsd xmm0, qword [esp + 0x60]
movaps xmm2, xmmword [esp + 0x40]
movaps xmm1, xmmword [esp + 0x50]
movsd qword [esp + 0x300], xmm0
movaps xmmword [esp + 0x2f0], xmm1
movaps xmmword [esp + 0x2e0], xmm2
call fcn.004a37e0
lea esi, [esp + 0x68]
mov ecx, esi
mov edx, esi
push edi
call fcn.004a3af0
add esp, 4
mov edi, dword [ebp + 8]
mov edx, esi
mov ecx, edi
call fcn.00498c40
push 0x20
push edi
push 0x596a68
call sym.adb.exe_CRYPTO_memcmp
add esp, 0xc
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret