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

Disassembly:
mov eax, 0x144
call fcn.005b2630
mov eax, dword [0x644a10]
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.0058b1e0
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 sub.MSVCR100.dll_memmove
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 0x591310
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.00590db0
lea eax, [esp + 0x44]
push eax
mov edx, ebp
lea ecx, [esp + 0x20]
call fcn.00590db0
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 ebp, esi
mov esi, dword [esp + 0x4c]
mov edi, edx
sub edi, 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 eax, ecx
mov ecx, dword [esp + 0xf8]
add ecx, dword [esp + 0x58]
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
mov edi, dword [esp + 0x44]
add dword [esp + 0x94], edi
add edx, esi
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0xf4]
add edx, dword [esp + 0x54]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0xf0]
add eax, dword [esp + 0x50]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x100]
add edx, dword [esp + 0x60]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0xfc]
add eax, dword [esp + 0x5c]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x104]
add ecx, dword [esp + 0x64]
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x10c]
add edx, dword [esp + 0x6c]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x108]
add eax, dword [esp + 0x68]
mov dword [esp + 0x3c], ecx
lea ecx, [esp + 0x70]
mov dword [esp + 0x44], edx
push ecx
lea edx, [esp + 0x4c]
push edx
lea ecx, [esp + 0xa0]
mov dword [esp + 0x48], eax
call fcn.0058ba70
lea eax, [esp + 0xc8]
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.0058ba70
lea edx, [esp + 0xd0]
push edx
lea eax, [esp + 0xac]
push eax
call fcn.0058d030
lea ecx, [esp + 0x88]
push ecx
lea edx, [esp + 0xdc]
push edx
call fcn.0058d030
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov esi, 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]
mov edi, dword [esp + 0x4c]
add esi, edx
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x78]
sub eax, dword [esp + 0x50]
mov dword [esp + 0x110], esi
mov esi, dword [esp + 0x74]
add edi, esi
mov dword [esp + 0x114], edi
mov edi, dword [esp + 0x50]
add edi, dword [esp + 0x78]
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]
sub esi, dword [esp + 0x4c]
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 + 0x54], esi
mov dword [esp + 0x6c], edi
call fcn.0058ba70
mov edx, dword [esp + 0xc8]
sub dword [esp + 0xf0], edx
mov ecx, dword [esp + 0xd0]
sub dword [esp + 0xf8], ecx
mov edx, dword [esp + 0xd4]
mov eax, dword [esp + 0xcc]
sub dword [esp + 0xfc], edx
mov ecx, dword [esp + 0xdc]
sub dword [esp + 0xf4], eax
sub dword [esp + 0x104], ecx
mov edx, dword [esp + 0xe0]
mov eax, dword [esp + 0xd8]
sub dword [esp + 0x108], edx
sub dword [esp + 0x100], eax
mov eax, dword [esp + 0xe4]
mov esi, dword [esp + 0xc0]
mov ebx, dword [esp + 0xc4]
sub dword [esp + 0xe8], esi
sub dword [esp + 0xec], ebx
sub dword [esp + 0x10c], eax
lea ecx, [esp + 0x48]
push ecx
mov edx, ecx
push edx
call fcn.0058d030
lea ecx, [esp + 0xf0]
lea edi, [esp + 0x78]
call fcn.00590e70
lea eax, [esp + 0x118]
push eax
mov ecx, eax
push ecx
call fcn.0058d030
mov edx, dword [esp + 0x88]
add dword [esp + 0xd8], edx
mov ecx, dword [esp + 0x90]
add dword [esp + 0xe0], ecx
mov edx, dword [esp + 0x94]
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x9c]
add dword [esp + 0xe4], edx
add dword [esp + 0xdc], eax
add dword [esp + 0xec], ecx
mov edx, dword [esp + 0xa0]
mov eax, dword [esp + 0x98]
add dword [esp + 0xf0], edx
add esi, dword [esp + 0x80]
add ebx, dword [esp + 0x84]
add dword [esp + 0xe8], eax
mov eax, dword [esp + 0xa4]
add dword [esp + 0xf4], eax
add esp, 0x40
lea ecx, [esp + 0x18]
push ecx
mov edx, edi
push edx
lea ecx, [esp + 0x110]
mov dword [esp + 0x98], esi
mov dword [esp + 0x9c], ebx
call fcn.0058ba70
lea eax, [esp + 0x98]
push eax
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0xc8]
call fcn.0058ba70
mov eax, dword [esp + 0x20]
add esp, 0x10
dec eax
mov dword [esp + 0x10], eax
jns 0x591310
lea edx, [esp + 0x18]
push edx
mov ecx, edx
call fcn.0058dd30
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x70]
push ecx
call fcn.0058ba70
mov edx, dword [esp + 0x20]
push edx
lea ecx, [esp + 0x78]
call fcn.0058b6a0
lea eax, [esp + 0x140]
push 0x20
push eax
call fcn.004d2c70
mov ecx, dword [esp + 0x168]
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005b2129
add esp, 0x144
ret