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

Disassembly:
mov eax, 0x144
call fcn.0054b0c1
mov eax, dword [0x101a5070]
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 + 0x14], eax
mov eax, dword [esp + 0x15c]
mov byte [esp + 0x14f], cl
mov ecx, eax
lea edi, [esp + 0x108]
xor ebp, ebp
call fcn.0051a4d1
xor eax, eax
mov dword [esp + 0x68], eax
push 0x28
mov edx, edi
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 + 0x8c], eax
mov dword [esp + 0x90], 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
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
push edx
lea eax, [esp + 0xe8]
push eax
mov dword [esp + 0x74], 1
call fcn.0054aae1
add esp, 0xc
xor eax, 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 + 0x60], eax
mov dword [esp + 0x64], eax
mov eax, 0xfe
mov dword [esp + 0x40], 1
mov dword [esp + 0x10], eax
jmp 0x51f1f1
mov ecx, eax
shr ecx, 3
movzx esi, byte [esp + ecx + 0x130]
movzx ecx, al
and ecx, 7
shr esi, cl
lea edx, [esp + 0xe0]
push edx
lea ecx, [esp + 0x6c]
and esi, 1
xor ebp, esi
mov edx, ebp
call fcn.0051ec91
lea eax, [esp + 0x44]
push eax
mov edx, ebp
lea ecx, [esp + 0x20]
call fcn.0051ec91
mov eax, dword [esp + 0xe8]
mov ecx, dword [esp + 0x48]
mov edx, eax
sub edx, ecx
mov dword [esp + 0x98], edx
mov edx, dword [esp + 0xec]
mov edi, edx
sub edi, dword [esp + 0x4c]
mov ebp, esi
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 + 0x108]
sub edi, dword [esp + 0x68]
mov dword [esp + 0xb8], edi
mov edi, dword [esp + 0x10c]
sub edi, dword [esp + 0x6c]
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]
mov dword [esp + 0xd8], edi
mov edi, dword [esp + 0x8c]
sub edi, dword [esp + 0x3c]
mov dword [esp + 0xdc], edi
mov edi, dword [esp + 0x90]
sub edi, dword [esp + 0x40]
mov dword [esp + 0xe0], edi
mov edi, dword [esp + 0x94]
sub edi, dword [esp + 0x44]
add edx, dword [esp + 0x4c]
mov dword [esp + 0xe4], 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]
add dword [esp + 0x80], edi
mov edi, dword [esp + 0x34]
add dword [esp + 0x84], edi
mov edi, dword [esp + 0x38]
add dword [esp + 0x88], edi
mov edi, dword [esp + 0x3c]
add dword [esp + 0x8c], edi
mov edi, dword [esp + 0x40]
add dword [esp + 0x90], edi
add eax, ecx
mov ecx, dword [esp + 0xf0]
add ecx, dword [esp + 0x50]
mov edi, dword [esp + 0x44]
add dword [esp + 0x94], edi
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0xf4]
add eax, dword [esp + 0x54]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0xf8]
add edx, dword [esp + 0x58]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x100]
add eax, dword [esp + 0x60]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0xfc]
add ecx, dword [esp + 0x5c]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x104]
add edx, dword [esp + 0x64]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x10c]
add eax, dword [esp + 0x6c]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x108]
add ecx, dword [esp + 0x68]
mov dword [esp + 0x3c], edx
lea edx, [esp + 0x70]
mov dword [esp + 0x44], eax
push edx
lea eax, [esp + 0x4c]
mov dword [esp + 0x44], ecx
push eax
lea ecx, [esp + 0xa0]
call fcn.0051ac31
lea ecx, [esp + 0xc8]
push ecx
lea edx, [esp + 0x2c]
push edx
mov ecx, edx
call fcn.0051ac31
lea eax, [esp + 0xd0]
push eax
lea ecx, [esp + 0xac]
push ecx
call fcn.0051c1f1
lea edx, [esp + 0x88]
push edx
lea eax, [esp + 0xdc]
push eax
call fcn.0051c1f1
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov edi, dword [esp + 0x48]
add ecx, eax
mov dword [esp + 0x108], ecx
mov ecx, dword [esp + 0x6c]
add edx, ecx
mov dword [esp + 0x10c], edx
mov edx, dword [esp + 0x70]
sub eax, dword [esp + 0x40]
add edi, edx
mov dword [esp + 0x110], edi
mov edi, dword [esp + 0x4c]
add edi, dword [esp + 0x74]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x74]
sub eax, dword [esp + 0x4c]
mov dword [esp + 0x114], edi
mov edi, dword [esp + 0x50]
add edi, dword [esp + 0x78]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x78]
sub eax, dword [esp + 0x50]
sub ecx, dword [esp + 0x44]
mov dword [esp + 0x118], edi
mov edi, dword [esp + 0x54]
add edi, dword [esp + 0x7c]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x7c]
sub eax, dword [esp + 0x54]
mov ebx, dword [esp + 0x64]
sub edx, dword [esp + 0x48]
mov dword [esp + 0x11c], edi
mov edi, dword [esp + 0x58]
add edi, dword [esp + 0x80]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x80]
sub eax, dword [esp + 0x58]
mov dword [esp + 0x120], edi
mov edi, dword [esp + 0x5c]
add edi, dword [esp + 0x84]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x84]
sub eax, dword [esp + 0x5c]
mov dword [esp + 0x124], edi
mov edi, dword [esp + 0x60]
add edi, dword [esp + 0x88]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x88]
sub eax, dword [esp + 0x60]
mov dword [esp + 0x128], edi
mov edi, dword [esp + 0x8c]
mov dword [esp + 0x60], eax
mov dword [esp + 0x44], ecx
lea eax, [esp + 0xb8]
add ebx, edi
sub edi, dword [esp + 0x64]
push eax
lea ecx, [esp + 0x94]
push ecx
lea ecx, [esp + 0xe8]
mov dword [esp + 0x134], ebx
mov dword [esp + 0x50], edx
mov dword [esp + 0x6c], edi
call fcn.0051ac31
mov edx, dword [esp + 0xc4]
sub dword [esp + 0xec], edx
mov eax, dword [esp + 0xc8]
sub dword [esp + 0xf0], eax
mov edx, dword [esp + 0xd0]
sub dword [esp + 0xf8], edx
mov eax, dword [esp + 0xd4]
mov ecx, dword [esp + 0xcc]
sub dword [esp + 0xfc], eax
mov edx, dword [esp + 0xdc]
sub dword [esp + 0xf4], ecx
sub dword [esp + 0x104], edx
mov eax, dword [esp + 0xe0]
mov ecx, dword [esp + 0xd8]
sub dword [esp + 0x108], eax
sub dword [esp + 0x100], ecx
mov ecx, dword [esp + 0xe4]
mov ebx, dword [esp + 0xc0]
sub dword [esp + 0xe8], ebx
sub dword [esp + 0x10c], ecx
lea edx, [esp + 0x48]
push edx
mov eax, edx
push eax
call fcn.0051c1f1
lea ecx, [esp + 0xf0]
lea edi, [esp + 0x78]
call fcn.0051ed51
lea ecx, [esp + 0x118]
push ecx
mov edx, ecx
push edx
call fcn.0051c1f1
mov eax, dword [esp + 0x84]
add dword [esp + 0xd4], eax
mov ecx, dword [esp + 0x88]
add dword [esp + 0xd8], ecx
mov eax, dword [esp + 0x90]
add dword [esp + 0xe0], eax
mov ecx, dword [esp + 0x94]
add dword [esp + 0xe4], ecx
mov eax, dword [esp + 0x9c]
mov edx, dword [esp + 0x8c]
mov ecx, dword [esp + 0xa0]
add dword [esp + 0xdc], edx
add dword [esp + 0xec], eax
mov edx, dword [esp + 0x98]
add dword [esp + 0xf0], ecx
add ebx, dword [esp + 0x80]
add dword [esp + 0xe8], edx
mov edx, dword [esp + 0xa4]
add dword [esp + 0xf4], edx
add esp, 0x40
lea eax, [esp + 0x18]
push eax
mov ecx, edi
push ecx
lea ecx, [esp + 0x110]
mov dword [esp + 0x98], ebx
call fcn.0051ac31
lea edx, [esp + 0x98]
push edx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0xc8]
call fcn.0051ac31
mov eax, dword [esp + 0x20]
add esp, 0x10
dec eax
mov dword [esp + 0x10], eax
jns 0x51f1f1
lea ecx, [esp + 0xe0]
push ecx
mov edx, esi
lea ecx, [esp + 0x6c]
call fcn.0051ec91
mov edx, edi
push edx
mov edx, esi
lea ecx, [esp + 0x20]
call fcn.0051ec91
mov eax, ecx
push eax
call fcn.0051cef1
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x78]
push edx
mov ecx, edx
call fcn.0051ac31
mov eax, dword [esp + 0x28]
push eax
lea ecx, [esp + 0x80]
call fcn.0051a991
lea ecx, [esp + 0x148]
push 0x20
push ecx
call fcn.004b98c1
mov ecx, dword [esp + 0x170]
add esp, 0x20
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005473b5
add esp, 0x144
ret