Function at 0x4a4a20
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.0049b810
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 + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x14], 1
movdqa xmmword [esp + 0x50], xmm0
movdqa xmmword [esp + 0x40], xmm0
movsd qword [esp + 0xc0], xmm1
movsd xmm1, qword [esp + 0x200]
movsd qword [esp + 0xb8], xmm2
movq xmm2, qword [esp + 0x208]
movsd qword [esp + 0xc8], xmm1
movq xmm1, qword [esp + 0x210]
movq qword [esp + 0xd0], xmm2
movq qword [esp + 0xd8], xmm1
nop
mov ecx, eax
movdqu xmm3, xmmword [esp + 0xb8]
movdqu xmm5, xmmword [esp + 0x68]
movdqu xmm4, xmmword [esp + 0xc8]
movdqu xmm0, xmmword [esp + 0x78]
movdqu xmm6, xmmword [esp + 0x14]
mov dword [esp + 0x11c], 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 + 0x118], edx
neg esi
movd xmm1, esi
mov edi, esi
mov dword [esp + 0xa0], 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 + 0x14], xmm4
movdqa xmmword [esp + 0x40], xmm5
movdqu xmm0, xmmword [esp + 0x24]
movdqa xmm7, xmmword [esp + 0x50]
movdqa xmm6, xmm0
pxor xmm6, xmm7
pand xmm6, xmm1
movdqa xmm1, xmmword [0x584310]
pxor xmm7, xmm6
pxor xmm6, xmm0
movdqa xmm0, xmm2
movdqa xmm2, xmmword [esp + 0x140]
movdqu xmmword [esp + 0x24], xmm6
movdqa xmmword [esp + 0x50], xmm7
paddd xmm0, xmm1
movdqa xmm1, xmmword [0x584320]
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 [0x584310]
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 [0x584320]
psubd xmm0, xmm7
paddd xmm7, xmm1
movdqu xmmword [esp + 0x1b0], xmm0
movdqa xmm0, xmmword [esp + 0x120]
movdqu xmmword [esp + 0x2a0], xmm7
movdqu xmmword [esp + 0xb8], xmm0
movdqu xmmword [esp + 0xc8], xmm3
paddd xmm4, xmm0
mov edx, dword [esp + 0xd8]
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 + 0xd8], eax
mov dword [esp + 0x88], ecx
mov dword [esp + 0x90], eax
mov dword [esp + 0x10], ecx
mov ebx, dword [esp + 0xdc]
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 + 0x34]
mov dword [esp + 0xdc], esi
mov ecx, eax
xor ecx, ebx
and ecx, edi
xor ebx, ecx
xor ecx, eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x60], ebx
mov edi, dword [esp + 0x38]
mov edx, dword [esp + 0x64]
mov eax, edi
xor eax, edx
and eax, dword [esp + 0xa0]
xor edx, eax
xor eax, edi
mov edi, dword [esp + 0x90]
mov dword [esp + 0x38], eax
mov dword [esp + 0x64], edx
lea edi, [edi + 0x7fffffe]
sub edi, ecx
add ecx, dword [esp + 0x90]
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 + 0x10]
mov dword [esp + 0x1e8], ecx
mov dword [esp + 0x1ec], eax
lea eax, [esp + 0x14]
mov ecx, eax
lea eax, [esp + 0x158]
lea edi, [edi + 0x7fffffe]
sub edi, ebx
add ebx, dword [esp + 0x10]
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.004a5900
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.004a5900
add esp, 4
lea ebx, [esp + 0x218]
mov edx, edi
mov ecx, ebx
call fcn.004a67b0
lea ebx, [esp + 0x2b8]
mov edx, esi
mov ecx, ebx
call fcn.004a67b0
movdqa xmm3, xmmword [esp + 0x40]
movdqu xmm2, xmmword [esp + 0x58]
movdqu xmm1, xmmword [esp + 0x14]
movdqu xmm0, xmmword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x50]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x54]
movdqa xmm4, xmm3
movdqa xmm5, xmm2
lea edi, [esi + ecx]
add ecx, 0x7fffffe
paddd xmm4, xmm1
paddd xmm1, xmmword [0x584310]
paddd xmm5, xmm0
paddd xmm0, xmmword [0x584320]
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.004a5900
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 [0x584310]
paddd xmm2, xmmword [0x584320]
add esi, eax
mov eax, 0x3fffffe
mov dword [esp + 0x110], ecx
mov dword [esp + 0x114], edx
movdqa xmmword [esp + 0x240], xmm0
movdqa xmmword [esp + 0x250], 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 + 0xa0], xmm2
movdqu xmmword [esp + 0x1b8], xmm2
call fcn.004a67b0
movdqa xmm1, xmmword [esp + 0x90]
mov ecx, 0x1db42
movd eax, xmm1
pshufd xmm0, xmm1, 0xe5
mov dword [esp + 0x10c], eax
mul ecx
mov dword [esp + 0xec], eax
movd eax, xmm0
mov ebx, edx
pshufd xmm0, xmm1, 0x4e
mul ecx
mov dword [esp + 0xe4], eax
movd eax, xmm0
mov dword [esp + 0xe8], edx
pshufd xmm0, xmm1, 0xe7
movdqa xmm1, xmmword [esp + 0xa0]
mul ecx
mov dword [esp + 0xf0], eax
movd eax, xmm0
mov dword [esp + 0x3c], edx
mul ecx
mov dword [esp + 0xf4], eax
mov eax, esi
mov dword [esp + 0x90], edx
pshufd xmm0, xmm1, 0xe5
mul ecx
mov dword [esp + 0xf8], eax
mov eax, edi
mov dword [esp + 0x10], edx
mul ecx
mov dword [esp + 0xfc], eax
movd eax, xmm1
mov dword [esp + 0xc], edx
mul ecx
mov dword [esp + 0x100], eax
movd eax, xmm0
mov dword [esp + 0x140], edx
pshufd xmm0, xmm1, 0x4e
mul ecx
mov dword [esp + 0x104], eax
movd eax, xmm0
mov dword [esp + 0x130], edx
pshufd xmm0, xmm1, 0xe7
mul ecx
mov dword [esp + 0x108], eax
movd eax, xmm0
mov dword [esp + 0x120], edx
mul ecx
mov ecx, dword [esp + 0xec]
mov dword [esp + 0xa0], eax
mov eax, ebx
shr eax, 0x1a
shrd ecx, ebx, 0x1a
add ecx, dword [esp + 0xe4]
adc eax, dword [esp + 0xe8]
mov ebx, eax
shr eax, 0x19
shld ebx, ecx, 7
and ecx, 0x1ffffff
add ebx, dword [esp + 0xf0]
mov esi, ecx
adc eax, dword [esp + 0x3c]
mov edi, eax
shr eax, 0x1a
shld edi, ebx, 6
and ebx, 0x3ffffff
add edi, dword [esp + 0xf4]
mov dword [esp + 0x3c], ebx
adc eax, dword [esp + 0x90]
mov ecx, eax
shr eax, 0x19
shld ecx, edi, 7
and edi, 0x1ffffff
add ecx, dword [esp + 0xf8]
mov dword [esp + 0x90], edi
adc eax, dword [esp + 0x10]
mov edi, eax
shr eax, 0x1a
shld edi, ecx, 6
and ecx, 0x3ffffff
add edi, dword [esp + 0xfc]
mov dword [esp + 0x10], ecx
adc eax, dword [esp + 0xc]
mov ecx, eax
shr eax, 0x19
shld ecx, edi, 7
and edi, 0x1ffffff
add ecx, dword [esp + 0x100]
mov dword [esp + 0xc], edi
adc eax, dword [esp + 0x140]
mov edi, eax
shr eax, 0x1a
shld edi, ecx, 6
and ecx, 0x3ffffff
add edi, dword [esp + 0x104]
mov dword [esp + 0x140], ecx
adc eax, dword [esp + 0x130]
mov ecx, eax
shr eax, 0x19
shld ecx, edi, 7
and edi, 0x1ffffff
add ecx, dword [esp + 0x108]
mov dword [esp + 0x130], edi
adc eax, dword [esp + 0x120]
mov edi, eax
shr eax, 0x1a
shld edi, ecx, 6
and ecx, 0x3ffffff
add edi, dword [esp + 0xa0]
mov dword [esp + 0x120], ecx
adc eax, edx
imul ecx, dword [esp + 0x10c], 0x1db42
mov edx, 0x13
shld eax, edi, 7
and edi, 0x1ffffff
mul edx
mov dword [esp + 0xa0], edi
mov ebx, eax
mov edi, edx
mov eax, dword [esp + 0x90]
mov edx, dword [esp + 0x10]
and ecx, 0x3fffffe
add ebx, ecx
mov ecx, dword [esp + 0xc]
adc edi, 0
shld edi, ebx, 6
and ebx, 0x3ffffff
add edi, esi
mov dword [esp + 0x14], ebx
mov esi, edi
and edi, 0x1ffffff
shr esi, 0x19
mov dword [esp + 0x18], edi
add esi, dword [esp + 0x3c]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], ecx
mov edx, dword [esp + 0x140]
mov ecx, dword [esp + 0x130]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], ecx
mov edx, dword [esp + 0x120]
mov ecx, dword [esp + 0xa0]
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], ecx
lea ecx, [esp + 0xb8]
lea edx, [esp + 0x268]
call fcn.004a67b0
movd xmm3, dword [esp + 0x90]
movd xmm2, esi
movd xmm0, edi
movd xmm1, ebx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov esi, dword [esp + 0x118]
lea edi, [esp + 0x40]
punpckldq xmm1, xmm0
punpckldq xmm2, xmm3
add eax, dword [esp + 0x114]
add ecx, dword [esp + 0x110]
punpcklqdq xmm1, xmm2
paddd xmm1, xmmword [esp + 0x250]
movdqu xmmword [esp + 0x158], xmm1
movdqa xmm1, xmmword [esp + 0x240]
mov dword [esp + 0x168], eax
mov dword [esp + 0x16c], ecx
movd edx, xmm1
pshufd xmm0, xmm1, 0xe5
movd ecx, xmm0
add edx, dword [esp + 0x140]
pshufd xmm0, xmm1, 0x4e
add ecx, dword [esp + 0x130]
mov dword [esp + 0x170], edx
movd edx, xmm0
pshufd xmm0, xmm1, 0xe7
mov dword [esp + 0x174], ecx
movd ecx, xmm0
add edx, dword [esp + 0x120]
add ecx, dword [esp + 0xa0]
mov dword [esp + 0x178], edx
lea edx, [esp + 0x1f0]
mov dword [esp + 0x17c], ecx
lea ecx, [esp + 0x14]
push edi
call fcn.004a5900
add esp, 4
lea eax, [esp + 0x158]
mov ecx, edi
lea edx, [esp + 0x1a0]
push eax
call fcn.004a5900
add esp, 4
mov ecx, dword [esp + 0x11c]
dec ecx
mov eax, ecx
cmp ecx, 0xffffffff
jne 0x4a4bc0
movdqu xmm3, xmmword [esp + 0xb8]
movdqu xmm1, xmmword [esp + 0x68]
neg esi
movdqu xmm4, xmmword [esp + 0xc8]
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 + 0xb8], xmm5
pxor xmm1, xmm2
pand xmm1, xmm0
pxor xmm2, xmm1
pxor xmm1, xmm4
movdqu xmmword [esp + 0x78], xmm2
movdqu xmm2, xmmword [esp + 0x14]
movdqu xmmword [esp + 0xc8], xmm1
movdqa xmm1, xmmword [esp + 0x40]
mov ecx, dword [esp + 0xd8]
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 + 0x14], xmm3
xor eax, edx
movdqa xmmword [esp + 0x40], xmm1
xor edx, ecx
movdqu xmm2, xmmword [esp + 0x24]
mov dword [esp + 0x88], eax
mov dword [esp + 0xd8], edx
movdqa xmm1, xmmword [esp + 0x50]
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0xdc]
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 + 0x24], xmm3
mov dword [esp + 0x8c], ecx
movdqa xmmword [esp + 0x50], xmm1
mov ecx, dword [esp + 0x34]
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 + 0x34], edx
lea edx, [esp + 0x2e0]
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x38]
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.004a55f0
lea esi, [esp + 0x68]
mov ecx, esi
mov edx, esi
push edi
call fcn.004a5900
add esp, 4
mov edi, dword [ebp + 8]
mov edx, esi
mov ecx, edi
call fcn.0049a9f0
push 0x20
push edi
push 0x5847a8
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