Function at 0x140040de0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x10], rdx
push rbp
push rbx
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xf0
xor edi, edi
mov r14d, ecx
lea eax, [rdi + 4]
lea r15d, [rdi + 3]
mov dword [rbp + 0x67], edi
mov r13b, dil
cmp ecx, 1
jbe 0x140040e26
jle 0x140040e2c
cmp ecx, r15d
jle 0x140040e26
cmp ecx, eax
jne 0x140040e2c
mov r13b, 1
mov qword [rbp - 0x59], r8
jmp 0x140040e5d
call fcn.140031064
mov dword [rax], edi
call fcn.1400310d4
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.140035a14
jmp 0x14004105a
inc r8
cmp byte [r8], dil
jne 0x140040e48
cmp byte [r8 + 1], dil
je 0x140040e5d
mov byte [r8], 0x20
inc r8
cmp byte [r8], dil
jne 0x140040e48
mov ebx, 0x68
lea rcx, [rbp - 0x49]
xor edx, edx
mov r8d, ebx
call fcn.140035a80
mov dword [rbp - 0x49], ebx
mov ebx, dword [0x14009dc48]
lea r8, [0x140064bf0]
test ebx, ebx
je 0x140040eb0
lea edx, [rbx - 1]
movsxd rcx, edx
mov rax, rcx
and ecx, 0x1f
sar rax, 5
imul rcx, rcx, 0x58
mov rax, qword [r8 + rax*8]
cmp byte [rax + rcx + 8], dil
jne 0x140040eae
dec edx
dec ebx
jne 0x140040e8c
test ebx, ebx
js 0x14004104f
movsxd r12, ebx
cmp r12, 0x1c71
jae 0x14004104f
movzx eax, bx
lea ecx, [rbx + 4]
mov edx, 1
shl ax, 3
add cx, ax
mov word [rbp - 7], cx
movzx ecx, cx
call fcn.140034f68
mov qword [rbp - 1], rax
test rax, rax
je 0x14004104f
mov dword [rax], ebx
mov rax, qword [rbp - 1]
lea rdx, [rax + 4]
lea rcx, [rax + 4]
add rdx, r12
test ebx, ebx
jle 0x140040f55
mov r9, rdi
mov r10d, ebx
lea r11, [0x140064bf0]
mov r8, r9
mov rax, r9
and r8d, 0x1f
sar rax, 5
imul r8, r8, 0x58
add r8, qword [r11 + rax*8]
mov al, byte [r8 + 8]
test al, 0x10
jne 0x140040f3b
mov byte [rcx], al
mov rax, qword [r8]
mov qword [rdx], rax
jmp 0x140040f42
mov byte [rcx], dil
or qword [rdx], 0xffffffffffffffff
inc r9
inc rcx
add rdx, 8
dec r10
jne 0x140040f13
mov rax, qword [rbp - 1]
test r13b, r13b
je 0x140040f8e
lea rdx, [rax + 4]
lea rcx, [rax + 4]
add rdx, r12
cmp ebx, r15d
cmovl r15d, ebx
test r15d, r15d
jle 0x140040f87
mov eax, r15d
mov byte [rcx], dil
or qword [rdx], 0xffffffffffffffff
inc rcx
lea rdx, [rdx + 8]
dec rax
jne 0x140040f74
mov dword [rbp + 0x67], 8
call fcn.140031064
mov rdx, qword [rbp - 0x59]
mov rcx, qword [rbp + 0x6f]
mov dword [rax], edi
lea rax, [rbp - 0x71]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x49]
xor r8d, r8d
mov qword [rsp + 0x40], rax
mov rax, qword [rbp + 0x7f]
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rax
mov eax, dword [rbp + 0x67]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbp - 1]
mov r15d, eax
call fcn.14002ed70
test ebx, ebx
jne 0x140040ffa
mov ecx, r15d
call fcn.140031084
jmp 0x14004105a
cmp r14d, 2
je 0x140041071
test r14d, r14d
jne 0x140041026
mov rcx, qword [rbp - 0x71]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp - 0x71]
lea rdx, [rbp - 0x79]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
movsxd rdi, dword [rbp - 0x79]
jmp 0x140041030
mov eax, 4
cmp r14d, eax
jne 0x14004103c
mov rcx, qword [rbp - 0x71]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140041040
mov rdi, qword [rbp - 0x71]
mov rcx, qword [rbp - 0x69]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rdi
jmp 0x14004105e
call fcn.1400310d4
mov dword [rax], listen
or rax, 0xffffffffffffffff
add rsp, 0xf0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rbx
pop rbp
ret
xor ecx, ecx
call fcn.1400302a8
int3