Function at 0x107ad60
Capabilities:
Get hostname

Disassembly:
mov eax, 0x109a6c3
call fcn.01077478
sub esp, 0x18
mov eax, dword [0x10a6184]
push ebx
mov ebx, 0x10a6184
cmp eax, ebx
push esi
push edi
je 0x107ada7
test byte [eax + 0x1c], 1
je 0x107ada7
cmp byte [eax + 0x19], 5
jb 0x107ada7
mov ecx, dword [ebp + 8]
push dword [ecx]
mov edi, 0x10080a8
push edi
push 0x82
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01009add
jmp 0x107adac
mov edi, 0x10080a8
and dword [ebp - 0x18], 0
mov esi, 0x10a8b2c
push esi
lea ecx, [ebp - 0x14]
call fcn.01020db5
and dword [ebp - 4], 0
push esi
lea ecx, [ebp - 0x10]
call fcn.01020db5
push 0x10
pop eax
lea ecx, [ebp - 0x20]
push ecx
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
mov dword [ebp - 0x20], eax
call fcn.0100a6ca
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
lea ecx, [ebp - 0x14]
je 0x107ae22
push 0xffffffffffffffff
call fcn.0100a2eb
mov eax, dword [0x10a6184]
cmp eax, ebx
je 0x107ae7e
test byte [eax + 0x1c], 2
je 0x107ae7e
cmp byte [eax + 0x19], 5
jb 0x107ae7e
push dword [ebp - 0x14]
push edi
push 0x83
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01009add
jmp 0x107ae7e
push 0
call fcn.01009eb8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov dword [ebp - 0x1c], eax
call fcn.01009676
test eax, eax
mov dword [ebp - 0x18], eax
jl 0x107ae46
mov dword [ebp - 0x18], 0x80004005
mov eax, dword [0x10a6184]
cmp eax, ebx
je 0x107ae74
test byte [eax + 0x1c], 2
je 0x107ae74
cmp byte [eax + 0x19], 2
jb 0x107ae74
push dword [ebp - 0x1c]
push edi
push 0x84
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01009b3f
mov eax, dword [0x10a6184]
cmp dword [ebp - 0x18], 0
jl 0x107b073
push 0x10080e0
lea ecx, [ebp - 0x20]
call fcn.0100b323
push esi
lea ecx, [ebp - 0x1c]
call fcn.01020db5
mov eax, 0x1001dc4
push eax
push eax
push dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 3
call fcn.0107ad2e
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax - 0xc]
add esp, 0x10
push 0x3f
pop esi
mov ecx, esi
sub ecx, eax
jns 0x107aec1
xor esi, esi
jmp 0x107aec3
sub esi, eax
push esi
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x14]
call fcn.0100a846
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.0100a6f4
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
mov byte [ebp - 4], 3
call fcn.01009cd1
mov eax, dword [0x10a6184]
cmp eax, ebx
je 0x107af16
test byte [eax + 0x1c], 2
je 0x107af16
cmp byte [eax + 0x19], 5
jb 0x107af16
push esi
push dword [ebp - 0x14]
push edi
push 0x85
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102008d
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.0100a6f4
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
je 0x107af37
push 0x10080d4
lea ecx, [ebp - 0x10]
call fcn.0100a88e
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ecx - 0xc]
mov eax, dword [eax - 0xc]
push 0x3f
pop edi
mov edx, edi
sub edx, ecx
sub edx, eax
jns 0x107af52
xor edi, edi
jmp 0x107af56
sub edi, ecx
sub edi, eax
push edi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
call fcn.0100a846
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call fcn.0100a6f4
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
mov byte [ebp - 4], 3
call fcn.01009cd1
mov esi, dword [ebp - 0x10]
mov eax, dword [esi - 0xc]
test eax, eax
je 0x107afc5
dec eax
push eax
lea ecx, [ebp - 0x10]
call fcn.0102108c
cmp ax, 0x3a
je 0x107afc5
mov eax, dword [esi - 0xc]
cmp eax, 1
je 0x107afb3
add eax, 0xfffffffe
push eax
lea ecx, [ebp - 0x10]
call fcn.0102108c
cmp ax, 0x3a
je 0x107afc5
mov esi, dword [esi - 0xc]
push 0x3a
dec esi
push esi
lea ecx, [ebp - 0x10]
call fcn.0104c5ef
mov esi, dword [ebp - 0x10]
mov eax, dword [0x10a6184]
cmp eax, ebx
je 0x107aff1
test byte [eax + 0x1c], 2
je 0x107aff1
cmp byte [eax + 0x19], 5
jb 0x107aff1
push edi
push esi
push 0x10080a8
push 0x86
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102008d
mov edi, dword [ebp + 0xc]
push esi
push dword [ebp - 0x14]
push dword [ebp - 0x20]
push edi
call fcn.0107ad2e
add esp, 0x10
push 0x3f
lea eax, [ebp + 8]
push eax
mov ecx, edi
call fcn.0100a846
push eax
mov ecx, edi
mov byte [ebp - 4], 6
call fcn.0100a82a
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.01009cd1
mov eax, dword [0x10a6184]
cmp eax, ebx
je 0x107b056
test byte [eax + 0x1c], 2
je 0x107b056
cmp byte [eax + 0x19], 5
jb 0x107b056
push 0x3f
push dword [edi]
push 0x10080a8
push 0x87
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102008d
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.01009cd1
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.01009cd1
mov eax, dword [0x10a6184]
jmp 0x107b079
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp + 0xc]
cmp eax, ebx
je 0x107b0b3
test byte [eax + 0x1c], 1
je 0x107b0b3
movzx ecx, byte [eax + 0x19]
xor edx, edx
cmp dword [ebp - 0x18], edx
setl dl
dec edx
and edx, 3
inc edx
inc edx
cmp ecx, edx
jl 0x107b0b3
push dword [edi]
push dword [ebp - 0x18]
push 0x10080a8
push 0x88
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102b959
lea ecx, [esi - 0x10]
call fcn.01009cd1
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.01009cd1
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8