Function at 0x406b00
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4114e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x342c
call fcn.0040a6f0
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov edx, ecx
push edi
xor eax, eax
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
xor esi, esi
and ecx, 3
mov dword [ebp - 0x10], esp
rep stosb byte es:[edi], al
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 4], esi
call fcn.0040a3e0
cmp eax, esi
jl 0x406dba
cmp eax, 0xfffffffb
jge 0x406dba
mov dword [ebp - 0x1c], esi
xor ebx, ebx
cmp ebx, 0x3ff
jg 0x406c99
lea eax, [ebp - 0x14]
xor esi, esi
mov dword [ebp - 0x14], eax
cmp esi, 0x3ff
jg 0x406ba3
lea eax, [esi*4]
inc esi
mov dword [ebp + eax - 0x2034], eax
jmp 0x406b8a
call fcn.00406040
lea ecx, [ebp - 0x14]
push ecx
push 0x4150a4
call fcn.00405ce0
call fcn.00405d30
mov edx, dword [ebp - 0x14]
push 0x400
lea eax, [ebp - 0x2034]
push edx
push eax
call fcn.00406350
add esp, 0x14
mov edi, eax
push 0x419e40
push 0x419e40
call fcn.0040a360
add esp, 8
test edi, edi
je 0x406bef
mov ecx, dword [edi]
jmp 0x406c09
mov edx, dword [ebp - 0x14]
push 0x3ff
lea eax, [ebp - 0x2034]
push edx
push eax
call fcn.00406350
mov ecx, dword [eax]
add esp, 0xc
lea edx, [ebp - 0x14]
mov dword [ebp + esi*4 - 0x2034], ecx
push edx
push 0x4150a4
call fcn.00405ce0
push 0x419e40
push 0x419e40
call fcn.0040a360
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea eax, [ebp - 0x14]
push eax
push 0x4150a4
call fcn.00405ce0
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x2034]
push eax
push eax
push ecx
call fcn.00406350
mov edx, dword [ebp - 0x14]
add esp, 0x14
lea eax, [ebp - 0x2034]
push 0x3ff
push edx
push eax
call fcn.00406350
mov ecx, dword [ebp - 0x14]
add esp, 0xc
push 0x3ff
push ecx
push eax
call fcn.00406350
mov edx, dword [eax]
mov eax, dword [pe_dos_header]
add esp, 0xc
inc ebx
lea ecx, [eax + edx*2]
mov dword [ebp + ebx*4 - 0x1038], ecx
jmp 0x406b76
call fcn.00405d00
mov eax, 1
cmp eax, 0x800
jge 0x406cc5
mov edx, dword [eax*4 + 0x417db0]
mov ecx, dword [eax*4 + 0x417db4]
cmp edx, ecx
jle 0x406d5b
call fcn.00405d00
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call fcn.00405d90
mov esi, eax
push 0x3fa
lea eax, [ebp - 0x1034]
push 0x53
push eax
call fcn.00406350
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
add esp, 0xc
lea edx, [ecx + esi*2]
lea ecx, [ebp - 0x1034]
push 0x400
push eax
push ecx
mov dword [ebp + ebx*4 - 0x1030], edx
call fcn.00406350
add esp, 0xc
lea edx, [ebp - 0x1c]
mov ebx, eax
push edx
push 0x4150a4
call fcn.00405ce0
add esp, 8
mov esi, 1
cmp esi, 0x3fe
jg 0x406d61
call fcn.00405d90
mov edi, eax
push 0x19b
lea eax, [ebp - 0x1034]
push 0x363
push eax
call fcn.00406350
mov ecx, dword [eax]
add esp, 0xc
inc esi
lea edx, [ecx + edi*2]
mov dword [ebp + esi*4 - 0x1028], edx
jmp 0x406d24
inc eax
jmp 0x406ca3
test ebx, ebx
je 0x406d6c
mov eax, dword [ebx]
add eax, 3
jmp 0x406d86
mov ecx, dword [ebp - 0x1c]
push 0x3ff
lea edx, [ebp - 0x1034]
push ecx
push edx
call fcn.00406350
mov eax, dword [eax]
add esp, 0xc
mov ecx, dword [ebp - 0x1c]
push 0x3ff
lea edx, [ebp - 0x1034]
push ecx
push edx
mov dword [ebp + esi*4 - 0x1034], eax
call fcn.00406350
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
push 0x3c9
push ecx
push eax
call fcn.00406350
mov ebx, dword [ebp + 8]
add esp, 0xc
mov ecx, 0x100
xor eax, eax
lea edi, [ebp - 0x2438]
lea edx, [ebp - 0x2438]
rep stosd dword es:[edi], eax
push 0x401
push edx
push 0
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x2438]
push 0x4150b4
push eax
call fcn.0040abb0
add esp, 8
mov dword [ebp - 0x18], eax
test eax, eax
je 0x40724a
push 2
push 0
push eax
call fcn.0040ab04
mov edx, dword [ebp - 0x18]
lea ecx, [ebp - 0x2c]
push ecx
push edx
call fcn.0040aae2
mov eax, dword [ebp - 0x18]
push 2
push 0xfffffffffffffffc
push eax
call fcn.0040ab04
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 0x20]
push ecx
push 1
push 4
push edx
call fcn.0040a9fa
mov eax, dword [ebp - 0x20]
add esp, 0x30
test eax, eax
jle 0x40724a
mov ecx, dword [ebp - 0x28]
cdq
cmp edx, ecx
jg 0x40724a
jl 0x406e57
cmp eax, dword [ebp - 0x2c]
ja 0x40724a
call fcn.0040a3e0
test eax, eax
jl 0x4070d3
cmp eax, 0xfffffffb
jge 0x4070d3
mov dword [ebp - 0x1c], 0
xor ebx, ebx
cmp ebx, 0x3ff
jg 0x406fac
lea eax, [ebp - 0x14]
xor esi, esi
mov dword [ebp - 0x14], eax
cmp esi, 0x3ff
jg 0x406ea3
lea eax, [esi*4]
inc esi
mov dword [ebp + eax - 0x2034], eax
jmp 0x406e8a
call fcn.00406040
lea ecx, [ebp - 0x14]
push ecx
push 0x4150a4
call fcn.00405ce0
call fcn.00405d30
mov edx, dword [ebp - 0x14]
push 0x400
lea eax, [ebp - 0x2034]
push edx
push eax
call fcn.00406350
add esp, 0x14
mov edi, eax
push 0x419e40
push 0x419e40
call fcn.0040a360
add esp, 8
test edi, edi
je 0x406eef
mov ecx, dword [edi]
jmp 0x406f09
mov edx, dword [ebp - 0x14]
push 0x3ff
lea eax, [ebp - 0x2034]
push edx
push eax
call fcn.00406350
mov ecx, dword [eax]
add esp, 0xc
lea edx, [ebp - 0x14]
mov dword [ebp + esi*4 - 0x2034], ecx
push edx
push 0x4150a4
call fcn.00405ce0
push 0x419e40
push 0x419e40
call fcn.0040a360
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea eax, [ebp - 0x14]
push eax
push 0x4150a4
call fcn.00405ce0
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x2034]
push eax
push eax
push ecx
call fcn.00406350
mov edx, dword [ebp - 0x14]
add esp, 0x14
lea eax, [ebp - 0x2034]
push 0x3ff
push edx
push eax
call fcn.00406350
mov ecx, dword [ebp - 0x14]
add esp, 0xc
push 0x3ff
push ecx
push eax
call fcn.00406350
mov esi, dword [eax]
add esp, 0xc
lea edx, [ebp - 0x1034]
push 0x3fb
push 8
push edx
call fcn.00406350
mov eax, dword [eax]
add esp, 0xc
inc ebx
lea ecx, [eax + esi*2]
mov dword [ebp + ebx*4 - 0x1038], ecx
jmp 0x406e76
call fcn.00405d00
mov eax, 1
cmp eax, 0x800
jge 0x406fd8
mov edx, dword [eax*4 + 0x417db0]
mov ecx, dword [eax*4 + 0x417db4]
cmp edx, ecx
jle 0x40706e
call fcn.00405d00
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call fcn.00405d90
mov esi, eax
push 0x3fa
lea eax, [ebp - 0x1034]
push 0x53
push eax
call fcn.00406350
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
add esp, 0xc
lea edx, [ecx + esi*2]
lea ecx, [ebp - 0x1034]
push 0x400
push eax
push ecx
mov dword [ebp + ebx*4 - 0x1030], edx
call fcn.00406350
add esp, 0xc
lea edx, [ebp - 0x1c]
mov ebx, eax
push edx
push 0x4150a4
call fcn.00405ce0
add esp, 8
mov esi, 1
cmp esi, 0x3fe
jg 0x407074
call fcn.00405d90
mov edi, eax
push 0x19b
lea eax, [ebp - 0x1034]
push 0x363
push eax
call fcn.00406350
mov ecx, dword [eax]
add esp, 0xc
inc esi
lea edx, [ecx + edi*2]
mov dword [ebp + esi*4 - 0x1028], edx
jmp 0x407037
inc eax
jmp 0x406fb6
test ebx, ebx
je 0x40707f
mov eax, dword [ebx]
add eax, 3
jmp 0x407099
mov ecx, dword [ebp - 0x1c]
push 0x3ff
lea edx, [ebp - 0x1034]
push ecx
push edx
call fcn.00406350
mov eax, dword [eax]
add esp, 0xc
mov ecx, dword [ebp - 0x1c]
push 0x3ff
lea edx, [ebp - 0x1034]
push ecx
push edx
mov dword [ebp + esi*4 - 0x1034], eax
call fcn.00406350
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
push 0x3c9
push ecx
push eax
call fcn.00406350
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, dword [ebp + 8]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x18]
push 0
push edx
push eax
call fcn.0040ab04
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 0x24]
push ecx
push 1
push 4
push edx
call fcn.0040a9fa
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp + 0x10]
add esp, 0x1c
cmp eax, ecx
jg 0x40724a
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], 0
cmp esi, 1
jne 0x407126
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x24]
push ecx
push edx
jmp 0x4071e6
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x18]
push 1
push eax
push ecx
call fcn.0040ab04
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x20]
push eax
push 1
lea ecx, [ebp - 0x30]
add edi, edx
push 4
push ecx
mov dword [ebp - 0x20], edi
call fcn.0040a9fa
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x30]
add eax, ecx
add esp, 0x1c
test eax, eax
mov dword [ebp - 0x20], eax
jle 0x40724d
mov edi, dword [ebp - 0x28]
cdq
cmp edx, edi
jg 0x40724d
jl 0x40717e
cmp eax, dword [ebp - 0x2c]
ja 0x40724d
cmp ecx, 0x400
jg 0x40724d
cmp esi, 2
jne 0x407195
mov edx, dword [ebp - 0x18]
push edx
jmp 0x4071e5
mov eax, dword [ebp - 0x18]
push 1
push ecx
push eax
call fcn.0040ab04
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 0x34]
push ecx
push 1
push 4
push edx
call fcn.0040a9fa
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x34]
add eax, ecx
add esp, 0x1c
test eax, eax
mov dword [ebp - 0x20], eax
jle 0x40724d
mov edi, dword [ebp - 0x28]
cdq
cmp edx, edi
jg 0x40724d
jl 0x4071d7
cmp eax, dword [ebp - 0x2c]
ja 0x40724d
cmp ecx, dword [ebp + 0x10]
jg 0x40724d
cmp esi, 3
jne 0x4071f1
mov eax, dword [ebp - 0x18]
push eax
push ecx
push 1
push ebx
call fcn.0040a9fa
add esp, 0x10
lea ecx, [ebp - 0x18]
push ecx
call fcn.00407710
add esp, 4
cmp esi, 1
jne 0x407222
mov esi, dword [ebp - 0x24]
push esi
push ebx
call fcn.00406690
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 2
mov esi, dword [ebp - 0x30]
je 0x40722d
mov esi, dword [ebp - 0x34]
push esi
push ebx
call fcn.00406690
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0xc]
lea edx, [ebp - 0x18]
mov byte [ebp - 4], 3
push edx
call fcn.00407710
add esp, 4
cmp esi, 1
jne 0x4073d8
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x40
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret