Function at 0x1c4ac5c
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24c
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x1d01324]
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
cmp byte [eax + 0xb], 0
js 0x1c4ac9a
mov ecx, dword [eax + 8]
mov dword [ebx + 8], ecx
movsd xmm0, qword [eax]
movsd qword [ebx], xmm0
jmp 0x1c4aca6
mov ecx, ebx
push dword [eax + 4]
push dword [eax]
call fcn.01c40a78
movzx eax, byte [ebx + 0xb]
test al, al
js 0x1c4acd1
test al, al
je 0x1c4b5fb
cmp al, 1
je 0x1c4ad46
movzx ecx, word [ebx]
cmp cx, 0x22
jne 0x1c4acf5
cmp word [ebx + eax*2 - 2], 0x22
je 0x1c4ad18
jmp 0x1c4ad46
mov edx, dword [ebx + 4]
test edx, edx
je 0x1c4b5fb
cmp edx, 1
je 0x1c4ad46
mov ecx, dword [ebx]
cmp word [ecx], 0x22
jne 0x1c4ad01
cmp word [ecx + edx*2 - 2], 0x22
je 0x1c4ad14
test al, al
js 0x1c4ad01
cmp cx, 0x27
jne 0x1c4ad46
mov ecx, ebx
mov edx, eax
jmp 0x1c4ad0c
mov ecx, dword [ebx]
cmp word [ecx], 0x27
jne 0x1c4ad46
mov edx, dword [ebx + 4]
cmp word [ecx + edx*2 - 2], 0x27
jne 0x1c4ad46
test al, al
js 0x1c4ad26
lea ecx, [eax - 1]
mov byte [ebx + 0xb], cl
lea eax, [ebx + eax*2]
add eax, 0xfffffffe
jmp 0x1c4ad36
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.01c3e92a
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor ecx, ecx
dec ecx
mov dword [ebp - 0x238], ecx
test eax, eax
mov dword [ebp - 0x258], eax
je 0x1c4ad76
push 0x1ce5c3e
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x238], eax
xor eax, eax
mov dword [ebp - 0x234], eax
mov eax, dword [eax*8 + 0x1ce5c70]
mov dword [ebp - 0x22c], eax
push eax
call fcn.01ccde34
add esp, 4
mov esi, eax
movzx ecx, byte [ebx + 0xb]
mov eax, ebx
test cl, cl
jns 0x1c4ada2
mov eax, dword [ebx]
test esi, esi
je 0x1c4ae87
test cl, cl
jns 0x1c4adb1
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x230], ecx
cmp ecx, esi
jl 0x1c4b021
mov dword [ebp - 0x244], eax
mov eax, dword [ebp - 0x22c]
movzx eax, word [eax]
mov ecx, dword [ebp - 0x244]
mov edx, dword [ebp - 0x230]
lea edi, [ecx + edx*2]
add edi, 0xfffffffe
mov dword [ebp - 0x240], edi
lea edi, [esi - 1]
mov dword [ebp - 0x24c], edi
mov edi, edx
sub edi, esi
inc edi
je 0x1c4b021
mov edi, dword [ebp - 0x24c]
sub edi, edx
xor ebx, ebx
cmp word [ecx + ebx], ax
je 0x1c4ae15
add ebx, 2
inc edi
jne 0x1c4ae04
jmp 0x1c4b021
mov edx, ecx
add edx, ebx
mov dword [ebp - 0x248], edx
je 0x1c4b021
mov word [ebp - 0x250], ax
xor edi, edi
inc edi
mov dword [ebp - 0x23c], esi
cmp esi, edi
je 0x1c4af58
mov eax, dword [ebp - 0x248]
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 - 0x23c]
mov edi, ecx
mov ecx, eax
je 0x1c4ae35
mov edx, dword [ebp - 0x240]
sub edx, ecx
add ecx, ebx
add ecx, 2
sub edx, ebx
sar edx, 1
cmp edx, esi
movzx eax, word [ebp - 0x250]
jge 0x1c4adef
jmp 0x1c4b021
mov dword [ebp - 0x248], 0
push dword [ebp - 0x22c]
call fcn.01ccde34
add esp, 4
mov esi, eax
push 0x208
push 0xff
lea edi, [ebp - 0x218]
push edi
call fcn.01cb76e0
add esp, 0xc
xor eax, eax
push eax
mov ecx, dword [ebp - 0x234]
push dword [ecx*8 + 0x1ce5c74]
push edi
push eax
call dword [ebp - 0x238]
test eax, eax
jne 0x1c4aedf
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.01c3ceea
movzx eax, byte [ebp - 0x219]
test al, al
js 0x1c4af1d
test al, al
je 0x1c4afdb
lea edx, [ebp - 0x224]
mov ecx, eax
jmp 0x1c4af31
mov ecx, dword [ebp - 0x220]
test ecx, ecx
je 0x1c4afdb
mov edx, dword [ebp - 0x224]
cmp word [edx + ecx*2 - 2], 0x5c
jne 0x1c4afdb
movzx edx, byte [ebx + 0xb]
test dl, dl
js 0x1c4af90
mov ecx, dword [ebp - 0x248]
add ecx, esi
mov edi, ebx
cmp ecx, edx
jb 0x1c4af9f
jmp 0x1c4afdb
mov edx, dword [ebp - 0x244]
mov eax, dword [ebp - 0x230]
lea eax, [edx + eax*2]
sub eax, ecx
cmp eax, ebx
je 0x1c4b021
mov eax, edx
sub ecx, edx
add ecx, ebx
cmp ecx, 0xfffffffe
je 0x1c4b021
sar ecx, 1
mov dword [ebp - 0x248], ecx
mov ebx, dword [ebp + 8]
jmp 0x1c4ae91
mov ecx, dword [ebp - 0x248]
add ecx, esi
cmp dword [ebx + 4], ecx
jbe 0x1c4afdb
mov edi, dword [ebx]
cmp word [edi + ecx*2], 0x5c
jne 0x1c4afdb
test al, al
js 0x1c4afbf
lea ecx, [eax - 1]
mov byte [ebp - 0x219], cl
mov word [ebp + eax*2 - 0x226], 0
jmp 0x1c4afdb
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 - 0x248]
call fcn.01c406a0
cmp byte [ebp - 0x219], 0
jns 0x1c4b021
push dword [ebp - 0x224]
call fcn.01cb3106
add esp, 4
mov eax, dword [ebp - 0x234]
inc eax
cmp eax, 7
mov ebx, dword [ebp + 8]
jne 0x1c4ad78
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [ebp - 0x248], eax
je 0x1c4b057
push 0x1ce5caa
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x1c4b05a
xor eax, eax
dec eax
mov dword [ebp - 0x230], eax
mov cl, byte [ebx + 0xb]
test cl, cl
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
mov edi, ebx
mov dword [ebp - 0x23c], eax
cmovs edi, eax
mov eax, ecx
movzx ecx, cl
mov esi, ecx
mov dword [ebp - 0x22c], edx
cmovs esi, edx
cmp esi, 0xc
jge 0x1c4b097
mov esi, dword [ebp - 0x23c]
mov edx, eax
jmp 0x1c4b125
mov dword [ebp - 0x234], ecx
lea ecx, [edi + esi*2]
add ecx, 0xfffffffe
mov dword [ebp - 0x24c], ecx
mov ecx, esi
mov dword [ebp - 0x244], edi
mov edx, eax
add ecx, 0xfffffff5
je 0x1c4b119
xor eax, eax
cmp word [edi + eax], 0x24
je 0x1c4b0c9
add eax, 2
dec ecx
jne 0x1c4b0ba
jmp 0x1c4b119
mov ecx, edi
add ecx, eax
je 0x1c4b119
mov byte [ebp - 0x238], dl
mov edx, 0xffffffea
test edx, edx
je 0x1c4b2f7
movzx ebx, word [ecx + edx + 0x18]
cmp bx, word [edx + 0x1ce5cea]
jne 0x1c4b0f8
add edx, 2
mov ebx, dword [ebp + 8]
jmp 0x1c4b0da
mov edx, dword [ebp - 0x24c]
sub edx, edi
add edi, eax
add edi, 2
sub edx, eax
mov ecx, edx
sar ecx, 1
cmp edx, 0x18
mov ebx, dword [ebp + 8]
mov dl, byte [ebp - 0x238]
jge 0x1c4b0b3
mov esi, dword [ebp - 0x23c]
mov ecx, dword [ebp - 0x234]
test dl, dl
cmovns esi, ebx
cmovs ecx, dword [ebp - 0x22c]
cmp ecx, 0xf
jge 0x1c4b1d5
push str.wtsapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
xor eax, eax
dec eax
mov dword [ebp - 0x244], eax
test esi, esi
je 0x1c4b160
push 0x1ce5d0e
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x24c], eax
push str.wtsapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test eax, eax
mov ebx, dword [ebp + 8]
je 0x1c4b18c
push 0x1ce5d46
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x234], edi
mov dword [ebp - 0x23c], esi
mov cl, byte [ebx + 0xb]
test cl, cl
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
mov edi, ebx
mov dword [ebp - 0x22c], eax
cmovs edi, eax
movzx esi, cl
mov eax, esi
mov dword [ebp - 0x230], edx
cmovs eax, edx
cmp eax, 0xe
jge 0x1c4b25b
mov eax, dword [ebp - 0x230]
mov edx, dword [ebp - 0x22c]
jmp 0x1c4b5a4
lea edi, [esi + ecx*2]
add edi, 0xfffffffe
mov eax, ecx
mov ebx, esi
add eax, 0xfffffff2
je 0x1c4b13a
xor edx, edx
cmp word [ebx + edx], 0x24
je 0x1c4b1fc
add edx, 2
dec eax
jne 0x1c4b1ea
jmp 0x1c4b13a
mov eax, ebx
add eax, edx
je 0x1c4b13a
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x234], ecx
mov ecx, esi
mov esi, 0xffffffe4
test esi, esi
je 0x1c4b3e6
movzx edi, word [eax + esi + 0x1e]
cmp di, word [esi + 0x1ce5d0a]
jne 0x1c4b234
add esi, 2
jmp 0x1c4b219
mov edi, dword [ebp - 0x22c]
mov esi, edi
sub esi, ebx
add ebx, edx
add ebx, 2
sub esi, edx
mov eax, esi
sar eax, 1
cmp esi, 0x1e
mov esi, ecx
mov ecx, dword [ebp - 0x234]
jge 0x1c4b1df
jmp 0x1c4b13a
mov byte [ebp - 0x240], cl
lea ecx, [edi + eax*2]
add ecx, 0xfffffffe
mov dword [ebp - 0x254], ecx
mov ecx, eax
mov dword [ebp - 0x250], edi
mov edx, dword [ebp - 0x22c]
mov dword [ebp - 0x238], esi
add ecx, 0xfffffff3
je 0x1c4b598
xor esi, esi
cmp word [edi + esi], 0x24
je 0x1c4b29e
add esi, 2
dec ecx
jne 0x1c4b28c
jmp 0x1c4b592
mov ecx, edi
add ecx, esi
je 0x1c4b592
mov edx, 0xffffffe6
test edx, edx
je 0x1c4b4aa
movzx ebx, word [ecx + edx + 0x1c]
cmp bx, word [edx + 0x1ce5d70]
jne 0x1c4b2cb
add edx, 2
mov ebx, dword [ebp + 8]
jmp 0x1c4b2ad
mov edx, dword [ebp - 0x254]
sub edx, edi
add edi, esi
add edi, 2
sub edx, esi
mov ecx, edx
sar ecx, 1
cmp edx, 0x1c
mov ebx, dword [ebp + 8]
mov edx, dword [ebp - 0x22c]
mov esi, dword [ebp - 0x238]
jge 0x1c4b281
jmp 0x1c4b598
mov edx, dword [ebp - 0x244]
lea ecx, [edx + esi*2]
sub ecx, edi
cmp ecx, eax
je 0x1c4b575
sub edi, edx
add edi, eax
cmp edi, 0xfffffffe
mov esi, dword [ebp - 0x23c]
mov ecx, dword [ebp - 0x234]
mov dl, byte [ebp - 0x238]
je 0x1c4b125
xor eax, eax
lea ebx, [ebp - 0x224]
mov dword [ebx], eax
push ebx
push eax
mov esi, dword [ebp - 0x230]
call esi
mov eax, dword [ebx]
test eax, eax
je 0x1c4b3cd
sar edi, 1
xor ecx, ecx
dec ecx
add eax, eax
cmovb eax, ecx
push eax
call fcn.01cb3133
add esp, 4
mov ecx, esi
mov esi, eax
push ebx
push eax
call ecx
xor eax, eax
dec eax
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x210], eax
lea ebx, [ebp - 0x218]
mov ecx, ebx
push esi
call fcn.01c3ceea
movzx eax, byte [ebp - 0x20d]
test al, al
jns 0x1c4b39c
mov eax, dword [ebp - 0x214]
mov ebx, dword [ebp - 0x218]
mov ecx, dword [ebp + 8]
push eax
push ebx
push 0xc
push edi
call fcn.01c406a0
cmp byte [ebp - 0x20d], 0
jns 0x1c4b3c0
push dword [ebp - 0x218]
call fcn.01cb3106
add esp, 4
test esi, esi
je 0x1c4b3cd
push esi
call fcn.01cb313c
add esp, 4
mov ebx, dword [ebp + 8]
mov dl, byte [ebx + 0xb]
mov esi, dword [ebx]
mov eax, dword [ebx + 4]
mov dword [ebp - 0x22c], eax
movzx ecx, dl
jmp 0x1c4b125
mov eax, dword [ebp - 0x234]
lea eax, [ecx + eax*2]
sub eax, ebx
cmp eax, edx
je 0x1c4b13a
sub ebx, ecx
add ebx, edx
cmp ebx, 0xfffffffe
je 0x1c4b13a
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 0x1c4b13a
sar ebx, 1
xor ecx, ecx
dec ecx
add eax, eax
cmovb eax, ecx
push eax
call fcn.01cb3133
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.01c3ceea
movzx eax, byte [edi + 0xb]
test al, al
jns 0x1c4b470
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.01c406a0
cmp byte [ebp - 0x20d], 0
jns 0x1c4b494
push dword [ebp - 0x218]
call fcn.01cb3106
add esp, 4
test esi, esi
je 0x1c4b13a
push esi
call fcn.01cb313c
add esp, 4
jmp 0x1c4b13a
mov ecx, dword [ebp - 0x250]
lea eax, [ecx + eax*2]
sub eax, edi
cmp eax, esi
je 0x1c4b58c
sub edi, ecx
add edi, esi
cmp edi, 0xfffffffe
mov edx, dword [ebp - 0x22c]
mov esi, dword [ebp - 0x238]
mov cl, byte [ebp - 0x240]
mov eax, dword [ebp - 0x230]
je 0x1c4b5a4
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 0x1c4b568
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.01c3ceea
movzx eax, byte [esi + 0xb]
test al, al
jns 0x1c4b539
mov eax, dword [ebp - 0x214]
mov esi, dword [ebp - 0x218]
mov ecx, ebx
push eax
push esi
push 0xe
push edi
call fcn.01c406a0
push dword [ebp - 0x224]
call dword [ebp - 0x244]
cmp byte [ebp - 0x20d], 0
jns 0x1c4b568
push dword [ebp - 0x218]
call fcn.01cb3106
add esp, 4
mov cl, byte [ebx + 0xb]
mov edx, dword [ebx]
mov eax, dword [ebx + 4]
movzx esi, cl
jmp 0x1c4b5a4
mov esi, dword [ebp - 0x23c]
mov ecx, dword [ebp - 0x234]
mov dl, byte [ebp - 0x238]
jmp 0x1c4b125
mov edx, dword [ebp - 0x22c]
mov esi, dword [ebp - 0x238]
mov cl, byte [ebp - 0x240]
mov eax, dword [ebp - 0x230]
test cl, cl
cmovns edx, ebx
mov dword [ebp - 0x22c], edx
cmovs esi, eax
cmp esi, 0xf
jge 0x1c4b612
mov eax, dword [ebp - 0x234]
test eax, eax
je 0x1c4b5c8
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x23c]
test eax, eax
je 0x1c4b5d9
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x248]
test eax, eax
je 0x1c4b5ea
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x258]
test eax, eax
je 0x1c4b5fb
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01cb3141
mov eax, ebx
add esp, 0x24c
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, esi
mov esi, dword [ebp - 0x22c]
mov edi, ecx
lea eax, [esi + ecx*2]
add eax, 0xfffffffe
mov dword [ebp - 0x230], eax
add edi, 0xfffffff2
je 0x1c4b5b7
xor edx, edx
cmp word [esi + edx], 0x24
je 0x1c4b641
add edx, 2
dec edi
jne 0x1c4b62f
jmp 0x1c4b5b7
mov eax, esi
add eax, edx
je 0x1c4b5b7
mov edi, 0xffffffe4
test edi, edi
je 0x1c4b68a
movzx ebx, word [eax + edi + 0x1e]
cmp bx, word [edi + 0x1ce5d90]
jne 0x1c4b66a
add edi, 2
mov ebx, dword [ebp + 8]
jmp 0x1c4b650
mov eax, dword [ebp - 0x230]
sub eax, esi
add esi, edx
add esi, 2
sub eax, edx
mov edi, eax
sar edi, 1
cmp eax, 0x1e
mov ebx, dword [ebp + 8]
jge 0x1c4b628
jmp 0x1c4b5b7
mov eax, dword [ebp - 0x22c]
lea eax, [eax + ecx*2]
sub eax, esi
cmp eax, edx
je 0x1c4b5b7
sub esi, dword [ebp - 0x22c]
add esi, edx
cmp esi, 0xfffffffe
je 0x1c4b5b7
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 0x1c4b5b7
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.01c3ceea
movzx eax, byte [edi + 0xb]
test al, al
jns 0x1c4b709
mov eax, dword [ebp - 0x214]
mov edi, dword [ebp - 0x218]
mov ecx, ebx
push eax
push edi
push 0xf
push esi
call fcn.01c406a0
push dword [ebp - 0x224]
call dword [ebp - 0x244]
cmp byte [ebp - 0x20d], 0
jns 0x1c4b5b7
push dword [ebp - 0x218]
call fcn.01cb3106
add esp, 4
jmp 0x1c4b5b7