Function at 0x10058aa0
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call

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
push 0xffffffffffffffff
push 0x102c6d3d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x78
mov eax, dword [0x1066bbc0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [0x1070cc00]
mov eax, edi
mov esi, dword [0x1070cbfc]
sub eax, esi
sar eax, 2
mov dword [0x1070c944], 1
test eax, eax
je 0x10058c43
cmp esi, edi
je 0x10058b34
push 0
push 1
lea eax, [ebp - 0x15]
push eax
push dword [esi]
push dword [0x106d5b3c]
call dword [0x106d5b00]
cmp byte [ebp - 0x15], 0x66
jne 0x10058c32
add esi, 4
cmp esi, edi
jne 0x10058b07
mov esi, dword [0x1070cbfc]
mov edi, dword [esi]
mov esi, dword [0x1070c958]
test esi, esi
jne 0x10058b69
push 0x40
push 0x1000
push 0x1f4
push esi
push dword [0x106d5b3c]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
test esi, esi
je 0x10058ef9
mov dword [0x1070c958], esi
cmp dword [0x1070cc94], 0xf
mov ecx, 0x1070cc80
push 0x10
cmova ecx, dword [0x1070cc80]
push 0x10344e4c
push dword [0x1070cc90]
push ecx
call fcn.10055890
add esp, 0x10
mov byte [0x1066bd0a], 0x88
mov byte [0x1066bd13], 0x94
test al, al
je 0x10058bab
mov byte [0x1066bd13], 0xf4
push 0
push 0x3c
push 0x1066bcf0
push esi
push dword [0x106d5b3c]
call dword [0x106d5afc]
mov ecx, dword [0x1070c958]
push 0
push 4
lea eax, [ecx + 0x5e]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ecx + 9]
push eax
push dword [0x106d5b3c]
call dword [0x106d5afc]
push 0
push 7
push 0x1070dc4c
lea eax, [edi + 8]
push eax
push dword [0x106d5b3c]
call dword [0x106d5b00]
push 0
push 7
push 0x1070dc4c
push dword [0x1070c958]
push dword [0x106d5b3c]
call dword [0x106d5afc]
mov eax, dword [0x1070c958]
mov dword [0x1070dc48], eax
mov dword [0x1070c944], 2
jmp 0x10058ef9
xor cl, cl
call fcn.10058640
call fcn.10058890
jmp 0x10058ef9
mov eax, dword [str.qGDXJ9]
mov dword [ebp - 0x24], eax
mov ax, word [0x10345624]
mov word [ebp - 0x20], ax
test ah, ah
je 0x10058c87
xor edx, edx
mov dword [ebp - 0x1c], edx
nop
mov eax, 0x4ec4ec4f
mul edx
shr edx, 4
movsx eax, dl
mov edx, dword [ebp - 0x1c]
mov cl, dl
imul eax, eax, 0x34
sub cl, al
add cl, 0x34
xor byte [ebp + edx - 0x24], cl
inc edx
mov dword [ebp - 0x1c], edx
cmp edx, 6
jl 0x10058c60
xorps xmm0, xmm0
mov dword [ebp - 0x58], 0
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x54], 0
movups xmmword [ebp - 0x68], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10058ca2
sub ecx, edx
lea eax, [ebp - 0x24]
push ecx
push eax
lea ecx, [ebp - 0x68]
call fcn.10053700
mov dword [ebp - 4], 0
lea esi, [ebp - 0x68]
cmp dword [ebp - 0x54], 0xf
movups xmm0, xmmword [str.yTQ_]
mov al, byte [0x1034561c]
mov byte [ebp - 0x28], al
movups xmmword [ebp - 0x38], xmm0
jbe 0x10058cde
mov esi, dword [ebp - 0x68]
xor ecx, ecx
cmp dword [0x106d5adc], 2
jl 0x10058e10
movaps xmm0, xmmword [0x10654640]
lea edi, [ebp - 0x34]
movaps xmm4, xmmword [0x106544f0]
movaps xmm3, xmmword [0x106549a0]
movaps xmm5, xmmword [0x10654540]
movaps xmmword [ebp - 0x80], xmm0
mov edx, dword [ebp - 0x80]
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
psrad xmm1, 4
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x106545f0]
packuswb xmm1, xmm1
movd xmm0, edx
paddb xmm1, xmm0
movd xmm0, dword [ebp + ecx - 0x38]
xorps xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movd dword [ebp + ecx - 0x38], xmm1
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
psrad xmm1, 4
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x106545f0]
packuswb xmm1, xmm1
movd xmm0, edx
paddb xmm1, xmm0
movd xmm0, dword [edi + ecx]
xorps xmm1, xmm0
movd dword [edi + ecx], xmm1
add ecx, 8
cmp ecx, 0x10
jl 0x10058d13
cmp ecx, 0x11
jge 0x10058e39
nop dword [eax]
mov eax, 0x4ec4ec4f
imul ecx
mov eax, edx
sar eax, 4
mov edx, eax
shr edx, 0x1f
add edx, eax
mov al, 1
sub al, dl
movsx eax, al
imul eax, eax, 0x34
add al, cl
xor byte [ebp + ecx - 0x38], al
inc ecx
cmp ecx, 0x11
jl 0x10058e10
xorps xmm0, xmm0
mov dword [ebp - 0x40], 0
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x3c], 0
movups xmmword [ebp - 0x50], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10058e54
sub ecx, edx
lea eax, [ebp - 0x38]
push ecx
push eax
lea ecx, [ebp - 0x50]
call fcn.10053700
cmp dword [ebp - 0x3c], 0xf
lea eax, [ebp - 0x50]
push 0x10
cmova eax, dword [ebp - 0x50]
push esi
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [ebp - 0x3c]
cmp ecx, 0xf
jbe 0x10058eb1
mov edx, dword [ebp - 0x50]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10058ea7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10058ee9
push ecx
push edx
call fcn.102c1b57
add esp, 8
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0xf
mov byte [ebp - 0x50], 0
cmp ecx, 0xf
jbe 0x10058ef9
mov edx, dword [ebp - 0x68]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10058eef
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10058eef
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.102c1b57
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.102c15f2
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret