Function at 0x491d60
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], 0x4aa320
mov dword [esi + 0x24], ecx
lea eax, [esi + 0xc0]
mov dword [esi + 0x90], edx
mov dword [esi + 8], 0
mov dword [esi + 0x28], 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 sub.KERNEL32.dll_GetCurrentProcessId
mov dword [esi + 0x9c], eax
jmp 0x491df9
mov eax, dword [esi + 0x60]
xchg dword [0x53cb8c], eax
mov eax, dword [0x53cb8c]
test eax, eax
jne 0x491e50
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 0x491df0
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.00493140
mov eax, dword [esi + 0xa8]
xchg dword [0x53cb8c], eax
jmp 0x491df9
mov eax, 1
lea ecx, [esi + 0x9c]
lea edx, [esi + 0xa0]
lock xadd dword [0x53cb8c], eax
mov dword [esi + 0x40], ecx
lea ecx, [esi + 0x40]
mov dword [esi + 0x44], fcn.00428870
mov dword [esi + 0x48], edx
mov dword [esi + 0x60], 0x4eb61c
mov dword [esi + 0x64], 2
mov dword [esi + 0x70], 0
lea edx, [esi + 0x60]
mov dword [esi + 0x4c], fcn.00428870
mov byte [esi + 7], 1
mov dword [esi + 0xc8], 1
mov dword [esi + 0x68], ecx
lea ecx, [esi + 0x54]
mov dword [esi + 0x6c], 2
mov dword [esi + 0xa0], eax
mov eax, dword [esi + 8]
mov byte [esi + 6], al
call fcn.004261d0
cmp dword [esi + 0x34], 0
mov ecx, dword [esi + 0xc]
movsd xmm0, qword [esi + 0x54]
mov eax, dword [esi + 0x5c]
sete dl
movsd qword [esi + 0x60], xmm0
mov dword [esi + 0x68], eax
or cl, dl
test cl, 1
jne 0x491ef2
mov ecx, dword [esi + 0x30]
mov edx, 1
call fcn.00425c30
movsd xmm0, qword [esi + 0x60]
mov eax, dword [esi + 0x68]
movsd qword [esi + 0x30], xmm0
test eax, eax
mov dword [esi + 0x38], eax
mov edi, dword [esi + 0x30]
lea ecx, [edi + eax]
mov dword [esi + 0x2c], ecx
je 0x491f20
movzx ecx, byte [edi]
movzx ebx, cl
test cl, cl
js 0x491f40
inc edi
jmp 0x491f90
mov dword [esi + 0x1c], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x20], 0
mov dword [esi + 8], 0
xor edi, edi
jmp 0x491fbe
movzx edx, byte [edi + 1]
and ebx, 0x1f
and edx, 0x3f
cmp cl, 0xdf
jbe 0x491f88
movzx eax, byte [edi + 2]
shl edx, 6
and eax, 0x3f
or eax, edx
cmp cl, 0xf0
jb 0x4922b4
movzx ecx, byte [edi + 3]
and ebx, 7
shl eax, 6
add edi, 4
shl ebx, 0x12
and ecx, 0x3f
or ecx, eax
or ebx, ecx
cmp ebx, 0xffff
jbe 0x491f90
jmp 0x4922c8
shl ebx, 6
add edi, 2
or ebx, edx
mov eax, 1
xor edx, edx
mov ecx, dword [esi + 0x2c]
mov dword [esi + 8], edi
mov dword [esi + 0xc], ebx
mov dword [esi + 0x1c], edx
sub ecx, edi
mov edi, ecx
mov ecx, 0xffffffff
add edi, 3
cmovb edi, ecx
shr edi, 2
add edi, eax
mov ax, 1
mov dword [esi + 0x20], eax
cmp edi, 4
mov eax, 3
cmovb edi, eax
xor ebx, ebx
cmp edi, 0x3fffffff
setb al
jae 0x49249c
lea ecx, [edi + edi + 2]
test ecx, ecx
js 0x492479
mov bl, al
movzx eax, byte [0x53cbf0]
mov dword [esi + 0x10], ecx
add ebx, ebx
mov edx, ebx
call fcn.00425bd0
test eax, eax
je 0x492488
mov ecx, eax
mov eax, dword [esi + 0x50]
mov ebx, dword [esi + 0x1c]
inc edi
mov edx, 1
mov dword [esi + 0x18], ecx
inc eax
mov dword [esi + 0x98], eax
mov eax, dword [esi + 0xc]
mov word [ecx], ax
mov eax, dword [esi + 8]
jmp 0x49203d
mov eax, ebx
mov ebx, dword [esi + 0xc]
mov word [ecx + edx*2], ax
mov eax, dword [esi + 8]
inc edx
test eax, eax
je 0x4920a0
test bx, bx
je 0x492080
mov dword [esi + 0xc], 0
cmp edx, edi
mov dword [esi + 8], eax
jne 0x492030
mov eax, dword [esi + 0x2c]
mov ecx, 0xffffffff
sub eax, dword [esi + 8]
add eax, 3
cmovb eax, ecx
shr eax, 2
cmp word [esi + 0xc], 1
sbb eax, 0xffffffff
cmp word [esi + 0x20], 1
sbb eax, 0xffffffff
jmp 0x4920c4
cmp eax, dword [esi + 0x2c]
je 0x4920a0
mov dword [esi + 0x10], edx
movzx edx, byte [eax]
movzx ebx, dl
test dl, dl
js 0x492182
mov edx, dword [esi + 0x10]
inc eax
jmp 0x492046
cmp word [esi + 0x20], 1
jne 0x492230
xor eax, eax
cmp edx, edi
jne 0x492120
mov dword [esi + 0xc], ebx
mov dword [esi + 0x20], 0
mov dword [esi + 8], 0
xor ebx, ebx
inc eax
mov dword [esi + 0x14], edi
add eax, edx
jb 0x492454
lea ecx, [edi + edi]
mov dword [esi + 0x1c], ebx
mov ebx, edi
mov dword [esi + 0x10], edx
cmp ecx, eax
cmova eax, ecx
cmp eax, 5
mov edi, eax
mov eax, 4
cmovb edi, eax
xor edx, edx
cmp edi, 0x40000000
lea eax, [edi + edi]
setb dl
add edx, edx
test ebx, ebx
je 0x492133
mov ebx, dword [esi + 0x18]
mov dword [esi + 0x60], ebx
mov dword [esi + 0x68], ecx
mov ecx, 2
jmp 0x492135
mov dword [esi + 8], 0
mov dword [esi + 0x20], 0
jmp 0x492035
xor ecx, ecx
mov dword [esi + 0x64], ecx
lea ecx, [esi + 0x40]
lea ebx, [esi + 0x60]
push ebx
push eax
call fcn.0047dd70
add esp, 8
cmp dword [esi + 0x40], 0
mov ecx, dword [esi + 0x44]
je 0x492171
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 0x10]
mov ebx, dword [esi + 0xc]
cmp ecx, 0x80000001
jne 0x492450
mov edi, dword [esi + 0x14]
mov ecx, dword [esi + 0x18]
jmp 0x492035
mov edx, dword [esi + 0x10]
mov ebx, dword [esi + 0xc]
mov eax, dword [esi + 0x1c]
mov dword [esi + 0x18], ecx
jmp 0x492035
mov dword [esi + 0x14], edi
movzx edi, byte [eax + 1]
and ebx, 0x1f
and edi, 0x3f
cmp dl, 0xdf
jbe 0x4921c9
mov dword [esi + 8], eax
movzx eax, byte [eax + 2]
shl edi, 6
and eax, 0x3f
or eax, edi
cmp dl, 0xf0
mov edi, eax
jb 0x4921e3
mov eax, dword [esi + 8]
and ebx, 7
shl edi, 6
shl ebx, 0x12
movzx edx, byte [eax + 3]
add eax, 4
mov dword [esi + 8], eax
and edx, 0x3f
or edx, edi
or ebx, edx
jmp 0x4921ec
shl ebx, 6
mov edx, dword [esi + 0x10]
add eax, 2
mov dword [esi + 0xc], 0
or ebx, edi
mov edi, dword [esi + 0x14]
jmp 0x49204d
add dword [esi + 8], 3
shl ebx, 0xc
or ebx, edi
mov edi, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
cmp ebx, 0xffff
ja 0x492202
mov eax, dword [esi + 8]
jmp 0x492046
lea eax, [ebx + 0xff0000]
and ebx, 0x3ff
shr eax, 0xa
or ebx, 0xdc00
mov dword [esi + 0xc], ebx
or eax, 0xd800
mov ebx, eax
mov eax, dword [esi + 8]
jmp 0x49204d
push 0
push 0
push 0x10000
push 0x10000
push 1
push dword [esi + 0x28]
push dword [esi + 0x94]
mov ebx, dword [esi + 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
cmp eax, 0xffffffff
mov dword [esi + 8], eax
jne 0x492344
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 0x98]
cmp ecx, 0xa
jge 0x4922f1
cmp eax, 5
jne 0x492280
mov dword [esi + 0x50], ecx
jmp 0x492292
cmp dword [esi + 0x28], 0
je 0x4922f1
cmp eax, 0x57
mov dword [esi + 0x28], 0
jne 0x4922f1
mov al, 1
mov dword [esi + 8], eax
xor eax, eax
test edi, edi
je 0x491de0
mov ecx, ebx
mov edx, 2
call fcn.00425c30
xor eax, eax
jmp 0x491de0
shl ebx, 0xc
add edi, 3
or ebx, eax
cmp ebx, 0xffff
jbe 0x491f90
lea ecx, [ebx + 0xff0000]
and ebx, 0x3ff
mov eax, 2
shr ecx, 0xa
or ebx, 0xdc00
or ecx, 0xd800
mov edx, ebx
mov ebx, ecx
jmp 0x491f97
mov ecx, dword [esi + 0x24]
mov dword [ecx + 8], eax
mov dword [ecx + 4], 0
mov dword [ecx], 1
mov ecx, edi
mov edi, 0xffffffff
test ecx, ecx
je 0x49231b
mov ecx, ebx
mov edx, 2
call fcn.00425c30
cmp dword [esi + 0x34], 0
je 0x49232e
mov ecx, dword [esi + 0x30]
mov edx, 1
call fcn.00425c30
cmp dword [esi + 8], 0xffffffff
je 0x492409
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x492409
test edi, edi
je 0x49235e
mov ecx, ebx
mov edx, 2
call fcn.00425c30
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]
mov ecx, dword [esi + 8]
xorps xmm0, xmm0
lea edi, [esi + 0x60]
mov dword [esi + 0x40], 0xc
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 1
mov byte [esi + 6], 1
mov byte [esi + 7], 0
mov dword [esi + 0xc8], 1
mov byte [esi + 0x7d], al
xor al, 1
mov dword [esi + 0xa4], ecx
lea ecx, [esi + 0x54]
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.00484b50
add esp, 8
movzx eax, byte [esi + 0x54]
cmp al, 4
jne 0x49241d
cmp dword [esi + 0x34], 0
mov eax, dword [esi + 0x58]
mov ecx, dword [esi + 0x24]
mov edx, dword [esi + 8]
mov dword [ecx + 4], edx
mov dword [ecx + 8], eax
mov dword [ecx], 0
je 0x492409
mov ecx, dword [esi + 0xc]
mov edx, 1
call fcn.00425c30
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 + 0x24]
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 edi, dword [esi + 8]
mov dword [edx], 1
cmp dword [esi + 0x34], 0
jne 0x492321
jmp 0x49232e
test ecx, ecx
jne 0x492465
mov dword [esi + 0xc8], 2
call fcn.00425d50
jmp 0x4924a9
mov edx, dword [esi + 0x48]
mov dword [esi + 0xc8], 2
call fcn.004c8580
jmp 0x4924a9
mov byte [esi + 6], 1
mov byte [esi + 7], 1
call fcn.00425d50
jmp 0x4924a9
mov edx, dword [esi + 0x10]
mov ecx, ebx
mov byte [esi + 6], 1
mov byte [esi + 7], 1
call fcn.004c8580
jmp 0x4924a9
mov byte [esi + 6], 1
mov byte [esi + 7], 1
call fcn.00425d50
ud2