Function at 0x1002a3d0
Capabilities:
Create pipe
Generate random numbers via winapi
Resolve function by parsing pe exports

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], 0x10034800
mov dword [esi + 0x38], ecx
lea eax, [esi + 0xc0]
mov dword [esi + 0x84], edx
mov dword [esi + 4], 0
mov dword [esi + 0x3c], 8
mov dword [esi + 0x5c], 0
mov ecx, dword fs:[0]
mov dword [esi + 0xc0], ecx
mov dword fs:[0], eax
mov eax, 0x40080002
mov cl, 1
sub eax, edx
mov dword [esi + 0x8c], eax
nop word [eax + eax]
mov dword [esi + 8], ecx
call dword [sym.imp.kernel32.dll_GetCurrentProcessId]
mov dword [esi + 0x94], eax
mov eax, dword [0x1006ba3c]
test eax, eax
je 0x1002a482
jmp 0x1002a4dd
mov eax, dword [esi + 0x60]
xchg dword [0x1006ba3c], eax
mov eax, dword [0x1006ba3c]
test eax, eax
jne 0x1002a4dd
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 0x1002a470
mov eax, dword [esi + 0x10]
lea ecx, [esi + 0xa8]
mov byte [esi + 3], 1
mov dword [esi + 0xc8], 1
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0x24], eax
mov eax, dword [esi + 4]
mov byte [esi + 2], al
call fcn.1002fea0
mov eax, dword [esi + 0xa8]
xchg dword [0x1006ba3c], eax
mov eax, dword [0x1006ba3c]
test eax, eax
je 0x1002a482
mov eax, 1
lock xadd dword [0x1006ba3c], eax
mov dword [esi + 0x60], 0x1005c1a8
mov dword [esi + 0x64], 2
mov dword [esi + 0x70], 0
mov byte [esi + 3], 1
mov dword [esi + 0xc8], 1
mov dword [esi + 0x44], eax
mov eax, dword [esi + 4]
mov byte [esi + 2], al
lea eax, [esi + 0x94]
mov dword [esi + 0x4c], eax
lea eax, [esi + 0x44]
mov dword [esi + 0x50], fcn.100444a0
mov dword [esi + 0x54], eax
lea eax, [esi + 0x4c]
mov dword [esi + 0x58], fcn.100444a0
mov dword [esi + 0x68], eax
mov eax, dword [esi + 0x10]
mov dword [esi + 0x6c], 2
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0x24], eax
lea eax, [esi + 0x60]
push eax
lea eax, [esi + 0x9c]
push eax
call fcn.1003b790
add esp, 8
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 8]
test ecx, ecx
sete al
or dl, al
test dl, 1
jne 0x1002a57f
push 1
push ecx
push dword [esi + 0x10]
call fcn.1000f0d0
add esp, 0xc
mov ecx, dword [esi + 0xa4]
mov edx, dword [esi + 0xa0]
mov eax, dword [esi + 0x9c]
lea edi, [edx + ecx]
test ecx, ecx
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], edx
mov dword [esi + 0x88], ecx
mov dword [esi + 0x40], edi
je 0x1002a5c0
movzx ecx, byte [edx]
movzx edi, cl
test cl, cl
js 0x1002a5f0
lea eax, [edx + 1]
mov dword [esi + 0x14], eax
jmp 0x1002a64c
mov edi, 4
mov ebx, 8
mov dword [esi + 0x2c], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x34], 0
mov dword [esi + 4], 0
jmp 0x1002a693
mov ebx, edx
movzx edx, byte [edx + 1]
and edi, 0x1f
and edx, 0x3f
cmp cl, 0xdf
jbe 0x1002a63f
movzx eax, byte [ebx + 2]
shl edx, 6
and eax, 0x3f
or eax, edx
cmp cl, 0xf0
jb 0x1002a938
movzx ecx, byte [ebx + 3]
and edi, 7
shl eax, 6
shl edi, 0x12
and ecx, 0x3f
or ecx, eax
or edi, ecx
lea ecx, [ebx + 4]
mov edx, ebx
cmp edi, 0xffff
mov dword [esi + 0x14], ecx
jbe 0x1002a64c
jmp 0x1002a951
shl edi, 6
lea eax, [ebx + 2]
or edi, edx
mov dword [esi + 0x14], eax
mov edx, ebx
mov dword [esi + 4], edi
mov dword [esi + 0x2c], 0
xor eax, eax
mov ecx, dword [esi + 0x40]
mov ebx, 0xffffffff
mov edi, 2
sub ecx, dword [esi + 0x14]
add ecx, 3
cmovb ecx, ebx
shr ecx, 2
add ecx, eax
cmp ecx, 3
cmovae edi, ecx
cmp ecx, 0x3ffffffe
jae 0x1002ab49
mov ax, 1
lea ebx, [edi + edi + 4]
add edi, 2
mov dword [esi + 0x34], eax
movzx eax, byte [0x1006b9a9]
push 2
push ebx
call fcn.1000f0c0
add esp, 8
test eax, eax
je 0x1002ab28
mov ecx, eax
mov eax, dword [esi + 0x5c]
mov edx, edi
mov dword [esi + 8], ecx
inc eax
mov dword [esi + 0x90], eax
mov eax, dword [esi + 4]
mov word [ecx], ax
mov ecx, dword [esi + 0x14]
mov eax, 1
jmp 0x1002a6e5
mov edi, edx
mov dword [esi + 0x2c], eax
mov eax, dword [esi + 4]
mov edx, dword [esi + 0x18]
mov ebx, dword [esi + 8]
mov word [ebx + eax*2], dx
inc eax
mov edx, edi
mov edi, dword [esi + 0x2c]
test ecx, ecx
mov dword [esi + 4], eax
je 0x1002a750
test di, di
je 0x1002a730
xor eax, eax
mov dword [esi + 0x18], edi
cmp dword [esi + 4], edx
jne 0x1002a6d0
mov edi, dword [esi + 0x40]
mov ebx, ecx
sub edi, ecx
mov ecx, 0xffffffff
add edi, 3
cmovb edi, ecx
shr edi, 2
cmp ax, 1
mov dword [esi + 0x2c], eax
mov eax, dword [esi + 4]
sbb edi, 0xffffffff
cmp word [esi + 0x34], 1
sbb edi, 0xffffffff
jmp 0x1002a777
cmp ecx, dword [esi + 0x40]
je 0x1002a750
mov edi, ecx
movzx ecx, byte [ecx]
movzx ebx, cl
test cl, cl
js 0x1002a805
inc edi
mov dword [esi + 0x18], ebx
xor eax, eax
mov ecx, edi
jmp 0x1002a6f9
cmp word [esi + 0x34], 1
jne 0x1002a8b0
cmp eax, edx
mov ebx, 0
mov edi, 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x18], 0
jne 0x1002a7c0
inc edi
mov dword [esi + 0x28], edx
add edi, eax
jb 0x1002ab0b
lea ecx, [edx + edx]
mov eax, edx
mov dword [esi + 0x14], ebx
mov ebx, 4
cmp ecx, edi
cmova edi, ecx
xor edx, edx
cmp edi, 0x40000000
setb byte [esi + 0x1f]
cmp edi, 5
cmovb edi, ebx
test eax, eax
je 0x1002a7cb
mov eax, dword [esi + 8]
mov dword [esi + 0x60], eax
mov dword [esi + 0x64], 2
mov dword [esi + 0x68], ecx
jmp 0x1002a7d2
mov edi, edx
xor edx, edx
xor ecx, ecx
jmp 0x1002a6db
mov dword [esi + 0x64], 0
movzx eax, byte [esi + 0x1f]
lea ebx, [edi + edi]
lea ecx, [esi + 0x4c]
mov dl, al
lea eax, [esi + 0x60]
add edx, edx
push eax
push ebx
call fcn.1001bbb0
add esp, 8
cmp dword [esi + 0x4c], 0
jne 0x1002aaf7
mov eax, dword [esi + 0x50]
mov ecx, dword [esi + 0x14]
mov dword [esi + 8], eax
jmp 0x1002a6d5
mov dword [esi + 0x28], edx
movzx edx, byte [edi + 1]
and ebx, 0x1f
and edx, 0x3f
cmp cl, 0xdf
jbe 0x1002a858
movzx eax, byte [edi + 2]
shl edx, 6
and eax, 0x3f
or eax, edx
cmp cl, 0xf0
mov edx, eax
jb 0x1002a86f
movzx ecx, byte [edi + 3]
and ebx, 7
shl edx, 6
add edi, 4
shl ebx, 0x12
and ecx, 0x3f
or ecx, edx
or ebx, ecx
mov edx, dword [esi + 0x28]
mov ecx, edi
cmp ebx, 0xffff
ja 0x1002a884
mov dword [esi + 0x18], ebx
xor eax, eax
jmp 0x1002a6f9
shl ebx, 6
add edi, 2
xor eax, eax
or ebx, edx
mov edx, dword [esi + 0x28]
mov ecx, edi
mov dword [esi + 0x18], ebx
jmp 0x1002a6f9
shl ebx, 0xc
add edi, 3
or ebx, edx
mov edx, dword [esi + 0x28]
mov ecx, edi
cmp ebx, 0xffff
jbe 0x1002a84e
mov edi, ecx
lea ecx, [ebx + 0xff0000]
and ebx, 0x3ff
shr ecx, 0xa
or ebx, 0xdc00
or ecx, 0xd800
mov dword [esi + 0x18], ecx
mov eax, ebx
mov ecx, edi
jmp 0x1002a6f9
mov edi, edx
push 0
push 0
push 0x10000
push 0x10000
push 1
push dword [esi + 0x3c]
push dword [esi + 0x8c]
push dword [esi + 8]
call dword [sym.imp.kernel32.dll_CreateNamedPipeW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x1002a9cd
call dword [sym.imp.kernel32.dll_GetLastError]
mov ecx, dword [esi + 0x90]
mov edx, edi
cmp ecx, 9
jg 0x1002a97c
cmp eax, 5
jne 0x1002a900
mov dword [esi + 0x5c], ecx
jmp 0x1002a912
cmp dword [esi + 0x3c], 0
je 0x1002a97c
cmp eax, 0x57
mov dword [esi + 0x3c], 0
jne 0x1002a97c
mov al, 1
xor ecx, ecx
test edx, edx
mov dword [esi + 4], eax
je 0x1002a450
add edx, edx
push 2
push edx
push dword [esi + 8]
call fcn.1000f0d0
add esp, 0xc
xor ecx, ecx
jmp 0x1002a450
shl edi, 0xc
lea ecx, [ebx + 3]
or edi, eax
mov edx, ebx
cmp edi, 0xffff
mov dword [esi + 0x14], ecx
jbe 0x1002a64c
lea ecx, [edi + 0xff0000]
and edi, 0x3ff
mov eax, 1
shr ecx, 0xa
or edi, 0xdc00
mov dword [esi + 0x2c], edi
or ecx, 0xd800
mov dword [esi + 4], ecx
jmp 0x1002a658
mov ecx, dword [esi + 0x38]
test edx, edx
mov dword [ecx + 8], eax
mov dword [ecx + 4], 0
mov dword [ecx], 1
je 0x1002a9a3
add edx, edx
push 2
push edx
push dword [esi + 8]
call fcn.1000f0d0
add esp, 0xc
mov eax, dword [esi + 0xc]
test eax, eax
je 0x1002a9b8
push 1
push eax
push dword [esi + 0x10]
call fcn.1000f0d0
add esp, 0xc
cmp ebx, 0xffffffff
je 0x1002aaa1
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
jmp 0x1002aaa1
test edi, edi
je 0x1002a9eb
add edi, edi
push 2
push edi
push dword [esi + 8]
call fcn.1000f0d0
add esp, 0xc
mov dword [esi + 0xc8], 1
mov eax, dword [esi + 0x84]
mov dword [esi + 0x60], 0
mov dword [esi + 0x7c], 0
mov word [esi + 0x80], 0
xorps xmm0, xmm0
mov edx, dword [esi + 0x10]
mov dword [esi + 0x4c], 0xc
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 1
mov dword [esi + 4], ebx
mov dword [esi + 0x98], ebx
mov byte [esi + 2], 1
mov byte [esi + 3], 0
mov dword [esi + 0xc8], 1
lea ecx, [esi + 0x44]
mov byte [esi + 0x7d], al
xor al, 1
mov dword [esi + 0x20], edx
mov byte [esi + 0x7c], al
lea eax, [esi + 0x4c]
movups xmmword [esi + 0x68], xmm0
mov dword [esi + 0x78], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0x24], eax
lea eax, [esi + 0x60]
push eax
push dword [esi + 0x88]
call fcn.10027d20
add esp, 8
movzx eax, byte [esi + 0x44]
cmp al, 4
jne 0x1002aab5
mov eax, dword [esi + 0x48]
mov ecx, dword [esi + 0x38]
mov edx, dword [esi + 4]
mov dword [ecx + 4], edx
mov dword [ecx + 8], eax
mov eax, dword [esi + 0xc]
mov dword [ecx], 0
mov ecx, dword [esi + 0x10]
test eax, eax
je 0x1002aaa1
push 1
push eax
push ecx
call fcn.1000f0d0
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 + 0x47]
mov edx, dword [esi + 0x38]
mov ebx, dword [esi + 4]
mov byte [esi + 0x32], cl
movzx ecx, word [esi + 0x45]
mov byte [edx + 4], al
mov word [esi + 0x30], cx
mov ecx, dword [esi + 0x48]
movzx eax, word [esi + 0x30]
mov word [edx + 5], ax
mov ah, byte [esi + 0x32]
mov byte [edx + 7], ah
mov dword [edx + 8], ecx
mov dword [edx], 1
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x1002a9aa
jmp 0x1002a9b8
mov eax, dword [esi + 0x50]
mov ecx, dword [esi + 0x54]
mov dword [esi + 0xc8], 2
test eax, eax
jne 0x1002ab1c
mov dword [esi + 0xc8], 2
call fcn.1003b3e0
jmp 0x1002ab5f
push ecx
push eax
call fcn.100536e0
add esp, 8
jmp 0x1002ab5f
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
mov byte [esi + 2], 1
mov byte [esi + 3], 1
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], ecx
push ebx
push 2
call fcn.100536e0
add esp, 8
jmp 0x1002ab5f
mov eax, dword [esi + 0xc]
mov dword [esi + 0x20], edx
mov byte [esi + 2], 1
mov byte [esi + 3], 1
mov dword [esi + 0x24], eax
call fcn.1003b3e0
ud2