Function at 0x406bb0
Capabilities:
Get hostname
Query environment variable

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 0x407348
cmp ebp, edi
je 0x407348
mov eax, ebp
lea edx, [eax + 1]
jmp 0x406c00
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406c00
sub eax, edx
push esi
lea esi, [eax + 1]
push esi
mov dword [esp + 0x14], eax
call fcn.00409552
add esp, 4
cmp eax, edi
mov dword [esp + 0x14], eax
jne 0x406c2e
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.004098f0
mov edx, dword [esp + 0x20]
push edx
xor esi, esi
push esi
push 1
push 3
push ebx
call fcn.00409040
mov eax, dword [esp + 0x30]
add esp, 0x20
test eax, eax
jle 0x407330
mov edi, dword [esp + 0x14]
mov al, byte [edi + esi]
cmp al, 0x20
jg 0x406c86
inc esi
mov dword [esp + 0xc], esi
jmp 0x407322
cmp al, 0x2d
je 0x406c98
cmp al, 0x2f
je 0x406c98
inc esi
mov dword [esp + 0xc], esi
jmp 0x407322
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.00406640
add esp, 0xc
test eax, eax
je 0x40731e
mov esi, dword [esp + 0x20]
push 0x4171f4
push esi
call fcn.0041309b
add esp, 8
test eax, eax
jne 0x406d05
mov ecx, dword [esp + 0x10]
lea eax, [ebx + 0x2d8]
push eax
push ecx
push edi
lea esi, [esp + 0x18]
call fcn.00406690
add esp, 0xc
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x407322
mov dword [ebx + 0x260], 1
jmp 0x407322
push 0x4171f0
push esi
call fcn.0041309b
add esp, 8
test eax, eax
jne 0x406d39
mov eax, dword [esp + 0x10]
lea edx, [ebx + 0x2dc]
push edx
push eax
push edi
lea esi, [esp + 0x18]
call fcn.00406690
add esp, 0xc
mov dword [esp + 0x1c], eax
jmp 0x407322
push 0x4171ec
push esi
call fcn.0041309b
add esp, 8
test eax, eax
jne 0x406d5a
mov dword [ebx + 0x254], 1
jmp 0x407322
push 0x4171e8
push esi
call fcn.0041309b
add esp, 8
test eax, eax
jne 0x406d7b
mov dword [ebx + 0x258], 1
jmp 0x407322
push 0x4171e4
push esi
call fcn.0041309b
add esp, 8
test eax, eax
jne 0x406d9c
mov dword [ebx + 0x24c], 1
jmp 0x407322
push 0x414228
push esi
call fcn.0041309b
add esp, 8
test eax, eax
jne 0x406dbd
mov dword [ebx + 0x240], 1
jmp 0x407322
push 0x4171e0
push esi
call fcn.0041309b
add esp, 8
test eax, eax
jne 0x406dde
mov dword [ebx + 0x250], 1
jmp 0x407322
push 0x4171dc
push esi
call fcn.0041309b
add esp, 8
test eax, eax
je 0x407312
push 0x4171d8
push esi
call fcn.0041309b
add esp, 8
test eax, eax
je 0x407312
push 0x4171d4
push esi
call fcn.0041309b
add esp, 8
test eax, eax
jne 0x406e2b
mov dword [ebx + 0x248], 1
jmp 0x407322
push 0x4171d0
push esi
call fcn.0041309b
add esp, 8
test eax, eax
jne 0x406e4c
mov dword [ebx + 0x244], 1
jmp 0x407322
push 0x4171cc
push esi
call fcn.0041309b
add esp, 8
test eax, eax
jne 0x406e6d
mov dword [ebx + 0x264], 1
jmp 0x407322
push 0x4171c8
push esi
call fcn.0041309b
add esp, 8
test eax, eax
jne 0x406ead
cmp dword [ebx + 0x2a0], 3
jg 0x407322
xor eax, eax
mov ecx, 0xc
lea edi, [ebx + 0x2a4]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebx + 0x2a0], 3
jmp 0x407322
push 0x4171c4
push esi
call fcn.0041309b
add esp, 8
test eax, eax
jne 0x406f46
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.00406690
mov ebp, dword [esp + 0x24]
add esp, 0xc
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x40700e
test ebp, ebp
je 0x407322
cmp dword [ebx + 0x2a0], 4
jg 0x40700e
lea esi, [ebx + 0x2a4]
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.004098f0
mov al, byte [esi]
add esp, 0xc
test al, al
mov dword [ebx + 0x2a0], 4
jne 0x40700e
mov dword [ebx + 0x2a0], 0
jmp 0x40700e
push 0x4171c0
push esi
call fcn.0041309b
add esp, 8
test eax, eax
jne 0x406f86
cmp dword [ebx + 0x268], 7
jg 0x407322
xor eax, eax
mov ecx, 0xc
lea edi, [ebx + 0x26c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebx + 0x268], 7
jmp 0x407322
push 0x4171bc
push esi
call fcn.0041309b
add esp, 8
test eax, eax
jne 0x40702c
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.00406690
mov ebp, dword [esp + 0x24]
add esp, 0xc
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x40700e
test ebp, ebp
je 0x407322
cmp dword [ebx + 0x268], 8
jg 0x40700e
lea esi, [ebx + 0x26c]
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.004098f0
mov al, byte [esi]
add esp, 0xc
test al, al
mov dword [ebx + 0x268], 8
jne 0x40700e
mov dword [ebx + 0x268], 0
test ebp, ebp
je 0x407322
push ebp
call fcn.004091b2
add esp, 4
mov dword [esp + 0x18], 0
jmp 0x407322
push str.cmugdxrk_heisbtz
push esi
call fcn.0041309b
add esp, 8
test eax, eax
jne 0x4070c8
cmp dword [ebx + 0x268], 6
jg 0x407322
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
je 0x4070aa
lea esi, [ebx + 0x26c]
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.004098f0
mov al, byte [esi]
add esp, 0xc
test al, al
mov dword [ebx + 0x268], 6
jne 0x407322
mov dword [ebx + 0x268], 0
jmp 0x407322
push str.Cannot_determine_the_computers_name.
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 2
push 1
push ebx
call fcn.00409040
add esp, 0x14
jmp 0x407322
push 0x41718c
push esi
call fcn.0041309b
add esp, 8
test eax, eax
jne 0x407322
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
lea ebp, [ebx + 0x2e4]
push ebp
push ecx
push edx
lea esi, [esp + 0x18]
call fcn.00406690
mov dword [esp + 0x28], eax
mov eax, dword [ebp]
add esp, 0xc
test eax, eax
je 0x407322
push 0x25
push eax
call fcn.00409d70
add esp, 8
test eax, eax
je 0x407178
mov eax, dword [ebp]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407120
sub eax, edx
lea esi, [eax + eax]
cmp esi, 0x208
jge 0x407139
mov esi, 0x208
lea eax, [esi + 2]
push 1
push eax
call fcn.0040a252
mov edi, eax
add esp, 8
test edi, edi
je 0x407178
mov ecx, dword [ebp]
push esi
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
jle 0x40716f
cmp eax, esi
jge 0x40716f
mov edx, dword [ebp]
push edx
call fcn.004091b2
mov dword [ebp], edi
jmp 0x407175
push edi
call fcn.004091b2
add esp, 4
mov ecx, dword [ebp]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x407180
sub eax, esi
cmp byte [ecx + eax - 1], 0x22
jne 0x4071af
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 0x4071a0
sub eax, esi
mov byte [ecx + eax - 1], dl
jmp 0x4071b7
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 0x4071c0
sub eax, esi
cmp byte [ecx + eax - 1], 0x5c
jne 0x407217
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4071d5
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 0x4071f0
sub eax, esi
mov dword [esp + 0x2c], eax
je 0x407217
mov esi, dword [ebp]
mov eax, esi
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x407207
sub eax, edi
cmp byte [esi + eax - 1], 0x5c
je 0x4071d0
mov edx, dword [ebp]
mov eax, edx
lea esi, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407220
sub eax, esi
cmp eax, 6
mov eax, edx
lea esi, [eax + 1]
jb 0x4072f4
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407237
sub eax, esi
lea eax, [edx + eax - 6]
push str.Agent
push eax
call fcn.0041309b
add esp, 8
test eax, eax
je 0x4072ca
mov edx, dword [ebp]
mov eax, edx
lea esi, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407260
sub eax, esi
add eax, 0x14
push eax
push edx
call fcn.0040a0a0
add esp, 8
test eax, eax
mov dword [ebp], eax
je 0x4072ca
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x407282
sub ecx, esi
cmp byte [ecx + eax - 1], 0x5c
je 0x4072a7
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x407293
mov cx, word [0x4162ac]
mov edi, eax
mov word [edi], cx
mov edi, dword [ebp]
dec edi
jmp 0x4072b0
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4072b0
mov edx, dword [0x41717c]
mov dword [edi], edx
mov ax, word [0x417180]
mov word [edi + 4], ax
mov eax, dword [esp + 0x24]
test eax, eax
je 0x407322
mov edi, dword [ebp]
test edi, edi
je 0x407322
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4072e0
mov cx, word [0x414654]
mov word [edi], cx
jmp 0x407322
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4072f4
sub eax, esi
mov dword [esp + 0x2c], eax
jne 0x407256
mov dword [edx], 0x5c3a63
jmp 0x407256
mov dword [ebx + 0x25c], 1
jmp 0x407322
inc dword [esp + 0xc]
mov esi, dword [esp + 0xc]
cmp esi, dword [esp + 0x10]
jl 0x406c71
mov edx, dword [esp + 0x14]
push edx
call fcn.004091b2
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