Function at 0x10e5e20
Capabilities:
Allocate or change rwx memory
Encode data using xor
Encrypt data using salsa20 or chacha

Disassembly:
pushfd
push ebp
mov ebp, esp
sub esp, 0x120
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x110], ecx
lea eax, [ebp + 4]
mov dword [ebp - 0x11c], edx
mov dword [ebp - 0x114], ebx
mov dword [ebp - 0x120], esi
mov dword [ebp - 0x10c], edi
mov ebx, dword [eax + 4]
sub eax, 4
mov esi, dword [0x10d4588]
mov dword [ebp - 0xc8], eax
mov eax, dword [ebx]
shr eax, 4
xor edx, edx
lea ecx, [esi + eax - 1]
mov eax, ecx
div esi
mov eax, dword [0x10d4588]
sub ecx, edx
mov dword [ebp - 0x64], ecx
mov eax, dword [0x10f17c8]
mov dword [ebp - 0x68], eax
mov eax, dword [0x10d4588]
mov eax, dword [0x10f17c8]
test eax, eax
je 0x10e5f0f
mov eax, dword [0x10f17c8]
xor edi, edi
dec eax
lea ecx, [eax + 1]
mov edx, ecx
xor eax, eax
test ecx, ecx
je 0x10e5ecc
mov esi, dword [0x113b250]
imul esi, esi, 0x343fd
add esi, 0x269ec3
mov dword [0x113b250], esi
shr esi, 0x10
shl eax, 0x10
shr edx, 0x10
or eax, esi
test edx, edx
jne 0x10e5ea5
xor edx, edx
div ecx
cmp dword [ebp - 0x68], 0
jbe 0x10e5f09
lea esi, [edx*4 + 0x113b06c]
inc edi
mov ecx, 0xffffdc52
mov eax, 0x23ad
lock cmpxchg dword [esi], ecx
cmp eax, 0x23ad
je 0x10e638a
mov ecx, dword [0x10f17c8]
lea eax, [edx + 1]
xor edx, edx
div ecx
cmp edi, dword [ebp - 0x68]
jb 0x10e5ed6
xor edi, edi
test edi, edi
jne 0x10e5f85
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edi, edi
mov esi, eax
inc edi
push 0x40
push 0x1000
push dword [ebp - 0x64]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x10e639e
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, 0x11
jb 0x10e5f19
xor edi, edi
cmp edi, 0x10000
jb 0x10e5f52
test edi, 3
je 0x10e5f66
test edi, edi
je 0x10e5f64
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
je 0x10e5e7c
mov ecx, dword [ebp - 0x64]
mov eax, edi
test ecx, ecx
je 0x10e5f85
mov byte [eax], 0
inc eax
dec ecx
jne 0x10e5f7e
mov eax, 0xd3dd3fa1
mov eax, dword [ebx]
mov ecx, eax
shr eax, 4
mov esi, eax
shr ecx, 1
and ecx, 7
lea ebx, [ecx + ebx + 8]
lea eax, [esi + ebx]
mov dword [ebp - 0xb0], eax
mov eax, dword [0x10d4588]
mov dword [ebp - 0xbc], ebx
sub eax, esi
lea ecx, [eax + 1]
sub dword [ebp - 0xbc], 0x1000000
xor eax, eax
test ecx, ecx
mov dword [ebp - 0xac], ebx
mov dword [ebp - 0xb8], esi
mov dword [ebp - 0x60], ecx
je 0x10e5ffe
mov edx, dword [0x113b250]
shr dword [ebp - 0x60], 0x10
imul edx, edx, 0x343fd
add edx, 0x269ec3
mov dword [0x113b250], edx
shr edx, 0x10
shl eax, 0x10
or eax, edx
cmp dword [ebp - 0x60], 0
jne 0x10e5fd4
xor edx, edx
div ecx
add edi, edx
mov eax, edi
push esi
push dword [ebp - 0xbc]
mov dword [ebp - 0x60], edi
mov eax, 0xe5b676b7
test esi, esi
pop ecx
pop ecx
mov byte [ebp - 0x55], 0
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x68], edi
je 0x10e63d8
mov esi, dword [ebp - 0xb0]
lea edi, [ebp - 0x54]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x54]
mov edx, dword [ebp - 0x4c]
mov esi, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x104], eax
mov dword [ebp - 0xdc], eax
xor eax, eax
mov dword [ebp - 0xf0], eax
mov dword [ebp - 0xec], eax
mov dword [ebp - 0xe8], eax
mov dword [ebp - 0xe4], eax
mov eax, dword [0x1009a74]
mov dword [ebp - 0x108], eax
mov eax, dword [0x1009a78]
mov dword [ebp - 0xf4], eax
mov eax, dword [0x1009a7c]
mov dword [ebp - 0xe0], eax
mov eax, dword [0x1009a80]
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x100], ecx
mov dword [ebp - 0xd8], ecx
lea ecx, [ebp - 0x44]
sub eax, ecx
sub ebx, dword [ebp - 0x60]
mov dword [ebp - 0xfc], edx
mov dword [ebp - 0xf8], esi
mov dword [ebp - 0xd4], edx
mov dword [ebp - 0xd0], esi
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0xb4], ebx
lea edi, [ebp - 0xa8]
lea esi, [ebp - 0x108]
push 0x10
pop ecx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x88]
mov edx, dword [ebp - 0x78]
mov esi, dword [ebp - 0xa8]
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0xc0], 2
lea edi, [edx + esi]
rol edi, 7
mov ebx, dword [ebp - 0xa4]
xor eax, edi
lea edi, [esi + eax]
rol edi, 9
xor ecx, edi
lea edi, [eax + ecx]
rol edi, 0xd
xor edx, edi
lea edi, [ecx + edx]
ror edi, 0xe
xor esi, edi
mov edi, dword [ebp - 0x94]
add ebx, edi
rol ebx, 7
xor dword [ebp - 0x84], ebx
mov ebx, dword [ebp - 0x84]
add edi, ebx
rol edi, 9
xor dword [ebp - 0x74], edi
mov edi, ebx
mov ebx, dword [ebp - 0x74]
add ebx, edi
rol ebx, 0xd
mov edi, dword [ebp - 0x74]
xor dword [ebp - 0xa4], ebx
mov ebx, dword [ebp - 0xa4]
add edi, ebx
ror edi, 0xe
mov ebx, dword [ebp - 0x80]
xor dword [ebp - 0x94], edi
mov edi, dword [ebp - 0x90]
add edi, ebx
rol edi, 7
xor dword [ebp - 0x70], edi
mov edi, ebx
mov ebx, dword [ebp - 0x70]
add edi, ebx
rol edi, 9
xor dword [ebp - 0xa0], edi
mov edi, ebx
mov ebx, dword [ebp - 0xa0]
add ebx, edi
rol ebx, 0xd
mov edi, dword [ebp - 0xa0]
xor dword [ebp - 0x90], ebx
mov ebx, dword [ebp - 0x90]
add edi, ebx
ror edi, 0xe
mov ebx, dword [ebp - 0x6c]
xor dword [ebp - 0x80], edi
mov edi, dword [ebp - 0x7c]
add edi, ebx
rol edi, 7
xor dword [ebp - 0x9c], edi
mov edi, ebx
mov ebx, dword [ebp - 0x9c]
add edi, ebx
rol edi, 9
xor dword [ebp - 0x8c], edi
mov edi, ebx
mov ebx, dword [ebp - 0x8c]
add ebx, edi
mov edi, dword [ebp - 0x8c]
rol ebx, 0xd
xor dword [ebp - 0x7c], ebx
mov ebx, dword [ebp - 0x7c]
add edi, ebx
ror edi, 0xe
xor dword [ebp - 0x6c], edi
mov edi, dword [ebp - 0x9c]
add edi, esi
rol edi, 7
xor dword [ebp - 0xa4], edi
mov edi, dword [ebp - 0xa4]
add edi, esi
rol edi, 9
xor dword [ebp - 0xa0], edi
mov edi, dword [ebp - 0xa4]
mov ebx, dword [ebp - 0xa0]
add ebx, edi
rol ebx, 0xd
mov edi, dword [ebp - 0xa0]
xor dword [ebp - 0x9c], ebx
mov ebx, dword [ebp - 0x9c]
add ebx, edi
mov edi, dword [ebp - 0x94]
add edi, eax
ror ebx, 0xe
xor esi, ebx
rol edi, 7
xor dword [ebp - 0x90], edi
mov ebx, dword [ebp - 0x90]
mov edi, dword [ebp - 0x94]
add ebx, edi
rol ebx, 9
mov edi, dword [ebp - 0x90]
xor dword [ebp - 0x8c], ebx
mov ebx, dword [ebp - 0x8c]
add ebx, edi
rol ebx, 0xd
xor eax, ebx
mov edi, dword [ebp - 0x8c]
add edi, eax
ror edi, 0xe
mov ebx, dword [ebp - 0x84]
xor dword [ebp - 0x94], edi
mov edi, dword [ebp - 0x80]
add edi, ebx
rol edi, 7
xor dword [ebp - 0x7c], edi
mov edi, dword [ebp - 0x80]
mov ebx, dword [ebp - 0x7c]
add ebx, edi
mov edi, dword [ebp - 0x7c]
rol ebx, 9
xor ecx, ebx
add edi, ecx
mov ebx, dword [ebp - 0x70]
rol edi, 0xd
xor dword [ebp - 0x84], edi
mov edi, dword [ebp - 0x84]
add edi, ecx
ror edi, 0xe
xor dword [ebp - 0x80], edi
mov edi, dword [ebp - 0x6c]
add edi, ebx
rol edi, 7
xor edx, edi
mov edi, dword [ebp - 0x6c]
add edi, edx
rol edi, 9
xor dword [ebp - 0x74], edi
mov edi, dword [ebp - 0x74]
add edi, edx
rol edi, 0xd
xor dword [ebp - 0x70], edi
mov ebx, dword [ebp - 0x70]
mov edi, dword [ebp - 0x74]
add ebx, edi
ror ebx, 0xe
xor dword [ebp - 0x6c], ebx
dec dword [ebp - 0xc0]
jne 0x10e6102
mov dword [ebp - 0x78], edx
xor edx, edx
push 0x40
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x88], ecx
mov dword [ebp - 0xa8], esi
pop ebx
xor eax, eax
mov ecx, dword [ebp + eax - 0x108]
add dword [ebp + eax - 0xa8], ecx
add eax, 4
cmp eax, ebx
jl 0x10e6323
lea esi, [ebp - 0xa8]
inc dword [ebp - 0xe8]
push 0x10
lea edi, [ebp - 0x44]
pop ecx
rep movsd dword es:[edi], dword [esi]
cmp dword [ebp - 0x5c], ebx
jbe 0x10e63a5
mov eax, dword [ebp - 0xb4]
mov esi, dword [ebp - 0xc4]
lea edi, [esi + eax]
lea ecx, [ebp + edx - 0x44]
mov al, byte [edi + ecx]
xor al, byte [ecx]
xor byte [ebp - 0x55], al
mov byte [esi + ecx], al
inc edx
cmp edx, ebx
jb 0x10e6360
sub dword [ebp - 0x5c], ebx
add dword [ebp - 0x68], ebx
add esi, ebx
add dword [ebp - 0x64], ebx
mov dword [ebp - 0xc4], esi
jmp 0x10e60d2
mov edi, dword [0x10d4588]
imul edi, edx
lea edi, [edi + 0x1109044]
jmp 0x10e5f0b
mov edi, eax
jmp 0x10e5f42
cmp dword [ebp - 0x5c], edx
jbe 0x10e63cc
lea eax, [ebp - 0x44]
mov edi, dword [ebp - 0x68]
mov esi, dword [ebp - 0x64]
sub esi, eax
sub edi, eax
lea ecx, [ebp + edx - 0x44]
mov al, byte [esi + ecx]
xor al, byte [ecx]
xor byte [ebp - 0x55], al
mov byte [edi + ecx], al
inc edx
cmp edx, dword [ebp - 0x5c]
jb 0x10e63b7
mov ebx, dword [ebp - 0xac]
mov esi, dword [ebp - 0xb8]
movzx ecx, byte [ebp - 0x55]
mov eax, dword [ebp - 0xb0]
movzx eax, byte [eax + 0x10]
sub ecx, eax
je 0x10e6488
lea ebp, [ebp - 0x63b27828]
call fcn.01020e87
mov ebx, eax
mov eax, 0xfffff000
mov edx, dword [ebp - 0xc8]
lea ecx, [edx + 0xc]
and ecx, 0xfffffffc
and ebx, eax
mov dword [edx + 8], 0x10fe507
mov edx, 0xffff
lea esi, [ecx + 0xfff]
and esi, eax
xor eax, eax
mov edi, dword [0x113b250]
imul edi, edi, 0x343fd
add edi, 0x269ec3
mov dword [0x113b250], edi
shr edi, 0x10
shl eax, 0x10
shr edx, 0x10
or eax, edi
test edx, edx
jne 0x10e6424
mov edi, 0xffff
div edi
mov dword [ebp - 0x11c], ebx
inc edx
mov eax, ecx
cmp ecx, esi
mov dword [ebp - 0x110], edx
mov dword [ebp - 0xb4], 0
jae 0x10e647e
mov ecx, dword [ebp - 0xb4]
mov dword [eax], ecx
add eax, 4
cmp eax, esi
jb 0x10e646f
mov eax, 0x10fe507
jmp 0x10e6587
mov edi, dword [ebp - 0x60]
mov ecx, 0x1000000
mov eax, ebx
mov edx, dword [0x100b3f0]
sub eax, edi
mov dword [ebp - 0xac], eax
sub ecx, edx
mov dword [ebp - 0xb8], ecx
jne 0x10e64b2
test eax, eax
je 0x10e657a
sub edi, ebx
mov ebx, dword [ebp - 0xbc]
lea eax, [esi + ebx]
mov esi, dword [0x10b82b8]
lea ecx, [esi - 1]
mov dword [ebp - 0xb4], eax
xor eax, eax
mov dword [ebp - 0xb0], eax
test ecx, ecx
jl 0x10e6508
add eax, ecx
cdq
sub eax, edx
sar eax, 1
mov edx, dword [eax*4 + 0x10b82bc]
and edx, 0xfffffff
cmp ebx, edx
jae 0x10e64fb
lea ecx, [eax - 1]
mov eax, dword [ebp - 0xb0]
jmp 0x10e6504
jbe 0x10e6508
inc eax
mov dword [ebp - 0xb0], eax
cmp ecx, eax
jge 0x10e64d8
mov dword [ebp - 0x5c], eax
jmp 0x10e6575
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax*4 + 0x10b82bc]
mov ecx, eax
and ecx, 0xfffffff
cmp ecx, dword [ebp - 0xb4]
jae 0x10e657a
lea edx, [ecx + edi + 0x1000000]
mov ecx, eax
shl ecx, 2
sar ecx, 0x1e
sar eax, 0x1e
and ecx, 3
and eax, 3
xor ebx, ebx
dec ecx
je 0x10e655a
dec ecx
je 0x10e6552
dec ecx
jne 0x10e6566
mov ebx, dword [ebp - 0xb8]
jmp 0x10e6566
mov ebx, dword [ebp - 0xac]
jmp 0x10e6566
mov ebx, dword [ebp - 0xb8]
sub ebx, dword [ebp - 0xac]
dec eax
dec eax
jne 0x10e6572
add dword [edx], ebx
mov esi, dword [0x10b82b8]
inc dword [ebp - 0x5c]
cmp dword [ebp - 0x5c], esi
jb 0x10e650d
mov eax, dword [0x10d4588]
mov eax, 0x882dc9c9
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0xc8]
mov dword [ecx + 8], eax
mov ecx, dword [ebp - 0x110]
mov ebx, dword [ebp - 0x114]
mov edi, dword [ebp - 0x10c]
mov esi, dword [ebp - 0x120]
mov eax, dword [ebp - 0x118]
mov edx, dword [ebp - 0x11c]
mov esp, ebp
pop ebp
popfd
ret