Function at 0x77cbadad
Capabilities:
Get hostname

Disassembly:
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x77cbaec0
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x77c96b44
sub eax, edx
sar eax, 1
mov edi, eax
movzx eax, word [esi]
cmp ax, bx
mov dword [ebp - 0x3c], edi
je 0x77c96c4b
cmp edi, 2
jb 0x77c96b72
cmp ax, 0x5c
je 0x77ce7abd
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 0x77ce7b07
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.77cab999
mov dword [ebp - 0x30], edi
mov edi, dword [ebp - 0x3c]
cmp esi, ebx
je 0x77c96c0a
push 0x77c96c18
push esi
call sub.ntdll.dll__wcsicmp
test eax, eax
pop ecx
pop ecx
je 0x77ce7ae1
cmp esi, ebx
je 0x77c96c0a
cmp edi, 0xf
ja 0x77c96c02
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 0x77c96c02
cmp edi, dword [ebp - 0x38]
jne 0x77c96c02
push edi
lea eax, [ebp - 0x24]
push esi
push eax
call sub.ntdll.dll__wcsnicmp
add esp, 0xc
test eax, eax
jne 0x77c96c02
xor esi, esi
mov dword [ebp - 0x30], ebx
cmp esi, ebx
jne 0x77ce7aeb
cmp dword [ebp - 0x30], ebx
jne 0x77ce7b52
jmp 0x77cbade6
mov dword [ebp - 0x30], ebx
jmp 0x77cbade6
mov dword [ebp - 0x34], eax
jmp 0x77cbaeb7
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x77d260c4]
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 0x77c96b3f
mov eax, 0x77cbad98
mov ecx, 0x77cbaee0
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 0x77c96c53
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 0x77ce7b83
cmp dword [ebp - 0x30], ebx
jne 0x77cbaeb7
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 0x77ce7b87
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 0x77ce7b92
cmp dword [ebp - 0x48], ebx
jne 0x77c9696c
cmp dword [ebp - 0x34], ebx
jne 0x77ce7b9a
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x34]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.77cd6011
leave
ret 8
cmp word [esi + 2], ax
jne 0x77c96b72
mov dword [ebp - 0x30], esi
add esi, 4
dec edi
dec edi
jne 0x77c96bab
mov dword [ebp - 0x34], 0x4ba
jmp 0x77cbaec9
xor esi, esi
mov dword [ebp - 0x30], ebx
jmp 0x77c96bc4
cmp word [esi + edi*2 - 2], 0x2e
jne 0x77ce7af4
dec edi
push 0x200
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, ebx
mov dword [ebp - 0x3c], eax
jne 0x77ce7b13
mov dword [ebp - 0x34], 8
jmp 0x77cbaeb7
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 0x77ce7b44
cmp edi, dword [ebp - 0x38]
jne 0x77ce7b44
push edi
push esi
push dword [ebp - 0x3c]
call sub.ntdll.dll__wcsnicmp
add esp, 0xc
test eax, eax
jne 0x77ce7b44
mov dword [ebp - 0x30], ebx
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x77c96c0a
push dword [ebp - 0x40]
mov eax, dword [ebp - 0x30]
add eax, 4
push eax
call fcn.77d150fc
test eax, eax
jne 0x77ce7b6d
mov dword [ebp - 0x34], ebx
jmp 0x77cbaeb7
mov eax, 0x77cc55b8
mov ecx, 0x77ce7c04
mov dword [ebp - 0x2c], 0x77ce7bb8
jmp 0x77cbadf0
mov dword [edi], ebx
jmp 0x77ce7b92
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x77c96c53
mov dword [ebp - 0x34], esi
jmp 0x77cbaeb7
mov esi, dword [ebp - 0x40]
cmp dword [esi], ebx
je 0x77cbaec9
push esi
call dword [sym.imp.RPCRT4.dll_RpcBindingFree]
mov dword [esi], ebx
jmp 0x77cbaec9