Function at 0x1001a700
Capabilities:
Allocate or change rwx memory
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x48
push esi
mov esi, dword [ebx + 8]
push edi
mov edi, ecx
test esi, esi
je 0x1001a954
movups xmm0, xmmword [0x100fdbd0]
mov dword [ebp - 0x30], 0xb8909090
mov byte [ebp - 0x28], 0xba
movups xmmword [ebp - 0x40], xmm0
mov word [ebp - 0x23], 0xd2ff
psrldq xmm0, 0xf
movd eax, xmm0
mov byte [ebp - 0x21], 0xc3
test al, al
je 0x1001a8d3
xor edx, edx
cmp dword [0x1023d8cc], 2
mov dword [ebp - 4], edx
jl 0x1001a8a3
movaps xmm0, xmmword [str.1111111111111111]
mov eax, 5
movaps xmm4, xmmword [0x100fdc20]
xor ecx, ecx
movaps xmm3, xmmword [0x100fdc60]
movaps xmm6, xmmword [str.9999]
movd xmm5, eax
mov eax, 0x1f
movaps xmmword [ebp - 0x20], xmm0
mov edx, dword [ebp - 0x20]
movd xmm7, eax
movd xmm0, ecx
lea eax, [ecx + 4]
pshufd xmm2, xmm0, 0
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, xmm5
movaps xmm0, xmm1
psrld xmm0, xmm7
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
pand xmm1, xmmword [0x100fdc40]
packuswb xmm1, xmm1
movd xmm0, edx
paddb xmm1, xmm0
movd xmm0, dword [ebp + ecx - 0x40]
pxor xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movd dword [ebp + ecx - 0x40], xmm1
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckldq xmm1, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, xmm5
movaps xmm0, xmm1
psrld xmm0, xmm7
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
pand xmm1, xmmword [0x100fdc40]
packuswb xmm1, xmm1
movd xmm0, edx
paddb xmm1, xmm0
movd xmm0, dword [ebp + ecx - 0x3c]
pxor xmm1, xmm0
movd dword [ebp + ecx - 0x3c], xmm1
add ecx, 8
cmp ecx, 0x10
jl 0x1001a7a2
jmp 0x1001a8d3
mov eax, 0x1f7047dd
mul edx
mov eax, dword [ebp - 4]
sub eax, edx
shr eax, 1
add eax, edx
mov edx, dword [ebp - 4]
shr eax, 5
mov cl, dl
movsx eax, al
imul eax, eax, 0x39
sub cl, al
add cl, 0x31
xor byte [ebp + edx - 0x40], cl
inc edx
mov dword [ebp - 4], edx
cmp edx, 0x10
jl 0x1001a8a3
mov ax, word [0x100fdbcc]
movq xmm0, qword [0x100fdbc4]
movq qword [ebp - 0x1c], xmm0
mov word [ebp - 0x14], ax
test ah, ah
je 0x1001a919
xor ecx, ecx
mov eax, 0x1f7047dd
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
mov dl, cl
shr eax, 5
movsx eax, al
imul eax, eax, 0x39
sub dl, al
add dl, 0x31
xor byte [ebp + ecx - 0x1c], dl
inc ecx
cmp ecx, 0xa
jl 0x1001a8f0
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40
push 0x3000
push 0x10
mov eax, dword [eax]
push 0
mov dword [ebp - 0x27], eax
mov dword [ebp - 0x2c], esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [edi], eax
test eax, eax
je 0x1001a954
movups xmm0, xmmword [ebp - 0x30]
movups xmmword [eax], xmm0
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4