Function at 0x77cc54af
Capabilities:
Get hostname

Disassembly:
cmp word [esi + 2], bx
jne 0x77cab1b4
mov dword [ebp - 0x28], esi
add esi, 4
dec edi
dec edi
jne 0x77cab1eb
jmp 0x77ceec88
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x77cab18c
sub eax, edx
sar eax, 1
mov edi, eax
movzx eax, word [esi]
cmp ax, bx
je 0x77ceec80
push 0x5c
pop ebx
cmp ax, bx
je 0x77c98c67
lea eax, [edi + edi + 6]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [ebp - 0x30], eax
je 0x77ceec92
lea ecx, [edi + edi + 2]
push ecx
mov word [eax], bx
mov word [eax + 2], bx
add eax, 4
push esi
push eax
call sub.ntdll.dll_memcpy
mov eax, dword [ebp - 0x30]
add esp, 0xc
mov dword [ebp - 0x28], eax
test esi, esi
je 0x77cc54eb
cmp edi, 0xf
ja 0x77cab22d
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x2c], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x77cab22d
cmp edi, dword [ebp - 0x2c]
jne 0x77cab22d
push edi
lea eax, [ebp - 0x24]
push esi
push eax
call sub.ntdll.dll__wcsnicmp
add esp, 0xc
test eax, eax
jne 0x77cab22d
xor esi, esi
mov dword [ebp - 0x28], esi
test esi, esi
je 0x77cc54eb
cmp word [esi + edi*2 - 2], 0x2e
jne 0x77cab23e
dec edi
push 0x20a
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x77ceec92
lea eax, [ebp - 0x2c]
push eax
push ebx
push 3
mov dword [ebp - 0x2c], 0x105
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
je 0x77cab276
cmp edi, dword [ebp - 0x2c]
je 0x77ceec9c
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x77cc54eb
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x77cc5592
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x77d260c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, ebx
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x28], ebx
mov dword [eax], ebx
jne 0x77cab187
mov eax, dword [ebp - 0x34]
lea edx, [eax + 2]
xor ebx, ebx
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x77cc54f3
sub eax, edx
sar eax, 1
lea edi, [eax + eax + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
cmp esi, ebx
je 0x77ceec92
push 0x77cc55a8
push edi
push esi
call fcn.77cc568b
test eax, eax
jl 0x77ceecb7
push dword [ebp - 0x34]
push edi
push esi
call fcn.77cc55cf
test eax, eax
jl 0x77ceecb7
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x40]
push esi
push dword [ebp - 0x28]
push 0x77cc55b8
push ebx
call dword [sym.imp.RPCRT4.dll_RpcStringBindingComposeW]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp edi, ebx
jne 0x77ceec92
mov edi, dword [ebp - 0x3c]
push edi
push dword [ebp - 0x38]
call dword [sym.imp.RPCRT4.dll_RpcBindingFromStringBindingW]
mov esi, eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.RPCRT4.dll_RpcStringFreeW]
cmp esi, ebx
jne 0x77ceecc8
xor esi, esi
cmp dword [ebp - 0x30], 0
jne 0x77cab282
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.77cd6011
leave
ret 0x10
mov dword [ebp - 0x28], ebx
jmp 0x77cc54eb
mov esi, 0xc0000122
jmp 0x77cc5592
mov esi, 0xc0000017
jmp 0x77cc5588
push edi
push esi
push ebx
call sub.ntdll.dll__wcsnicmp
add esp, 0xc
test eax, eax
jne 0x77cab276
and dword [ebp - 0x28], eax
jmp 0x77cab276
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, 0xc000000d
jmp 0x77cc5588
cmp esi, 0x6aa
mov dword [edi], ebx
je 0x77ceecda
cmp esi, 0x6ab
jne 0x77ceec92
mov esi, 0xc0000122
jmp 0x77cc5588