Function at 0x105a5b9
Capabilities:
Get hostname

Disassembly:
push 0x108
mov eax, 0x106f5a0
call fcn.0105bd31
mov eax, dword [ebp + 0x10]
and dword [ebp - 0xc4], 0
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xfc], eax
mov eax, dword [ebp + 0x1c]
mov edi, ecx
mov dword [ebp - 0xd0], edi
mov dword [ebp - 0x104], eax
mov eax, dword [0x1075004]
mov esi, 0x1075004
cmp eax, esi
je 0x105a621
test byte [eax + 0x1c], 4
je 0x105a621
cmp byte [eax + 0x19], 5
jb 0x105a621
mov ebx, 0x1004e38
push ebx
push 0x26
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
jmp 0x105a626
mov ebx, 0x1004e38
push 0x1025e58
push fcn.01028d84
push 3
push 0x1c
lea eax, [ebp - 0xc0]
push eax
call fcn.0105bfb7
and dword [ebp - 4], 0
lea eax, [ebp - 0x100]
push eax
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x100], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x105a6a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc4], eax
mov eax, dword [0x1075004]
cmp eax, esi
je 0x105b15c
test byte [eax + 0x1c], 4
je 0x105b15c
cmp byte [eax + 0x19], 2
jb 0x105b15c
push dword [ebp - 0xc4]
push ebx
push 0x27
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102ca9d
jmp 0x105b15c
lea ecx, [ebp - 0x6c]
call fcn.01028d84
cmp dword [ebp + 0xc], 0
jne 0x105a960
mov ecx, dword [edi + 0x15c]
lea eax, [ebp - 0xc0]
push eax
add ecx, 0x108
mov byte [ebp - 4], 1
call fcn.01058f59
test eax, eax
je 0x105a925
lea eax, [ebp - 0xa4]
push eax
lea ecx, [edi + 0x380]
call fcn.01058f59
test eax, eax
je 0x105a925
lea eax, [ebp - 0x88]
push eax
lea ecx, [edi + 0x388]
call fcn.01058f59
test eax, eax
je 0x105a925
cmp dword [ebp + 8], 0
je 0x105a7a4
cmp dword [ebp - 0xa8], 8
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0xc8], 0x4000100b
jae 0x105a748
lea eax, [ebp - 0xbc]
cmp dword [ebp - 0x8c], 8
mov dword [ebp - 0xf4], eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp - 0xa0]
jae 0x105a76c
lea eax, [ebp - 0xa0]
cmp dword [ebp - 0x70], 8
mov dword [ebp - 0xec], eax
mov eax, dword [ebp - 0x84]
jae 0x105a784
lea eax, [ebp - 0x84]
mov dword [ebp - 0xe8], eax
mov eax, dword [edi + 0x160]
mov dword [ebp - 0xe4], eax
mov eax, dword [edi + 0x30]
mov dword [ebp - 0xe0], eax
jmp 0x105a880
lea eax, [ebp - 0x6c]
push eax
mov dword [ebp - 0xc8], 0x4000100c
call fcn.010591e2
test eax, eax
jne 0x105a7f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc4], eax
mov eax, dword [0x1075004]
cmp eax, esi
je 0x105a7f0
test byte [eax + 0x1c], 4
je 0x105a7f0
cmp byte [eax + 0x19], 2
jb 0x105a7f0
push dword [ebp - 0xc4]
push ebx
push 0x29
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102ca9d
push 0
jmp 0x105b152
mov eax, dword [ebp - 0xd8]
mov ecx, dword [ebp - 0xbc]
push 8
mov dword [ebp - 0xf8], eax
pop eax
cmp dword [ebp - 0xa8], eax
jae 0x105a81a
lea ecx, [ebp - 0xbc]
mov dword [ebp - 0xf4], ecx
lea ecx, [ebp - 0x34]
mov dword [ebp - 0xf0], ecx
mov ecx, dword [ebp - 0xa0]
cmp dword [ebp - 0x8c], eax
jae 0x105a83d
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0xec], ecx
mov ecx, dword [ebp - 0x84]
cmp dword [ebp - 0x70], eax
jae 0x105a854
lea ecx, [ebp - 0x84]
cmp dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0xe8], ecx
mov ecx, dword [edi + 0x160]
mov dword [ebp - 0xe4], ecx
mov ecx, dword [edi + 0x30]
mov dword [ebp - 0xe0], ecx
jae 0x105a87a
lea eax, [ebp - 0x68]
mov dword [ebp - 0xdc], eax
lea eax, [ebp - 0xf8]
push eax
xor edi, edi
push edi
push dword [ebp - 0xfc]
push 0x800
push dword [ebp - 0xc8]
push dword [0x1077f10]
push 0x2900
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
cmp eax, edi
jne 0x105a8f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc4], eax
mov eax, dword [0x1075004]
cmp eax, esi
je 0x105b151
test byte [eax + 0x1c], 4
je 0x105b151
cmp byte [eax + 0x19], 2
jb 0x105b151
push dword [ebp - 0xc4]
push ebx
push 0x2a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102ca9d
jmp 0x105b151
push edi
push 1
lea ecx, [ebp - 0x6c]
call fcn.01025bbc
or dword [ebp - 4], 0xffffffff
push 0x1025e58
push 3
push 0x1c
lea eax, [ebp - 0xc0]
push eax
call fcn.0105bf4f
xor eax, eax
inc eax
call fcn.0105bd9c
ret 0x18
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc4], eax
mov eax, dword [0x1075004]
cmp eax, esi
je 0x105a7f0
test byte [eax + 0x1c], 4
je 0x105a7f0
cmp byte [eax + 0x19], 2
jb 0x105a7f0
push dword [ebp - 0xc4]
push ebx
push 0x28
jmp 0x105a7e5
lea ecx, [ebp - 0x50]
call fcn.01028d84
and dword [ebp - 0xcc], 0
and dword [ebp - 0xc8], 0
lea eax, [ebp - 0xc0]
push eax
lea ecx, [edi + 0x108]
mov byte [ebp - 4], 3
call fcn.01058f59
test eax, eax
jne 0x105a9d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc4], eax
mov eax, dword [0x1075004]
cmp eax, esi
je 0x105a9c5
test byte [eax + 0x1c], 4
je 0x105a9c5
cmp byte [eax + 0x19], 2
jb 0x105a9c5
push dword [ebp - 0xc4]
push ebx
push 0x2b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102ca9d
push 0
push 1
lea ecx, [ebp - 0x50]
call fcn.01025bbc
jmp 0x105a7f0
cmp dword [ebp + 8], 0
je 0x105a9ed
mov eax, 0x4000100d
mov dword [ebp - 0xd4], 0x40001014
jmp 0x105a9fc
mov eax, 0x4000100e
mov dword [ebp - 0xd4], 0x40001015
cmp dword [ebp - 0xa8], 8
mov ecx, dword [ebp - 0xd8]
mov dword [ebp - 0xf8], ecx
mov ecx, dword [ebp - 0xbc]
jae 0x105aa1d
lea ecx, [ebp - 0xbc]
mov esi, dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov dword [ebp - 0xf4], ecx
lea ecx, [ebp - 0x34]
mov dword [ebp - 0xf0], ecx
mov ecx, dword [ebp - 0xd0]
mov ecx, dword [ecx + 0x30]
mov dword [ebp - 0xec], ecx
lea ecx, [ebp - 0xf8]
push ecx
push 0
lea ecx, [ebp - 0xcc]
push ecx
mov ebx, 0x800
push ebx
push eax
push dword [0x1077f10]
mov edi, 0x2900
push edi
call esi
test eax, eax
jne 0x105aaac
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc4], eax
mov eax, dword [0x1075004]
cmp eax, 0x1075004
je 0x105a9c5
test byte [eax + 0x1c], 4
je 0x105a9c5
cmp byte [eax + 0x19], 2
jb 0x105a9c5
push dword [ebp - 0xc4]
push 0x1004e38
push 0x2c
jmp 0x105a9ba
lea eax, [ebp - 0xf8]
push eax
push 0
lea eax, [ebp - 0xc8]
push eax
push ebx
push dword [ebp - 0xd4]
push dword [0x1077f10]
push edi
call esi
test eax, eax
jne 0x105ab33
xor esi, esi
cmp dword [ebp - 0xcc], esi
je 0x105aae6
push dword [ebp - 0xcc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc4], eax
mov eax, dword [0x1075004]
cmp eax, 0x1075004
je 0x105ab22
test byte [eax + 0x1c], 4
je 0x105ab22
cmp byte [eax + 0x19], 2
jb 0x105ab22
push dword [ebp - 0xc4]
push 0x1004e38
push 0x2d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102ca9d
push esi
push 1
lea ecx, [ebp - 0x50]
call fcn.01025bbc
push esi
jmp 0x105b152
push dword [ebp - 0xcc]
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 4
call fcn.010291e0
push 0x10051e8
lea ecx, [ebp - 0x50]
call fcn.010291b3
mov esi, 0x1004fd4
push esi
lea ecx, [ebp - 0x50]
call fcn.010291b3
push 0x10051d8
lea ecx, [ebp - 0x50]
call fcn.010291b3
push esi
lea ecx, [ebp - 0x50]
call fcn.010291b3
push 0x1005150
lea ecx, [ebp - 0x50]
call fcn.010291b3
push esi
lea ecx, [ebp - 0x50]
call fcn.010291b3
push 0x100513c
lea ecx, [ebp - 0x50]
call fcn.010291b3
push 0x1f7b
call fcn.01048fc7
push eax
lea ecx, [ebp - 0x50]
call fcn.010291b3
push 0x1005128
lea ecx, [ebp - 0x50]
call fcn.010291b3
push esi
lea ecx, [ebp - 0x50]
call fcn.010291b3
push 0x1005118
lea ecx, [ebp - 0x50]
call fcn.010291b3
push esi
lea ecx, [ebp - 0x50]
call fcn.010291b3
push 0x1005108
lea ecx, [ebp - 0x50]
call fcn.010291b3
push esi
lea ecx, [ebp - 0x50]
call fcn.010291b3
push 0x1005100
lea ecx, [ebp - 0x50]
call fcn.010291b3
push esi
lea ecx, [ebp - 0x50]
call fcn.010291b3
push dword [ebp - 0xc8]
lea ecx, [ebp - 0x50]
call fcn.010291b3
push esi
lea ecx, [ebp - 0x50]
call fcn.010291b3
push 0x10050f4
lea ecx, [ebp - 0x50]
call fcn.010291b3
push esi
lea ecx, [ebp - 0x50]
call fcn.010291b3
xor edi, edi
mov dword [ebp - 4], 3
cmp dword [ebp - 0xcc], edi
je 0x105ac4e
push dword [ebp - 0xcc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0xc8], edi
je 0x105ac62
push dword [ebp - 0xc8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0x1005100
lea ecx, [ebp - 0x50]
call fcn.010291b3
push esi
lea ecx, [ebp - 0x50]
call fcn.010291b3
mov ebx, dword [ebp - 0xd0]
cmp dword [ebx + 0xe0], edi
je 0x105ad65
push 0x1005098
lea ecx, [ebp - 0x50]
call fcn.010291b3
push esi
lea ecx, [ebp - 0x50]
call fcn.010291b3
lea eax, [ebp - 0x6c]
push eax
push edi
push edi
lea ecx, [ebp - 0x50]
call fcn.0105957a
test eax, eax
jne 0x105acff
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc4], eax
mov eax, dword [0x1075004]
cmp eax, 0x1075004
je 0x105b146
test byte [eax + 0x1c], 4
je 0x105b146
cmp byte [eax + 0x19], 2
jb 0x105b146
push dword [ebp - 0xc4]
push 0x1004e38
push 0x2e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102ca9d
jmp 0x105b146
mov eax, ebx
add eax, 0x90
mov ebx, dword [eax]
jmp 0x105ad3c
mov eax, dword [ebx + 8]
cmp dword [eax + 0x5e8], 0x100
jne 0x105ad2f
lea ecx, [ebp - 0x6c]
push ecx
push edi
push eax
lea ecx, [ebp - 0x50]
call fcn.0105957a
test eax, eax
je 0x105adf6
mov eax, dword [ebp - 0xd0]
mov ebx, dword [ebx]
add eax, 0x90
cmp ebx, eax
jne 0x105ad0a
push esi
lea ecx, [ebp - 0x6c]
call fcn.010291b3
push 0x1005080
lea ecx, [ebp - 0x50]
call fcn.010291b3
push esi
lea ecx, [ebp - 0x50]
call fcn.010291b3
mov ebx, dword [ebp - 0xd0]
cmp dword [ebx + 0xe8], edi
je 0x105ae9a
push 0x1004fd8
lea ecx, [ebp - 0x50]
call fcn.010291b3
push esi
lea ecx, [ebp - 0x50]
call fcn.010291b3
push 0x1005098
lea ecx, [ebp - 0x50]
call fcn.010291b3
push esi
lea ecx, [ebp - 0x50]
call fcn.010291b3
lea eax, [ebp - 0x6c]
push eax
push 1
push edi
lea ecx, [ebp - 0x50]
call fcn.0105957a
test eax, eax
jne 0x105ae38
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc4], eax
mov eax, dword [0x1075004]
cmp eax, 0x1075004
je 0x105b146
test byte [eax + 0x1c], 4
je 0x105b146
cmp byte [eax + 0x19], 2
jb 0x105b146
push dword [ebp - 0xc4]
push 0x1004e38
push 0x30
jmp 0x105acef
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc4], eax
mov eax, dword [0x1075004]
cmp eax, 0x1075004
je 0x105b146
test byte [eax + 0x1c], 4
je 0x105b146
cmp byte [eax + 0x19], 2
jb 0x105b146
push dword [ebp - 0xc4]
push 0x1004e38
push 0x2f
jmp 0x105acef
mov eax, dword [ebp - 0xd0]
add eax, 0x90
mov ebx, dword [eax]
jmp 0x105ae7a
mov eax, dword [ebx + 8]
cmp dword [eax + 0x5e8], 0x80
jne 0x105ae6d
lea ecx, [ebp - 0x6c]
push ecx
push 1
push eax
lea ecx, [ebp - 0x50]
call fcn.0105957a
test eax, eax
je 0x105aef4
mov eax, dword [ebp - 0xd0]
mov ebx, dword [ebx]
add eax, 0x90
cmp ebx, eax
jne 0x105ae47
push 0x1005080
lea ecx, [ebp - 0x50]
call fcn.010291b3
push esi
lea ecx, [ebp - 0x50]
call fcn.010291b3
mov ebx, dword [ebp - 0xd0]
push 0x10050f4
lea ecx, [ebp - 0x50]
call fcn.010291b3
push esi
lea ecx, [ebp - 0x50]
call fcn.010291b3
cmp dword [ebp + 0x14], edi
je 0x105afb6
cmp dword [ebx + 0x80], edi
je 0x105afb6
push 0x1005078
lea ecx, [ebp - 0x6c]
call fcn.010291b3
push 0x1005100
lea ecx, [ebp - 0x50]
call fcn.010291b3
push esi
lea ecx, [ebp - 0x50]
call fcn.010291b3
cmp dword [ebx + 0x34], edi
jne 0x105af36
push 0x1f7a
jmp 0x105af3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc4], eax
mov eax, dword [0x1075004]
cmp eax, 0x1075004
je 0x105b146
test byte [eax + 0x1c], 4
je 0x105b146
cmp byte [eax + 0x19], 2
jb 0x105b146
push dword [ebp - 0xc4]
push 0x1004e38
push 0x31
jmp 0x105acef
push 0x1f79
call fcn.01048fc7
mov ebx, eax
cmp ebx, edi
jne 0x105af7c
push edi
push 1
lea ecx, [ebp - 0x50]
call fcn.01025bbc
push edi
push 1
lea ecx, [ebp - 0x6c]
call fcn.01025bbc
or dword [ebp - 4], 0xffffffff
push 0x1025e58
push 3
push 0x1c
lea eax, [ebp - 0xc0]
push eax
call fcn.0105bf4f
xor eax, eax
jmp 0x105a91d
push ebx
lea ecx, [ebp - 0x6c]
call fcn.010291b3
push ebx
lea ecx, [ebp - 0x50]
call fcn.010291b3
push esi
lea ecx, [ebp - 0x50]
call fcn.010291b3
push 0x10050f4
lea ecx, [ebp - 0x50]
call fcn.010291b3
push esi
lea ecx, [ebp - 0x6c]
call fcn.010291b3
push esi
lea ecx, [ebp - 0x50]
call fcn.010291b3
push 0x1005068
lea ecx, [ebp - 0x50]
call fcn.010291b3
push esi
lea ecx, [ebp - 0x50]
call fcn.010291b3
push 0x1005058
lea ecx, [ebp - 0x50]
call fcn.010291b3
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x3c]
mov esi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
lea eax, [eax + eax + 2]
push eax
lea ecx, [ecx + ecx + 2]
push edi
mov dword [ebp - 0xd8], eax
mov dword [ebp - 0xd4], ecx
call esi
mov ebx, dword [ebp - 0xfc]
mov dword [ebx], eax
cmp eax, edi
jne 0x105b04b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc4], eax
mov eax, dword [0x1075004]
cmp eax, 0x1075004
je 0x105b146
test byte [eax + 0x1c], 4
je 0x105b146
cmp byte [eax + 0x19], 2
jb 0x105b146
push dword [ebp - 0xc4]
push 0x1004e38
push 0x32
jmp 0x105acef
push dword [ebp - 0xd4]
push edi
call esi
mov esi, dword [ebp - 0x104]
mov dword [esi], eax
cmp eax, edi
jne 0x105b0ad
cmp dword [ebx], edi
je 0x105b06b
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc4], eax
mov eax, dword [0x1075004]
cmp eax, 0x1075004
je 0x105b146
test byte [eax + 0x1c], 4
je 0x105b146
cmp byte [eax + 0x19], 2
jb 0x105b146
push dword [ebp - 0xc4]
push 0x1004e38
push 0x33
jmp 0x105acef
cmp dword [ebp - 0x54], 8
mov eax, dword [ebp - 0x68]
jae 0x105b0b9
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0xd8]
push dword [ebx]
call fcn.0101eb14
cmp eax, edi
jge 0x105b0ef
mov ecx, dword [0x1075004]
cmp ecx, 0x1075004
je 0x105b13a
test byte [ecx + 0x1c], 4
je 0x105b13a
cmp byte [ecx + 0x19], 2
jb 0x105b13a
push eax
push 0x1004e38
push 0x34
jmp 0x105b12f
cmp dword [ebp - 0x38], 8
mov eax, dword [ebp - 0x4c]
jae 0x105b0fb
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0xd4]
push dword [esi]
call fcn.0101eb14
cmp eax, edi
jge 0x105b146
mov ecx, dword [0x1075004]
cmp ecx, 0x1075004
je 0x105b13a
test byte [ecx + 0x1c], 4
je 0x105b13a
cmp byte [ecx + 0x19], 2
jb 0x105b13a
push eax
push 0x1004e38
push 0x35
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0102ca9d
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LocalFree]
call ebx
push esi
call ebx
push edi
push 1
lea ecx, [ebp - 0x50]
call fcn.01025bbc
push edi
push 1
lea ecx, [ebp - 0x6c]
call fcn.01025bbc
cmp dword [ebp - 0xc4], 0
je 0x105a901
push dword [ebp - 0xc4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x105af5c