Function at 0x1c4e654
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x250
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x1cda44c]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
xor ecx, ecx
dec ecx
mov dword [ebx], ecx
mov dword [ebx + 4], ecx
mov dword [ebx + 8], ecx
mov ecx, ebx
push eax
call fcn.01c3f47c
movzx eax, byte [ebx + 0xb]
test al, al
js 0x1c4e6b3
test al, al
je 0x1c4f014
cmp al, 1
je 0x1c4e728
movzx ecx, word [ebx]
cmp cx, 0x22
jne 0x1c4e6d7
mov cx, 0x22
cmp word [ebx + eax*2 - 2], 0x22
jne 0x1c4e6d7
jmp 0x1c4e6fa
mov edx, dword [ebx + 4]
test edx, edx
je 0x1c4f014
cmp edx, 1
je 0x1c4e728
mov ecx, dword [ebx]
cmp word [ecx], 0x22
jne 0x1c4e6e3
cmp word [ecx + edx*2 - 2], 0x22
je 0x1c4e6f6
test al, al
js 0x1c4e6e3
cmp cx, 0x27
jne 0x1c4e728
mov ecx, ebx
mov edx, eax
jmp 0x1c4e6ee
mov ecx, dword [ebx]
cmp word [ecx], 0x27
jne 0x1c4e728
mov edx, dword [ebx + 4]
cmp word [ecx + edx*2 - 2], 0x27
jne 0x1c4e728
test al, al
js 0x1c4e708
lea ecx, [eax - 1]
mov byte [ebx + 0xb], cl
lea eax, [ebx + eax*2]
add eax, 0xfffffffe
jmp 0x1c4e718
mov eax, dword [ebx + 4]
lea ecx, [eax - 1]
mov dword [ebx + 4], ecx
add eax, eax
add eax, 0xfffffffe
add eax, dword [ebx]
mov word [eax], 0
mov ecx, ebx
push 1
push 0
call fcn.01c3fdc4
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor ecx, ecx
dec ecx
mov dword [ebp - 0x23c], ecx
test eax, eax
mov dword [ebp - 0x25c], eax
je 0x1c4e758
push 0x1cc2a7e
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x23c], eax
xor eax, eax
mov dword [ebp - 0x238], eax
mov eax, dword [eax*8 + 0x1cc2ab0]
mov dword [ebp - 0x22c], eax
push eax
call fcn.01caafe4
add esp, 4
mov esi, eax
movzx ecx, byte [ebx + 0xb]
mov eax, ebx
test cl, cl
jns 0x1c4e784
mov eax, dword [ebx]
test esi, esi
je 0x1c4e869
test cl, cl
jns 0x1c4e793
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x248], ecx
cmp ecx, esi
jl 0x1c4ea03
mov dword [ebp - 0x24c], eax
mov eax, dword [ebp - 0x22c]
movzx eax, word [eax]
mov ecx, dword [ebp - 0x24c]
mov edx, dword [ebp - 0x248]
lea edi, [ecx + edx*2]
add edi, 0xfffffffe
mov dword [ebp - 0x244], edi
lea edi, [esi - 1]
mov dword [ebp - 0x240], edi
mov edi, edx
sub edi, esi
inc edi
je 0x1c4ea03
mov edi, dword [ebp - 0x240]
sub edi, edx
xor ebx, ebx
cmp word [ecx + ebx], ax
je 0x1c4e7f7
add ebx, 2
inc edi
jne 0x1c4e7e6
jmp 0x1c4ea03
mov edx, ecx
add edx, ebx
mov dword [ebp - 0x230], edx
je 0x1c4ea03
mov word [ebp - 0x250], ax
xor edi, edi
inc edi
mov dword [ebp - 0x234], esi
cmp esi, edi
je 0x1c4e93a
mov eax, dword [ebp - 0x230]
movzx esi, word [eax + edi*2]
mov eax, ecx
lea ecx, [edi + 1]
mov edx, dword [ebp - 0x22c]
cmp si, word [edx + edi*2]
mov esi, dword [ebp - 0x234]
mov edi, ecx
mov ecx, eax
je 0x1c4e817
mov edx, dword [ebp - 0x244]
sub edx, ecx
add ecx, ebx
add ecx, 2
sub edx, ebx
sar edx, 1
cmp edx, esi
movzx eax, word [ebp - 0x250]
jge 0x1c4e7d1
jmp 0x1c4ea03
mov dword [ebp - 0x230], 0
push dword [ebp - 0x22c]
call fcn.01caafe4
add esp, 4
mov esi, eax
push 0x208
push 0xff
lea edi, [ebp - 0x218]
push edi
call fcn.01c97000
add esp, 0xc
xor eax, eax
push eax
mov ecx, dword [ebp - 0x238]
push dword [ecx*8 + 0x1cc2ab4]
push edi
push eax
call dword [ebp - 0x23c]
test eax, eax
jne 0x1c4e8c1
mov word [ebp - 0x218], 0
xor eax, eax
dec eax
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], eax
lea ecx, [ebp - 0x224]
push edi
call fcn.01c3be7a
movzx eax, byte [ebp - 0x219]
test al, al
js 0x1c4e8ff
test al, al
je 0x1c4e9bd
mov ecx, eax
lea edx, [ebp - 0x224]
jmp 0x1c4e913
mov ecx, dword [ebp - 0x220]
test ecx, ecx
je 0x1c4e9bd
mov edx, dword [ebp - 0x224]
cmp word [edx + ecx*2 - 2], 0x5c
jne 0x1c4e9bd
movzx edx, byte [ebx + 0xb]
test dl, dl
js 0x1c4e972
mov ecx, dword [ebp - 0x230]
add ecx, esi
mov edi, ebx
cmp ecx, edx
jb 0x1c4e981
jmp 0x1c4e9bd
mov edx, dword [ebp - 0x24c]
mov eax, dword [ebp - 0x248]
lea eax, [edx + eax*2]
sub eax, ecx
cmp eax, ebx
je 0x1c4ea03
mov eax, edx
sub ecx, edx
add ecx, ebx
cmp ecx, 0xfffffffe
je 0x1c4ea03
sar ecx, 1
mov dword [ebp - 0x230], ecx
mov ebx, dword [ebp + 8]
jmp 0x1c4e873
mov ecx, dword [ebp - 0x230]
add ecx, esi
cmp dword [ebx + 4], ecx
jbe 0x1c4e9bd
mov edi, dword [ebx]
cmp word [edi + ecx*2], 0x5c
jne 0x1c4e9bd
test al, al
js 0x1c4e9a1
lea ecx, [eax - 1]
mov byte [ebp - 0x219], cl
mov word [ebp + eax*2 - 0x226], 0
jmp 0x1c4e9bd
mov eax, dword [ebp - 0x224]
mov ecx, dword [ebp - 0x220]
lea edx, [ecx - 1]
mov dword [ebp - 0x220], edx
mov word [eax + ecx*2 - 2], 0
movzx eax, byte [ebp - 0x219]
test al, al
cmovs eax, dword [ebp - 0x220]
mov edx, dword [ebp - 0x224]
lea ecx, [ebp - 0x224]
cmovns edx, ecx
mov ecx, ebx
push eax
push edx
push esi
push dword [ebp - 0x230]
call fcn.01c3fe4a
cmp byte [ebp - 0x219], 0
jns 0x1c4ea03
push dword [ebp - 0x224]
call fcn.01c92abc
add esp, 4
mov eax, dword [ebp - 0x238]
inc eax
cmp eax, 7
mov ebx, dword [ebp + 8]
jne 0x1c4e75a
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [ebp - 0x24c], eax
je 0x1c4ea3b
push 0x1cc2aea
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
jmp 0x1c4ea3e
xor edi, edi
dec edi
mov cl, byte [ebx + 0xb]
test cl, cl
mov eax, dword [ebx]
mov esi, dword [ebx + 4]
mov dword [ebp - 0x234], eax
cmovs ebx, eax
movzx edx, cl
mov eax, edx
mov dword [ebp - 0x248], esi
cmovs eax, esi
cmp eax, 0xc
jl 0x1c4eb12
mov esi, eax
mov byte [ebp - 0x240], cl
lea eax, [ebx + eax*2]
add eax, 0xfffffffe
mov dword [ebp - 0x244], eax
mov ecx, esi
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 0x238], edx
add ecx, 0xfffffff5
je 0x1c4eb0c
xor eax, eax
cmp word [ebx + eax], 0x24
je 0x1c4eaa0
add eax, 2
dec ecx
jne 0x1c4ea91
jmp 0x1c4eb06
mov ecx, ebx
add ecx, eax
mov dword [ebp - 0x230], ecx
je 0x1c4eb06
mov edx, 0xffffffea
mov dword [ebp - 0x22c], ebx
test edx, edx
je 0x1c4ecfa
mov ecx, esi
mov esi, dword [ebp - 0x230]
movzx esi, word [esi + edx + 0x18]
mov ebx, edi
lea edi, [edx + 2]
cmp si, word [edx + 0x1cc2b2a]
mov esi, ecx
mov edx, edi
mov edi, ebx
mov ebx, dword [ebp - 0x22c]
je 0x1c4eab7
mov edx, dword [ebp - 0x244]
sub edx, ebx
add ebx, eax
add ebx, 2
sub edx, eax
mov ecx, edx
sar ecx, 1
cmp edx, 0x18
mov edx, dword [ebp - 0x238]
jge 0x1c4ea8a
jmp 0x1c4eb0c
mov edx, dword [ebp - 0x238]
mov cl, byte [ebp - 0x240]
mov esi, dword [ebp - 0x234]
test cl, cl
cmovns esi, dword [ebp + 8]
mov dword [ebp - 0x234], esi
cmovs edx, dword [ebp - 0x248]
mov ecx, edx
mov dword [ebp - 0x238], edx
cmp edx, 0xf
jge 0x1c4ebcd
push str.wtsapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
xor eax, eax
dec eax
mov dword [ebp - 0x248], eax
test esi, esi
je 0x1c4eb62
push 0x1cc2b4e
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x240], eax
push str.wtsapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test eax, eax
mov ebx, dword [ebp + 8]
je 0x1c4eb8e
push 0x1cc2b86
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x238], edi
mov dword [ebp - 0x234], esi
mov cl, byte [ebx + 0xb]
test cl, cl
mov eax, dword [ebx]
mov esi, dword [ebx + 4]
mov edi, ebx
mov dword [ebp - 0x22c], eax
cmovs edi, eax
movzx edx, cl
mov eax, edx
cmovs edx, esi
cmp edx, 0xe
jge 0x1c4ec4b
mov edx, eax
mov eax, dword [ebp - 0x22c]
jmp 0x1c4efb5
mov ebx, dword [ebp - 0x234]
mov eax, dword [ebp - 0x238]
lea esi, [ebx + eax*2]
add esi, 0xfffffffe
add eax, 0xfffffff2
je 0x1c4eb3c
xor edx, edx
cmp word [ebx + edx], 0x24
je 0x1c4ebfc
add edx, 2
dec eax
jne 0x1c4ebea
jmp 0x1c4eb3c
mov eax, ebx
add eax, edx
je 0x1c4eb3c
mov dword [ebp - 0x22c], esi
mov esi, 0xffffffe4
test esi, esi
je 0x1c4edef
movzx edi, word [eax + esi + 0x1e]
lea ecx, [esi + 2]
cmp di, word [esi + 0x1cc2b4a]
mov esi, ecx
je 0x1c4ec11
mov esi, dword [ebp - 0x22c]
mov ecx, esi
sub ecx, ebx
add ebx, edx
add ebx, 2
sub ecx, edx
mov eax, ecx
sar eax, 1
cmp ecx, 0x1e
jge 0x1c4ebdf
jmp 0x1c4eb3c
mov byte [ebp - 0x244], cl
lea ecx, [edi + edx*2]
add ecx, 0xfffffffe
mov dword [ebp - 0x254], ecx
mov dword [ebp - 0x258], edx
mov ecx, edx
mov dword [ebp - 0x250], edi
mov edx, eax
mov eax, dword [ebp - 0x22c]
mov dword [ebp - 0x23c], esi
add ecx, 0xfffffff3
je 0x1c4ecef
xor esi, esi
cmp word [edi + esi], 0x24
je 0x1c4ec92
add esi, 2
dec ecx
jne 0x1c4ec80
jmp 0x1c4efa9
mov ecx, edi
add ecx, esi
je 0x1c4efa9
mov dword [ebp - 0x230], edx
mov edx, 0xffffffe6
test edx, edx
je 0x1c4eeb5
movzx ebx, word [ecx + edx + 0x1c]
lea eax, [edx + 2]
cmp bx, word [edx + 0x1cc2bb0]
mov ebx, dword [ebp + 8]
mov edx, eax
je 0x1c4eca7
mov eax, dword [ebp - 0x254]
sub eax, edi
add edi, esi
add edi, 2
sub eax, esi
mov ecx, eax
sar ecx, 1
cmp eax, 0x1c
mov eax, dword [ebp - 0x22c]
mov edx, dword [ebp - 0x230]
mov esi, dword [ebp - 0x23c]
jge 0x1c4ec79
mov cl, byte [ebp - 0x244]
jmp 0x1c4efb5
mov edx, dword [ebp - 0x23c]
lea ecx, [edx + esi*2]
sub ecx, ebx
cmp ecx, eax
je 0x1c4ef86
sub ebx, edx
add ebx, eax
cmp ebx, 0xfffffffe
mov esi, dword [ebp - 0x234]
mov edx, dword [ebp - 0x238]
mov cl, byte [ebp - 0x240]
je 0x1c4eb18
xor eax, eax
lea esi, [ebp - 0x224]
mov dword [esi], eax
push esi
push eax
call edi
mov eax, dword [esi]
test eax, eax
je 0x1c4edd6
sar ebx, 1
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x230], edi
xor edi, edi
dec edi
add eax, eax
cmovb eax, edi
push eax
call fcn.01c92af3
add esp, 4
mov ebx, eax
push esi
push eax
call dword [ebp - 0x230]
mov dword [ebp - 0x218], edi
mov dword [ebp - 0x214], edi
mov dword [ebp - 0x210], edi
lea esi, [ebp - 0x218]
mov ecx, esi
push ebx
call fcn.01c3be7a
movzx eax, byte [ebp - 0x20d]
test al, al
jns 0x1c4eda4
mov eax, dword [ebp - 0x214]
mov esi, dword [ebp - 0x218]
mov ecx, dword [ebp + 8]
push eax
push esi
push 0xc
push dword [ebp - 0x22c]
call fcn.01c3fe4a
cmp byte [ebp - 0x20d], 0
jns 0x1c4edcd
push dword [ebp - 0x218]
call fcn.01c92abc
add esp, 4
push ebx
call fcn.01c92afc
add esp, 4
mov eax, dword [ebp + 8]
mov cl, byte [eax + 0xb]
mov esi, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x248], eax
movzx edx, cl
jmp 0x1c4eb18
mov eax, dword [ebp - 0x234]
mov ecx, dword [ebp - 0x238]
lea eax, [eax + ecx*2]
sub eax, ebx
cmp eax, edx
je 0x1c4eb3c
sub ebx, dword [ebp - 0x234]
add ebx, edx
cmp ebx, 0xfffffffe
je 0x1c4eb3c
xor eax, eax
lea edi, [ebp - 0x224]
mov dword [edi], eax
push edi
push eax
push 5
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
mov eax, dword [edi]
test eax, eax
je 0x1c4eb3c
sar ebx, 1
xor ecx, ecx
dec ecx
add eax, eax
cmovb eax, ecx
push eax
call fcn.01c92af3
add esp, 4
mov esi, eax
push edi
push eax
push 5
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
lea edi, [ebp - 0x218]
xor eax, eax
dec eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov ecx, edi
push esi
call fcn.01c3be7a
movzx eax, byte [edi + 0xb]
test al, al
jns 0x1c4ee83
mov eax, dword [ebp - 0x214]
mov edi, dword [ebp - 0x218]
mov ecx, dword [ebp + 8]
push eax
push edi
push 0xf
push ebx
call fcn.01c3fe4a
cmp byte [ebp - 0x20d], 0
jns 0x1c4eea7
push dword [ebp - 0x218]
call fcn.01c92abc
add esp, 4
push esi
call fcn.01c92afc
add esp, 4
jmp 0x1c4eb3c
mov ecx, dword [ebp - 0x250]
mov eax, dword [ebp - 0x258]
lea eax, [ecx + eax*2]
sub eax, edi
cmp eax, esi
je 0x1c4ef9d
sub edi, ecx
add edi, esi
cmp edi, 0xfffffffe
mov eax, dword [ebp - 0x22c]
mov edx, dword [ebp - 0x230]
mov cl, byte [ebp - 0x244]
mov esi, dword [ebp - 0x23c]
je 0x1c4efb5
xor eax, eax
lea ecx, [ebp - 0x224]
mov dword [ecx], eax
lea edx, [ebp - 0x228]
mov dword [edx], eax
push edx
push ecx
push 0xa
push 0xffffffffffffffff
push eax
call dword [ebp - 0x240]
test eax, eax
je 0x1c4ef79
sar edi, 1
xor eax, eax
dec eax
lea esi, [ebp - 0x218]
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov ecx, esi
push dword [ebp - 0x224]
call fcn.01c3be7a
movzx eax, byte [esi + 0xb]
test al, al
jns 0x1c4ef4a
mov eax, dword [ebp - 0x214]
mov esi, dword [ebp - 0x218]
mov ecx, ebx
push eax
push esi
push 0xe
push edi
call fcn.01c3fe4a
push dword [ebp - 0x224]
call dword [ebp - 0x248]
cmp byte [ebp - 0x20d], 0
jns 0x1c4ef79
push dword [ebp - 0x218]
call fcn.01c92abc
add esp, 4
mov cl, byte [ebx + 0xb]
mov eax, dword [ebx]
mov esi, dword [ebx + 4]
movzx edx, cl
jmp 0x1c4efb5
mov esi, dword [ebp - 0x234]
mov edx, dword [ebp - 0x238]
mov cl, byte [ebp - 0x240]
jmp 0x1c4eb18
mov eax, dword [ebp - 0x22c]
mov edx, dword [ebp - 0x230]
mov cl, byte [ebp - 0x244]
mov esi, dword [ebp - 0x23c]
test cl, cl
cmovns eax, ebx
mov dword [ebp - 0x22c], eax
cmovs edx, esi
mov eax, edx
mov dword [ebp - 0x230], edx
cmp edx, 0xf
jge 0x1c4f02b
mov eax, dword [ebp - 0x238]
test eax, eax
je 0x1c4efe1
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x234]
test eax, eax
je 0x1c4eff2
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x24c]
test eax, eax
je 0x1c4f003
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x25c]
test eax, eax
je 0x1c4f014
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01c92b01
mov eax, ebx
add esp, 0x250
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, dword [ebp - 0x22c]
mov edi, dword [ebp - 0x230]
lea eax, [esi + edi*2]
add eax, 0xfffffffe
mov dword [ebp - 0x23c], eax
add edi, 0xfffffff2
je 0x1c4efd0
xor edx, edx
cmp word [esi + edx], 0x24
je 0x1c4f05c
add edx, 2
dec edi
jne 0x1c4f04a
jmp 0x1c4efd0
mov eax, esi
add eax, edx
je 0x1c4efd0
mov edi, 0xffffffe4
test edi, edi
je 0x1c4f0a2
movzx ebx, word [eax + edi + 0x1e]
lea ecx, [edi + 2]
cmp bx, word [edi + 0x1cc2bd0]
mov ebx, dword [ebp + 8]
mov edi, ecx
je 0x1c4f06b
mov eax, dword [ebp - 0x23c]
sub eax, esi
add esi, edx
add esi, 2
sub eax, edx
mov edi, eax
sar edi, 1
cmp eax, 0x1e
jge 0x1c4f043
jmp 0x1c4efd0
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x230]
lea eax, [eax + ecx*2]
sub eax, esi
cmp eax, edx
je 0x1c4efd0
sub esi, dword [ebp - 0x22c]
add esi, edx
cmp esi, 0xfffffffe
je 0x1c4efd0
xor eax, eax
lea ecx, [ebp - 0x224]
mov dword [ecx], eax
lea edx, [ebp - 0x228]
mov dword [edx], eax
push edx
push ecx
push 6
push 0xffffffffffffffff
push eax
call dword [ebp - 0x240]
test eax, eax
je 0x1c4efd0
sar esi, 1
xor eax, eax
dec eax
lea edi, [ebp - 0x218]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov ecx, edi
push dword [ebp - 0x224]
call fcn.01c3be7a
movzx eax, byte [edi + 0xb]
test al, al
jns 0x1c4f127
mov eax, dword [ebp - 0x214]
mov edi, dword [ebp - 0x218]
mov ecx, ebx
push eax
push edi
push 0xf
push esi
call fcn.01c3fe4a
push dword [ebp - 0x224]
call dword [ebp - 0x248]
cmp byte [ebp - 0x20d], 0
jns 0x1c4efd0
push dword [ebp - 0x218]
call fcn.01c92abc
add esp, 4
jmp 0x1c4efd0