Function at 0x102c6e2
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x107342c]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp dword [0x1074430], 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 0x102c728
push dword [ebx + 4]
push dword [ebx]
push edi
push 0x1b85
jmp 0x102cc25
call fcn.0102b1d3
mov dword [esi + 0xe6c], eax
cmp dword [0x1074a18], edi
push 0xd
pop ecx
je 0x102c76b
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov edx, dword [0x7ffe02d8]
cmp edx, dword [eax + 0x1d4]
jne 0x102c75d
mov dword [esi + 0x480], ecx
jmp 0x102c7b4
cmp dword [0x1074a18], edi
je 0x102c76b
mov dword [esi + 0x480], ecx
mov eax, dword [esi + 0x480]
cmp eax, ecx
jne 0x102c780
push dword [ebx + 4]
push dword [ebx]
push esi
call fcn.0103cf76
cmp eax, edi
jne 0x102cc03
test byte [esi + 0x485], 0x80
je 0x102c7b4
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ecx, dword [0x7ffe02d8]
cmp ecx, dword [eax + 0x1d4]
je 0x102c7b4
cmp dword [0x1074a18], edi
je 0x102cc11
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 0x102c7d1
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 0x102c944
push 0xa68
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, edi
mov dword [ebp - 0x30], eax
je 0x102cc2c
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 0x102c93b
push 0x8f4
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, edi
mov dword [ebp - 0x34], eax
jne 0x102c842
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x102cc2c
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 0x102c88a
cmp ecx, edi
je 0x102c875
mov edx, dword [ebp - 0x34]
cmp al, byte [edx + 0x4a4]
jbe 0x102c88a
push 0x30
push 0x5dd
push 0x7dd
push edi
push esi
call fcn.01020161
jmp 0x102c904
cmp ecx, edi
je 0x102c8f5
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 0x102c8f5
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 0x102c8ca
cmp dword [ebp - 0x38], edi
jne 0x102c8f5
mov eax, dword [ebp - 0x34]
cmp dword [eax + 0x4a8], 2
jne 0x102c8e7
lea ecx, [ebp - 0x24]
push ecx
push dword [ebp - 0x38]
push eax
call fcn.0102b084
test eax, eax
je 0x102c8f5
push 0x30
push 0x5dd
push 0x7e2
jmp 0x102c881
push dword [ebp - 0x30]
push esi
push edi
call fcn.01017fb7
cmp eax, 1
je 0x102c919
push dword [ebp - 0x34]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
push dword [ebp - 0x30]
call esi
jmp 0x102cc2c
mov eax, dword [ebp - 0x30]
test byte [eax + 0x7e], 0x20
push edi
push edi
jne 0x102c928
push 0xc
jmp 0x102c92a
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 [0x1074a1c], edi
je 0x102c9a2
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 [0x1074a18], edi
je 0x102c9b7
call fcn.0102b17d
test eax, eax
je 0x102ca3a
cmp dword [0x1074464], edi
jne 0x102ca3a
push esi
call fcn.0101d59c
test eax, eax
je 0x102c9e8
cmp dword [0x107446c], edi
je 0x102c9dc
mov dword [0x107446c], edi
jmp 0x102cc2c
mov dword [ebp - 0x40], 0xf
jmp 0x102cbfe
call fcn.0102b1d3
test eax, eax
jne 0x102c9f9
cmp dword [esi + 0xe6c], edi
je 0x102ca01
cmp dword [0x1074a18], edi
je 0x102ca14
call fcn.0102b17d
test eax, eax
je 0x102ca3a
push esi
call fcn.0101adc2
test eax, eax
je 0x102ca3a
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 0x102cbfe
cmp dword [0x1074a18], edi
je 0x102ca83
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ecx, dword [0x7ffe02d8]
cmp ecx, dword [eax + 0x1d4]
jne 0x102ca83
push dword [0x1074424]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [ebp - 0x2c]
push dword [ebx + 4]
push dword [ebx]
call fcn.0102c516
test eax, eax
je 0x102ca7b
call fcn.0102bd07
xor eax, eax
inc eax
jmp 0x102cc2f
call fcn.0102b23e
test eax, eax
lea eax, [esi + 0x484]
push eax
push edi
jne 0x102ca9b
push 0x1010d74
jmp 0x102ca9e
push dword [ebx + 8]
push dword [ebx]
push dword [ebx + 4]
push dword [ebp - 0x2c]
push dword [ebp - 0x2c]
call fcn.01027232
push eax
call sub.WINSTA.dll__WinStationNotifyLogon
test al, al
jne 0x102cae1
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ecx, dword [0x7ffe02d8]
cmp ecx, dword [eax + 0x1d4]
je 0x102caeb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebx + 4]
push dword [ebx]
push edi
push eax
jmp 0x102cc25
mov dword [0x1074428], 1
mov eax, dword [ebx]
cmp eax, edi
mov esi, dword [sym.imp.msvcrt.dll_wcslen]
mov dword [ebp - 0x2c], 0x2d
je 0x102cb0d
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 0x102cb27
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 0x102cbfe
mov dword [edx], 0x29
lea eax, [edx + 4]
mov byte [eax + 8], 1
mov ecx, dword [0x1013544]
mov dword [eax], ecx
mov ecx, dword [0x1013548]
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 0x102cbac
mov ecx, dword [ebp - 0x3c]
lea edx, [ecx + 9]
mov dword [eax], edx
add eax, 4
mov byte [eax + 8], 1
mov edx, dword [0x101353c]
mov dword [eax], edx
mov edx, dword [0x1013540]
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 0x102cbe6
mov ecx, dword [ebp - 0x44]
lea esi, [ecx + 9]
mov dword [eax], esi
add eax, 4
mov byte [eax + 8], 1
mov esi, dword [0x1013534]
mov dword [eax], esi
mov esi, dword [0x1013538]
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 0x102cc2f
push dword [ebx + 4]
push dword [ebx]
push edi
push eax
push edi
push esi
call fcn.0102c5f9
test byte [esi + 0x485], 0x80
je 0x102cc2c
push dword [ebx + 4]
push dword [ebx]
push edi
push 0x1b7d
push edi
push esi
call fcn.0102c5f9
push 4
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0103e4d8
leave
ret 0xc