Function at 0x66c6c0
Capabilities:
Create mailslot
Get hostname
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec8
mov eax, 0x69d2ab
xor edx, edx
push ebx
push esi
mov dword [ebp - 0x3c], 0x6f4d2c
mov dword [ebp - 0x38], esp
mov dword [ebp - 0x40], eax
mov word [ebp - 0x34], 0
mov dword [ebp - 0x28], edx
mov ecx, dword fs:[0]
mov dword [ebp - 0x44], ecx
lea eax, [ebp - 0x44]
mov dword fs:[0], eax
mov word [ebp - 0x34], 8
mov edx, dword [ebp + 8]
push edx
call fcn.005881e4
pop ecx
inc dword [ebp - 0x28]
mov eax, dword [ebp + 8]
mov ecx, 0x6f55f4
mov dword [eax], ecx
xor eax, eax
mov ebx, dword [ebp + 8]
mov ecx, 0x6ff36c
add ebx, 0x20
cmp ecx, 0x6ff36c
mov edx, ebx
mov dword [ebx + 8], eax
mov eax, 0x6ff378
mov dword [ebx + 8], eax
mov edx, dword [edx + 8]
mov dword [ebp - 0xa0], edx
je 0x66c74d
push 0x6ff36c
call sub.KERNEL32.DLL_InterlockedIncrement
inc dword [ebp - 0x28]
xor eax, eax
mov ebx, dword [ebp + 8]
mov ecx, 0x6ff36c
add ebx, 0x30
cmp ecx, 0x6ff36c
mov edx, ebx
mov dword [ebx + 8], eax
mov eax, 0x6ff378
mov dword [ebx + 8], eax
mov edx, dword [edx + 8]
mov dword [ebp - 0xb0], edx
je 0x66c785
push 0x6ff36c
call sub.KERNEL32.DLL_InterlockedIncrement
inc dword [ebp - 0x28]
xor eax, eax
mov ebx, dword [ebp + 8]
mov ecx, 0x6ff36c
add ebx, 0x60
cmp ecx, 0x6ff36c
mov edx, ebx
mov dword [ebx + 8], eax
mov eax, 0x6ff378
mov dword [ebx + 8], eax
mov edx, dword [edx + 8]
mov dword [ebp - 0xc0], edx
je 0x66c7bd
push 0x6ff36c
call sub.KERNEL32.DLL_InterlockedIncrement
lea esi, [ebx + 0x10]
xor eax, eax
inc dword [ebp - 0x28]
mov edx, esi
mov dword [esi + 8], eax
mov eax, 0x6ff378
mov dword [esi + 8], eax
mov ecx, 0x6ff36c
mov edx, dword [edx + 8]
cmp ecx, 0x6ff36c
mov dword [ebp - 0xd0], edx
je 0x66c7f2
push 0x6ff36c
call sub.KERNEL32.DLL_InterlockedIncrement
lea esi, [ebx + 0x20]
xor eax, eax
inc dword [ebp - 0x28]
mov edx, esi
mov dword [esi + 8], eax
mov eax, 0x6ff378
mov dword [esi + 8], eax
mov ecx, 0x6ff36c
mov edx, dword [edx + 8]
cmp ecx, 0x6ff36c
mov dword [ebp - 0xe0], edx
je 0x66c827
push 0x6ff36c
call sub.KERNEL32.DLL_InterlockedIncrement
inc dword [ebp - 0x28]
inc dword [ebp - 0x28]
xor edx, edx
mov eax, dword [ebp + 8]
xor ecx, ecx
add eax, 0x90
mov dword [eax + 4], edx
lea edx, [eax + 0x10]
mov dword [eax + 8], ecx
xor ecx, ecx
mov dword [edx + 8], ecx
mov dword [ebp - 0x48], 0x15
mov dword [ebp - 0x4c], 1
mov edx, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x48]
cmp edx, ecx
jbe 0x66c864
lea edx, [ebp - 0x4c]
jmp 0x66c867
lea edx, [ebp - 0x48]
mov ecx, dword [edx]
xor edx, edx
mov dword [eax], ecx
xor ecx, ecx
inc dword [ebp - 0x28]
mov eax, dword [ebp + 8]
add eax, 0xb0
mov dword [eax + 4], edx
lea edx, [eax + 0x10]
mov dword [eax + 8], ecx
xor ecx, ecx
mov dword [edx + 8], ecx
mov dword [ebp - 0x50], 0x15
mov dword [ebp - 0x54], 1
mov edx, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x50]
cmp edx, ecx
jbe 0x66c8a5
lea edx, [ebp - 0x54]
jmp 0x66c8a8
lea edx, [ebp - 0x50]
mov ecx, dword [edx]
mov dword [eax], ecx
inc dword [ebp - 0x28]
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00671ae4
add esp, 8
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov dword [edx + 0x40], ecx
mov eax, dword [ebp + 8]
xor edx, edx
mov byte [eax + 0x49], dl
mov eax, dword [ebp + 8]
mov byte [eax + 0x48], dl
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [ecx + 0x44], eax
mov edx, dword [ebp + 8]
xor ecx, ecx
mov dword [edx + 0x50], ecx
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax + 0x54], edx
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [ecx + 0x58], eax
push str.NETAPI32.DLL
call sub.KERNEL32.DLL_LoadLibraryA
mov ebx, eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x50], ebx
test ebx, ebx
je 0x66c91d
push str.NetUserGetInfo
push ebx
call sub.KERNEL32.DLL_GetProcAddress
mov edx, dword [ebp + 8]
mov dword [edx + 0x54], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x50]
test eax, eax
je 0x66c93e
push str.NetApiBufferFree
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x50]
push ecx
call sub.KERNEL32.DLL_GetProcAddress
mov edx, dword [ebp + 8]
mov dword [edx + 0x58], eax
mov word [ebp - 0x34], 0x74
lea eax, [ebp - 0x5c]
lea ecx, [ebp - 0x10]
push eax
push str..mailslot_
push ecx
call fcn.0069a6ec
add esp, 0xc
inc dword [ebp - 0x28]
mov word [ebp - 0x34], 0x68
mov eax, dword [ebp - 8]
mov ebx, dword [eax - 4]
push 0x6f4c8b
call fcn.0069ce0c
pop ecx
push eax
push 0
push eax
push 0x6f4c8b
push 0
push ebx
lea eax, [ebp - 0x10]
push eax
call fcn.0069ad68
add esp, 0x1c
push 0
push 0
push 0
mov edx, dword [ebp - 8]
push edx
call sub.KERNEL32.DLL_CreateMailslotA
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x4c], eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x4c]
cmp edx, 0xffffffff
jne 0x66ca51
dec dword [ebp - 0x28]
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x66ca43
mov eax, dword [ebp - 8]
mov edx, dword [eax - 0xc]
inc edx
test edx, edx
je 0x66ca0a
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff4
mov dword [ebp - 0x60], ecx
mov eax, 0x6ff36c
mov edx, dword [ebp - 0x60]
cmp eax, edx
je 0x66ca01
mov ecx, 0x6ff36c
mov eax, dword [ebp - 0x60]
cmp ecx, eax
je 0x66c9fa
mov edx, dword [ebp - 0x60]
push edx
call sub.KERNEL32.DLL_InterlockedDecrement
mov ecx, dword [ebp - 0x60]
mov eax, dword [ecx]
inc eax
jmp 0x66ca06
mov eax, 1
jmp 0x66ca06
mov eax, 1
test eax, eax
jne 0x66ca43
mov edx, dword [ebp - 8]
add edx, 0xfffffff4
mov dword [ebp - 0x64], edx
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff4
mov dword [ebp - 0x68], ecx
mov eax, dword [ebp - 0x68]
push eax
call fcn.0067ac7c
pop ecx
xor edx, edx
mov dword [ebp - 0x6c], edx
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 8], ecx
mov dword [ebp - 0x70], eax
mov edx, dword [ebp - 0x70]
mov ecx, dword [edx + 8]
mov dword [ebp - 0xf0], ecx
mov eax, dword [ebp - 0x44]
mov dword fs:[0], eax
jmp 0x66cc64
mov dword [ebp - 0x74], 0x1e
lea edx, [ebp - 0x74]
push edx
lea ecx, [ebp - 0x118]
push ecx
call sub.KERNEL32.DLL_GetComputerNameA
test eax, eax
je 0x66ca84
lea eax, [ebp - 0x118]
push eax
mov edx, dword [ebp + 8]
add edx, 0x60
push edx
call fcn.0069a464
add esp, 8
jmp 0x66ca98
push str.Unknown
mov ecx, dword [ebp + 8]
add ecx, 0x60
push ecx
call fcn.0069a464
add esp, 8
mov dword [ebp - 0x74], 0x1e
lea eax, [ebp - 0x74]
push eax
lea edx, [ebp - 0x118]
push edx
call sub.ADVAPI32.DLL_GetUserNameA
test eax, eax
je 0x66cba9
lea ecx, [ebp - 0x118]
push ecx
mov eax, dword [ebp + 8]
add eax, 0x70
push eax
call fcn.0069a464
add esp, 8
mov word [ebp - 0x34], 0x8c
lea edx, [ebp - 0x118]
push edx
mov ecx, dword [ebp + 8]
push ecx
lea eax, [ebp - 0x20]
push eax
call fcn.0066e4b4
add esp, 0xc
lea edx, [ebp - 0x20]
push edx
inc dword [ebp - 0x28]
mov ecx, dword [ebp + 8]
add ecx, 0x80
push ecx
call fcn.0069a2e0
add esp, 8
dec dword [ebp - 0x28]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x66cba3
mov edx, dword [ebp - 0x18]
mov ecx, dword [edx - 0xc]
inc ecx
test ecx, ecx
je 0x66cb5e
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff4
mov dword [ebp - 0x78], eax
mov edx, 0x6ff36c
mov ecx, dword [ebp - 0x78]
cmp edx, ecx
je 0x66cb55
mov eax, 0x6ff36c
mov edx, dword [ebp - 0x78]
cmp eax, edx
je 0x66cb4e
mov ecx, dword [ebp - 0x78]
push ecx
call sub.KERNEL32.DLL_InterlockedDecrement
mov eax, dword [ebp - 0x78]
mov edx, dword [eax]
inc edx
jmp 0x66cb5a
mov edx, 1
jmp 0x66cb5a
mov edx, 1
test edx, edx
jne 0x66cba3
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff4
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff4
mov dword [ebp - 0x80], ecx
mov eax, dword [ebp - 0x80]
push eax
call fcn.0067ac7c
pop ecx
xor edx, edx
mov dword [ebp - 0x84], edx
lea eax, [ebp - 0x20]
mov ecx, dword [ebp - 0x84]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x88], eax
mov edx, dword [ebp - 0x88]
mov ecx, dword [edx + 8]
mov dword [ebp - 0x120], ecx
mov word [ebp - 0x34], 0x68
mov eax, dword [ebp + 8]
push eax
call fcn.0066d068
pop ecx
push 0
push 0x1f4
mov edx, dword [ebp + 8]
push edx
call fcn.005882dc
add esp, 0xc
dec dword [ebp - 0x28]
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x66cc5e
mov eax, dword [ebp - 8]
mov edx, dword [eax - 0xc]
inc edx
test edx, edx
je 0x66cc10
mov ebx, dword [ebp - 8]
add ebx, 0xfffffff4
cmp ebx, 0x6ff36c
je 0x66cc07
cmp ebx, 0x6ff36c
je 0x66cc00
push ebx
call sub.KERNEL32.DLL_InterlockedDecrement
mov eax, dword [ebx]
inc eax
jmp 0x66cc0c
mov eax, 1
jmp 0x66cc0c
mov eax, 1
test eax, eax
jne 0x66cc5e
mov edx, dword [ebp - 8]
add edx, 0xfffffff4
mov dword [ebp - 0x8c], edx
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff4
mov dword [ebp - 0x90], ecx
mov eax, dword [ebp - 0x90]
push eax
call fcn.0067ac7c
pop ecx
xor edx, edx
mov dword [ebp - 0x94], edx
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 0x94]
mov dword [ebp - 8], ecx
mov dword [ebp - 0x98], eax
mov edx, dword [ebp - 0x98]
mov ecx, dword [edx + 8]
mov dword [ebp - 0x130], ecx
mov word [ebp - 0x34], 8
mov eax, dword [ebp - 0x44]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret