Function at 0x406460
Capabilities:
Get hostname

Disassembly:
sub esp, 0x38
xor eax, eax
push ebp
mov ebp, dword [esp + 0x40]
mov dword [esp + 0x29], eax
push edi
xor edi, edi
cmp ebx, edi
mov dword [esp + 0x31], eax
mov dword [esp + 0x35], eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], edi
mov byte [esp + 0x2c], 0
mov dword [esp + 0x39], eax
mov dword [esp + 0x24], 0x10
je 0x406b68
cmp ebp, edi
je 0x406b68
mov eax, ebp
lea edx, [eax + 1]
jmp 0x4064b0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4064b0
sub eax, edx
push esi
lea esi, [eax + 1]
push esi
mov dword [esp + 0x14], eax
call fcn.00408d52
add esp, 4
cmp eax, edi
mov dword [esp + 0x14], eax
jne 0x4064de
pop esi
pop edi
mov eax, 0xfffffff3
pop ebp
add esp, 0x38
ret
mov edx, dword [esp + 0x14]
mov ecx, esi
shr ecx, 2
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x10]
push ecx
push ebp
push edx
call fcn.004090f0
mov edx, dword [esp + 0x20]
push edx
xor esi, esi
push esi
push 1
push 3
push ebx
call fcn.00408840
mov eax, dword [esp + 0x30]
add esp, 0x20
test eax, eax
jle 0x406b50
mov edi, dword [esp + 0x14]
mov al, byte [edi + esi]
cmp al, 0x20
jg 0x406536
inc esi
mov dword [esp + 0xc], esi
jmp 0x406b42
cmp al, 0x2d
je 0x406548
cmp al, 0x2f
je 0x406548
inc esi
mov dword [esp + 0xc], esi
jmp 0x406b42
lea eax, [esp + 0x20]
push eax
inc esi
lea ecx, [esp + 0x10]
push ecx
lea edx, [edi + esi]
push edx
mov dword [esp + 0x18], esi
call fcn.00405ef0
add esp, 0xc
test eax, eax
je 0x406b3e
mov esi, dword [esp + 0x20]
push 0x417290
push esi
call fcn.004127e4
add esp, 8
test eax, eax
jne 0x4065b5
mov ecx, dword [esp + 0x10]
lea eax, [ebx + 0x2d4]
push eax
push ecx
push edi
lea esi, [esp + 0x18]
call fcn.00405f40
add esp, 0xc
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x406b42
mov dword [ebx + 0x260], 1
jmp 0x406b42
push 0x41728c
push esi
call fcn.004127e4
add esp, 8
test eax, eax
jne 0x4065e9
mov eax, dword [esp + 0x10]
lea edx, [ebx + 0x2d8]
push edx
push eax
push edi
lea esi, [esp + 0x18]
call fcn.00405f40
add esp, 0xc
mov dword [esp + 0x1c], eax
jmp 0x406b42
push 0x417288
push esi
call fcn.004127e4
add esp, 8
test eax, eax
jne 0x40660a
mov dword [ebx + 0x254], 1
jmp 0x406b42
push 0x417284
push esi
call fcn.004127e4
add esp, 8
test eax, eax
jne 0x40662b
mov dword [ebx + 0x258], 1
jmp 0x406b42
push 0x417280
push esi
call fcn.004127e4
add esp, 8
test eax, eax
jne 0x40664c
mov dword [ebx + 0x24c], 1
jmp 0x406b42
push 0x414220
push esi
call fcn.004127e4
add esp, 8
test eax, eax
jne 0x40666d
mov dword [ebx + 0x240], 1
jmp 0x406b42
push 0x41727c
push esi
call fcn.004127e4
add esp, 8
test eax, eax
jne 0x40668e
mov dword [ebx + 0x250], 1
jmp 0x406b42
push 0x417278
push esi
call fcn.004127e4
add esp, 8
test eax, eax
je 0x406b32
push 0x417274
push esi
call fcn.004127e4
add esp, 8
test eax, eax
je 0x406b32
push 0x417270
push esi
call fcn.004127e4
add esp, 8
test eax, eax
jne 0x4066db
mov dword [ebx + 0x248], 1
jmp 0x406b42
push 0x41726c
push esi
call fcn.004127e4
add esp, 8
test eax, eax
jne 0x4066fc
mov dword [ebx + 0x244], 1
jmp 0x406b42
push 0x417268
push esi
call fcn.004127e4
add esp, 8
test eax, eax
jne 0x40673c
cmp dword [ebx + 0x29c], 3
jg 0x406b42
xor eax, eax
mov ecx, 0xc
lea edi, [ebx + 0x2a0]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebx + 0x29c], 3
jmp 0x406b42
push 0x417264
push esi
call fcn.004127e4
add esp, 8
test eax, eax
jne 0x4067d5
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push edx
push eax
lea esi, [esp + 0x18]
call fcn.00405f40
mov ebp, dword [esp + 0x24]
add esp, 0xc
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x40689d
test ebp, ebp
je 0x406b42
cmp dword [ebx + 0x29c], 4
jg 0x40689d
lea esi, [ebx + 0x2a0]
xor eax, eax
mov ecx, 0xc
mov edi, esi
rep stosd dword es:[edi], eax
push 0x33
stosw word es:[edi], ax
push ebp
push esi
stosb byte es:[edi], al
call fcn.004090f0
mov al, byte [esi]
add esp, 0xc
test al, al
mov dword [ebx + 0x29c], 4
jne 0x40689d
mov dword [ebx + 0x29c], 0
jmp 0x40689d
push 0x417260
push esi
call fcn.004127e4
add esp, 8
test eax, eax
jne 0x406815
cmp dword [ebx + 0x264], 7
jg 0x406b42
xor eax, eax
mov ecx, 0xc
lea edi, [ebx + 0x268]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebx + 0x264], 7
jmp 0x406b42
push 0x41725c
push esi
call fcn.004127e4
add esp, 8
test eax, eax
jne 0x4068bb
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push edx
push eax
lea esi, [esp + 0x18]
call fcn.00405f40
mov ebp, dword [esp + 0x24]
add esp, 0xc
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x40689d
test ebp, ebp
je 0x406b42
cmp dword [ebx + 0x264], 8
jg 0x40689d
lea esi, [ebx + 0x268]
xor eax, eax
mov ecx, 0xc
mov edi, esi
rep stosd dword es:[edi], eax
push 0x33
stosw word es:[edi], ax
push ebp
push esi
stosb byte es:[edi], al
call fcn.004090f0
mov al, byte [esi]
add esp, 0xc
test al, al
mov dword [ebx + 0x264], 8
jne 0x40689d
mov dword [ebx + 0x264], 0
test ebp, ebp
je 0x406b42
push ebp
call fcn.004089b2
add esp, 4
mov dword [esp + 0x18], 0
jmp 0x406b42
push str.cmugdrk_heisbtz
push esi
call fcn.004127e4
add esp, 8
test eax, eax
jne 0x406957
cmp dword [ebx + 0x264], 6
jg 0x406b42
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
je 0x406939
lea esi, [ebx + 0x268]
xor eax, eax
mov ecx, 0xc
mov edi, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x33
lea eax, [esp + 0x34]
push eax
push esi
call fcn.004090f0
mov al, byte [esi]
add esp, 0xc
test al, al
mov dword [ebx + 0x264], 6
jne 0x406b42
mov dword [ebx + 0x264], 0
jmp 0x406b42
push str.Cannot_determine_the_computers_name.
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 2
push 1
push ebx
call fcn.00408840
add esp, 0x14
jmp 0x406b42
push 0x41722c
push esi
call fcn.004127e4
add esp, 8
test eax, eax
jne 0x406b42
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
lea ebp, [ebx + 0x2dc]
push ebp
push ecx
push edx
lea esi, [esp + 0x18]
call fcn.00405f40
mov ecx, dword [ebp]
add esp, 0xc
test ecx, ecx
mov dword [esp + 0x1c], eax
je 0x406b42
mov eax, ecx
lea esi, [eax + 1]
mov edi, edi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4069a0
sub eax, esi
cmp byte [ecx + eax - 1], 0x22
jne 0x4069cf
mov eax, ecx
mov dword [esp + 0x24], 1
lea esi, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4069c0
sub eax, esi
mov byte [ecx + eax - 1], dl
jmp 0x4069d7
mov dword [esp + 0x24], 0
mov ecx, dword [ebp]
mov eax, ecx
lea esi, [eax + 1]
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4069e0
sub eax, esi
cmp byte [ecx + eax - 1], 0x5c
jne 0x406a37
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4069f5
sub eax, esi
mov byte [ecx + eax - 1], dl
mov ecx, dword [ebp]
mov eax, ecx
lea esi, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x406a10
sub eax, esi
mov dword [esp + 0x2c], eax
je 0x406a37
mov esi, dword [ebp]
mov eax, esi
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x406a27
sub eax, edi
cmp byte [esi + eax - 1], 0x5c
je 0x4069f0
mov edx, dword [ebp]
mov eax, edx
lea esi, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406a40
sub eax, esi
cmp eax, 6
mov eax, edx
lea esi, [eax + 1]
jb 0x406b14
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406a57
sub eax, esi
lea eax, [edx + eax - 6]
push str.Agent
push eax
call fcn.004127e4
add esp, 8
test eax, eax
je 0x406aea
mov edx, dword [ebp]
mov eax, edx
lea esi, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406a80
sub eax, esi
add eax, 0x14
push eax
push edx
call fcn.004098cd
add esp, 8
test eax, eax
mov dword [ebp], eax
je 0x406aea
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x406aa2
sub ecx, esi
cmp byte [ecx + eax - 1], 0x5c
je 0x406ac7
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x406ab3
mov cx, word [0x416464]
mov edi, eax
mov word [edi], cx
mov edi, dword [ebp]
dec edi
jmp 0x406ad0
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x406ad0
mov edx, dword [0x41721c]
mov dword [edi], edx
mov ax, word [0x417220]
mov word [edi + 4], ax
mov eax, dword [esp + 0x24]
test eax, eax
je 0x406b42
mov edi, dword [ebp]
test edi, edi
je 0x406b42
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x406b00
mov cx, word [0x41458c]
mov word [edi], cx
jmp 0x406b42
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406b14
sub eax, esi
mov dword [esp + 0x2c], eax
jne 0x406a76
mov dword [edx], 0x5c3a63
jmp 0x406a76
mov dword [ebx + 0x25c], 1
jmp 0x406b42
inc dword [esp + 0xc]
mov esi, dword [esp + 0xc]
cmp esi, dword [esp + 0x10]
jl 0x406521
mov edx, dword [esp + 0x14]
push edx
call fcn.004089b2
mov eax, dword [esp + 0x20]
add esp, 4
pop esi
pop edi
pop ebp
add esp, 0x38
ret
pop edi
mov eax, 0xfffffff8
pop ebp
add esp, 0x38
ret