Function at 0x100d960
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x1013050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, ecx
push 0x3a
push eax
mov dword [ebp - 0x424], ebx
call dword [sym.imp.MSVCR100.dll_wcschr]
mov esi, eax
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
xor edi, edi
push eax
mov dword [ebp - 0x428], edi
mov dword [ebp - 0x420], 1
call sub.MSVCR100.dll_memset
add esp, 0x14
test esi, esi
je 0x100d9d3
lea eax, [esi + 2]
push 0x3a
push eax
call dword [sym.imp.MSVCR100.dll_wcschr]
add esp, 8
mov esi, eax
push 0xb3c
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebx + 0x1da1c], eax
test eax, eax
jne 0x100da00
push 0x1004364
mov ecx, ebx
call fcn.0100d8b0
xor eax, eax
mov dword [ebp - 0x420], eax
jmp 0x100da05
mov eax, 1
test esi, esi
je 0x100dc7c
lea ecx, [ecx]
cmp eax, 1
jne 0x100dc7c
add esi, 2
push 0x5c
push esi
call dword [sym.imp.MSVCR100.dll_wcschr]
mov ebx, eax
xor eax, eax
add esp, 8
mov word [ebp - 0x210], ax
test ebx, ebx
je 0x100dabd
mov edi, ebx
sub edi, esi
sar edi, 1
cmp edi, 0x7ffffffe
jbe 0x100da67
mov edi, dword [ebp - 0x428]
mov dword [ebp - 0x42c], 0x80070057
mov word [ebp - 0x210], ax
mov esi, ebx
jmp 0x100db08
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x42c], eax
mov eax, ecx
add edi, 0xfffffefb
mov edx, 0x105
sub esi, eax
lea eax, [edi + edx]
test eax, eax
je 0x100da9d
movzx eax, word [esi + ecx]
test ax, ax
je 0x100da9d
mov word [ecx], ax
add ecx, 2
dec edx
jne 0x100da82
jmp 0x100daa1
test edx, edx
jne 0x100daae
sub ecx, 2
mov dword [ebp - 0x42c], 0x8007007a
mov edi, dword [ebp - 0x428]
xor eax, eax
mov word [ecx], ax
mov esi, ebx
jmp 0x100db08
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x42c], eax
mov eax, ecx
mov edx, 0x105
sub esi, eax
lea eax, [edx + 0x7ffffef9]
test eax, eax
je 0x100daf0
movzx eax, word [esi + ecx]
test ax, ax
je 0x100daf0
mov word [ecx], ax
add ecx, 2
dec edx
jne 0x100dad2
jmp 0x100daf4
test edx, edx
jne 0x100db01
sub ecx, 2
mov dword [ebp - 0x42c], 0x8007007a
xor eax, eax
mov word [ecx], ax
xor esi, esi
cmp dword [ebp - 0x42c], 0
jne 0x100dca6
cmp edi, 5
ja case.default.0x100db1e
jmp dword [edi*4 + 0x100dd44]
mov ebx, dword [ebp - 0x424]
lea eax, [ebx + 0x1d7fc]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.RPCRT4.dll_UuidFromStringW]
test eax, eax
je 0x100dc67
push 0x1004400
mov ecx, ebx
call fcn.0100d8b0
xor eax, eax
mov dword [ebp - 0x420], eax
jmp 0x100dc6d
mov ecx, dword [ebp - 0x424]
add ecx, 0x1d810
lea edi, [ebp - 0x210]
xor ebx, ebx
mov edx, 0x105
sub edi, ecx
jmp 0x100db80
lea eax, [edx + 0x7ffffef9]
test eax, eax
je 0x100db9e
movzx eax, word [edi + ecx]
test ax, ax
je 0x100db9e
mov word [ecx], ax
add ecx, 2
dec edx
jne 0x100db80
jmp 0x100dba2
test edx, edx
jne 0x100dbaa
sub ecx, 2
mov ebx, 0x8007007a
xor eax, eax
test ebx, ebx
mov ebx, dword [ebp - 0x424]
mov word [ecx], ax
je 0x100dc59
push 0x100444c
mov ecx, ebx
call fcn.0100d8b0
mov edi, dword [ebp - 0x428]
xor eax, eax
mov dword [ebp - 0x420], eax
jmp 0x100dc6d
mov ebx, dword [ebp - 0x424]
lea eax, [ebx + 0x698]
push eax
lea eax, [ebp - 0x210]
push 0x100448c
push eax
call dword [sym.imp.MSVCR100.dll_swscanf_s]
add esp, 0xc
jmp 0x100dc67
mov ebx, dword [ebp - 0x424]
lea eax, [ebx + 0x1d80c]
jmp 0x100dbe8
mov ebx, dword [ebp - 0x424]
mov eax, dword [ebx + 0x1da1c]
add eax, 4
push eax
lea eax, [ebp - 0x210]
push 0x1004494
push eax
call dword [sym.imp.MSVCR100.dll_swscanf_s]
add esp, 0xc
jmp 0x100dc67
mov ebx, dword [ebp - 0x424]
lea eax, [ebx + 0x1d7f4]
push eax
lea eax, [ebp - 0x210]
push 0x1004494
push eax
call dword [sym.imp.MSVCR100.dll_swscanf_s]
add esp, 0xc
jmp 0x100dc67
mov edi, dword [ebp - 0x428]
jmp 0x100dc67
mov ebx, dword [ebp - 0x424]
mov eax, dword [ebp - 0x420]
inc edi
mov dword [ebp - 0x428], edi
test esi, esi
jne 0x100da10
test eax, eax
je 0x100dcbc
cmp edi, 6
je 0x100dcbc
push 0x10044a0
mov ecx, ebx
call fcn.0100d8b0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0100f899
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [ebp - 0x424]
push 0x10043a0
mov ecx, ebx
call fcn.0100d8b0
xor esi, esi
jmp 0x100dcc2
mov esi, dword [ebp - 0x420]
push 0x20a
lea eax, [ebp - 0x41c]
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x41c]
push eax
mov dword [ebp - 0x428], 0x104
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x100dd20
lea eax, [ebp - 0x41c]
push eax
lea ecx, [ebx + 0x1d810]
push ecx
push 0x100450c
lea ecx, [ebx + 0x2c]
push 0x105
push ecx
call fcn.01007050
add esp, 0x14
jmp 0x100dd2c
push 0x100451c
mov ecx, ebx
call fcn.0100d8b0
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100f899
mov esp, ebp
pop ebp
ret 4