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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xd0
mov esi, esp
mov dword [esi + 0xb8], ebp
mov dword [esi + 0xbc], esp
mov dword [esi + 0xc8], 0xffffffff
mov dword [esi + 0xc4], 0x471db0
mov dword [esi + 0x20], ecx
lea eax, [esi + 0xc0]
mov dword [esi + 0x90], edx
mov dword [esi + 8], 0
mov dword [esi + 0x24], 8
mov dword [esi + 0x50], 0
mov ecx, dword fs:[0]
mov dword [esi + 0xc0], ecx
mov dword fs:[0], eax
mov eax, 0x40080002
sub eax, edx
mov dword [esi + 0x94], eax
mov al, 1
nop word [eax + eax]
mov dword [esi + 0xc], eax
call dword [sym.imp.kernel32.dll_GetCurrentProcessId]
mov dword [esi + 0x9c], eax
mov eax, dword [0x59d044]
test eax, eax
je 0x468822
jmp 0x468871
mov eax, dword [esi + 0x60]
xchg dword [0x59d044], eax
mov eax, dword [0x59d044]
test eax, eax
jne 0x468871
xorps xmm0, xmm0
movaps xmmword [esi + 0x60], xmm0
push 2
push 0x10
lea eax, [esi + 0x60]
push eax
push 0
call dword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
jns 0x468810
mov eax, dword [esi + 8]
lea ecx, [esi + 0xa8]
mov byte [esi + 7], 1
mov dword [esi + 0xc8], 1
mov byte [esi + 6], al
call fcn.0046e160
mov eax, dword [esi + 0xa8]
xchg dword [0x59d044], eax
mov eax, dword [0x59d044]
test eax, eax
je 0x468822
mov eax, 1
lock xadd dword [0x59d044], eax
mov dword [esi + 0x60], 0x57d8e0
mov dword [esi + 0x64], 2
mov dword [esi + 0x70], 0
mov byte [esi + 7], 1
mov dword [esi + 0xc8], 1
mov dword [esi + 0xa0], eax
mov eax, dword [esi + 8]
mov byte [esi + 6], al
lea eax, [esi + 0x9c]
mov dword [esi + 0x40], eax
lea eax, [esi + 0xa0]
mov dword [esi + 0x44], fcn.00483650
mov dword [esi + 0x48], eax
lea eax, [esi + 0x40]
mov dword [esi + 0x4c], fcn.00483650
mov dword [esi + 0x68], eax
lea eax, [esi + 0x60]
mov dword [esi + 0x6c], 2
push eax
lea eax, [esi + 0x54]
push eax
call fcn.00479370
add esp, 8
movsd xmm0, qword [esi + 0x54]
mov eax, dword [esi + 0x5c]
test byte [esi + 0xc], 1
movsd qword [esi + 0x60], xmm0
mov dword [esi + 0x68], eax
jne 0x468915
mov eax, dword [esi + 0x34]
test eax, eax
je 0x468915
push 1
push eax
push dword [esi + 0x30]
call fcn.00421c20
add esp, 0xc
movsd xmm0, qword [esi + 0x60]
mov eax, dword [esi + 0x68]
movsd qword [esi + 0x30], xmm0
test eax, eax
mov dword [esi + 0x38], eax
mov ebx, dword [esi + 0x30]
lea ecx, [ebx + eax]
mov dword [esi + 0x28], ecx
je 0x468950
movzx ecx, byte [ebx]
movzx edi, cl
test cl, cl
js 0x468970
inc ebx
mov dword [esi + 0xc], edi
mov dword [esi + 8], ebx
jmp 0x4689c9
xor edi, edi
mov dword [esi + 0xc], 0
xor eax, eax
mov dword [esi + 8], 0
xor edx, edx
jmp 0x4689ea
movzx edx, byte [ebx + 1]
and edi, 0x1f
and edx, 0x3f
cmp cl, 0xdf
jbe 0x4689bb
movzx eax, byte [ebx + 2]
shl edx, 6
and eax, 0x3f
or eax, edx
cmp cl, 0xf0
jb 0x468d26
movzx ecx, byte [ebx + 3]
and edi, 7
shl eax, 6
add ebx, 4
shl edi, 0x12
mov dword [esi + 8], ebx
and ecx, 0x3f
or ecx, eax
or edi, ecx
cmp edi, 0xffff
jbe 0x4689c6
jmp 0x468d3d
shl edi, 6
add ebx, 2
mov dword [esi + 8], ebx
or edi, edx
mov dword [esi + 0xc], edi
mov eax, 1
xor edi, edi
mov edx, dword [esi + 0x28]
mov ecx, 0xffffffff
sub edx, dword [esi + 8]
add edx, 3
cmovb edx, ecx
shr edx, 2
add edx, eax
mov ax, 1
cmp edx, 4
mov ecx, 3
mov dword [esi + 0x2c], edi
mov dword [esi + 0x18], eax
cmovb edx, ecx
cmp edx, 0x3ffffffe
ja 0x468ef6
lea ebx, [edx + edx + 2]
test ebx, ebx
js 0x468f1a
movzx eax, byte [0x599449]
mov edi, edx
push 2
push ebx
call fcn.00421c10
add esp, 8
test eax, eax
je 0x468f05
mov ecx, eax
mov eax, dword [esi + 0x50]
mov edx, edi
mov ebx, dword [esi + 8]
mov edi, dword [esi + 0x18]
inc edx
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x14], ecx
inc eax
mov dword [esi + 0x98], eax
mov eax, dword [esi + 0xc]
mov word [ecx], ax
mov ecx, 1
jmp 0x468a78
mov ebx, edx
mov dword [esi + 0x2c], ecx
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 0x14]
mov word [edx + ecx*2], ax
mov dword [esi + 0x14], edx
mov edx, ebx
mov ebx, dword [esi + 8]
inc ecx
test ebx, ebx
mov dword [esi + 0xc], ecx
je 0x468ad0
mov eax, dword [esi + 0x2c]
test ax, ax
je 0x468aa0
xor ecx, ecx
cmp dword [esi + 0xc], edx
mov dword [esi + 8], ebx
jne 0x468a60
jmp 0x468bb0
cmp ebx, dword [esi + 0x28]
je 0x468ad0
mov dword [esi + 0x10], edx
movzx edx, byte [ebx]
movzx eax, dl
test dl, dl
js 0x468b01
inc ebx
mov edx, dword [esi + 0x10]
xor ecx, ecx
cmp dword [esi + 0xc], edx
mov dword [esi + 8], ebx
jne 0x468a60
jmp 0x468bb0
cmp di, 1
jne 0x468c90
xor edi, edi
cmp ecx, edx
mov eax, 0
mov ebx, 0
mov dword [esi + 8], 0
je 0x468be2
mov ebx, edx
mov edx, dword [esi + 0x14]
xor eax, eax
jmp 0x468a6b
mov dword [esi + 8], ebx
movzx ebx, byte [ebx + 1]
and eax, 0x1f
and ebx, 0x3f
cmp dl, 0xdf
jbe 0x468b4e
mov ecx, dword [esi + 8]
shl ebx, 6
movzx ecx, byte [ecx + 2]
and ecx, 0x3f
or ecx, ebx
cmp dl, 0xf0
jb 0x468b6e
mov ebx, dword [esi + 8]
and eax, 7
shl ecx, 6
shl eax, 0x12
movzx edx, byte [ebx + 3]
add ebx, 4
and edx, 0x3f
or edx, ecx
or eax, edx
cmp eax, 0xffff
jbe 0x468ab3
jmp 0x468b84
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0x10]
shl eax, 6
or eax, ebx
add ecx, 2
mov ebx, ecx
xor ecx, ecx
cmp dword [esi + 0xc], edx
mov dword [esi + 8], ebx
jne 0x468a60
jmp 0x468bb0
mov ebx, dword [esi + 8]
shl eax, 0xc
or eax, ecx
add ebx, 3
cmp eax, 0xffff
jbe 0x468ab3
lea edx, [eax + 0xff0000]
and eax, 0x3ff
shr edx, 0xa
or eax, 0xdc00
or edx, 0xd800
mov ecx, eax
mov eax, edx
mov edx, dword [esi + 0x10]
cmp dword [esi + 0xc], edx
mov dword [esi + 8], ebx
jne 0x468a60
mov ebx, dword [esi + 0x28]
mov dword [esi + 0x18], edi
mov edi, eax
mov eax, 0xffffffff
sub ebx, dword [esi + 8]
add ebx, 3
cmovb ebx, eax
mov eax, edi
mov edi, dword [esi + 0x18]
shr ebx, 2
cmp cx, 1
mov dword [esi + 0x2c], ecx
mov ecx, dword [esi + 0xc]
sbb ebx, 0xffffffff
cmp di, 1
sbb ebx, 0xffffffff
inc ebx
mov dword [esi + 0x10], edx
add ebx, ecx
jb 0x468ecc
mov dword [esi + 0x14], eax
lea eax, [edx + edx]
mov ecx, 4
mov dword [esi + 0x18], edi
mov edi, edx
cmp eax, ebx
cmova ebx, eax
cmp ebx, 5
cmovb ebx, ecx
xor edx, edx
cmp ebx, 0x40000000
setb cl
test edi, edi
je 0x468c2a
mov edi, dword [esi + 0x1c]
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], 2
mov dword [esi + 0x68], eax
jmp 0x468c31
mov dword [esi + 0x64], 0
mov dl, cl
lea edi, [esi + 0x60]
lea eax, [ebx + ebx]
lea ecx, [esi + 0x40]
add edx, edx
push edi
push eax
call fcn.004599e0
add esp, 8
cmp dword [esi + 0x40], 0
mov edx, dword [esi + 0x44]
je 0x468c79
cmp edx, 0x80000001
mov ebx, edx
mov edx, dword [esi + 8]
mov edi, dword [esi + 0x18]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
jne 0x468ec8
mov dword [esi + 8], edx
mov ebx, dword [esi + 0x10]
mov edx, dword [esi + 0x1c]
jmp 0x468a6b
mov edi, dword [esi + 0x18]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
mov dword [esi + 0x1c], edx
jmp 0x468a6b
mov ebx, edx
push 0
push 0
push 0x10000
push 0x10000
push 1
push dword [esi + 0x24]
push dword [esi + 0x94]
mov edi, dword [esi + 0x1c]
push edi
call dword [sym.imp.kernel32.dll_CreateNamedPipeW]
cmp eax, 0xffffffff
mov dword [esi + 8], eax
jne 0x468db7
call dword [sym.imp.kernel32.dll_GetLastError]
mov ecx, dword [esi + 0x98]
mov edx, ebx
cmp ecx, 9
jg 0x468d65
cmp eax, 5
jne 0x468cf0
mov dword [esi + 0x50], ecx
jmp 0x468d02
cmp dword [esi + 0x24], 0
je 0x468d65
cmp eax, 0x57
mov dword [esi + 0x24], 0
jne 0x468d65
mov al, 1
mov dword [esi + 8], eax
xor eax, eax
test edx, edx
je 0x4687f0
add edx, edx
push 2
push edx
push edi
call fcn.00421c20
add esp, 0xc
xor eax, eax
jmp 0x4687f0
shl edi, 0xc
add ebx, 3
mov dword [esi + 8], ebx
or edi, eax
cmp edi, 0xffff
jbe 0x4689c6
lea ecx, [edi + 0xff0000]
and edi, 0x3ff
mov eax, 2
shr ecx, 0xa
or edi, 0xdc00
or ecx, 0xd800
mov dword [esi + 0xc], ecx
jmp 0x4689d0
mov ecx, dword [esi + 0x20]
test edx, edx
mov dword [ecx + 8], eax
mov dword [ecx + 4], 0
mov dword [ecx], 1
je 0x468d8a
add edx, edx
push 2
push edx
push edi
call fcn.00421c20
add esp, 0xc
mov eax, dword [esi + 0x34]
test eax, eax
je 0x468d9f
push 1
push eax
push dword [esi + 0x30]
call fcn.00421c20
add esp, 0xc
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x468e83
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
jmp 0x468e83
mov ecx, eax
test ebx, ebx
je 0x468dd9
add ebx, ebx
push 2
push ebx
push edi
mov edi, ecx
call fcn.00421c20
mov ecx, edi
add esp, 0xc
mov dword [esi + 0xc8], 1
mov eax, dword [esi + 0x90]
mov dword [esi + 0x60], 0
mov dword [esi + 0x7c], 0
mov word [esi + 0x80], 0
mov edx, dword [esi + 0x30]
xorps xmm0, xmm0
lea edi, [esi + 0x60]
mov dword [esi + 0x40], 0xc
mov dword [esi + 0x44], 0
mov dword [esi + 0xa4], ecx
mov dword [esi + 0x48], 1
mov byte [esi + 6], 1
mov byte [esi + 7], 0
mov dword [esi + 0xc8], 1
lea ecx, [esi + 0x54]
mov byte [esi + 0x7d], al
xor al, 1
mov dword [esi + 0xc], edx
mov byte [esi + 0x7c], al
lea eax, [esi + 0x40]
movups xmmword [esi + 0x68], xmm0
mov dword [esi + 0x78], eax
mov eax, dword [esi + 0x38]
push edi
push eax
call fcn.004658c0
add esp, 8
movzx eax, byte [esi + 0x54]
cmp al, 4
jne 0x468e97
mov eax, dword [esi + 0x58]
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 8]
mov dword [ecx + 4], edx
mov dword [ecx + 8], eax
mov eax, dword [esi + 0x34]
mov dword [ecx], 0
test eax, eax
je 0x468e83
push 1
push eax
push dword [esi + 0xc]
call fcn.00421c20
add esp, 0xc
mov eax, dword [esi + 0xc0]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
movzx ecx, byte [esi + 0x57]
mov edx, dword [esi + 0x20]
movzx ebx, word [esi + 0x55]
mov edi, dword [esi + 0x58]
mov byte [edx + 7], cl
mov word [edx + 5], bx
mov byte [edx + 4], al
mov dword [edx + 8], edi
mov dword [edx], 1
mov eax, dword [esi + 0x34]
test eax, eax
jne 0x468d91
jmp 0x468d9f
test ebx, ebx
jne 0x468edd
mov dword [esi + 0xc8], 2
call fcn.00478e70
jmp 0x468f27
mov ecx, dword [esi + 0x48]
mov dword [esi + 0xc8], 2
push ecx
push ebx
call fcn.0051ec40
add esp, 8
jmp 0x468f27
mov byte [esi + 6], 1
mov byte [esi + 7], 1
call fcn.00478e70
jmp 0x468f27
mov byte [esi + 6], 1
mov byte [esi + 7], 1
push ebx
push 2
call fcn.0051ec40
add esp, 8
jmp 0x468f27
mov byte [esi + 6], 1
mov byte [esi + 7], 1
call fcn.00478e70
ud2