Function at 0x440950
Capabilities:
Create pipe
Generate random numbers via winapi

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x128
movaps xmmword [rsp + 0x110], xmm6
mov qword [rsp + 0xa8], rcx
mov byte [rsp + 0x4f], dl
movzx eax, dl
mov ecx, 0x40080002
sub ecx, eax
mov dword [rsp + 0xb8], ecx
xor eax, eax
mov qword [rsp + 0xe8], rax
mov ebx, 8
mov sil, 1
xorps xmm6, xmm6
jmp 0x4409bd
mov eax, ecx
mov qword [rsp + 0xe8], rax
mov rcx, qword [0x00459118]
xor esi, esi
xor edx, edx
mov r8, r13
call sub.kernel32.dll_HeapFree
call sub.kernel32.dll_GetCurrentProcessId
mov dword [rsp + 0xc4], eax
jmp 0x4409dc
mov rax, qword [rsp + 0x70]
xchg qword [0x00459120], rax
mov rax, qword [0x00459120]
test rax, rax
jne 0x440a10
movaps xmmword [rsp + 0x70], xmm6
xor ecx, ecx
lea rdx, [rsp + 0x70]
mov r8d, 0x10
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
jns 0x4409d0
call fcn.00441910
jmp 0x4409d5
mov eax, 1
lock xadd qword [0x00459120], rax
mov qword [rsp + 0xf0], rax
lea rax, [rsp + 0xc4]
mov qword [rsp + 0xc8], rax
lea rax, [0x00406470]
mov qword [rsp + 0xd0], rax
lea rax, [rsp + 0xf0]
mov qword [rsp + 0xd8], rax
lea rax, [fcn.00404c60]
mov qword [rsp + 0xe0], rax
lea rax, str..pipe__rust_anonymous_pipe1__.
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], 2
mov qword [rsp + 0x90], 0
lea rax, [rsp + 0xc8]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], 2
lea rcx, [rsp + 0xf8]
lea rdx, [rsp + 0x70]
call fcn.00402e00
movups xmm0, xmmword [rsp + 0xf8]
movaps xmmword [rsp + 0x70], xmm0
mov rax, qword [rsp + 0x108]
cmp qword [rsp + 0x58], 0
mov qword [rsp + 0x80], rax
sete al
or sil, al
test sil, 1
jne 0x440af5
mov r8, qword [rsp + 0x50]
mov rcx, qword [0x00459118]
xor edx, edx
call sub.kernel32.dll_HeapFree
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x60], rax
movaps xmm0, xmmword [rsp + 0x70]
movaps xmmword [rsp + 0x50], xmm0
mov rbp, qword [rsp + 0x50]
lea rcx, [rax + rbp]
mov qword [rsp + 0xb0], rcx
test rax, rax
mov dword [rsp + 0xc0], ebx
je 0x440b40
movzx edi, byte [rbp]
test dil, dil
js 0x440b60
inc rbp
jmp 0x440bb8
xor r14d, r14d
xor r12d, r12d
xor edi, edi
xor ebp, ebp
xor r15d, r15d
jmp 0x440be6
mov eax, edi
and eax, 0x1f
movzx edx, byte [rbp + 1]
and edx, 0x3f
cmp dil, 0xdf
jbe 0x440bad
movzx ecx, byte [rbp + 2]
shl edx, 6
and ecx, 0x3f
or ecx, edx
cmp dil, 0xf0
jb 0x440eb8
movzx edi, byte [rbp + 3]
add rbp, 4
and eax, 7
shl eax, 0x12
shl ecx, 6
and edi, 0x3f
or edi, ecx
or edi, eax
cmp edi, 0xffff
jbe 0x440bb8
jmp 0x440ecf
add rbp, 2
shl eax, 6
or eax, edx
mov edi, eax
mov eax, 1
xor r14d, r14d
mov r15, qword [rsp + 0xb0]
sub r15, rbp
add r15, 3
mov rcx, 0xffffffffffffffff
cmovb r15, rcx
shr r15, 2
add r15, rax
mov r12w, 1
cmp r15, 4
mov eax, 3
cmovb r15, rax
movabs rax, 0x3ffffffffffffffe
cmp r15, rax
ja 0x441085
inc r15
lea rbx, [r15 + r15]
movzx eax, byte [0x004591b8]
mov edx, 2
mov rcx, rbx
call fcn.00446d90
test rax, rax
je 0x44108c
mov r13, rax
mov rax, qword [rsp + 0xe8]
inc eax
mov dword [rsp + 0xbc], eax
mov word [r13], di
mov ebx, 1
mov rcx, r13
jmp 0x440c60
mov rsi, r15
mov r14d, eax
mov word [rcx + rbx*2], di
inc rbx
mov r15, rsi
test rbp, rbp
je 0x440cd0
test r14w, r14w
je 0x440cb0
xor eax, eax
mov edi, r14d
cmp rbx, r15
jne 0x440c50
mov rsi, qword [rsp + 0xb0]
sub rsi, rbp
add rsi, 3
mov rcx, 0xffffffffffffffff
cmovb rsi, rcx
shr rsi, 2
cmp ax, 1
sbb rsi, 0xffffffffffffffff
cmp r12w, 1
sbb rsi, 0xffffffffffffffff
mov r14d, eax
jmp 0x440cf3
cmp rbp, qword [rsp + 0xb0]
je 0x440cd0
movzx edi, byte [rbp]
test dil, dil
js 0x440da2
inc rbp
xor eax, eax
jmp 0x440c70
cmp r12w, 1
jne 0x440e40
xor ebp, ebp
xor r12d, r12d
mov edi, 0
mov esi, 0
cmp rbx, r15
jne 0x440d90
inc rsi
add rsi, rbx
jb 0x44106f
lea rax, [r15 + r15]
cmp rax, rsi
cmova rsi, rax
cmp rsi, 5
jae 0x440d15
mov esi, 4
movabs rcx, 0x3ffffffffffffffe
inc rcx
xor edx, edx
cmp rsi, rcx
setbe dl
lea r8, [rsi + rsi]
add rdx, rdx
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], 2
mov qword [rsp + 0x80], rax
lea rcx, [rsp + 0xc8]
lea r9, [rsp + 0x70]
call fcn.00415310
cmp qword [rsp + 0xc8], 0
mov rcx, qword [rsp + 0xd0]
je 0x440d9a
movabs rax, 0x8000000000000001
cmp rcx, rax
jne 0x44106a
mov rsi, r15
mov rcx, r13
jmp 0x440c56
mov rsi, r15
xor edi, edi
jmp 0x440c56
mov r13, rcx
jmp 0x440c56
mov eax, edi
and eax, 0x1f
movzx r8d, byte [rbp + 1]
and r8d, 0x3f
cmp dil, 0xdf
jbe 0x440df1
movzx edx, byte [rbp + 2]
shl r8d, 6
and edx, 0x3f
or edx, r8d
cmp dil, 0xf0
jb 0x440e04
movzx edi, byte [rbp + 3]
add rbp, 4
and eax, 7
shl eax, 0x12
shl edx, 6
and edi, 0x3f
or edi, edx
or edi, eax
cmp edi, 0xffff
ja 0x440e17
xor eax, eax
jmp 0x440c70
add rbp, 2
shl eax, 6
or eax, r8d
mov edi, eax
xor eax, eax
jmp 0x440c70
add rbp, 3
shl eax, 0xc
or edx, eax
mov edi, edx
cmp edi, 0xffff
jbe 0x440dea
lea edx, [rdi + 0xff0000]
shr edx, 0xa
or edx, 0xd800
and edi, 0x3ff
or edi, 0xdc00
mov eax, edi
mov edi, edx
jmp 0x440c70
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x10000
mov dword [rsp + 0x20], 0x10000
mov rcx, r13
mov edx, dword [rsp + 0xb8]
mov ebx, dword [rsp + 0xc0]
mov r8d, ebx
mov r9d, 1
call sub.kernel32.dll_CreateNamedPipeW
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x440f71
call sub.kernel32.dll_GetLastError
mov ecx, dword [rsp + 0xbc]
cmp ecx, 9
jg 0x440ef9
cmp eax, 5
je 0x4409a0
test ebx, ebx
je 0x440ef9
xor ebx, ebx
cmp eax, 0x57
je 0x4409aa
jmp 0x440ef9
add rbp, 3
shl eax, 0xc
or ecx, eax
mov edi, ecx
cmp edi, 0xffff
jbe 0x440bb8
lea ecx, [rdi + 0xff0000]
shr ecx, 0xa
or ecx, 0xd800
and edi, 0x3ff
or edi, 0xdc00
mov eax, 2
mov r14d, edi
mov edi, ecx
jmp 0x440bc0
shl rax, 0x20
or rax, 2
mov rcx, qword [rsp + 0xa8]
mov qword [rcx + 8], rax
mov qword [rcx], 1
mov rcx, qword [0x00459118]
xor edx, edx
mov r8, r13
call sub.kernel32.dll_HeapFree
mov rdi, 0xffffffffffffffff
cmp qword [rsp + 0x58], 0
je 0x440f47
mov r8, qword [rsp + 0x50]
mov rcx, qword [0x00459118]
xor edx, edx
call sub.kernel32.dll_HeapFree
cmp rsi, 0xffffffffffffffff
je 0x440f55
mov rcx, rdi
call sub.kernel32.dll_CloseHandle
movaps xmm6, xmmword [rsp + 0x110]
add rsp, 0x128
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [0x00459118]
xor edx, edx
mov r8, r13
call sub.kernel32.dll_HeapFree
mov dword [rsp + 0x70], 0
mov dword [rsp + 0x90], 0
mov word [rsp + 0x94], 0
movzx eax, byte [rsp + 0x4f]
mov byte [rsp + 0x91], al
xor al, 1
mov byte [rsp + 0x90], al
xorps xmm0, xmm0
movups xmmword [rsp + 0x80], xmm0
mov dword [rsp + 0xc8], 0x18
mov qword [rsp + 0xd0], 0
mov dword [rsp + 0xd8], 1
lea rax, [rsp + 0xc8]
mov qword [rsp + 0x78], rax
mov rdi, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x60]
lea r8, [rsp + 0x70]
mov rcx, rdi
call fcn.00433560
test rax, rax
je 0x441031
mov rax, qword [rsp + 0xa8]
mov qword [rax + 8], rdx
mov qword [rax], 1
mov rdi, rsi
cmp qword [rsp + 0x58], 0
jne 0x440f34
jmp 0x440f47
mov rax, qword [rsp + 0xa8]
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rdx
mov qword [rax], 0
cmp qword [rsp + 0x58], 0
je 0x440f55
mov rcx, qword [0x00459118]
xor edx, edx
mov r8, rdi
call sub.kernel32.dll_HeapFree
jmp 0x440f55
test rcx, rcx
jne 0x441076
call fcn.00402940
jmp 0x441099
mov rdx, qword [rsp + 0xd8]
call fcn.00402980
jmp 0x441099
call fcn.00402940
jmp 0x441099
mov ecx, 2
mov rdx, rbx
call fcn.00402980
ud2