Function at 0x1c4e604
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x244
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x1cd643c]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
xor ecx, ecx
dec ecx
mov dword [esi], ecx
mov dword [esi + 4], ecx
mov dword [esi + 8], ecx
mov ecx, esi
push eax
call fcn.01c3f11c
movzx eax, byte [esi + 0xb]
test al, al
js 0x1c4e663
test al, al
je 0x1c4eabf
cmp al, 1
je 0x1c4e6d8
movzx ecx, word [esi]
cmp cx, 0x22
jne 0x1c4e687
mov cx, 0x22
cmp word [esi + eax*2 - 2], 0x22
jne 0x1c4e687
jmp 0x1c4e6aa
mov edx, dword [esi + 4]
test edx, edx
je 0x1c4eabf
cmp edx, 1
je 0x1c4e6d8
mov ecx, dword [esi]
cmp word [ecx], 0x22
jne 0x1c4e693
cmp word [ecx + edx*2 - 2], 0x22
je 0x1c4e6a6
test al, al
js 0x1c4e693
cmp cx, 0x27
jne 0x1c4e6d8
mov ecx, esi
mov edx, eax
jmp 0x1c4e69e
mov ecx, dword [esi]
cmp word [ecx], 0x27
jne 0x1c4e6d8
mov edx, dword [esi + 4]
cmp word [ecx + edx*2 - 2], 0x27
jne 0x1c4e6d8
test al, al
js 0x1c4e6b8
lea ecx, [eax - 1]
mov byte [esi + 0xb], cl
lea eax, [esi + eax*2]
add eax, 0xfffffffe
jmp 0x1c4e6c8
mov eax, dword [esi + 4]
lea ecx, [eax - 1]
mov dword [esi + 4], ecx
add eax, eax
add eax, 0xfffffffe
add eax, dword [esi]
mov word [eax], 0
mov ecx, esi
push 1
push 0
call fcn.01c3fa7a
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
xor eax, eax
dec eax
mov dword [ebp - 0x22c], eax
test edi, edi
je 0x1c4e704
push 0x1cbe9ee
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x250], edi
xor edi, edi
mov eax, dword [edi*8 + 0x1cbea20]
mov dword [ebp - 0x238], eax
push eax
call fcn.01ca7914
add esp, 4
movzx ebx, byte [esi + 0xb]
mov edx, esi
test bl, bl
jns 0x1c4e72e
mov edx, dword [esi]
test eax, eax
mov dword [ebp - 0x240], edi
je 0x1c4e7c7
test bl, bl
jns 0x1c4e743
mov ebx, dword [esi + 4]
cmp ebx, eax
jl 0x1c4e932
lea ecx, [edx + ebx*2]
mov dword [ebp - 0x234], ecx
mov ecx, dword [ebp - 0x238]
movzx ecx, word [ecx]
mov edi, edx
mov dword [ebp - 0x230], edx
mov edx, ebx
sub edx, eax
inc edx
je 0x1c4e932
inc ebx
cmp word [edi], cx
je 0x1c4e783
add edi, 2
dec ebx
cmp eax, ebx
jne 0x1c4e771
jmp 0x1c4e932
mov word [ebp - 0x23c], cx
xor edx, edx
inc edx
cmp eax, edx
je 0x1c4e886
movzx ebx, word [edi + edx*2]
lea esi, [edx + 1]
mov ecx, dword [ebp - 0x238]
cmp bx, word [ecx + edx*2]
mov edx, esi
je 0x1c4e78d
add edi, 2
mov ebx, dword [ebp - 0x234]
sub ebx, edi
sar ebx, 1
cmp ebx, eax
movzx ecx, word [ebp - 0x23c]
jge 0x1c4e765
jmp 0x1c4e932
xor edi, edi
push dword [ebp - 0x238]
call fcn.01ca7914
add esp, 4
mov esi, eax
push 0x208
push 0xff
lea ebx, [ebp - 0x218]
push ebx
call fcn.01c93b00
add esp, 0xc
xor eax, eax
push eax
mov ecx, dword [ebp - 0x240]
push dword [ecx*8 + 0x1cbea24]
push ebx
push eax
call dword [ebp - 0x22c]
test eax, eax
jne 0x1c4e817
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 ebx
call fcn.01c3bada
movzx eax, byte [ebp - 0x219]
test al, al
js 0x1c4e855
test al, al
je 0x1c4e8f0
lea edx, [ebp - 0x224]
mov ecx, eax
jmp 0x1c4e869
mov ecx, dword [ebp - 0x220]
test ecx, ecx
je 0x1c4e8f0
mov edx, dword [ebp - 0x224]
cmp word [edx + ecx*2 - 2], 0x5c
jne 0x1c4e8f0
mov ebx, dword [ebp + 8]
movzx edx, byte [ebx + 0xb]
mov ecx, esi
add ecx, edi
test dl, dl
js 0x1c4e8aa
cmp ecx, edx
jb 0x1c4e8b4
jmp 0x1c4e8f0
cmp dword [ebp - 0x234], edi
mov eax, dword [ebp - 0x230]
je 0x1c4e932
sub edi, eax
cmp edi, 0xfffffffe
je 0x1c4e932
sar edi, 1
jmp 0x1c4e7c9
cmp dword [ebx + 4], ecx
jbe 0x1c4e8f0
mov edx, dword [ebp + 8]
mov ebx, dword [edx]
cmp word [ebx + ecx*2], 0x5c
jne 0x1c4e8f0
test al, al
js 0x1c4e8d4
lea ecx, [eax - 1]
mov byte [ebp - 0x219], cl
mov word [ebp + eax*2 - 0x226], 0
jmp 0x1c4e8f0
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, dword [ebp + 8]
push eax
push edx
push esi
push edi
call fcn.01c3fb00
cmp byte [ebp - 0x219], 0
jns 0x1c4e932
push dword [ebp - 0x224]
call fcn.01c8fed0
add esp, 4
mov edi, dword [ebp - 0x240]
inc edi
cmp edi, 7
mov esi, dword [ebp + 8]
jne 0x1c4e70c
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [ebp - 0x240], eax
je 0x1c4e968
push 0x1cbea5a
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x1c4e96b
xor eax, eax
dec eax
mov cl, byte [esi + 0xb]
test cl, cl
mov edi, dword [esi]
mov edx, dword [esi + 4]
mov dword [ebp - 0x238], edi
cmovs esi, edi
mov edi, esi
mov byte [ebp - 0x234], cl
movzx esi, cl
mov ecx, esi
mov dword [ebp - 0x22c], edx
cmovs ecx, edx
cmp ecx, 0xc
jge 0x1c4ead6
mov cl, byte [ebp - 0x234]
mov edx, dword [ebp - 0x22c]
test cl, cl
mov edi, dword [ebp + 8]
mov ecx, dword [ebp - 0x238]
cmovns ecx, edi
mov dword [ebp - 0x238], ecx
cmovs esi, edx
cmp esi, 0xf
jge 0x1c4eb3a
push str.wtsapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
xor ebx, ebx
dec ebx
mov eax, ebx
test esi, esi
je 0x1c4e9eb
push 0x1cbeabe
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x24c], eax
mov dword [ebp - 0x238], esi
push str.wtsapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test eax, eax
je 0x1c4ea16
push 0x1cbeaf6
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
mov dword [ebp - 0x248], ebx
mov dword [ebp - 0x234], esi
mov cl, byte [edi + 0xb]
test cl, cl
mov eax, dword [edi]
mov edx, dword [edi + 4]
mov ebx, edi
mov dword [ebp - 0x22c], eax
cmovs ebx, eax
mov byte [ebp - 0x230], cl
movzx esi, cl
mov ecx, esi
mov dword [ebp - 0x23c], edx
cmovs ecx, edx
cmp ecx, 0xe
jge 0x1c4eb92
mov ebx, dword [ebp - 0x22c]
mov dl, byte [ebp - 0x230]
mov eax, dword [ebp - 0x23c]
test dl, dl
cmovns ebx, dword [ebp + 8]
cmovs esi, eax
cmp esi, 0xf
jge 0x1c4ebf0
mov eax, dword [ebp - 0x234]
test eax, eax
je 0x1c4ea89
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x238]
test eax, eax
je 0x1c4ea9a
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x240]
test eax, eax
mov esi, dword [ebp + 8]
je 0x1c4eaae
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x250]
test eax, eax
je 0x1c4eabf
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01c8ff11
mov eax, esi
add esp, 0x244
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x23c], eax
lea eax, [edi + ecx*2]
mov dword [ebp - 0x230], eax
mov eax, edi
add ecx, 0xfffffff5
je 0x1c4e99d
cmp word [edi], 0x24
je 0x1c4eb01
add edi, 2
dec ecx
jne 0x1c4eaf0
jmp 0x1c4e99d
mov ecx, 0xffffffea
test ecx, ecx
je 0x1c4ec44
movzx ebx, word [edi + ecx + 0x18]
lea edx, [ecx + 2]
cmp bx, word [ecx + 0x1cbea9a]
mov ecx, edx
je 0x1c4eb06
add edi, 2
mov edx, dword [ebp - 0x230]
sub edx, edi
mov ecx, edx
sar ecx, 1
cmp edx, 0x18
jge 0x1c4eae7
jmp 0x1c4e99d
mov ebx, dword [ebp - 0x238]
lea edx, [ebx + esi*2]
add esi, 0xfffffff2
je 0x1c4e9c9
cmp word [ebx], 0x24
je 0x1c4eb5d
add ebx, 2
dec esi
jne 0x1c4eb4c
jmp 0x1c4e9c9
mov eax, 0xffffffe4
test eax, eax
je 0x1c4ed24
movzx ecx, word [ebx + eax + 0x1e]
lea esi, [eax + 2]
cmp cx, word [eax + 0x1cbeaba]
mov eax, esi
je 0x1c4eb62
add ebx, 2
mov ecx, edx
sub ecx, ebx
mov esi, ecx
sar esi, 1
cmp ecx, 0x1e
jge 0x1c4eb43
jmp 0x1c4e9c9
lea eax, [ebx + ecx*2]
mov dword [ebp - 0x244], eax
mov edi, ebx
add ecx, 0xfffffff3
je 0x1c4ea54
cmp word [edi], 0x24
je 0x1c4ebb7
add edi, 2
dec ecx
jne 0x1c4eba6
jmp 0x1c4ea54
mov ecx, 0xffffffe6
test ecx, ecx
je 0x1c4edd6
movzx eax, word [edi + ecx + 0x1c]
lea edx, [ecx + 2]
cmp ax, word [ecx + 0x1cbeb20]
mov ecx, edx
je 0x1c4ebbc
add edi, 2
mov eax, dword [ebp - 0x244]
sub eax, edi
mov ecx, eax
sar ecx, 1
cmp eax, 0x1c
jge 0x1c4eb9d
jmp 0x1c4ea54
lea edx, [ebx + esi*2]
mov edi, ebx
add esi, 0xfffffff2
je 0x1c4ea78
cmp word [edi], 0x24
je 0x1c4ec0f
add edi, 2
dec esi
jne 0x1c4ebfe
jmp 0x1c4ea78
mov ecx, 0xffffffe4
test ecx, ecx
je 0x1c4ee99
movzx eax, word [edi + ecx + 0x1e]
lea esi, [ecx + 2]
cmp ax, word [ecx + 0x1cbeb40]
mov ecx, esi
je 0x1c4ec14
add edi, 2
mov eax, edx
sub eax, edi
mov esi, eax
sar esi, 1
cmp eax, 0x1e
jge 0x1c4ebf5
jmp 0x1c4ea78
cmp dword [ebp - 0x230], edi
je 0x1c4e99d
sub edi, eax
cmp edi, 0xfffffffe
mov cl, byte [ebp - 0x234]
mov edx, dword [ebp - 0x22c]
je 0x1c4e9a9
xor ecx, ecx
lea esi, [ebp - 0x224]
mov dword [esi], ecx
push esi
push ecx
mov ebx, dword [ebp - 0x23c]
call ebx
mov eax, dword [esi]
test eax, eax
je 0x1c4ed09
sar edi, 1
xor ecx, ecx
dec ecx
add eax, eax
cmovb eax, ecx
push eax
call fcn.01c8ff03
add esp, 4
mov ecx, esi
mov esi, eax
push ecx
push eax
call ebx
mov ebx, esi
xor eax, eax
dec eax
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x210], eax
lea esi, [ebp - 0x218]
mov ecx, esi
push ebx
call fcn.01c3bada
movzx eax, byte [ebp - 0x20d]
test al, al
jns 0x1c4ecdc
mov eax, dword [ebp - 0x214]
mov esi, dword [ebp - 0x218]
mov ecx, dword [ebp + 8]
push eax
push esi
push 0xc
push edi
call fcn.01c3fb00
cmp byte [ebp - 0x20d], 0
jns 0x1c4ed00
push dword [ebp - 0x218]
call fcn.01c8fed0
add esp, 4
push ebx
call fcn.01c8ff0c
add esp, 4
mov eax, dword [ebp + 8]
mov dl, byte [eax + 0xb]
mov ecx, dword [eax]
mov dword [ebp - 0x238], ecx
mov ecx, edx
mov edx, dword [eax + 4]
movzx esi, cl
jmp 0x1c4e9a9
cmp edx, ebx
je 0x1c4e9c9
sub ebx, dword [ebp - 0x238]
cmp ebx, 0xfffffffe
je 0x1c4e9c9
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 0x1c4edce
sar ebx, 1
xor ecx, ecx
dec ecx
add eax, eax
cmovb eax, ecx
push eax
call fcn.01c8ff03
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.01c3bada
movzx eax, byte [edi + 0xb]
test al, al
jns 0x1c4eda1
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.01c3fb00
cmp byte [ebp - 0x20d], 0
jns 0x1c4edc5
push dword [ebp - 0x218]
call fcn.01c8fed0
add esp, 4
push esi
call fcn.01c8ff0c
add esp, 4
mov edi, dword [ebp + 8]
jmp 0x1c4e9c9
cmp dword [ebp - 0x244], edi
je 0x1c4ea54
sub edi, ebx
cmp edi, 0xfffffffe
mov ebx, dword [ebp - 0x22c]
mov dl, byte [ebp - 0x230]
mov eax, dword [ebp - 0x23c]
je 0x1c4ea66
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 - 0x24c]
test eax, eax
je 0x1c4ee86
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.01c3bada
movzx eax, byte [esi + 0xb]
test al, al
jns 0x1c4ee56
mov eax, dword [ebp - 0x214]
mov esi, dword [ebp - 0x218]
mov ecx, dword [ebp + 8]
push eax
push esi
push 0xe
push edi
call fcn.01c3fb00
push dword [ebp - 0x224]
call dword [ebp - 0x248]
cmp byte [ebp - 0x20d], 0
jns 0x1c4ee86
push dword [ebp - 0x218]
call fcn.01c8fed0
add esp, 4
mov eax, dword [ebp + 8]
mov dl, byte [eax + 0xb]
mov ebx, dword [eax]
mov eax, dword [eax + 4]
movzx esi, dl
jmp 0x1c4ea66
cmp edx, edi
je 0x1c4ea78
sub edi, ebx
cmp edi, 0xfffffffe
je 0x1c4ea78
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 - 0x24c]
test eax, eax
je 0x1c4ea78
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.01c3bada
movzx eax, byte [esi + 0xb]
test al, al
jns 0x1c4ef07
mov eax, dword [ebp - 0x214]
mov esi, dword [ebp - 0x218]
mov ecx, dword [ebp + 8]
push eax
push esi
push 0xf
push edi
call fcn.01c3fb00
push dword [ebp - 0x224]
call dword [ebp - 0x248]
cmp byte [ebp - 0x20d], 0
jns 0x1c4ea78
push dword [ebp - 0x218]
call fcn.01c8fed0
add esp, 4
jmp 0x1c4ea78