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

Disassembly:
sub esp, 0x14c
mov eax, dword [0x698b9c]
xor eax, esp
mov dword [esp + 0x144], eax
mov eax, dword [esp + 0x150]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 8
lea edi, [esp + 0x134]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x150]
and byte [esp + 0x134], 0xf8
shr ecx, 0x18
and cl, 0x3f
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x164]
or cl, 0x40
lea edi, [esp + 0x10c]
xor ebp, ebp
mov byte [esp + 0x153], cl
call fcn.0040ed70
xor eax, eax
mov dword [esp + 0x64], eax
push 0x28
mov edx, edi
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 + 0x8c], 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
mov dword [esp + 0x3c], eax
push edx
lea eax, [esp + 0xe4]
push eax
mov dword [esp + 0x70], 1
call fcn.005c1230
add esp, 0xc
xor eax, eax
mov ecx, 0xfe
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 + 0x60], eax
mov dword [esp + 0x3c], 1
mov dword [esp + 0x104], ecx
mov eax, ecx
cdq
and edx, 7
add eax, edx
movzx ecx, cl
sar eax, 3
movzx esi, byte [esp + eax + 0x134]
and ecx, 7
shr esi, cl
lea ecx, [esp + 0x64]
push ecx
lea eax, [esp + 0xe0]
and esi, 1
xor ebp, esi
mov edx, ebp
call fcn.00413250
lea edx, [esp + 0x18]
add esp, 4
push edx
mov edx, ebp
lea eax, [esp + 0x40]
call fcn.00413250
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]
add esp, 4
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 + 0x64]
sub edi, dword [esp + 0x14]
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]
add eax, ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0xd4], edi
mov edi, dword [esp + 0x88]
sub edi, dword [esp + 0x38]
add edx, esi
mov dword [esp + 0xd8], edi
mov edi, dword [esp + 0x14]
add dword [esp + 0x64], 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]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xe4]
add eax, ecx
mov ecx, dword [esp + 0xec]
add dword [esp + 0x7c], edi
mov edi, dword [esp + 0x30]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0xe8]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x48]
add edx, eax
mov eax, dword [esp + 0xf0]
add dword [esp + 0x80], edi
mov edi, dword [esp + 0x34]
add dword [esp + 0x84], edi
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x4c]
add ecx, edx
mov edx, dword [esp + 0xf4]
mov edi, dword [esp + 0x38]
add dword [esp + 0x88], edi
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x50]
add eax, ecx
mov ecx, dword [esp + 0xf8]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x54]
add edx, eax
mov eax, dword [esp + 0xfc]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x58]
add ecx, edx
mov edx, dword [esp + 0x100]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x5c]
add eax, ecx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x60]
lea ecx, [esp + 0x3c]
add edx, eax
push ecx
lea eax, [esp + 0x68]
lea ecx, [esp + 0x90]
mov dword [esp + 0x3c], edx
call fcn.0040f5b0
lea edx, [esp + 0x18]
add esp, 4
push edx
lea eax, [esp + 0xb8]
mov ecx, edx
call fcn.0040f5b0
lea eax, [esp + 0x90]
add esp, 4
push eax
lea eax, [esp + 0xb8]
call fcn.00410b40
add esp, 4
lea ecx, [esp + 0xb4]
push ecx
lea eax, [esp + 0x68]
call fcn.00410b40
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x44]
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
add edx, eax
sub eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x50]
mov dword [esp + 0xe0], edx
mov edx, dword [esp + 0x1c]
add edx, ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x50]
sub eax, dword [esp + 0x28]
mov dword [esp + 0xe4], edx
mov edx, dword [esp + 0x48]
add esi, edx
sub ecx, dword [esp + 0x1c]
mov dword [esp + 0xe8], esi
mov esi, dword [esp + 0x4c]
add edi, esi
mov dword [esp + 0xec], edi
mov edi, dword [esp + 0x28]
add edi, ebx
mov ebx, dword [esp + 0x54]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x54]
sub eax, dword [esp + 0x2c]
mov dword [esp + 0xf0], edi
mov edi, dword [esp + 0x2c]
add edi, ebx
mov ebx, dword [esp + 0x58]
sub edx, dword [esp + 0x20]
sub esi, dword [esp + 0x24]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x30]
mov dword [esp + 0xf4], edi
mov edi, dword [esp + 0x30]
add edi, ebx
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x5c]
sub eax, dword [esp + 0x34]
mov dword [esp + 0xf8], edi
mov edi, dword [esp + 0x34]
add edi, ebx
mov ebx, dword [esp + 0x60]
mov dword [esp + 0xfc], edi
mov edi, dword [esp + 0x38]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x38]
add edi, ebx
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x100], edi
mov edi, dword [esp + 0x64]
mov dword [esp + 0x38], eax
add ebx, edi
sub edi, dword [esp + 0x3c]
lea eax, [esp + 0x68]
add esp, 4
mov dword [esp + 0x18], ecx
push eax
lea eax, [esp + 0x90]
lea ecx, [esp + 0xb8]
mov dword [esp + 0x104], ebx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], esi
mov dword [esp + 0x3c], edi
call fcn.0040f5b0
mov esi, dword [esp + 0x90]
mov ebx, dword [esp + 0x94]
mov ecx, dword [esp + 0x98]
sub dword [esp + 0xb8], esi
sub dword [esp + 0xbc], ebx
add esp, 4
sub dword [esp + 0xbc], ecx
mov eax, dword [esp + 0x9c]
mov edx, dword [esp + 0x98]
sub dword [esp + 0xc4], eax
sub dword [esp + 0xc0], edx
mov eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0xa0]
mov edx, dword [esp + 0xa4]
sub dword [esp + 0xd0], eax
sub dword [esp + 0xc8], ecx
sub dword [esp + 0xcc], edx
mov ecx, dword [esp + 0xac]
mov edx, dword [esp + 0xb0]
sub dword [esp + 0xd4], ecx
sub dword [esp + 0xd8], edx
lea eax, [esp + 0x14]
push eax
call fcn.00410b40
add esp, 4
lea eax, [esp + 0xb4]
lea edi, [esp + 0x3c]
call fcn.00413340
lea ecx, [esp + 0xdc]
push ecx
mov eax, ecx
call fcn.00410b40
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
add dword [esp + 0x9c], eax
add dword [esp + 0xa0], ecx
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
add dword [esp + 0x98], edx
mov edx, dword [esp + 0x54]
add dword [esp + 0xa8], eax
add dword [esp + 0xac], ecx
mov eax, dword [esp + 0x64]
add esi, dword [esp + 0x40]
add ebx, dword [esp + 0x44]
add dword [esp + 0xa4], edx
mov edx, dword [esp + 0x60]
add dword [esp + 0xb4], eax
add dword [esp + 0xb0], edx
mov ecx, edi
add esp, 4
push ecx
lea eax, [esp + 0x18]
lea ecx, [esp + 0x110]
mov dword [esp + 0x90], esi
mov dword [esp + 0x94], ebx
call fcn.0040f5b0
lea edx, [esp + 0x18]
add esp, 4
push edx
lea eax, [esp + 0x90]
lea ecx, [esp + 0xb8]
call fcn.0040f5b0
mov ecx, dword [esp + 0x108]
add esp, 4
sub ecx, 1
mov dword [esp + 0x104], ecx
jns 0x413803
lea eax, [esp + 0x14]
push eax
call fcn.00411810
lea ecx, [esp + 0x68]
add esp, 4
push ecx
lea eax, [esp + 0x18]
call fcn.0040f5b0
mov eax, dword [esp + 0x10c]
add esp, 4
lea ecx, [esp + 0x64]
call fcn.0040f260
lea edx, [esp + 0x134]
push 0x20
push edx
call fcn.0051db60
mov ecx, dword [esp + 0x15c]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005bfcb8
add esp, 0x14c
ret