Function at 0x4ae520
Capabilities:
Encode data using xor
Encrypt data using curve25519
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x144
call fcn.0055bc20
mov eax, dword [0x5e2ec0]
xor eax, esp
mov dword [esp + 0x140], eax
mov eax, dword [esp + 0x148]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 8
lea edi, [esp + 0x130]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x14c]
and byte [esp + 0x130], 0xf8
shr ecx, 0x18
and cl, 0x3f
or cl, 0x40
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x15c]
mov byte [esp + 0x14f], cl
mov ecx, eax
lea edi, [esp + 0x108]
xor ebp, ebp
call fcn.004a9290
xor eax, eax
mov dword [esp + 0x60], eax
push 0x28
mov edx, edi
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
push edx
lea eax, [esp + 0xe0]
push eax
mov dword [esp + 0x6c], 1
call fcn.0055a9c0
add esp, 0xc
xor eax, eax
mov ecx, 0xfe
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x38], 1
mov dword [esp + 0x100], ecx
mov eax, ecx
cdq
and edx, 7
add eax, edx
movzx ecx, cl
sar eax, 3
movzx esi, byte [esp + eax + 0x130]
and ecx, 7
shr esi, cl
lea ecx, [esp + 0xd8]
push ecx
lea ecx, [esp + 0x64]
and esi, 1
xor ebp, esi
mov edx, ebp
call fcn.004ae0c0
lea edx, [esp + 0x3c]
push edx
mov edx, ebp
lea ecx, [esp + 0x18]
call fcn.004ae0c0
mov eax, dword [esp + 0xe0]
mov ecx, dword [esp + 0x40]
mov edx, eax
sub edx, ecx
mov dword [esp + 0x90], edx
mov edx, dword [esp + 0xe4]
mov ebp, esi
mov esi, dword [esp + 0x44]
mov edi, edx
sub edi, esi
mov dword [esp + 0x94], edi
mov edi, dword [esp + 0xe8]
sub edi, dword [esp + 0x48]
mov dword [esp + 0x98], edi
mov edi, dword [esp + 0xec]
sub edi, dword [esp + 0x4c]
mov dword [esp + 0x9c], edi
mov edi, dword [esp + 0xf0]
sub edi, dword [esp + 0x50]
mov dword [esp + 0xa0], edi
mov edi, dword [esp + 0xf4]
sub edi, dword [esp + 0x54]
mov dword [esp + 0xa4], edi
mov edi, dword [esp + 0xf8]
sub edi, dword [esp + 0x58]
mov dword [esp + 0xa8], edi
mov edi, dword [esp + 0xfc]
sub edi, dword [esp + 0x5c]
mov dword [esp + 0xac], edi
mov edi, dword [esp + 0x100]
sub edi, dword [esp + 0x60]
mov dword [esp + 0xb0], edi
mov edi, dword [esp + 0x104]
sub edi, dword [esp + 0x64]
mov dword [esp + 0xb4], edi
mov edi, dword [esp + 0x68]
sub edi, dword [esp + 0x18]
mov dword [esp + 0xb8], edi
mov edi, dword [esp + 0x6c]
sub edi, dword [esp + 0x1c]
mov dword [esp + 0xbc], edi
mov edi, dword [esp + 0x70]
sub edi, dword [esp + 0x20]
mov dword [esp + 0xc0], edi
mov edi, dword [esp + 0x74]
sub edi, dword [esp + 0x24]
mov dword [esp + 0xc4], edi
mov edi, dword [esp + 0x78]
sub edi, dword [esp + 0x28]
mov dword [esp + 0xc8], edi
mov edi, dword [esp + 0x7c]
sub edi, dword [esp + 0x2c]
mov dword [esp + 0xcc], edi
mov edi, dword [esp + 0x80]
sub edi, dword [esp + 0x30]
mov dword [esp + 0xd0], edi
mov edi, dword [esp + 0x84]
sub edi, dword [esp + 0x34]
mov dword [esp + 0xd4], edi
mov edi, dword [esp + 0x88]
sub edi, dword [esp + 0x38]
add eax, ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 0xd8], edi
mov edi, dword [esp + 0x8c]
sub edi, dword [esp + 0x3c]
add edx, esi
mov dword [esp + 0xdc], edi
mov edi, dword [esp + 0x18]
add dword [esp + 0x68], edi
mov edi, dword [esp + 0x1c]
add dword [esp + 0x6c], edi
mov edi, dword [esp + 0x20]
add dword [esp + 0x70], edi
mov edi, dword [esp + 0x24]
add dword [esp + 0x74], edi
mov edi, dword [esp + 0x28]
add dword [esp + 0x78], edi
mov edi, dword [esp + 0x2c]
add dword [esp + 0x7c], edi
mov edi, dword [esp + 0x30]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xe8]
add eax, ecx
mov ecx, dword [esp + 0xf0]
add dword [esp + 0x80], edi
mov edi, dword [esp + 0x34]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0xec]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x4c]
add edx, eax
mov eax, dword [esp + 0xf4]
add dword [esp + 0x84], edi
mov edi, dword [esp + 0x38]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x50]
add ecx, edx
mov edx, dword [esp + 0xf8]
add dword [esp + 0x88], edi
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x54]
add eax, ecx
mov ecx, dword [esp + 0xfc]
add dword [esp + 0x8c], edi
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x58]
add edx, eax
mov eax, dword [esp + 0x100]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x5c]
add ecx, edx
mov edx, dword [esp + 0x104]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x60]
add eax, ecx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x64]
add edx, eax
lea ecx, [esp + 0x68]
mov dword [esp + 0x3c], edx
push ecx
lea edx, [esp + 0x44]
push edx
lea ecx, [esp + 0x98]
call fcn.004a9af0
lea eax, [esp + 0xc0]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.004a9af0
lea edx, [esp + 0xc8]
push edx
lea eax, [esp + 0xa4]
push eax
call fcn.004ab090
lea ecx, [esp + 0x80]
push ecx
lea edx, [esp + 0xd4]
push edx
call fcn.004ab090
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov esi, dword [esp + 0x40]
mov edi, dword [esp + 0x44]
add ecx, eax
sub eax, dword [esp + 0x38]
mov ebx, dword [esp + 0x70]
mov dword [esp + 0x100], ecx
mov ecx, dword [esp + 0x64]
add edx, ecx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x70]
sub eax, dword [esp + 0x48]
mov dword [esp + 0x104], edx
mov edx, dword [esp + 0x68]
add esi, edx
sub ecx, dword [esp + 0x3c]
mov dword [esp + 0x108], esi
mov esi, dword [esp + 0x6c]
add edi, esi
mov dword [esp + 0x10c], edi
mov edi, dword [esp + 0x48]
add edi, ebx
mov ebx, dword [esp + 0x74]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x74]
sub eax, dword [esp + 0x4c]
mov dword [esp + 0x110], edi
mov edi, dword [esp + 0x4c]
add edi, ebx
mov ebx, dword [esp + 0x78]
sub edx, dword [esp + 0x40]
sub esi, dword [esp + 0x44]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x78]
sub eax, dword [esp + 0x50]
mov dword [esp + 0x114], edi
mov edi, dword [esp + 0x50]
add edi, ebx
mov ebx, dword [esp + 0x7c]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x7c]
sub eax, dword [esp + 0x54]
mov dword [esp + 0x118], edi
mov edi, dword [esp + 0x54]
add edi, ebx
mov ebx, dword [esp + 0x80]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x80]
sub eax, dword [esp + 0x58]
mov dword [esp + 0x11c], edi
mov edi, dword [esp + 0x58]
add edi, ebx
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0x120], edi
mov edi, dword [esp + 0x84]
mov dword [esp + 0x58], eax
mov dword [esp + 0x3c], ecx
lea eax, [esp + 0xb0]
add ebx, edi
sub edi, dword [esp + 0x5c]
push eax
lea ecx, [esp + 0x8c]
push ecx
lea ecx, [esp + 0xe0]
mov dword [esp + 0x12c], ebx
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x64], edi
call fcn.004a9af0
mov esi, dword [esp + 0xb8]
mov ebx, dword [esp + 0xbc]
mov edx, dword [esp + 0xc0]
mov eax, dword [esp + 0xc4]
sub dword [esp + 0xe0], esi
sub dword [esp + 0xe4], ebx
sub dword [esp + 0xe8], edx
sub dword [esp + 0xec], eax
mov ecx, dword [esp + 0xc8]
sub dword [esp + 0xf0], ecx
mov edx, dword [esp + 0xcc]
sub dword [esp + 0xf4], edx
mov ecx, dword [esp + 0xd4]
sub dword [esp + 0xfc], ecx
mov edx, dword [esp + 0xd8]
mov eax, dword [esp + 0xd0]
sub dword [esp + 0x100], edx
sub dword [esp + 0xf8], eax
mov eax, dword [esp + 0xdc]
sub dword [esp + 0x104], eax
lea ecx, [esp + 0x40]
push ecx
mov edx, ecx
push edx
call fcn.004ab090
lea ecx, [esp + 0xe8]
lea edi, [esp + 0x70]
call fcn.004ae180
lea eax, [esp + 0x110]
push eax
mov ecx, eax
push ecx
call fcn.004ab090
mov edx, dword [esp + 0x80]
add dword [esp + 0xd0], edx
mov ecx, dword [esp + 0x88]
add dword [esp + 0xd8], ecx
mov edx, dword [esp + 0x8c]
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x94]
add dword [esp + 0xdc], edx
add dword [esp + 0xd4], eax
add dword [esp + 0xe4], ecx
mov edx, dword [esp + 0x98]
mov eax, dword [esp + 0x90]
add dword [esp + 0xe8], edx
add esi, dword [esp + 0x78]
add ebx, dword [esp + 0x7c]
add dword [esp + 0xe0], eax
mov eax, dword [esp + 0x9c]
add dword [esp + 0xec], eax
add esp, 0x40
lea ecx, [esp + 0x10]
push ecx
mov edx, edi
push edx
lea ecx, [esp + 0x110]
mov dword [esp + 0x90], esi
mov dword [esp + 0x94], ebx
call fcn.004a9af0
lea eax, [esp + 0x90]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0xc0]
call fcn.004a9af0
mov ecx, dword [esp + 0x110]
add esp, 0x10
sub ecx, 1
mov dword [esp + 0x100], ecx
jns 0x4ae646
lea edx, [esp + 0x10]
push edx
mov ecx, edx
call fcn.004abd70
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x68]
push ecx
call fcn.004a9af0
mov edx, dword [esp + 0x110]
push edx
lea ecx, [esp + 0x70]
call fcn.004a9790
lea eax, [esp + 0x140]
push 0x20
push eax
call fcn.0046b340
mov ecx, dword [esp + 0x168]
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0055a67a
add esp, 0x144
ret