Function at 0x77ca80e5
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x77d1a0c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, ebx
push edi
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [eax], ebx
jne 0x77cd8f15
mov eax, 0x77ca80d0
mov ecx, 0x77ca821c
lea edx, [ebp - 0x44]
push edx
push dword [ebp - 0x2c]
push ecx
push dword [ebp - 0x30]
push eax
push ebx
call dword [sym.imp.RPCRT4.dll_RpcStringBindingComposeW]
cmp eax, ebx
jne 0x77ca8215
mov edi, dword [ebp - 0x40]
push edi
push dword [ebp - 0x44]
call dword [sym.imp.RPCRT4.dll_RpcBindingFromStringBindingW]
mov esi, eax
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.RPCRT4.dll_RpcStringFreeW]
cmp esi, ebx
jne 0x77cd909d
cmp dword [ebp - 0x30], ebx
jne 0x77ca81ef
push 6
pop ecx
xor eax, eax
mov dword [ebp - 0x64], ebx
lea edi, [ebp - 0x60]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x30]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
xor esi, esi
inc esi
push esi
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 0x2c], bl
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], bl
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], bl
mov byte [ebp - 0x27], 5
mov dword [ebp - 0x30], ebx
call sym.ADVAPI32.dll_AllocateAndInitializeSid
test eax, eax
je 0x77cd90a1
push 3
pop eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebp - 0x40]
push esi
push ebx
push 0xa
push 6
push ebx
push dword [eax]
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x5c], esi
call dword [sym.imp.RPCRT4.dll_RpcBindingSetAuthInfoExW]
push dword [ebp - 0x30]
mov esi, eax
call sym.ADVAPI32.dll_FreeSid
cmp esi, ebx
jne 0x77cd90ac
cmp dword [ebp - 0x48], ebx
jne 0x77cd90b4
cmp dword [ebp - 0x34], ebx
jne 0x77cd90c2
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x34]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.77cc744e
leave
ret 8
mov dword [ebp - 0x34], eax
jmp 0x77ca81ef
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x77cd8f1a
sub eax, edx
sar eax, 1
mov edi, eax
movzx eax, word [esi]
cmp ax, bx
mov dword [ebp - 0x3c], edi
jne 0x77cd8f3d
mov dword [ebp - 0x30], ebx
jmp 0x77ca811e
cmp edi, 2
jb 0x77cd8f64
cmp ax, 0x5c
jne 0x77cd8f64
cmp word [esi + 2], ax
jne 0x77cd8f64
mov dword [ebp - 0x30], esi
add esi, 4
dec edi
dec edi
jne 0x77cd8f9d
mov dword [ebp - 0x34], 0x4ba
jmp 0x77ca8201
lea eax, [edi + edi + 6]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x48], edi
je 0x77cd901d
mov eax, dword [ebp - 0x3c]
push esi
inc eax
push eax
lea eax, [edi + 4]
push eax
mov word [edi], 0x5c
mov word [edi + 2], 0x5c
call fcn.77c8f3b0
mov dword [ebp - 0x30], edi
mov edi, dword [ebp - 0x3c]
cmp esi, ebx
je 0x77cd9063
push 0x77cd9148
push esi
call sub.ntdll.dll__wcsicmp
test eax, eax
pop ecx
pop ecx
jne 0x77cd8fbb
xor esi, esi
mov dword [ebp - 0x30], ebx
cmp esi, ebx
je 0x77cd9063
cmp edi, 0xf
ja 0x77cd8ffd
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x38], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x77cd8ffd
cmp edi, dword [ebp - 0x38]
jne 0x77cd8ffd
push edi
lea eax, [ebp - 0x24]
push esi
push eax
call sub.ntdll.dll__wcsnicmp
add esp, 0xc
test eax, eax
jne 0x77cd8ffd
xor esi, esi
mov dword [ebp - 0x30], ebx
cmp esi, ebx
je 0x77cd9063
cmp word [esi + edi*2 - 2], 0x2e
jne 0x77cd900a
dec edi
push 0x200
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, ebx
mov dword [ebp - 0x3c], eax
jne 0x77cd9029
mov dword [ebp - 0x34], 8
jmp 0x77ca81ef
lea ecx, [ebp - 0x38]
push ecx
push eax
push 3
mov dword [ebp - 0x38], 0x100
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
je 0x77cd905a
cmp edi, dword [ebp - 0x38]
jne 0x77cd905a
push edi
push esi
push dword [ebp - 0x3c]
call sub.ntdll.dll__wcsnicmp
add esp, 0xc
test eax, eax
jne 0x77cd905a
mov dword [ebp - 0x30], ebx
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x30], ebx
je 0x77ca811e
push dword [ebp - 0x40]
mov eax, dword [ebp - 0x30]
add eax, 4
push eax
call fcn.77d08a60
test eax, eax
jne 0x77cd9087
mov dword [ebp - 0x34], ebx
jmp 0x77ca81ef
mov eax, 0x77cbd0a8
mov ecx, 0x77cd912c
mov dword [ebp - 0x2c], 0x77cd90e0
jmp 0x77ca8128
mov dword [edi], ebx
jmp 0x77cd90ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x77ca8215
mov dword [ebp - 0x34], esi
jmp 0x77ca81ef
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x77ca81f8
mov esi, dword [ebp - 0x40]
cmp dword [esi], ebx
je 0x77ca8201
push esi
call dword [sym.imp.RPCRT4.dll_RpcBindingFree]
mov dword [esi], ebx
jmp 0x77ca8201