Function at 0x58edd0
Capabilities:
Encode data using xor
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
movups xmm0, xmmword [eax]
xor esi, esi
movups xmm1, xmmword [eax + 0x10]
push dword [ebp + 0x10]
movd eax, xmm0
movups xmmword [ebp - 0x108], xmm1
and al, 0xf8
psrldq xmm1, 0xc
movups xmmword [ebp - 0x118], xmm0
mov byte [ebp - 0x118], al
movd eax, xmm1
shr eax, 0x18
and al, 0x3f
or al, 0x40
mov byte [ebp - 0xf9], al
lea eax, [ebp - 0x140]
push eax
call fcn.0058c440
xorps xmm0, xmm0
mov ecx, 0xfe
movups xmmword [ebp - 0xa0], xmm0
add esp, 8
mov dword [ebp - 0xa0], 1
movups xmmword [ebp - 0x90], xmm0
mov dword [ebp + 0xc], ecx
movq qword [ebp - 0x80], xmm0
movups xmmword [ebp - 0x28], xmm0
movups xmmword [ebp - 0x18], xmm0
movq qword [ebp - 8], xmm0
movups xmm0, xmmword [ebp - 0x140]
movups xmmword [ebp - 0xc8], xmm0
movups xmm0, xmmword [ebp - 0x130]
movups xmmword [ebp - 0xb8], xmm0
movq xmm0, qword [ebp - 0x120]
movq qword [ebp - 0xa8], xmm0
xorps xmm0, xmm0
movups xmmword [ebp - 0x50], xmm0
mov dword [ebp - 0x50], 1
movups xmmword [ebp - 0x40], xmm0
movq qword [ebp - 0x30], xmm0
mov eax, ecx
movzx ecx, cl
shr eax, 3
and ecx, 7
movzx ebx, byte [ebp + eax - 0x118]
lea eax, [ebp - 0xc8]
shr ebx, cl
and ebx, 1
xor esi, ebx
mov dword [ebp - 0xf8], ebx
push esi
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.0058c370
push esi
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0058c370
mov eax, dword [ebp - 0xc8]
sub eax, dword [ebp - 0x50]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0xc4]
sub eax, dword [ebp - 0x4c]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0xc0]
sub eax, dword [ebp - 0x48]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0xbc]
sub eax, dword [ebp - 0x44]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0xb8]
sub eax, dword [ebp - 0x40]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0xb4]
sub eax, dword [ebp - 0x3c]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0xb0]
sub eax, dword [ebp - 0x38]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0xac]
sub eax, dword [ebp - 0x34]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0xa8]
sub eax, dword [ebp - 0x30]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0xa4]
sub eax, dword [ebp - 0x2c]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0xa0]
sub eax, dword [ebp - 0x28]
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp - 0x9c]
sub eax, dword [ebp - 0x24]
mov dword [ebp - 0xec], eax
mov eax, dword [ebp - 0x98]
sub eax, dword [ebp - 0x20]
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp - 0x94]
sub eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0xc]
mov dword [ebp - 0xe4], eax
mov eax, dword [ebp - 0x90]
sub eax, dword [ebp - 0x18]
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp - 0x8c]
sub eax, dword [ebp - 0x14]
mov dword [ebp - 0xdc], eax
mov eax, dword [ebp - 0x88]
sub eax, dword [ebp - 0x10]
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp - 0x84]
sub eax, edi
mov dword [ebp - 0xf4], ebx
mov ebx, dword [ebp - 0x80]
mov dword [ebp - 0xd4], eax
mov eax, ebx
sub eax, dword [ebp - 8]
mov dword [ebp - 0xd0], eax
mov esi, dword [ebp - 0x7c]
mov eax, esi
sub eax, dword [ebp - 4]
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0xa0]
add eax, dword [ebp - 0x28]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0x9c]
add eax, dword [ebp - 0x24]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x98]
add eax, dword [ebp - 0x20]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x94]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x90]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x8c]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x88]
add eax, dword [ebp - 0x10]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x50]
add eax, dword [ebp - 0xc8]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x4c]
add eax, dword [ebp - 0xc4]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x48]
add eax, dword [ebp - 0xc0]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x44]
add eax, dword [ebp - 0xbc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x40]
add eax, dword [ebp - 0xb8]
add ebx, dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x3c]
add eax, dword [ebp - 0xb4]
add esi, dword [ebp - 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x38]
add eax, dword [ebp - 0xb0]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x34]
add eax, dword [ebp - 0xac]
add dword [ebp - 0x84], edi
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x30]
add eax, dword [ebp - 0xa8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0xa4]
mov dword [ebp - 4], eax
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x78]
mov dword [ebp - 0x80], ebx
push eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0x7c], esi
push eax
call fcn.0058ca80
lea eax, [ebp - 0xf0]
push eax
lea eax, [ebp - 0x28]
push eax
push eax
call fcn.0058ca80
lea eax, [ebp - 0xf0]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.0058d460
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0xf0]
push eax
call fcn.0058d460
mov ecx, dword [ebp - 0x28]
add esp, 0x40
mov edx, dword [ebp - 0x50]
lea eax, [ecx + edx]
sub edx, ecx
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x28], edx
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0xc8], eax
lea eax, [ecx + edx]
sub edx, ecx
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x24], edx
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0xc4], eax
lea eax, [ecx + edx]
sub edx, ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], edx
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0xc0], eax
lea eax, [ecx + edx]
sub edx, ecx
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0xbc], eax
lea eax, [ecx + edx]
sub edx, ecx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0xb8], eax
lea eax, [ecx + edx]
sub edx, ecx
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0xb4], eax
lea eax, [ecx + edx]
sub edx, ecx
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0xb0], eax
lea eax, [ecx + edx]
sub edx, ecx
mov ecx, dword [ebp - 8]
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0xac], eax
lea eax, [ecx + edx]
sub edx, ecx
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], edx
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0xa8], eax
lea eax, [ecx + edx]
sub edx, ecx
mov dword [ebp - 0xa4], eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0xf0]
mov dword [ebp - 4], edx
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.0058ca80
mov eax, dword [ebp - 0x6c]
sub dword [ebp - 0xe4], eax
mov esi, dword [ebp - 0x78]
mov edi, dword [ebp - 0x74]
mov ebx, dword [ebp - 0x70]
mov eax, dword [ebp - 0x68]
sub dword [ebp - 0xf0], esi
sub dword [ebp - 0xec], edi
sub dword [ebp - 0xe8], ebx
sub dword [ebp - 0xe0], eax
mov eax, dword [ebp - 0x64]
sub dword [ebp - 0xdc], eax
mov eax, dword [ebp - 0x60]
sub dword [ebp - 0xd8], eax
mov eax, dword [ebp - 0x5c]
sub dword [ebp - 0xd4], eax
mov eax, dword [ebp - 0x58]
sub dword [ebp - 0xd0], eax
mov eax, dword [ebp - 0x54]
sub dword [ebp - 0xcc], eax
lea eax, [ebp - 0x28]
push eax
push eax
call fcn.0058d460
lea eax, [ebp - 0xf0]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.0058d210
lea eax, [ebp - 0xc8]
push eax
push eax
call fcn.0058d460
mov eax, dword [ebp - 0x6c]
add eax, dword [ebp - 0x44]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x68]
add eax, dword [ebp - 0x40]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x64]
add eax, dword [ebp - 0x3c]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x60]
add eax, dword [ebp - 0x38]
add esi, dword [ebp - 0x50]
add edi, dword [ebp - 0x4c]
add ebx, dword [ebp - 0x48]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x5c]
add eax, dword [ebp - 0x34]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x58]
add eax, dword [ebp - 0x30]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x54]
add eax, dword [ebp - 0x2c]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x140]
mov dword [ebp - 0x78], esi
push eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0x74], edi
push eax
mov dword [ebp - 0x70], ebx
call fcn.0058ca80
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0xf0]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0058ca80
mov ecx, dword [ebp + 0xc]
add esp, 0x3c
mov esi, dword [ebp - 0xf4]
sub ecx, 1
mov dword [ebp + 0xc], ecx
jns 0x58eea2
mov esi, dword [ebp - 0xf8]
lea eax, [ebp - 0xc8]
push esi
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.0058c370
push esi
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0058c370
lea eax, [ebp - 0x28]
push eax
push eax
call fcn.0058c850
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0xa0]
push eax
push eax
call fcn.0058ca80
lea eax, [ebp - 0xa0]
push eax
push dword [ebp + 8]
call fcn.0058df00
lea eax, [ebp - 0x118]
push 0x20
push eax
call fcn.00432da0
add esp, 0x3c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret