Function at 0x1c438b8
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 [0x1cea148]
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.01c3e54e
movzx eax, byte [ebx + 0xb]
test al, al
js 0x1c43917
test al, al
je 0x1c44264
cmp al, 1
je 0x1c4398c
movzx ecx, word [ebx]
cmp cx, 0x22
jne 0x1c4393b
mov cx, 0x22
cmp word [ebx + eax*2 - 2], 0x22
jne 0x1c4393b
jmp 0x1c4395e
mov edx, dword [ebx + 4]
test edx, edx
je 0x1c44264
cmp edx, 1
je 0x1c4398c
mov ecx, dword [ebx]
cmp word [ecx], 0x22
jne 0x1c43947
cmp word [ecx + edx*2 - 2], 0x22
je 0x1c4395a
test al, al
js 0x1c43947
cmp cx, 0x27
jne 0x1c4398c
mov ecx, ebx
mov edx, eax
jmp 0x1c43952
mov ecx, dword [ebx]
cmp word [ecx], 0x27
jne 0x1c4398c
mov edx, dword [ebx + 4]
cmp word [ecx + edx*2 - 2], 0x27
jne 0x1c4398c
test al, al
js 0x1c4396c
lea ecx, [eax - 1]
mov byte [ebx + 0xb], cl
lea eax, [ebx + eax*2]
add eax, 0xfffffffe
jmp 0x1c4397c
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.01c3ee9a
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 - 0x25c], eax
je 0x1c439bc
push 0x1cba286
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [ebp - 0x238], eax
xor esi, esi
mov eax, dword [esi*8 + 0x1cba2b8]
mov dword [ebp - 0x230], eax
push eax
call fcn.01ca5bec
add esp, 4
movzx edx, byte [ebx + 0xb]
mov ecx, ebx
test dl, dl
jns 0x1c439e0
mov ecx, dword [ebx]
test eax, eax
mov dword [ebp - 0x23c], esi
je 0x1c43ad0
mov dword [ebp - 0x240], ecx
test dl, dl
jns 0x1c439fb
mov edx, dword [ebx + 4]
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x250], edx
cmp edx, eax
jl 0x1c43c6c
mov eax, dword [ebp - 0x230]
movzx esi, word [eax]
mov ecx, dword [ebp - 0x240]
mov edx, dword [ebp - 0x250]
lea eax, [ecx + edx*2]
add eax, 0xfffffffe
mov dword [ebp - 0x24c], eax
mov eax, dword [ebp - 0x22c]
dec eax
mov edi, edx
sub edi, dword [ebp - 0x22c]
inc edi
je 0x1c43c6c
mov edi, eax
sub edi, edx
xor ebx, ebx
cmp word [ecx + ebx], si
je 0x1c43a5d
add ebx, 2
inc edi
jne 0x1c43a4c
jmp 0x1c43c6c
mov dword [ebp - 0x244], eax
mov word [ebp - 0x248], si
lea eax, [ecx + ebx]
mov dword [ebp - 0x234], eax
xor edi, edi
inc edi
cmp dword [ebp - 0x22c], edi
je 0x1c43ba1
mov eax, dword [ebp - 0x234]
movzx esi, word [eax + edi*2]
mov eax, ecx
lea ecx, [edi + 1]
mov edx, dword [ebp - 0x230]
cmp si, word [edx + edi*2]
mov edi, ecx
mov ecx, eax
je 0x1c43a76
mov edx, dword [ebp - 0x24c]
sub edx, ecx
add ecx, ebx
add ecx, 2
sub edx, ebx
sar edx, 1
cmp edx, dword [ebp - 0x22c]
movzx esi, word [ebp - 0x248]
mov eax, dword [ebp - 0x244]
jge 0x1c43a37
jmp 0x1c43c6c
mov dword [ebp - 0x22c], 0
push dword [ebp - 0x230]
call fcn.01ca5bec
add esp, 4
mov esi, eax
push 0x208
push 0xff
lea edi, [ebp - 0x218]
push edi
call fcn.01c8cb90
add esp, 0xc
xor eax, eax
push eax
mov ecx, dword [ebp - 0x23c]
push dword [ecx*8 + 0x1cba2bc]
push edi
push eax
call dword [ebp - 0x238]
test eax, eax
jne 0x1c43b28
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.01c3af3a
movzx eax, byte [ebp - 0x219]
test al, al
js 0x1c43b66
test al, al
je 0x1c43c26
mov ecx, eax
lea edx, [ebp - 0x224]
jmp 0x1c43b7a
mov ecx, dword [ebp - 0x220]
test ecx, ecx
je 0x1c43c26
mov edx, dword [ebp - 0x224]
cmp word [edx + ecx*2 - 2], 0x5c
jne 0x1c43c26
movzx edx, byte [ebx + 0xb]
test dl, dl
js 0x1c43bdb
mov ecx, dword [ebp - 0x22c]
add ecx, esi
mov edi, ebx
cmp ecx, edx
jb 0x1c43bea
jmp 0x1c43c26
mov eax, dword [ebp - 0x240]
mov edx, dword [ebp - 0x250]
lea eax, [eax + edx*2]
sub eax, ecx
cmp eax, ebx
je 0x1c43c6c
sub ecx, dword [ebp - 0x240]
add ecx, ebx
cmp ecx, 0xfffffffe
je 0x1c43c6c
sar ecx, 1
mov dword [ebp - 0x22c], ecx
mov ebx, dword [ebp + 8]
jmp 0x1c43ada
mov ecx, dword [ebp - 0x22c]
add ecx, esi
cmp dword [ebx + 4], ecx
jbe 0x1c43c26
mov edi, dword [ebx]
cmp word [edi + ecx*2], 0x5c
jne 0x1c43c26
test al, al
js 0x1c43c0a
lea ecx, [eax - 1]
mov byte [ebp - 0x219], cl
mov word [ebp + eax*2 - 0x226], 0
jmp 0x1c43c26
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 - 0x22c]
call fcn.01c3ef20
cmp byte [ebp - 0x219], 0
jns 0x1c43c6c
push dword [ebp - 0x224]
call fcn.01c8b528
add esp, 4
mov esi, dword [ebp - 0x23c]
inc esi
cmp esi, 7
mov ebx, dword [ebp + 8]
jne 0x1c439be
push str.advapi32.dll
call dword [sym.imp.kernel32.dll_LoadLibraryW]
test eax, eax
mov dword [ebp - 0x250], eax
je 0x1c43ca4
push 0x1cba2f2
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov edi, eax
jmp 0x1c43ca7
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 - 0x240], esi
cmovs eax, esi
cmp eax, 0xc
jl 0x1c43d78
mov esi, eax
mov byte [ebp - 0x238], cl
lea eax, [ebx + eax*2]
add eax, 0xfffffffe
mov dword [ebp - 0x248], eax
mov ecx, esi
mov dword [ebp - 0x24c], ebx
mov dword [ebp - 0x23c], edx
add ecx, 0xfffffff5
je 0x1c43d72
xor eax, eax
cmp word [ebx + eax], 0x24
je 0x1c43d09
add eax, 2
dec ecx
jne 0x1c43cfa
jmp 0x1c43d6c
lea ecx, [ebx + eax]
mov dword [ebp - 0x22c], ecx
mov edx, 0xffffffea
mov dword [ebp - 0x230], ebx
test edx, edx
je 0x1c43f4c
mov ecx, esi
mov esi, dword [ebp - 0x22c]
movzx esi, word [esi + edx + 0x18]
mov ebx, edi
lea edi, [edx + 2]
cmp si, word [edx + 0x1cba332]
mov esi, ecx
mov edx, edi
mov edi, ebx
mov ebx, dword [ebp - 0x230]
je 0x1c43d1d
mov edx, dword [ebp - 0x248]
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 - 0x23c]
jge 0x1c43cf3
jmp 0x1c43d72
mov edx, dword [ebp - 0x23c]
mov cl, byte [ebp - 0x238]
mov esi, dword [ebp - 0x234]
test cl, cl
cmovns esi, dword [ebp + 8]
mov dword [ebp - 0x234], esi
cmovs edx, dword [ebp - 0x240]
mov ecx, edx
mov dword [ebp - 0x23c], edx
cmp edx, 0xf
jge 0x1c43e3f
push str.wtsapi32.dll
call dword [sym.imp.kernel32.dll_LoadLibraryW]
mov esi, eax
xor eax, eax
dec eax
mov dword [ebp - 0x238], eax
test esi, esi
je 0x1c43dc8
push 0x1cba356
push esi
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [ebp - 0x248], eax
push str.wtsapi32.dll
call dword [sym.imp.kernel32.dll_LoadLibraryW]
mov edi, eax
test eax, eax
mov ebx, dword [ebp + 8]
je 0x1c43df4
push 0x1cba38e
push edi
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x240], edi
mov dword [ebp - 0x23c], esi
mov cl, byte [ebx + 0xb]
test cl, cl
mov eax, dword [ebx]
mov esi, dword [ebx + 4]
mov edi, ebx
mov dword [ebp - 0x230], eax
cmovs edi, eax
movzx edx, cl
mov eax, edx
mov dword [ebp - 0x234], esi
cmovs eax, esi
mov esi, eax
mov dword [ebp - 0x24c], eax
cmp eax, 0xe
jge 0x1c43eb6
mov esi, dword [ebp - 0x230]
jmp 0x1c44201
mov ebx, dword [ebp - 0x234]
mov eax, dword [ebp - 0x23c]
lea esi, [ebx + eax*2]
add esi, 0xfffffffe
add eax, 0xfffffff2
je 0x1c43da2
xor edx, edx
cmp word [ebx + edx], 0x24
je 0x1c43e6e
add edx, 2
dec eax
jne 0x1c43e5c
jmp 0x1c43da2
mov dword [ebp - 0x230], esi
lea eax, [ebx + edx]
mov esi, 0xffffffe4
test esi, esi
je 0x1c44041
movzx edi, word [eax + esi + 0x1e]
lea ecx, [esi + 2]
cmp di, word [esi + 0x1cba352]
mov esi, ecx
je 0x1c43e7c
mov esi, dword [ebp - 0x230]
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 0x1c43e51
jmp 0x1c43da2
mov byte [ebp - 0x244], cl
mov ecx, dword [ebp - 0x24c]
lea eax, [edi + ecx*2]
add eax, 0xfffffffe
mov dword [ebp - 0x254], eax
mov dword [ebp - 0x258], edi
mov esi, dword [ebp - 0x230]
mov dword [ebp - 0x22c], edx
add ecx, 0xfffffff3
je 0x1c441fb
xor eax, eax
cmp word [edi + eax], 0x24
je 0x1c43efd
add eax, 2
dec ecx
jne 0x1c43eeb
jmp 0x1c441f5
lea ecx, [edi + eax]
mov edx, 0xffffffe6
test edx, edx
je 0x1c44107
movzx ebx, word [ecx + edx + 0x1c]
lea esi, [edx + 2]
cmp bx, word [edx + 0x1cba3b8]
mov ebx, dword [ebp + 8]
mov edx, esi
je 0x1c43f05
mov edx, dword [ebp - 0x254]
sub edx, edi
add edi, eax
add edi, 2
sub edx, eax
mov ecx, edx
sar ecx, 1
cmp edx, 0x1c
mov esi, dword [ebp - 0x230]
mov edx, dword [ebp - 0x22c]
jge 0x1c43ee0
jmp 0x1c441fb
mov edx, dword [ebp - 0x24c]
lea ecx, [edx + esi*2]
sub ecx, ebx
cmp ecx, eax
je 0x1c441d8
sub ebx, edx
add ebx, eax
cmp ebx, 0xfffffffe
mov esi, dword [ebp - 0x234]
mov edx, dword [ebp - 0x23c]
mov cl, byte [ebp - 0x238]
je 0x1c43d7e
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 0x1c44028
sar ebx, 1
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x22c], edi
xor edi, edi
dec edi
add eax, eax
cmovb eax, edi
push eax
call fcn.01ca5bec
add esp, 4
mov ebx, eax
push esi
push eax
call dword [ebp - 0x22c]
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.01c3af3a
movzx eax, byte [ebp - 0x20d]
test al, al
jns 0x1c43ff6
mov eax, dword [ebp - 0x214]
mov esi, dword [ebp - 0x218]
mov ecx, dword [ebp + 8]
push eax
push esi
push 0xc
push dword [ebp - 0x230]
call fcn.01c3ef20
cmp byte [ebp - 0x20d], 0
jns 0x1c4401f
push dword [ebp - 0x218]
call fcn.01c8b528
add esp, 4
push ebx
call fcn.01c8b789
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 - 0x240], eax
movzx edx, cl
jmp 0x1c43d7e
mov eax, dword [ebp - 0x234]
mov ecx, dword [ebp - 0x23c]
lea eax, [eax + ecx*2]
sub eax, ebx
cmp eax, edx
je 0x1c43da2
sub ebx, dword [ebp - 0x234]
add ebx, edx
cmp ebx, 0xfffffffe
je 0x1c43da2
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 0x1c43da2
sar ebx, 1
xor ecx, ecx
dec ecx
add eax, eax
cmovb eax, ecx
push eax
call fcn.01ca5bec
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.01c3af3a
movzx eax, byte [edi + 0xb]
test al, al
jns 0x1c440d5
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.01c3ef20
cmp byte [ebp - 0x20d], 0
jns 0x1c440f9
push dword [ebp - 0x218]
call fcn.01c8b528
add esp, 4
push esi
call fcn.01c8b789
add esp, 4
jmp 0x1c43da2
mov edx, dword [ebp - 0x258]
mov ecx, dword [ebp - 0x24c]
lea ecx, [edx + ecx*2]
sub ecx, edi
cmp ecx, eax
je 0x1c441ef
sub edi, edx
add edi, eax
cmp edi, 0xfffffffe
mov esi, dword [ebp - 0x230]
mov edx, dword [ebp - 0x22c]
mov cl, byte [ebp - 0x244]
je 0x1c44201
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 - 0x248]
test eax, eax
je 0x1c441c5
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.01c3af3a
movzx eax, byte [esi + 0xb]
test al, al
jns 0x1c44196
mov eax, dword [ebp - 0x214]
mov esi, dword [ebp - 0x218]
mov ecx, ebx
push eax
push esi
push 0xe
push edi
call fcn.01c3ef20
push dword [ebp - 0x224]
call dword [ebp - 0x238]
cmp byte [ebp - 0x20d], 0
jns 0x1c441c5
push dword [ebp - 0x218]
call fcn.01c8b528
add esp, 4
mov cl, byte [ebx + 0xb]
mov esi, dword [ebx]
mov eax, dword [ebx + 4]
mov dword [ebp - 0x234], eax
movzx edx, cl
jmp 0x1c44201
mov esi, dword [ebp - 0x234]
mov edx, dword [ebp - 0x23c]
mov cl, byte [ebp - 0x238]
jmp 0x1c43d7e
mov esi, dword [ebp - 0x230]
mov edx, dword [ebp - 0x22c]
mov cl, byte [ebp - 0x244]
test cl, cl
cmovns esi, ebx
mov dword [ebp - 0x230], esi
cmovs edx, dword [ebp - 0x234]
mov ecx, edx
mov dword [ebp - 0x22c], edx
cmp edx, 0xf
jge 0x1c4427b
mov eax, dword [ebp - 0x240]
test eax, eax
je 0x1c44231
push eax
call dword [sym.imp.kernel32.dll_FreeLibrary]
mov eax, dword [ebp - 0x23c]
test eax, eax
je 0x1c44242
push eax
call dword [sym.imp.kernel32.dll_FreeLibrary]
mov eax, dword [ebp - 0x250]
test eax, eax
je 0x1c44253
push eax
call dword [sym.imp.kernel32.dll_FreeLibrary]
mov eax, dword [ebp - 0x25c]
test eax, eax
je 0x1c44264
push eax
call dword [sym.imp.kernel32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01c8b52d
mov eax, ebx
add esp, 0x250
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, dword [ebp - 0x230]
mov eax, dword [ebp - 0x22c]
lea esi, [edi + eax*2]
add esi, 0xfffffffe
add eax, 0xfffffff2
je 0x1c44220
xor edx, edx
cmp word [edi + edx], 0x24
je 0x1c442a6
add edx, 2
dec eax
jne 0x1c44294
jmp 0x1c44220
mov dword [ebp - 0x234], esi
lea eax, [edi + edx]
mov esi, 0xffffffe4
test esi, esi
je 0x1c442ed
movzx ebx, word [eax + esi + 0x1e]
lea ecx, [esi + 2]
cmp bx, word [esi + 0x1cba3d8]
mov ebx, dword [ebp + 8]
mov esi, ecx
je 0x1c442b4
mov esi, dword [ebp - 0x234]
mov ecx, esi
sub ecx, edi
add edi, edx
add edi, 2
sub ecx, edx
mov eax, ecx
sar eax, 1
cmp ecx, 0x1e
jge 0x1c4428d
jmp 0x1c44220
mov eax, dword [ebp - 0x230]
mov ecx, dword [ebp - 0x22c]
lea eax, [eax + ecx*2]
sub eax, edi
cmp eax, edx
je 0x1c44220
sub edi, dword [ebp - 0x230]
add edi, edx
cmp edi, 0xfffffffe
je 0x1c44220
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 - 0x248]
test eax, eax
je 0x1c44220
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.01c3af3a
movzx eax, byte [esi + 0xb]
test al, al
jns 0x1c44372
mov eax, dword [ebp - 0x214]
mov esi, dword [ebp - 0x218]
mov ecx, ebx
push eax
push esi
push 0xf
push edi
call fcn.01c3ef20
push dword [ebp - 0x224]
call dword [ebp - 0x238]
cmp byte [ebp - 0x20d], 0
jns 0x1c44220
push dword [ebp - 0x218]
call fcn.01c8b528
add esp, 4
jmp 0x1c44220