Function at 0x102c07e
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x10723e4]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp dword [0x107336c], edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x40], 1
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x44], edi
je 0x102c0c4
push dword [ebx + 4]
push dword [ebx]
push edi
push 0x1b85
jmp 0x102c5a2
call fcn.0102abf9
mov dword [esi + 0xe6c], eax
cmp dword [0x1073938], edi
push 0xd
pop ecx
je 0x102c107
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov edx, dword [0x7ffe02d8]
cmp edx, dword [eax + 0x1d4]
jne 0x102c0f9
mov dword [esi + 0x480], ecx
jmp 0x102c131
cmp dword [0x1073938], edi
je 0x102c107
mov dword [esi + 0x480], ecx
mov eax, dword [esi + 0x480]
cmp eax, ecx
jne 0x102c11c
push dword [ebx + 4]
push dword [ebx]
push esi
call fcn.0103c1bc
cmp eax, edi
jne 0x102c580
test byte [esi + 0x485], 0x80
jne 0x102c597
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x28], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x102c14e
mov word [ebp - 0x24], di
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ecx, dword [0x7ffe02d8]
cmp ecx, dword [eax + 0x1d4]
je 0x102c2c1
push 0xa68
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, edi
mov dword [ebp - 0x30], eax
je 0x102c5a9
lea ecx, [ebp - 0x28]
push ecx
push 0xa68
push eax
push 1
push 0xffffffffffffffff
push edi
call sub.WINSTA.dll_WinStationQueryInformationW
test al, al
je 0x102c2b8
push 0x8f4
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, edi
mov dword [ebp - 0x34], eax
jne 0x102c1bf
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x102c5a9
lea ecx, [ebp - 0x28]
push ecx
push 0x8f4
push eax
push 6
push 0xffffffffffffffff
push edi
call sub.WINSTA.dll_WinStationQueryInformationW
movzx ecx, al
mov eax, dword [ebp - 0x30]
mov al, byte [eax + 0x574]
test al, al
je 0x102c207
cmp ecx, edi
je 0x102c1f2
mov edx, dword [ebp - 0x34]
cmp al, byte [edx + 0x4a4]
jbe 0x102c207
push 0x30
push 0x5dd
push 0x7dd
push edi
push esi
call fcn.0101ff96
jmp 0x102c281
cmp ecx, edi
je 0x102c272
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x34]
add eax, 4
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x102c272
or dword [ebp - 0x38], 0xffffffff
lea eax, [ebp - 0x28]
push eax
push 4
lea eax, [ebp - 0x38]
push eax
push 0x18
push 0xffffffffffffffff
push edi
call sub.WINSTA.dll_WinStationQueryInformationW
cmp dword [esi + 0xe6c], edi
jne 0x102c247
cmp dword [ebp - 0x38], edi
jne 0x102c272
mov eax, dword [ebp - 0x34]
cmp dword [eax + 0x4a8], 2
jne 0x102c264
lea ecx, [ebp - 0x24]
push ecx
push dword [ebp - 0x38]
push eax
call fcn.0102aaaa
test eax, eax
je 0x102c272
push 0x30
push 0x5dd
push 0x7e2
jmp 0x102c1fe
push dword [ebp - 0x30]
push esi
push edi
call fcn.01017c57
cmp eax, 1
je 0x102c296
push dword [ebp - 0x34]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
push dword [ebp - 0x30]
call esi
jmp 0x102c5a9
mov eax, dword [ebp - 0x30]
test byte [eax + 0x7e], 0x20
push edi
push edi
jne 0x102c2a5
push 0xc
jmp 0x102c2a7
push 0xb
push 0xffffffffffffffff
push edi
call sub.WINSTA.dll_WinStationSetInformationW
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [0x107393c], edi
je 0x102c31f
push 0xff
push dword [ebx]
lea eax, [esi + 0xe7c]
push eax
call dword [sym.imp.msvcrt.dll_wcsncpy]
push 0xff
mov word [esi + 0x107a], di
push dword [ebx + 4]
lea eax, [esi + 0x127c]
push eax
call dword [sym.imp.msvcrt.dll_wcsncpy]
push 0xff
mov word [esi + 0x147a], di
push dword [ebx + 8]
lea eax, [esi + 0x107c]
push eax
call dword [sym.imp.msvcrt.dll_wcsncpy]
add esp, 0x24
mov word [esi + 0x127a], di
cmp dword [0x1073938], edi
je 0x102c334
call fcn.0102aba3
test eax, eax
je 0x102c3b7
cmp dword [0x10733a0], edi
jne 0x102c3b7
push esi
call fcn.0101d43d
test eax, eax
je 0x102c365
cmp dword [0x10733a8], edi
je 0x102c359
mov dword [0x10733a8], edi
jmp 0x102c5a9
mov dword [ebp - 0x40], 0xf
jmp 0x102c57b
call fcn.0102abf9
test eax, eax
jne 0x102c376
cmp dword [esi + 0xe6c], edi
je 0x102c37e
cmp dword [0x1073938], edi
je 0x102c391
call fcn.0102aba3
test eax, eax
je 0x102c3b7
push esi
call fcn.0101a7c9
test eax, eax
je 0x102c3b7
mov eax, dword fs:[0x18]
mov ecx, dword [eax + 0x30]
mov eax, dword [0x7ffe02d8]
sub eax, dword [ecx + 0x1d4]
neg eax
sbb eax, eax
and eax, 0xb
add eax, 4
mov dword [ebp - 0x40], eax
jmp 0x102c57b
cmp dword [0x1073938], edi
je 0x102c400
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ecx, dword [0x7ffe02d8]
cmp ecx, dword [eax + 0x1d4]
jne 0x102c400
push dword [0x1073360]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [ebp - 0x2c]
push dword [ebx + 4]
push dword [ebx]
call fcn.0102beb2
test eax, eax
je 0x102c3f8
call fcn.0102b6b3
xor eax, eax
inc eax
jmp 0x102c5ac
call fcn.0102ac64
test eax, eax
lea eax, [esi + 0x484]
push eax
push edi
jne 0x102c418
push 0x1010ab4
jmp 0x102c41b
push dword [ebx + 8]
push dword [ebx]
push dword [ebx + 4]
push dword [ebp - 0x2c]
push dword [ebp - 0x2c]
call fcn.01026c7c
push eax
call sub.WINSTA.dll__WinStationNotifyLogon
test al, al
jne 0x102c45e
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ecx, dword [0x7ffe02d8]
cmp ecx, dword [eax + 0x1d4]
je 0x102c468
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebx + 4]
push dword [ebx]
push edi
push eax
jmp 0x102c5a2
mov dword [0x1073364], 1
mov eax, dword [ebx]
cmp eax, edi
mov esi, dword [sym.imp.msvcrt.dll_wcslen]
mov dword [ebp - 0x2c], 0x2d
je 0x102c48a
push eax
call esi
shl eax, 1
mov dword [ebp - 0x3c], eax
add eax, 0x3a
pop ecx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebx + 4]
cmp eax, edi
je 0x102c4a4
push eax
call esi
shl eax, 1
pop ecx
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x44], eax
lea eax, [ecx + eax + 0xd]
mov dword [ebp - 0x2c], eax
push dword [ebp - 0x2c]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edx, eax
cmp edx, edi
mov dword [ebp - 0x38], edx
je 0x102c57b
mov dword [edx], 0x29
lea eax, [edx + 4]
mov byte [eax + 8], 1
mov ecx, dword [0x101325c]
mov dword [eax], ecx
mov ecx, dword [0x1013260]
mov dword [eax + 4], ecx
push 8
lea edi, [eax + 9]
pop ecx
lea esi, [ebp - 0x24]
rep movsd dword es:[edi], dword [esi]
add eax, 0x29
cmp dword [ebx], 0
je 0x102c529
mov ecx, dword [ebp - 0x3c]
lea edx, [ecx + 9]
mov dword [eax], edx
add eax, 4
mov byte [eax + 8], 1
mov edx, dword [0x1013254]
mov dword [eax], edx
mov edx, dword [0x1013258]
mov dword [eax + 4], edx
mov esi, dword [ebx]
mov edx, ecx
shr ecx, 2
add eax, 9
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, edx
mov edx, dword [ebp - 0x38]
add eax, ecx
cmp dword [ebx + 4], 0
je 0x102c563
mov ecx, dword [ebp - 0x44]
lea esi, [ecx + 9]
mov dword [eax], esi
add eax, 4
mov byte [eax + 8], 1
mov esi, dword [0x101324c]
mov dword [eax], esi
mov esi, dword [0x1013250]
mov dword [eax + 4], esi
mov esi, dword [ebx + 4]
lea edi, [eax + 9]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push dword [ebp - 0x2c]
push edx
push 0x15
push 0xffffffffffffffff
push 0
call sub.WINSTA.dll_WinStationSetInformationW
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x40]
jmp 0x102c5ac
push dword [ebx + 4]
push dword [ebx]
push edi
push eax
push edi
push esi
call fcn.0102bf95
test byte [esi + 0x485], 0x80
je 0x102c5a9
push dword [ebx + 4]
push dword [ebx]
push edi
push 0x1b7d
push edi
push esi
call fcn.0102bf95
push 4
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0103d24a
leave
ret 0xc