Function at 0x1c55174
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 [0x1cf151c]
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 0x1c551b2
mov ecx, dword [eax + 8]
mov dword [ebx + 8], ecx
movsd xmm0, qword [eax]
movsd qword [ebx], xmm0
jmp 0x1c551be
mov ecx, ebx
push dword [eax + 4]
push dword [eax]
call fcn.01c453d6
movzx eax, byte [ebx + 0xb]
test al, al
js 0x1c551e9
test eax, eax
je 0x1c55896
cmp al, 1
je 0x1c5525e
movzx ecx, word [ebx]
cmp cx, 0x22
jne 0x1c5520d
cmp word [ebx + eax*2 - 2], 0x22
je 0x1c55230
jmp 0x1c5525e
mov edx, dword [ebx + 4]
test edx, edx
je 0x1c55896
cmp edx, 1
je 0x1c5525e
mov ecx, dword [ebx]
cmp word [ecx], 0x22
jne 0x1c55219
cmp word [ecx + edx*2 - 2], 0x22
je 0x1c5522c
test al, al
js 0x1c55219
cmp cx, 0x27
jne 0x1c5525e
mov ecx, ebx
mov edx, eax
jmp 0x1c55224
mov ecx, dword [ebx]
cmp word [ecx], 0x27
jne 0x1c5525e
mov edx, dword [ebx + 4]
cmp word [ecx + edx*2 - 2], 0x27
jne 0x1c5525e
test al, al
js 0x1c5523e
lea ecx, [eax - 1]
mov byte [ebx + 0xb], cl
lea eax, [ebx + eax*2]
add eax, 0xfffffffe
jmp 0x1c5524e
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.01c43592
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor ecx, ecx
dec ecx
mov dword [ebp - 0x234], ecx
test eax, eax
mov dword [ebp - 0x25c], eax
je 0x1c5528e
push 0x1cdafee
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x234], eax
xor edi, edi
mov eax, dword [edi*8 + 0x1cdb020]
mov dword [ebp - 0x22c], eax
push eax
call fcn.01cc3044
add esp, 4
mov esi, eax
movzx edx, byte [ebx + 0xb]
mov ecx, ebx
test dl, dl
jns 0x1c552b4
mov ecx, dword [ebx]
test esi, esi
mov dword [ebp - 0x23c], edi
je 0x1c55392
test dl, dl
jns 0x1c552c9
mov edx, dword [ebx + 4]
cmp edx, esi
jl 0x1c554a8
lea eax, [ecx + edx*2]
mov dword [ebp - 0x244], eax
mov eax, dword [ebp - 0x22c]
movzx eax, word [eax]
mov word [ebp - 0x230], ax
lea eax, [ecx + edx*2]
add eax, 0xfffffffe
mov dword [ebp - 0x24c], eax
mov eax, ecx
mov edi, edx
sub edi, esi
inc edi
je 0x1c554a8
inc edx
xor edi, edi
movzx ebx, word [ebp - 0x230]
cmp word [eax + edi], bx
je 0x1c55320
add edi, 2
dec edx
cmp esi, edx
jne 0x1c55306
jmp 0x1c554a8
mov edx, eax
add edx, edi
mov dword [ebp - 0x240], edx
je 0x1c554a8
mov dword [ebp - 0x248], ecx
xor ebx, ebx
inc ebx
mov dword [ebp - 0x250], eax
cmp esi, ebx
je 0x1c554c0
mov eax, dword [ebp - 0x240]
movzx edx, word [eax + ebx*2]
mov ecx, esi
lea esi, [ebx + 1]
mov eax, dword [ebp - 0x22c]
cmp dx, word [eax + ebx*2]
mov eax, dword [ebp - 0x250]
mov ebx, esi
mov esi, ecx
je 0x1c5533f
mov edx, dword [ebp - 0x24c]
sub edx, eax
add eax, edi
add eax, 2
sub edx, edi
sar edx, 1
mov esi, ecx
cmp edx, ecx
mov ecx, dword [ebp - 0x248]
jge 0x1c552f8
jmp 0x1c554a8
xor ebx, ebx
push dword [ebp - 0x22c]
call fcn.01cc3044
add esp, 4
mov dword [ebp - 0x230], eax
push 0x208
push 0xff
lea esi, [ebp - 0x218]
push esi
call fcn.01caf0d0
add esp, 0xc
mov edi, dword [edi*8 + 0x1cdb024]
mov ecx, dword [ebp - 0x234]
call dword [section..00cfg]
xor eax, eax
push eax
push edi
push esi
push eax
call ecx
test eax, eax
jne 0x1c553e9
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 esi
call fcn.01c2210a
mov al, byte [ebp - 0x219]
movzx ecx, al
test al, al
js 0x1c55423
je 0x1c5545f
lea edi, [ebp - 0x224]
mov edx, ecx
jmp 0x1c55433
mov edx, dword [ebp - 0x220]
test edx, edx
je 0x1c55461
mov edi, dword [ebp - 0x224]
mov esi, ebx
cmp word [edi + edx*2 - 2], 0x5c
mov ebx, dword [ebp + 8]
jne 0x1c55466
mov edi, ebx
movzx ebx, byte [ebx + 0xb]
test bl, bl
js 0x1c554ec
mov edx, dword [ebp - 0x230]
add edx, esi
cmp edx, ebx
jae 0x1c55463
jmp 0x1c55501
xor eax, eax
mov esi, ebx
mov ebx, dword [ebp + 8]
test al, al
movzx eax, 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 dword [ebp - 0x230]
push esi
call fcn.01c44ffc
cmp byte [ebp - 0x219], 0
jns 0x1c554a8
push dword [ebp - 0x224]
call fcn.01caae80
add esp, 4
mov edi, dword [ebp - 0x23c]
inc edi
cmp edi, 7
mov ebx, dword [ebp + 8]
jne 0x1c55290
jmp 0x1c55551
mov ecx, dword [ebp - 0x240]
cmp ecx, dword [ebp - 0x244]
mov ecx, dword [ebp - 0x248]
je 0x1c554a8
sub eax, ecx
add eax, edi
cmp eax, 0xfffffffe
je 0x1c554a8
sar eax, 1
mov ebx, eax
mov edi, dword [ebp - 0x23c]
jmp 0x1c55394
mov edx, dword [ebp - 0x230]
add edx, esi
cmp dword [edi + 4], edx
mov ebx, edi
jbe 0x1c55466
mov edi, dword [ebx]
cmp word [edi + edx*2], 0x5c
jne 0x1c55463
test al, al
js 0x1c55524
lea eax, [ecx - 1]
mov byte [ebp - 0x219], al
lea eax, [ecx*2 - 0x226]
add eax, ebp
jmp 0x1c5553e
mov eax, dword [ebp - 0x220]
lea ecx, [eax - 1]
mov dword [ebp - 0x220], ecx
add eax, eax
add eax, 0xfffffffe
add eax, dword [ebp - 0x224]
mov ebx, dword [ebp + 8]
mov word [eax], 0
mov al, byte [ebp - 0x219]
jmp 0x1c55466
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [ebp - 0x250], eax
je 0x1c55574
push 0x1cdb05a
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x1c55577
xor eax, eax
dec eax
mov dl, byte [ebx + 0xb]
test dl, dl
mov ecx, dword [ebx]
mov esi, dword [ebx + 4]
mov edi, ebx
mov dword [ebp - 0x22c], ecx
cmovs edi, ecx
movzx ecx, dl
mov dword [ebp - 0x240], ecx
cmovs ecx, esi
cmp ecx, 0xc
jge 0x1c555a8
mov ecx, dword [ebp - 0x22c]
jmp 0x1c55669
mov dword [ebp - 0x234], eax
mov eax, edx
lea edx, [edi + ecx*2]
mov dword [ebp - 0x244], edx
mov edx, eax
lea eax, [edi + ecx*2 - 2]
mov dword [ebp - 0x24c], eax
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x230], edi
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x248], edi
add ecx, 0xfffffff5
je 0x1c5559d
xor edi, edi
mov esi, dword [ebp - 0x230]
cmp word [esi + edi], 0x24
je 0x1c555f9
add edi, 2
dec ecx
jne 0x1c555ea
jmp 0x1c5565d
mov ecx, esi
add ecx, edi
je 0x1c5565d
mov byte [ebp - 0x234], dl
mov edx, 0xffffffea
test edx, edx
je 0x1c55930
movzx esi, word [ecx + edx + 0x18]
lea ebx, [edx + 2]
cmp si, word [edx + 0x1cdb09a]
mov esi, dword [ebp - 0x230]
mov edx, ebx
mov ebx, dword [ebp + 8]
je 0x1c5560a
mov edx, dword [ebp - 0x24c]
sub edx, esi
add esi, edi
add esi, 2
sub edx, edi
mov ecx, edx
sar ecx, 1
mov dword [ebp - 0x230], esi
cmp edx, 0x18
mov dl, byte [ebp - 0x234]
mov esi, dword [ebp - 0x23c]
jge 0x1c555dd
jmp 0x1c5559d
mov ecx, dword [ebp - 0x22c]
mov esi, dword [ebp - 0x23c]
test dl, dl
cmovns ecx, ebx
mov eax, dword [ebp - 0x240]
cmovs eax, esi
cmp eax, 0xf
jge 0x1c5571c
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 0x1c556a6
push 0x1cdb0be
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x24c], eax
mov dword [ebp - 0x240], esi
push str.wtsapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test eax, eax
mov ebx, dword [ebp + 8]
je 0x1c556d8
push 0x1cdb0f6
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x244], eax
mov dl, byte [ebx + 0xb]
test dl, dl
mov eax, dword [ebx]
mov edi, dword [ebx + 4]
mov dword [ebp - 0x22c], eax
cmovs ebx, eax
movzx eax, dl
mov ecx, eax
mov dword [ebp - 0x234], edi
cmovs ecx, edi
cmp ecx, 0xe
mov dword [ebp - 0x23c], esi
jge 0x1c557a3
mov ecx, dword [ebp - 0x22c]
mov esi, dword [ebp - 0x234]
mov ebx, dword [ebp + 8]
jmp 0x1c55842
lea edx, [ecx + eax*2]
mov dword [ebp - 0x230], edx
lea edx, [ecx + eax*2]
add edx, 0xfffffffe
mov dword [ebp - 0x240], edx
mov ebx, ecx
add eax, 0xfffffff2
je 0x1c55680
xor edi, edi
cmp word [ebx + edi], 0x24
je 0x1c55750
add edi, 2
dec eax
jne 0x1c5573e
jmp 0x1c55680
mov eax, ebx
add eax, edi
je 0x1c55680
mov dword [ebp - 0x22c], ecx
mov ecx, 0xffffffe4
test ecx, ecx
je 0x1c55a31
movzx edx, word [eax + ecx + 0x1e]
lea esi, [ecx + 2]
cmp dx, word [ecx + 0x1cdb0ba]
mov ecx, esi
je 0x1c55765
mov ecx, dword [ebp - 0x240]
sub ecx, ebx
add ebx, edi
add ebx, 2
sub ecx, edi
mov eax, ecx
sar eax, 1
cmp ecx, 0x1e
mov ecx, dword [ebp - 0x22c]
jge 0x1c55733
jmp 0x1c55680
lea edi, [ebx + ecx*2]
mov dword [ebp - 0x248], edi
lea edi, [ebx + ecx*2]
add edi, 0xfffffffe
mov dword [ebp - 0x258], edi
mov dword [ebp - 0x254], ebx
mov edi, ebx
mov ebx, dword [ebp + 8]
add ecx, 0xfffffff3
je 0x1c55836
xor esi, esi
cmp word [edi + esi], 0x24
je 0x1c557d9
add esi, 2
dec ecx
jne 0x1c557ca
jmp 0x1c55836
mov ecx, edi
add ecx, esi
mov dword [ebp - 0x230], ecx
je 0x1c55836
mov byte [ebp - 0x235], dl
mov edx, 0xffffffe6
test edx, edx
je 0x1c55af4
mov ecx, dword [ebp - 0x230]
movzx ebx, word [ecx + edx + 0x1c]
mov ecx, edi
lea edi, [edx + 2]
cmp bx, word [edx + 0x1cdb120]
mov ebx, dword [ebp + 8]
mov edx, edi
mov edi, ecx
je 0x1c557f0
mov edx, dword [ebp - 0x258]
sub edx, edi
add edi, esi
add edi, 2
sub edx, esi
mov ecx, edx
sar ecx, 1
cmp edx, 0x1c
mov dl, byte [ebp - 0x235]
jge 0x1c557c3
mov ecx, dword [ebp - 0x22c]
mov esi, dword [ebp - 0x234]
test dl, dl
cmovns ecx, ebx
cmovs eax, esi
cmp eax, 0xf
jge 0x1c558ad
mov eax, dword [ebp - 0x23c]
test eax, eax
je 0x1c55860
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x240]
test eax, eax
je 0x1c55871
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x250]
test eax, eax
mov ebx, dword [ebp + 8]
je 0x1c55885
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x25c]
test eax, eax
je 0x1c55896
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01caaec1
mov eax, ebx
add esp, 0x250
pop esi
pop edi
pop ebx
pop ebp
ret
lea edx, [ecx + eax*2]
mov dword [ebp - 0x230], edx
lea edx, [ecx + eax*2]
add edx, 0xfffffffe
mov dword [ebp - 0x234], edx
mov esi, ecx
add eax, 0xfffffff2
je 0x1c5584f
xor ebx, ebx
cmp word [esi + ebx], 0x24
je 0x1c558dd
add ebx, 2
dec eax
jne 0x1c558cb
jmp 0x1c5584f
mov eax, esi
add eax, ebx
je 0x1c5584f
mov dword [ebp - 0x22c], ecx
mov ecx, 0xffffffe4
test ecx, ecx
je 0x1c55bdf
movzx edx, word [eax + ecx + 0x1e]
lea edi, [ecx + 2]
cmp dx, word [ecx + 0x1cdb140]
mov ecx, edi
je 0x1c558f2
mov ecx, dword [ebp - 0x234]
sub ecx, esi
add esi, ebx
add esi, 2
sub ecx, ebx
mov eax, ecx
sar eax, 1
cmp ecx, 0x1e
mov ecx, dword [ebp - 0x22c]
jge 0x1c558c4
jmp 0x1c5584f
cmp ecx, dword [ebp - 0x244]
je 0x1c55ca9
sub esi, dword [ebp - 0x248]
add esi, edi
mov dword [ebp - 0x230], esi
cmp esi, 0xfffffffe
mov ecx, dword [ebp - 0x22c]
mov dl, byte [ebp - 0x234]
mov esi, dword [ebp - 0x23c]
je 0x1c55669
xor edi, edi
lea esi, [ebp - 0x224]
mov dword [esi], edi
mov ecx, eax
call dword [section..00cfg]
push esi
push edi
mov edi, ecx
call ecx
mov eax, dword [esi]
test eax, eax
je 0x1c55a1b
sar dword [ebp - 0x230], 1
xor ecx, ecx
dec ecx
add eax, eax
cmovb eax, ecx
push eax
call fcn.01caaeb3
add esp, 4
mov ecx, edi
mov edi, eax
call dword [section..00cfg]
push esi
push edi
call ecx
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 edi
call fcn.01c2210a
movzx eax, byte [ebp - 0x20d]
test al, al
jns 0x1c559e6
mov eax, dword [ebp - 0x214]
mov esi, dword [ebp - 0x218]
mov ecx, ebx
push eax
push esi
push 0xc
push dword [ebp - 0x230]
call fcn.01c44ffc
cmp byte [ebp - 0x20d], 0
jns 0x1c55a0e
push dword [ebp - 0x218]
call fcn.01caae80
add esp, 4
test edi, edi
je 0x1c55a1b
push edi
call fcn.01caaebc
add esp, 4
mov dl, byte [ebx + 0xb]
mov ecx, dword [ebx]
mov esi, dword [ebx + 4]
movzx eax, dl
mov dword [ebp - 0x240], eax
jmp 0x1c55669
cmp eax, dword [ebp - 0x230]
mov eax, dword [ebp - 0x22c]
je 0x1c55680
sub ebx, eax
add ebx, edi
cmp ebx, 0xfffffffe
je 0x1c55680
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 0x1c55680
sar ebx, 1
xor ecx, ecx
dec ecx
add eax, eax
cmovb eax, ecx
push eax
call fcn.01caaeb3
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.01c2210a
movzx eax, byte [edi + 0xb]
test al, al
jns 0x1c55aba
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.01c44ffc
cmp byte [ebp - 0x20d], 0
jns 0x1c55ade
push dword [ebp - 0x218]
call fcn.01caae80
add esp, 4
test esi, esi
je 0x1c55680
push esi
call fcn.01caaebc
add esp, 4
jmp 0x1c55680
mov ecx, dword [ebp - 0x230]
cmp ecx, dword [ebp - 0x248]
je 0x1c55cba
sub edi, dword [ebp - 0x254]
add edi, esi
cmp edi, 0xfffffffe
mov ecx, dword [ebp - 0x22c]
mov dl, byte [ebp - 0x235]
mov esi, dword [ebp - 0x234]
je 0x1c55842
mov dword [ebp - 0x230], edi
xor esi, esi
lea edi, [ebp - 0x224]
mov dword [edi], esi
lea ebx, [ebp - 0x228]
mov dword [ebx], esi
mov ecx, dword [ebp - 0x24c]
call dword [section..00cfg]
push ebx
mov ebx, dword [ebp + 8]
push edi
push 0xa
push 0xffffffffffffffff
push esi
call ecx
test eax, eax
je 0x1c55bcf
mov edi, dword [ebp - 0x230]
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.01c2210a
movzx eax, byte [esi + 0xb]
test al, al
jns 0x1c55b97
mov eax, dword [ebp - 0x214]
mov esi, dword [ebp - 0x218]
mov ecx, ebx
push eax
push esi
push 0xe
push edi
call fcn.01c44ffc
mov esi, dword [ebp - 0x224]
mov ecx, dword [ebp - 0x244]
call dword [section..00cfg]
push esi
call ecx
cmp byte [ebp - 0x20d], 0
jns 0x1c55bcf
push dword [ebp - 0x218]
call fcn.01caae80
add esp, 4
mov dl, byte [ebx + 0xb]
mov ecx, dword [ebx]
mov esi, dword [ebx + 4]
movzx eax, dl
jmp 0x1c55842
cmp eax, dword [ebp - 0x230]
mov eax, dword [ebp - 0x22c]
je 0x1c5584f
sub esi, eax
add esi, ebx
cmp esi, 0xfffffffe
je 0x1c5584f
xor edi, edi
lea eax, [ebp - 0x224]
mov dword [eax], edi
lea ebx, [ebp - 0x228]
mov dword [ebx], edi
mov ecx, dword [ebp - 0x24c]
call dword [section..00cfg]
push ebx
lea eax, [ebp - 0x224]
push eax
push 6
push 0xffffffffffffffff
push edi
call ecx
test eax, eax
je 0x1c5584f
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.01c2210a
movzx eax, byte [edi + 0xb]
test al, al
jns 0x1c55c67
mov eax, dword [ebp - 0x214]
mov edi, dword [ebp - 0x218]
mov ecx, dword [ebp + 8]
push eax
push edi
push 0xf
push esi
call fcn.01c44ffc
mov esi, dword [ebp - 0x224]
mov ecx, dword [ebp - 0x244]
call dword [section..00cfg]
push esi
call ecx
cmp byte [ebp - 0x20d], 0
jns 0x1c5584f
push dword [ebp - 0x218]
call fcn.01caae80
add esp, 4
jmp 0x1c5584f
mov ecx, dword [ebp - 0x22c]
mov dl, byte [ebp - 0x234]
jmp 0x1c55663
mov ecx, dword [ebp - 0x22c]
mov dl, byte [ebp - 0x235]
jmp 0x1c5583c