Function at 0x100b0a27
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, 0x150
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x144], ecx
lea eax, [ebp + 4]
mov dword [ebp - 0x150], edx
mov dword [ebp - 0x148], ebx
mov ebx, 0xfffffff
mov dword [ebp - 0x13c], esi
mov dword [ebp - 0x140], edi
mov edi, dword [0x1007b9bc]
mov esi, dword [eax + 4]
sub eax, 4
mov dword [ebp - 0xe8], eax
mov eax, dword [esi]
and eax, ebx
lea ecx, [edi + eax - 1]
mov eax, ecx
xor edx, edx
div edi
mov eax, dword [0x1007b9bc]
sub ecx, edx
mov dword [ebp - 0x7c], ecx
mov eax, dword [0x10012044]
mov dword [ebp - 0x74], eax
mov eax, dword [0x1007b9bc]
mov eax, dword [0x10012044]
test eax, eax
je 0x100b0b25
and dword [ebp - 0x68], 0
mov eax, dword [0x10012044]
dec eax
lea ecx, [eax + 1]
xor eax, eax
test ecx, ecx
mov edx, ecx
je 0x100b0add
mov edi, dword [0x1012ee38]
imul edi, edi, 0x343fd
add edi, 0x269ec3
mov dword [0x1012ee38], edi
shr edi, 0x10
shl eax, 0x10
shr edx, 0x10
or eax, edi
test edx, edx
jne 0x100b0ab6
xor edx, edx
div ecx
cmp dword [ebp - 0x74], 0
jbe 0x100b0b1f
mov eax, 0x3c6f
inc dword [ebp - 0x68]
mov ecx, 0xffffc390
lea edi, [edx*4 + 0x1012ee90]
lock cmpxchg dword [edi], ecx
cmp eax, 0x3c6f
je 0x100b0ccd
mov ecx, dword [0x10012044]
lea eax, [edx + 1]
xor edx, edx
div ecx
mov eax, dword [ebp - 0x68]
cmp eax, dword [ebp - 0x74]
jb 0x100b0ae7
xor edi, edi
test edi, edi
jne 0x100b0b9e
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
inc edi
push 0x40
push 0x1000
push dword [ebp - 0x7c]
push 0
call dword [sym.imp.kernel32.dll_VirtualAlloc]
test eax, eax
jne 0x100b0ce1
push eax
call dword [sym.imp.kernel32.dll_Sleep]
cmp edi, 0x11
jb 0x100b0b30
xor edi, edi
cmp dword [0x1011fbc8], edi
ja 0x100b0b69
test edi, 3
je 0x100b0b7d
test edi, edi
je 0x100b0b7b
push 0x8000
push 0
push edi
call dword [sym.imp.kernel32.dll_VirtualFree]
xor edi, edi
push dword [ebp - 0x6c]
call dword [sym.imp.kernel32.dll_SetLastError]
test edi, edi
je 0x100b0a87
mov eax, edi
mov ecx, dword [ebp - 0x7c]
test ecx, ecx
je 0x100b0b9e
mov byte [eax], 0
inc eax
dec ecx
jne 0x100b0b97
mov eax, 0xc5fcfb1c
mov eax, dword [esi]
mov ecx, eax
shr ecx, 0x1c
and eax, ebx
and ecx, 7
lea ecx, [ecx + esi + 8]
mov ebx, eax
mov esi, 0x10000000
lea eax, [ebx + ecx]
mov dword [ebp - 0x6c], eax
mov eax, dword [0x1007b9bc]
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x68], ecx
sub eax, ebx
sub dword [ebp - 0x78], esi
mov dword [ebp - 0xc4], ebx
lea ecx, [eax + 1]
xor eax, eax
test ecx, ecx
mov dword [ebp - 0x5c], ecx
je 0x100b0c0c
mov edx, dword [0x1012ee38]
shr dword [ebp - 0x5c], 0x10
imul edx, edx, 0x343fd
add edx, 0x269ec3
mov dword [0x1012ee38], edx
shr edx, 0x10
shl eax, 0x10
or eax, edx
cmp dword [ebp - 0x5c], 0
jne 0x100b0be2
xor edx, edx
div ecx
add edi, edx
push edi
push ebx
push dword [ebp - 0x78]
mov dword [ebp - 0xc8], edi
mov eax, 0xb1f35d54
mov eax, dword [ebp - 0x6c]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0xec], eax
mov eax, dword [ebp - 0x68]
add esp, 0xc
mov dword [ebp - 0x74], edi
mov edi, 0xfffff000
test ebx, ebx
mov dword [ebp - 0xf0], ecx
mov byte [ebp - 0x55], 0
mov dword [ebp - 0xc0], ebx
mov dword [ebp - 0x7c], eax
je 0x100b12b2
lea eax, [ebp - 0xf0]
push eax
mov eax, 0x1991f523
mov ebx, dword [ebp - 0xf0]
mov eax, 0xfffffff
and dword [ebp - 0x64], 0
and dword [ebp - 0x60], 0
pop ecx
mov ecx, dword [ebp - 0xec]
and ecx, eax
and ebx, eax
mov dword [ebp - 0x5c], ecx
add ebx, esi
mov ecx, dword [0x1001256c]
mov eax, esi
sub eax, ecx
mov dword [ebp - 0xf8], eax
jne 0x100b0ce8
xor esi, esi
cmp dword [ebp - 0x5c], esi
jbe 0x100b0ec3
mov ecx, 0x82a003e
mov edx, ecx
movzx eax, byte [ebx + esi]
add eax, ecx
add dword [ebp - 0x64], eax
add eax, dword [ebp - 0x60]
mul edx
add eax, edx
add dword [ebp - 0x64], eax
inc esi
mov dword [ebp - 0x60], eax
cmp esi, dword [ebp - 0x5c]
jb 0x100b0caa
jmp 0x100b0ec3
mov edi, dword [0x1007b9bc]
imul edi, edx
lea edi, [edi + section..data]
jmp 0x100b0b21
mov edi, eax
jmp 0x100b0b59
mov ecx, ebx
mov eax, dword [ebp - 0x5c]
mov edx, dword [0x1000003c]
add eax, ebx
mov dword [ebp - 0x70], eax
lea edx, [edx + 0x100000a0]
mov eax, dword [edx]
mov edx, dword [edx + 4]
mov dword [ebp - 0xcc], edx
add eax, esi
sub ecx, esi
mov esi, ecx
mov edx, ecx
and edx, edi
sub esi, edx
mov dword [ebp - 0xe4], esi
mov esi, dword [ebp - 0x5c]
add ecx, esi
mov esi, ecx
and esi, edi
sub ecx, esi
mov dword [ebp - 0xdc], ecx
mov ecx, dword [ebp - 0xcc]
mov dword [ebp - 0xe0], esi
mov esi, eax
add ecx, eax
cmp eax, ecx
mov dword [ebp - 0xd8], ecx
je 0x100b0d55
cmp dword [esi], edx
jae 0x100b0d55
add esi, dword [esi + 4]
cmp esi, dword [ebp - 0xd8]
jne 0x100b0d46
and dword [ebp - 0xd0], 0
cmp esi, dword [ebp - 0xd8]
je 0x100b0d96
cmp dword [esi], edx
jne 0x100b0d96
mov ecx, dword [esi + 4]
sub ecx, 8
shr ecx, 1
je 0x100b0d96
lea eax, [esi + 8]
movzx edx, word [eax]
and edx, 0xfff
cmp edx, dword [ebp - 0xe4]
jae 0x100b0d96
inc dword [ebp - 0xd0]
inc eax
inc eax
cmp dword [ebp - 0xd0], ecx
jne 0x100b0d75
mov ecx, 0x82a003e
mov edx, dword [ebp - 0xe0]
cmp esi, dword [ebp - 0xd8]
je 0x100b0e9d
cmp dword [esi], edx
ja 0x100b0e9d
mov eax, dword [esi + 4]
lea edi, [eax - 8]
shr edi, 1
cmp dword [ebp - 0xd0], edi
jne 0x100b0de4
add esi, eax
cmp esi, dword [ebp - 0xd8]
je 0x100b0e9d
cmp dword [esi], edx
ja 0x100b0e9d
and dword [ebp - 0xd0], 0
jmp 0x100b0db5
cmp dword [esi], edx
jne 0x100b0e04
mov eax, dword [ebp - 0xd0]
movzx eax, word [esi + eax*2 + 8]
and eax, 0xfff
cmp eax, dword [ebp - 0xdc]
jae 0x100b0e9d
mov eax, dword [ebp - 0xd0]
mov edi, 0xf000
inc dword [ebp - 0xd0]
test word [esi + eax*2 + 8], di
je 0x100b0da1
mov edx, dword [esi]
movzx eax, word [esi + eax*2 + 8]
and eax, 0xfff
lea eax, [eax + edx + 0x10000000]
mov dword [ebp - 0x5c], eax
xor edi, edi
sub dword [ebp - 0x5c], ebx
mov dword [ebp - 0xe4], eax
je 0x100b0e5d
mov edx, ecx
movzx eax, byte [edi + ebx]
add eax, ecx
add dword [ebp - 0x64], eax
add eax, dword [ebp - 0x60]
mul edx
add eax, edx
add dword [ebp - 0x64], eax
inc edi
mov dword [ebp - 0x60], eax
cmp edi, dword [ebp - 0x5c]
jb 0x100b0e3f
mov ebx, dword [ebp - 0xe4]
mov eax, dword [ebx]
sub eax, dword [ebp - 0xf8]
xor edi, edi
mov dword [ebp - 0xf4], eax
mov edx, ecx
movzx eax, byte [ebp + edi - 0xf4]
add eax, ecx
add dword [ebp - 0x64], eax
add eax, dword [ebp - 0x60]
mul edx
add eax, edx
add dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
inc edi
cmp edi, 4
jb 0x100b0e73
add ebx, 4
jmp 0x100b0d9b
mov edi, dword [ebp - 0x70]
xor esi, esi
sub edi, ebx
je 0x100b0ec3
movzx eax, byte [ebx + esi]
mov edx, ecx
add eax, ecx
add dword [ebp - 0x64], eax
add eax, dword [ebp - 0x60]
mul edx
add eax, edx
add dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
inc esi
cmp esi, edi
jb 0x100b0ea6
xor edi, edi
xor eax, eax
mov ecx, eax
and ecx, 7
mov cl, byte [ebp + ecx - 0x64]
mov byte [ebp + eax - 0x54], cl
inc eax
cmp eax, 0x10
jb 0x100b0ec7
mov eax, 0x9ab15835
mov eax, dword [ebp - 0x54]
mov edx, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x50]
mov esi, dword [ebp - 0x48]
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x10c], eax
mov eax, dword [0x10120760]
mov dword [ebp - 0x130], ecx
mov dword [ebp - 0x108], ecx
mov ecx, dword [eax]
mov dword [ebp - 0x138], ecx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x124], ecx
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0xfc], eax
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0x110], ecx
lea ecx, [ebp - 0x44]
sub eax, ecx
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0x68]
sub eax, dword [ebp - 0xc8]
mov dword [ebp - 0x12c], edx
mov dword [ebp - 0x128], esi
mov dword [ebp - 0x104], edx
mov dword [ebp - 0x100], esi
mov dword [ebp - 0x120], edi
mov dword [ebp - 0x11c], edi
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x114], edi
mov dword [ebp - 0x70], eax
lea esi, [ebp - 0x138]
push 0x10
lea edi, [ebp - 0xbc]
pop ecx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0xbc]
mov edx, dword [ebp - 0x8c]
mov eax, dword [ebp - 0xac]
mov ecx, dword [ebp - 0x9c]
mov dword [ebp - 0x5c], 3
lea edi, [edx + esi]
mov ebx, dword [ebp - 0xb8]
rol edi, 7
xor eax, edi
lea edi, [esi + eax]
rol edi, 9
xor ecx, edi
lea edi, [ecx + eax]
rol edi, 0xd
xor edx, edi
lea edi, [ecx + edx]
ror edi, 0xe
xor esi, edi
mov edi, dword [ebp - 0xa8]
add ebx, edi
rol ebx, 7
xor dword [ebp - 0x98], ebx
mov ebx, dword [ebp - 0x98]
add edi, ebx
rol edi, 9
xor dword [ebp - 0x88], edi
mov edi, ebx
mov ebx, dword [ebp - 0x88]
add ebx, edi
mov edi, dword [ebp - 0x88]
rol ebx, 0xd
xor dword [ebp - 0xb8], ebx
mov ebx, dword [ebp - 0xb8]
add edi, ebx
ror edi, 0xe
mov ebx, dword [ebp - 0x94]
xor dword [ebp - 0xa8], edi
mov edi, dword [ebp - 0xa4]
add edi, ebx
rol edi, 7
xor dword [ebp - 0x84], edi
mov edi, ebx
mov ebx, dword [ebp - 0x84]
add edi, ebx
rol edi, 9
xor dword [ebp - 0xb4], edi
mov edi, ebx
mov ebx, dword [ebp - 0xb4]
add ebx, edi
rol ebx, 0xd
mov edi, dword [ebp - 0xb4]
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 - 0xb0], edi
mov edi, ebx
mov ebx, dword [ebp - 0xb0]
add edi, ebx
rol edi, 9
xor dword [ebp - 0xa0], edi
mov edi, ebx
mov ebx, dword [ebp - 0xa0]
add ebx, edi
mov edi, dword [ebp - 0xa0]
rol ebx, 0xd
xor dword [ebp - 0x90], ebx
mov ebx, dword [ebp - 0x90]
add edi, ebx
ror edi, 0xe
xor dword [ebp - 0x80], edi
mov edi, dword [ebp - 0xb0]
add edi, esi
rol edi, 7
xor dword [ebp - 0xb8], edi
mov edi, dword [ebp - 0xb8]
add edi, esi
rol edi, 9
xor dword [ebp - 0xb4], edi
mov ebx, dword [ebp - 0xb4]
mov edi, dword [ebp - 0xb8]
add ebx, edi
rol ebx, 0xd
mov edi, dword [ebp - 0xb4]
xor dword [ebp - 0xb0], ebx
mov ebx, dword [ebp - 0xb0]
add ebx, edi
mov edi, dword [ebp - 0xa8]
add edi, eax
ror ebx, 0xe
xor esi, ebx
rol edi, 7
xor dword [ebp - 0xa4], edi
mov ebx, dword [ebp - 0xa4]
mov edi, dword [ebp - 0xa8]
add ebx, edi
rol ebx, 9
mov edi, dword [ebp - 0xa4]
xor dword [ebp - 0xa0], ebx
mov ebx, dword [ebp - 0xa0]
add ebx, edi
mov edi, dword [ebp - 0xa0]
rol ebx, 0xd
xor eax, ebx
add edi, eax
ror edi, 0xe
mov ebx, dword [ebp - 0x98]
xor dword [ebp - 0xa8], edi
mov edi, dword [ebp - 0x94]
add edi, ebx
rol edi, 7
xor dword [ebp - 0x90], edi
mov edi, dword [ebp - 0x94]
mov ebx, dword [ebp - 0x90]
add ebx, edi
rol ebx, 9
mov edi, dword [ebp - 0x90]
xor ecx, ebx
mov ebx, dword [ebp - 0x84]
add edi, ecx
rol edi, 0xd
xor dword [ebp - 0x98], edi
mov edi, dword [ebp - 0x98]
add edi, ecx
ror edi, 0xe
xor dword [ebp - 0x94], edi
mov edi, dword [ebp - 0x80]
add edi, ebx
rol edi, 7
xor edx, edi
mov edi, dword [ebp - 0x80]
add edi, edx
rol edi, 9
xor dword [ebp - 0x88], edi
mov edi, dword [ebp - 0x88]
add edi, edx
rol edi, 0xd
xor dword [ebp - 0x84], edi
mov ebx, dword [ebp - 0x84]
mov edi, dword [ebp - 0x88]
add ebx, edi
ror ebx, 0xe
xor dword [ebp - 0x80], ebx
dec dword [ebp - 0x5c]
jne 0x100b0fa8
mov dword [ebp - 0x8c], edx
push 0x40
mov dword [ebp - 0xac], eax
xor edx, edx
mov dword [ebp - 0x9c], ecx
mov dword [ebp - 0xbc], esi
xor eax, eax
pop ebx
mov ecx, dword [ebp + eax - 0x138]
add dword [ebp + eax - 0xbc], ecx
add eax, 4
cmp eax, ebx
jl 0x100b120b
lea esi, [ebp - 0xbc]
lea edi, [ebp - 0x44]
inc dword [ebp - 0x118]
push 0x10
pop ecx
rep movsd dword es:[edi], dword [esi]
cmp dword [ebp - 0xc0], ebx
jbe 0x100b1275
mov esi, dword [ebp - 0xcc]
mov eax, dword [ebp - 0x70]
lea edi, [esi + eax]
lea ecx, [ebp + edx - 0x44]
mov al, byte [ecx + edi]
xor al, byte [ecx]
xor byte [ebp - 0x55], al
inc edx
cmp edx, ebx
mov byte [ecx + esi], al
jb 0x100b1248
sub dword [ebp - 0xc0], ebx
add dword [ebp - 0x74], ebx
add esi, ebx
add dword [ebp - 0x7c], ebx
mov dword [ebp - 0xcc], esi
jmp 0x100b0f78
cmp dword [ebp - 0xc0], edx
jbe 0x100b12a2
lea eax, [ebp - 0x44]
mov edi, dword [ebp - 0x74]
mov esi, dword [ebp - 0x7c]
sub esi, eax
sub edi, eax
lea ecx, [ebp + edx - 0x44]
mov al, byte [ecx + esi]
xor al, byte [ecx]
xor byte [ebp - 0x55], al
mov byte [ecx + edi], al
inc edx
cmp edx, dword [ebp - 0xc0]
jb 0x100b128a
mov edi, 0xfffff000
mov ebx, dword [ebp - 0xc4]
mov esi, 0x10000000
mov eax, dword [ebp - 0x6c]
mov al, byte [eax + 8]
xor al, byte [ebp - 0x55]
je 0x100b134a
call fcn.100ae1cc
mov edx, 0xffff
mov ebx, eax
mov eax, dword [ebp - 0xe8]
lea ecx, [eax + 0xc]
and ecx, 0xfffffffc
lea esi, [ecx + 0xfff]
mov dword [eax + 8], 0x100f1b6e
and ebx, edi
and esi, edi
xor eax, eax
mov edi, dword [0x1012ee38]
imul edi, edi, 0x343fd
add edi, 0x269ec3
mov dword [0x1012ee38], edi
shr edi, 0x10
shl eax, 0x10
shr edx, 0x10
or eax, edi
test edx, edx
jne 0x100b12ec
mov edi, 0xffff
div edi
mov dword [ebp - 0x150], ebx
inc edx
mov eax, ecx
cmp ecx, esi
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x70], 0
jae 0x100b1340
mov ecx, dword [ebp - 0x70]
mov dword [eax], ecx
add eax, 4
cmp eax, esi
jb 0x100b1334
mov eax, 0x100f1b6e
jmp 0x100b1426
mov ecx, dword [0x1001256c]
mov eax, dword [ebp - 0x68]
sub eax, dword [ebp - 0xc8]
mov dword [ebp - 0xc4], eax
sub esi, ecx
mov dword [ebp - 0x6c], esi
jne 0x100b136e
test eax, eax
je 0x100b1416
mov eax, dword [ebp - 0x78]
mov esi, dword [ebp - 0xc8]
mov ecx, dword [0x10103928]
sub esi, dword [ebp - 0x68]
add eax, ebx
mov dword [ebp - 0x70], eax
xor ebx, ebx
dec ecx
js 0x100b13b2
lea eax, [ebx + ecx]
cdq
sub eax, edx
sar eax, 1
mov edx, dword [eax*4 + 0x1010392c]
and edx, 0xfffffff
cmp dword [ebp - 0x78], edx
jae 0x100b13a9
lea ecx, [eax - 1]
jmp 0x100b13ae
jbe 0x100b13b6
lea ebx, [eax + 1]
cmp ecx, ebx
jge 0x100b138a
mov edi, ebx
jmp 0x100b140e
mov edi, eax
jmp 0x100b140e
mov eax, dword [edi*4 + 0x1010392c]
mov ecx, eax
and ecx, 0xfffffff
cmp ecx, dword [ebp - 0x70]
jae 0x100b1416
lea ebx, [ecx + esi + 0x10000000]
mov ecx, eax
shl ecx, 2
sar ecx, 0x1e
sar eax, 0x1e
and ecx, 3
and eax, 3
xor edx, edx
dec ecx
je 0x100b13fe
dec ecx
je 0x100b13f6
dec ecx
jne 0x100b1407
mov edx, dword [ebp - 0x6c]
jmp 0x100b1407
mov edx, dword [ebp - 0xc4]
jmp 0x100b1407
mov edx, dword [ebp - 0x6c]
sub edx, dword [ebp - 0xc4]
dec eax
dec eax
jne 0x100b140d
add dword [ebx], edx
inc edi
cmp edi, dword [0x10103928]
jb 0x100b13ba
mov eax, dword [0x1007b9bc]
mov eax, 0x2ac625b7
mov eax, dword [ebp - 0xc8]
mov ecx, dword [ebp - 0xe8]
mov dword [ecx + 8], eax
mov ebx, dword [ebp - 0x148]
mov ecx, dword [ebp - 0x144]
mov esi, dword [ebp - 0x13c]
mov eax, dword [ebp - 0x14c]
mov edi, dword [ebp - 0x140]
mov edx, dword [ebp - 0x150]
mov esp, ebp
pop ebp
popfd
ret