Function at 0x10ccd40
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x113d771
mov eax, dword fs:[0]
push eax
sub esp, 0x168
mov eax, dword [0x115f604]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
xor esi, esi
mov dword [ebp - 0x32], eax
mov dword [ebp - 0x2e], eax
mov dword [ebp - 0x2a], eax
mov dword [ebp - 0x26], eax
mov dword [ebp - 0x22], eax
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], eax
mov dword [ebp - 0x16], eax
mov eax, dword [0x1161d94]
mov edx, dword [eax + 0xc]
mov ecx, 0x1161d94
mov dword [ebp - 0x15c], esi
mov dword [ebp - 0x158], esi
mov dword [ebp - 0x174], esi
mov dword [ebp - 0x170], esi
mov dword [ebp - 0x148], esi
mov dword [ebp - 0x14c], esi
mov dword [ebp - 0x164], esi
mov dword [ebp - 0x150], esi
mov word [ebp - 0x34], si
mov dword [ebp - 0x16c], 0x10
call edx
lea ebx, [eax + 0x10]
mov dword [ebp - 0x160], ebx
mov eax, dword [0x1161d94]
mov edx, dword [eax + 0xc]
mov ecx, 0x1161d94
mov dword [ebp - 4], esi
call edx
lea edi, [eax + 0x10]
mov dword [ebp - 0x168], edi
push esi
push 0x10295b0
lea eax, [ebp - 0x148]
push eax
push 0x1029528
lea ecx, [ebp - 0x140]
push 2
push ecx
mov byte [ebp - 4], 1
call fcn.01075110
add esp, 0x18
cmp dword [0x1162f10], esi
mov byte [ebp - 4], 2
jne 0x10cce8a
lea ecx, [ebp - 0x140]
mov byte [ebp - 4], 1
call fcn.01075230
lea eax, [edi - 0x10]
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10cce5d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10cce80
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x80004001
jmp 0x10cd379
mov edx, dword [0x1162f18]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x10cceb0
push esi
mov ecx, 0x1162f18
call fcn.01080db0
mov edx, dword [0x1162f18]
cmp dword [edx - 8], esi
jge 0x10ccebf
push 0x80070057
call fcn.01071710
mov dword [edx - 0xc], esi
mov ecx, dword [0x1162f18]
mov byte [ecx], 0
mov edx, dword [0x1162f1c]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x10ccef1
push esi
mov ecx, 0x1162f1c
call fcn.01080db0
mov edx, dword [0x1162f1c]
cmp dword [edx - 8], esi
jge 0x10ccf00
push 0x80070057
call fcn.01071710
lea eax, [ebp - 0x16c]
mov dword [edx - 0xc], esi
mov edx, dword [0x1162f1c]
push eax
lea ecx, [ebp - 0x34]
push ecx
mov byte [edx], 0
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x10ccf2f
lea edx, [ebp - 0x34]
push edx
mov ecx, 0x1162f1c
call fcn.0109db20
mov dword [ebp - 0x144], esi
jmp 0x10ccf40
mov ebx, dword [ebp - 0x144]
mov dword [ebp - 0x154], esi
lea ebx, [ebp + ebx - 0x174]
mov eax, dword [ebp - 0x144]
mov esi, dword [ebp + eax - 0x15c]
mov eax, dword [eax + 0x1028c44]
push ebx
push esi
push 0
push 0x2e
push eax
call dword [0x1162f10]
mov edi, eax
cmp edi, 0x6f
jne 0x10ccfe1
test esi, esi
je 0x10ccf96
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0x144]
mov dword [ebp + ecx - 0x15c], 0
mov edx, dword [ebx]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov ecx, dword [ebp - 0x144]
mov dword [ebp + ecx - 0x15c], eax
je 0x10cd0e5
mov eax, dword [ebp - 0x154]
add eax, 1
cmp eax, 5
mov dword [ebp - 0x154], eax
jb 0x10ccf53
and edi, 0xffff
or edi, 0x80070000
mov dword [ebp - 0x148], edi
jmp 0x10cd2e1
test edi, edi
jne 0x10cd0f4
mov eax, dword [ebp - 0x144]
add eax, 4
xor esi, esi
cmp eax, 8
mov dword [ebp - 0x144], eax
jb 0x10ccf40
mov edi, dword [ebp - 0x14c]
lea esp, [esp]
mov edx, dword [ebp + esi*4 - 0x15c]
test edx, edx
je 0x10cd054
jmp 0x10cd020
mov eax, dword [edx + 0x10]
test eax, eax
je 0x10cd04d
jmp 0x10cd030
mov ecx, dword [eax + 4]
test ecx, 2
jne 0x10cd046
test ecx, 1
je 0x10cd046
add edi, 1
mov eax, dword [eax + 8]
test eax, eax
jne 0x10cd030
mov edx, dword [edx + 8]
test edx, edx
jne 0x10cd020
add esi, 1
cmp esi, 2
jb 0x10cd010
test edi, edi
mov dword [ebp - 0x14c], edi
je 0x10cd206
mov ebx, edi
lea ebx, [ebx + ebx*2]
add ebx, ebx
add ebx, ebx
lea esi, [ebx + 8]
xor edi, edi
jmp 0x10cd080
mov edx, dword [ebp + edi*4 - 0x15c]
test edx, edx
je 0x10cd0c4
jmp 0x10cd090
mov eax, dword [edx + 0x10]
test eax, eax
je 0x10cd0bd
jmp 0x10cd0a0
mov ecx, dword [eax + 4]
test ecx, 2
jne 0x10cd0b6
test ecx, 1
je 0x10cd0b6
add esi, dword [eax + 0x10]
mov eax, dword [eax + 8]
test eax, eax
jne 0x10cd0a0
mov edx, dword [edx + 8]
test edx, edx
jne 0x10cd090
add edi, 1
cmp edi, 2
jb 0x10cd080
push esi
push 0x40
mov dword [ebp - 0x154], esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [ebp - 0x150], eax
jne 0x10cd105
mov dword [ebp - 0x148], 0x8007000e
jmp 0x10cd2e1
jg 0x10ccfca
mov dword [ebp - 0x148], edi
jmp 0x10cd2e1
mov edx, dword [ebp - 0x14c]
mov dword [eax], edx
add eax, 8
add ebx, eax
mov dword [ebp - 0x14c], 0
lea esp, [esp]
mov eax, dword [ebp - 0x14c]
mov eax, dword [ebp + eax - 0x15c]
test eax, eax
mov dword [ebp - 0x144], eax
je 0x10cd1ce
jmp 0x10cd140
mov ecx, dword [ebp - 0x144]
mov esi, dword [ecx + 0x10]
test esi, esi
je 0x10cd1b7
mov eax, dword [ebp - 0x164]
mov edi, dword [ebp - 0x150]
lea edx, [eax + eax*2]
add edi, 8
lea edi, [edi + edx*4 + 4]
mov eax, dword [esi + 4]
test al, 2
jne 0x10cd1b0
test al, 1
je 0x10cd1b0
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
push eax
push ecx
push ebx
call fcn.01086710
mov edx, dword [esi + 0x10]
mov eax, dword [ebp - 0x150]
add dword [ebp - 0x164], 1
add eax, 8
mov dword [edi - 4], edx
mov edx, dword [ebp - 0x14c]
mov ecx, ebx
sub ecx, eax
mov dword [edi + 4], ecx
mov eax, dword [edx + 0x1028c44]
mov dword [edi], eax
add esp, 0xc
add edi, 0xc
add ebx, dword [esi + 0x10]
mov esi, dword [esi + 8]
test esi, esi
jne 0x10cd163
mov ecx, dword [ebp - 0x144]
mov eax, dword [ecx + 8]
test eax, eax
mov dword [ebp - 0x144], eax
jne 0x10cd140
mov eax, dword [ebp - 0x14c]
add eax, 4
cmp eax, 8
mov dword [ebp - 0x14c], eax
jb 0x10cd120
mov edx, dword [ebp - 0x154]
mov eax, dword [ebp - 0x150]
push 2
push 0x1162f18
push edx
push eax
call fcn.010a0660
mov dword [ebp - 0x148], eax
cmp dword [ebp - 0x148], 0
jl 0x10cd2e1
cmp byte [0x1162eea], 0
je 0x10cd2d7
lea ecx, [ebp - 0x160]
push ecx
lea edx, [ebp - 0x168]
push edx
call fcn.010cc880
xor esi, esi
cmp eax, esi
mov dword [ebp - 0x148], eax
jl 0x10cd2c5
mov eax, dword [0x1162f18]
xor ecx, ecx
cmp eax, esi
setne cl
mov dword [0x1162ef4], esi
cmp ecx, esi
jne 0x10cd263
push 0x80004005
call fcn.01071710
push eax
mov eax, dword [ebp - 0x168]
push eax
call fcn.01129d94
add esp, 8
cmp eax, esi
setne al
test al, al
je 0x10cd283
or dword [0x1162ef4], 1
mov eax, dword [0x1162f1c]
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x10cd29d
push 0x80004005
call fcn.01071710
mov ecx, dword [ebp - 0x160]
push eax
push ecx
call fcn.01129d94
add esp, 8
cmp eax, esi
setne al
test al, al
je 0x10cd2cf
or dword [0x1162ef4], 2
mov dword [ebp - 0x148], esi
jmp 0x10cd2e1
mov dword [0x1162ef4], 3
mov dword [ebp - 0x148], esi
jmp 0x10cd2e1
mov dword [0x1162ef4], 3
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
xor esi, esi
lea esp, [esp]
mov eax, dword [ebp + esi*4 - 0x15c]
test eax, eax
je 0x10cd2fe
push eax
call edi
add esi, 1
cmp esi, 2
jb 0x10cd2f0
mov eax, dword [ebp - 0x150]
test eax, eax
je 0x10cd313
push eax
call edi
mov esi, dword [ebp - 0x148]
lea ecx, [ebp - 0x140]
mov byte [ebp - 4], 1
call fcn.01075230
mov eax, dword [ebp - 0x168]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10cd34e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x160]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10cd377
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.010840d6
mov esp, ebp
pop ebp
ret