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

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x148
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0xb0], xmm6
mov qword [rbp + 0xa8], 0xfffffffffffffffe
mov qword [rbp + 0x58], rcx
mov byte [rbp + 0xa5], dl
movzx eax, dl
mov ecx, 0x40080002
sub ecx, eax
mov dword [rbp + 0x4c], ecx
xor edi, edi
mov r14d, 8
mov r15b, 1
lea rsi, [0x140047ffc]
mov r12, qword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
xorps xmm6, xmm6
mov r13, qword [sym.imp.bcrypt.dll_BCryptGenRandom]
xor eax, eax
mov qword [rbp - 8], rax
nop dword [rax]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rbp + 0x44], eax
jmp 0x140029c81
mov eax, 0xc00000bb
mov byte [rbp + 0xa7], dil
mov byte [rbp + 0xa6], 1
mov ecx, eax
call fcn.14002af30
xchg qword [0x140057b80], rax
mov rax, qword [0x140057b80]
test rax, rax
jne 0x140029d20
mov rbx, qword [0x140057b90]
mov qword [rbp + 0x60], rbx
cmp rbx, 0xffffffffffffffff
je 0x140029c60
test rbx, rbx
jne 0x140029cf0
lea rcx, [rbp + 0x60]
mov rdx, rsi
xor r8d, r8d
xor r9d, r9d
call r12
test eax, eax
js 0x140029cd2
mov rcx, qword [rbp + 0x60]
xor eax, eax
lock cmpxchg qword [0x140057b90], rcx
jne 0x140029cdf
mov rbx, qword [rbp + 0x60]
jmp 0x140029cf0
mov qword [0x140057b90], 0xffffffffffffffff
jmp 0x140029c65
mov rbx, rax
mov rcx, qword [rbp + 0x60]
xor edx, edx
call qword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
nop
movaps xmmword [rbp + 0x60], xmm6
mov rcx, rbx
lea rdx, [rbp + 0x60]
mov r8d, 0x10
xor r9d, r9d
call r13
test eax, eax
js 0x140029c65
mov rax, qword [rbp + 0x60]
jmp 0x140029c7a
mov eax, 1
lock xadd qword [0x140057b80], rax
mov qword [rbp - 0x30], rax
lea rax, [rbp + 0x44]
mov qword [rbp], rax
lea rax, [0x14000a850]
mov qword [rbp + 8], rax
lea rax, [rbp - 0x30]
mov qword [rbp + 0x10], rax
lea rax, [fcn.140008b70]
mov qword [rbp + 0x18], rax
lea rax, str..pipe__rust_anonymous_pipe1__.
mov qword [rbp + 0x60], rax
mov qword [rbp + 0x68], 2
mov qword [rbp + 0x70], 0
mov rax, rbp
mov qword [rbp + 0x80], rax
mov qword [rbp + 0x88], 2
mov byte [rbp + 0xa7], dil
mov byte [rbp + 0xa6], 1
lea rcx, [rbp - 0x28]
lea rdx, [rbp + 0x60]
call fcn.140007270
movups xmm0, xmmword [rbp - 0x28]
movaps xmmword [rbp + 0x60], xmm0
mov rax, qword [rbp - 0x18]
mov qword [rbp + 0x70], rax
test r15b, 1
jne 0x140029dd2
mov rdx, qword [rbp + 0x28]
test rdx, rdx
je 0x140029dd2
mov rcx, qword [rbp + 0x20]
not rdx
shr rdx, 0x3f
call fcn.140007000
mov r15, qword [rbp + 0x70]
mov qword [rbp + 0x30], r15
movaps xmm0, xmmword [rbp + 0x60]
movaps xmmword [rbp + 0x20], xmm0
mov rsi, qword [rbp + 0x20]
lea rax, [rsi + r15]
mov qword [rbp + 0x50], rax
test r15, r15
mov dword [rbp + 0x48], r14d
je 0x140029e10
movzx ecx, byte [rsi]
movzx edi, cl
test dil, dil
js 0x140029e30
inc rsi
jmp 0x140029e89
xor edi, edi
xor r13d, r13d
xor r12d, r12d
xor esi, esi
xor r14d, r14d
jmp 0x140029eb3
mov eax, edi
and eax, 0x1f
movzx edx, byte [rsi + 1]
and edx, 0x3f
cmp dil, 0xdf
jbe 0x140029e7e
movzx edi, byte [rsi + 2]
shl edx, 6
and edi, 0x3f
or edi, edx
cmp cl, 0xf0
jb 0x14002a225
movzx ecx, byte [rsi + 3]
add rsi, 4
and eax, 7
shl eax, 0x12
shl edi, 6
and ecx, 0x3f
or ecx, edi
or ecx, eax
mov edi, ecx
cmp edi, 0xffff
jbe 0x140029e89
jmp 0x14002a23a
add rsi, 2
shl eax, 6
or eax, edx
mov edi, eax
mov eax, 1
xor r12d, r12d
mov r14, qword [rbp + 0x50]
sub r14, rsi
add r14, 3
mov rcx, 0xffffffffffffffff
cmovb r14, rcx
shr r14, 2
add r14, rax
mov r13w, 1
cmp r14, 4
mov eax, 3
cmovb r14, rax
movabs rax, 0x3fffffffffffffff
cmp r14, rax
jae 0x14002a3d8
inc r14
lea rbx, [r14 + r14]
mov rcx, rbx
call fcn.140006fb0
test rax, rax
je 0x14002a3bb
mov word [rax], di
mov qword [rbp - 0x28], rsi
test r15, r15
je 0x14002a160
mov r15d, 1
mov rbx, r14
mov qword [rbp + 0x98], rax
mov rcx, rax
mov eax, r13d
jmp 0x140029f2e
mov qword [rbp + 0x98], rcx
mov rbx, r14
mov eax, dword [rbp + 0xa0]
mov word [rcx + r15*2], r12w
inc r15
mov r12d, r13d
test rsi, rsi
lea rdx, [rbp - 0x28]
cmovne rsi, rdx
je 0x140029ff0
test r12w, r12w
je 0x140029f50
xor r13d, r13d
jmp 0x14002a002
mov rdi, qword [rsi]
cmp rdi, qword [rbp + 0x50]
je 0x140029fe8
lea rdx, [rdi + 1]
mov qword [rsi], rdx
movzx r9d, byte [rdi]
movzx r12d, r9b
test r12b, r12b
jns 0x140029f45
mov r8d, r12d
and r8d, 0x1f
lea rdx, [rdi + 2]
mov qword [rsi], rdx
movzx r10d, byte [rdi + 1]
and r10d, 0x3f
cmp r12b, 0xdf
jbe 0x14002a0f8
lea rdx, [rdi + 3]
mov qword [rsi], rdx
movzx r12d, byte [rdi + 2]
shl r10d, 6
and r12d, 0x3f
or r12d, r10d
cmp r9b, 0xf0
jb 0x14002a10a
lea rdx, [rdi + 4]
mov qword [rsi], rdx
movzx edx, byte [rdi + 3]
and r8d, 7
shl r8d, 0x12
shl r12d, 6
and edx, 0x3f
or edx, r12d
or edx, r8d
mov r12d, edx
cmp r12d, 0xffff
jbe 0x140029f45
jmp 0x14002a11e
mov qword [rbp - 0x28], 0
cmp ax, 1
jne 0x14002a150
xor eax, eax
mov r13d, r12d
xor r12d, r12d
mov rsi, qword [rbp - 0x28]
cmp r15, rbx
jne 0x140029f23
test rsi, rsi
je 0x14002a041
mov rcx, qword [rbp + 0x50]
sub rcx, rsi
add rcx, 3
mov rdx, 0xffffffffffffffff
cmovb rcx, rdx
shr rcx, 2
cmp r13w, 1
sbb rcx, 0xffffffffffffffff
cmp ax, 1
sbb rcx, 0xffffffffffffffff
jmp 0x14002a049
xor ecx, ecx
test ax, ax
setne cl
inc rcx
add rbx, rcx
mov qword [rbp - 0x10], r14
jb 0x14002a3ad
mov dword [rbp + 0xa0], eax
lea rcx, [r14 + r14]
cmp rcx, rbx
cmova rbx, rcx
cmp rbx, 5
mov rdi, r14
mov r14, rbx
mov eax, 4
cmovb r14, rax
xor r8d, r8d
mov rax, r14
shr rax, 0x3e
sete r8b
lea rdx, [r14 + r14]
add r8, r8
test rdi, rdi
je 0x14002a0ad
mov rax, qword [rbp + 0x98]
mov qword [rbp + 0x60], rax
mov qword [rbp + 0x68], rcx
mov eax, 2
jmp 0x14002a0af
xor eax, eax
mov qword [rbp + 0x70], rax
mov rcx, rbp
lea r9, [rbp + 0x60]
call fcn.140016060
cmp qword [rbp], 0
mov rcx, qword [rbp + 8]
je 0x140029f13
mov rdx, qword [rbp + 0x10]
movabs rax, 0x8000000000000001
cmp rdx, rax
jne 0x14002a3a8
mov rbx, qword [rbp - 0x10]
mov r14, rbx
mov rcx, qword [rbp + 0x98]
jmp 0x140029f1d
shl r8d, 6
or r8d, r10d
mov r12d, r8d
xor r13d, r13d
jmp 0x14002a002
shl r8d, 0xc
or r12d, r8d
cmp r12d, 0xffff
jbe 0x140029f45
add r12d, 0xffff0000
mov edx, r12d
shr edx, 0xa
or edx, 0xd800
and r12d, 0x3ff
or r12d, 0xdc00
mov r13d, r12d
mov r12d, edx
jmp 0x14002a002
mov rbx, r14
mov rax, qword [rbp + 0x98]
jmp 0x14002a163
mov rbx, r14
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x10000
mov dword [rsp + 0x20], 0x10000
mov rdi, rax
mov rcx, rax
mov edx, dword [rbp + 0x4c]
mov r14d, dword [rbp + 0x48]
mov r8d, r14d
mov r9d, 1
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov r15, rax
cmp rax, 0xffffffffffffffff
mov r12, qword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
mov r13, qword [sym.imp.bcrypt.dll_BCryptGenRandom]
jne 0x14002a29f
mov rax, qword [rbp - 8]
lea esi, [rax + 1]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, 0xa
jge 0x14002a266
mov rcx, rdi
cmp eax, 5
jne 0x14002a1f0
mov eax, esi
mov qword [rbp - 8], rax
jmp 0x14002a1fd
test r14d, r14d
je 0x14002a266
xor r14d, r14d
cmp eax, 0x57
jne 0x14002a266
mov dil, 1
xor r15d, r15d
test rbx, rbx
lea rsi, [0x140047ffc]
je 0x140029c50
mov edx, 2
call fcn.140007000
xor r15d, r15d
jmp 0x140029c50
add rsi, 3
shl eax, 0xc
or edi, eax
cmp edi, 0xffff
jbe 0x140029e89
add edi, 0xffff0000
mov ecx, edi
shr ecx, 0xa
or ecx, 0xd800
and edi, 0x3ff
or edi, 0xdc00
mov r12d, edi
mov eax, 2
mov edi, ecx
jmp 0x140029e91
shl rax, 0x20
or rax, 2
mov rcx, qword [rbp + 0x58]
mov qword [rcx + 8], rax
mov qword [rcx], 1
mov rsi, 0xffffffffffffffff
test rbx, rbx
je 0x14002a338
mov edx, 2
mov rcx, rdi
call fcn.140007000
jmp 0x14002a338
test rbx, rbx
je 0x14002a2b1
mov edx, 2
mov rcx, rdi
call fcn.140007000
mov qword [rbp + 0x68], 0
mov word [rbp + 0x84], 0
xorps xmm0, xmm0
movups xmmword [rbp + 0x74], xmm0
movzx eax, byte [rbp + 0xa5]
mov byte [rbp + 0x81], al
xor al, 1
mov byte [rbp + 0x80], al
mov dword [rbp], 0x18
mov qword [rbp + 8], 0
mov dword [rbp + 0x10], 1
mov rax, rbp
mov qword [rbp + 0x60], rax
mov rsi, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x30]
mov qword [rbp - 0x38], r15
mov byte [rbp + 0xa7], 1
mov byte [rbp + 0xa6], 0
lea r8, [rbp + 0x60]
mov rcx, rsi
call fcn.14001da30
test rax, rax
je 0x14002a37b
mov rax, qword [rbp + 0x58]
mov qword [rax + 8], rdx
mov qword [rax], 1
mov rsi, r15
mov rdx, qword [rbp + 0x28]
test rdx, rdx
je 0x14002a351
mov rcx, qword [rbp + 0x20]
not rdx
shr rdx, 0x3f
call fcn.140007000
cmp r15, 0xffffffffffffffff
je 0x14002a360
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movaps xmm6, xmmword [rbp + 0xb0]
add rsp, 0x148
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rax, qword [rbp + 0x58]
mov qword [rax + 8], r15
mov qword [rax + 0x10], rdx
mov qword [rax], 0
mov rdx, qword [rbp + 0x28]
test rdx, rdx
je 0x14002a360
not rdx
shr rdx, 0x3f
mov rcx, rsi
call fcn.140007000
jmp 0x14002a360
test rdx, rdx
jne 0x14002a3b4
call fcn.140007050
jmp 0x14002a3eb
call fcn.14003de40
jmp 0x14002a3eb
mov byte [rbp + 0xa7], 1
mov byte [rbp + 0xa6], 1
mov edx, 2
mov rcx, rbx
call fcn.14003de40
jmp 0x14002a3eb
mov byte [rbp + 0xa7], 1
mov byte [rbp + 0xa6], 1
call fcn.140007050
ud2