Function at 0x11057c60
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x111dc06e
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x11279148]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push 0
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x6c], ecx
call dword [sym.imp.ole32.dll_CoInitialize]
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x74], eax
call fcn.11057ad0
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0
call fcn.11057b80
lea edx, [ebp - 0x70]
push edx
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x70], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov eax, 0x400
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x48], eax
xor ecx, ecx
mov eax, 0x100
mov edx, 2
mul edx
seto cl
mov dword [ebp - 0x4c], 0x100
mov dword [ebp - 0x44], 0x800
neg ecx
or ecx, eax
push ecx
call fcn.11170a40
mov ebx, eax
mov eax, dword [ebp - 0x40]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.11170a40
mov esi, eax
mov eax, dword [ebp - 0x48]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.11170a40
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x44]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.11170a40
mov edi, eax
xor eax, eax
mov word [ebx], ax
mov eax, dword [ebp - 0x3c]
xor ecx, ecx
xor edx, edx
mov word [esi], cx
add esp, 0x10
test byte [ebp + 8], 1
mov word [eax], dx
mov word [edi], cx
je 0x11057e75
lea edx, [ebp - 0x44]
push edx
push edi
lea ecx, [ebp - 0x48]
push ecx
push eax
lea edx, [ebp - 0x40]
push edx
push esi
lea eax, [ebp - 0x4c]
push eax
push ebx
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x94]
call fcn.11057ba0
movzx eax, al
test eax, eax
je 0x11057e75
nop
cmp eax, 1
jne 0x11057e75
push ebx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
mov edx, dword [ebp - 0x3c]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
push edi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp - 0x4c]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.11170a40
mov ebx, eax
mov eax, dword [ebp - 0x40]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.11170a40
mov esi, eax
mov eax, dword [ebp - 0x48]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.11170a40
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x44]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.11170a40
mov edx, dword [ebp - 0x3c]
add esp, 0x20
mov edi, eax
lea eax, [ebp - 0x44]
push eax
push edi
lea ecx, [ebp - 0x48]
push ecx
push edx
lea eax, [ebp - 0x40]
push eax
push esi
lea ecx, [ebp - 0x4c]
push ecx
push ebx
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebp - 0x94]
call fcn.11057ba0
movzx eax, al
test eax, eax
jne 0x11057db0
lea ecx, [ebp - 0x64]
call fcn.1113dd30
lea eax, [esi + 2]
push 0x5c
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCR100.dll_wcschr]
add esp, 8
test eax, eax
je 0x11057ea2
sub eax, esi
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x64]
call fcn.1113d6d0
cmp word [esi], 0
je 0x11057eba
mov ecx, dword [ebp - 0x38]
push esi
push 0x112041c0
push ecx
call fcn.1113d940
add esp, 0xc
lea ecx, [ebp - 0x84]
call fcn.1113dd30
push 7
push str.LDAP:__
push edi
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCR100.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x11057f00
lea edx, [edi + 0xe]
push 0x2f
push edx
call dword [sym.imp.MSVCR100.dll_wcschr]
add esp, 8
test eax, eax
je 0x11057f00
add eax, 2
push eax
lea ecx, [ebp - 0x84]
call fcn.1113dbf0
mov eax, 0x800
xor ecx, ecx
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.11170a40
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x50]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.11170a40
mov edx, dword [ebp - 0x34]
xor ecx, ecx
add esp, 8
test byte [ebp + 8], 2
mov word [edx], cx
mov dword [ebp - 0x38], eax
mov word [eax], cx
je 0x11058072
mov edx, dword [ebp - 0x64]
mov eax, dword [edx]
lea ecx, [ebp - 0x64]
call eax
test al, al
jne 0x11057f7d
push 0x266
push str.E:_nsmsrc_nsm14101410fctl32NSMString.h
push str.IsA__
call fcn.11067750
add esp, 0xc
mov ecx, dword [ebp - 0x58]
cmp word [ecx], 0
je 0x11058072
lea ebx, [ebx]
mov edx, dword [ebp - 0x84]
mov eax, dword [edx]
lea ecx, [ebp - 0x84]
call eax
test al, al
jne 0x11057fbb
push 0x266
push str.E:_nsmsrc_nsm14101410fctl32NSMString.h
push str.IsA__
call fcn.11067750
add esp, 0xc
mov ecx, dword [ebp - 0x78]
mov edx, dword [ebp - 0x64]
mov eax, dword [edx]
mov dword [ebp - 0x68], ecx
lea ecx, [ebp - 0x64]
call eax
test al, al
jne 0x11057fe6
push 0x266
push str.E:_nsmsrc_nsm14101410fctl32NSMString.h
push str.IsA__
call fcn.11067750
add esp, 0xc
mov edx, dword [ebp - 0x38]
lea ecx, [ebp - 0x50]
push ecx
mov ecx, dword [ebp - 0x34]
push edx
mov edx, dword [ebp - 0x68]
lea eax, [ebp - 0x54]
push eax
mov eax, dword [ebp - 0x58]
push ecx
push edx
push eax
lea ecx, [ebp - 0x94]
call fcn.11057c00
movzx eax, al
test eax, eax
je 0x11058072
cmp eax, 1
jne 0x11058072
mov ecx, dword [ebp - 0x34]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
mov edx, dword [ebp - 0x38]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp - 0x54]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.11170a40
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x50]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.11170a40
mov edx, dword [ebp - 0x34]
add esp, 0x10
xor ecx, ecx
mov word [edx], cx
mov dword [ebp - 0x38], eax
mov word [eax], cx
jmp 0x11057f90
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x6c]
push edx
call fcn.1113dbf0
push ebx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp - 0x3c]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
push edi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
mov ecx, dword [ebp - 0x34]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
mov edx, dword [ebp - 0x38]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 0x18
cmp dword [ebp - 0x74], 0
jl 0x110580ba
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 1
call fcn.1113cd80
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0
call fcn.1113cd80
lea ecx, [ebp - 0x94]
call fcn.1102fb60
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.111d9022
mov esp, ebp
pop ebp
ret