Function at 0x4096f0
Capabilities:
Get hostname
Query environment variable

Disassembly:
sub esp, 0x34
xor eax, eax
push ebp
mov ebp, dword [esp + 0x3c]
mov dword [esp + 0x25], eax
push edi
xor edi, edi
cmp ebx, edi
mov dword [esp + 0x2d], eax
mov dword [esp + 0x31], eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], edi
mov byte [esp + 0x28], 0
mov dword [esp + 0x35], eax
mov dword [esp + 0x20], 0x10
je 0x40a066
cmp ebp, edi
je 0x40a066
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409737
sub eax, edx
push esi
lea esi, [eax + 1]
push esi
mov dword [esp + 0x20], eax
call fcn.0040c2e2
add esp, 4
cmp eax, edi
mov dword [esp + 0x18], eax
jne 0x409765
pop esi
pop edi
mov eax, 0xfffffff3
pop ebp
add esp, 0x34
ret
mov edx, dword [esp + 0x18]
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 + 0x1c]
push ecx
push ebp
push edx
call fcn.0040c810
mov edx, dword [esp + 0x24]
push edx
xor esi, esi
push esi
push 1
push 3
push ebx
call fcn.0040bdd0
mov eax, dword [esp + 0x3c]
mov ebp, dword [esp + 0x34]
add esp, 0x20
test eax, eax
jle 0x409c1e
mov edi, dword [esp + 0x18]
mov al, byte [edi + esi]
cmp al, 0x20
je 0x4097c3
cmp al, 9
je 0x4097c3
cmp al, 0xd
je 0x4097c3
cmp al, 0xa
jne 0x4097cd
inc esi
mov dword [esp + 0x10], esi
jmp 0x409c10
cmp al, 0x2d
je 0x4097df
cmp al, 0x2f
je 0x4097df
inc esi
mov dword [esp + 0x10], esi
jmp 0x409c10
lea eax, [esp + 0x20]
push eax
inc esi
lea ecx, [esp + 0x14]
push ecx
lea edx, [edi + esi]
push edx
mov dword [esp + 0x1c], esi
call fcn.004090d0
add esp, 0xc
test eax, eax
je 0x40a05d
mov esi, dword [esp + 0x20]
push 0x41a954
push esi
call fcn.0040c75e
add esp, 8
test eax, eax
jne 0x40986a
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push ecx
push edi
lea esi, [esp + 0x1c]
call fcn.00409120
mov ebp, eax
add esp, 0xc
test ebp, ebp
mov dword [esp + 0x14], ebp
jne 0x409c08
mov esi, dword [esp + 0xc]
test esi, esi
je 0x409c08
push 0x14
lea edx, [ebx + 0x328]
push esi
push edx
call fcn.0040c810
push esi
call fcn.0040bf42
add esp, 0x10
jmp 0x409c10
push 0x41a950
push esi
call fcn.0040c75e
add esp, 8
test eax, eax
jne 0x4098b2
mov ecx, dword [esp + 0x1c]
lea eax, [ebx + 0x318]
push eax
push ecx
push edi
lea esi, [esp + 0x1c]
call fcn.00409120
mov ebp, eax
add esp, 0xc
test ebp, ebp
mov dword [esp + 0x14], ebp
jne 0x409c08
mov dword [ebx + 0x260], 1
jmp 0x409c10
push 0x41a94c
push esi
call fcn.0040c75e
add esp, 8
test eax, eax
jne 0x4098e8
mov eax, dword [esp + 0x1c]
lea edx, [ebx + 0x31c]
push edx
push eax
push edi
lea esi, [esp + 0x1c]
call fcn.00409120
mov ebp, eax
add esp, 0xc
mov dword [esp + 0x14], ebp
jmp 0x409c10
push 0x41a948
push esi
call fcn.0040c75e
add esp, 8
test eax, eax
jne 0x409909
mov dword [ebx + 0x254], 1
jmp 0x409c10
push 0x41a944
push esi
call fcn.0040c75e
add esp, 8
test eax, eax
jne 0x40992a
mov dword [ebx + 0x258], 1
jmp 0x409c10
push 0x41a940
push esi
call fcn.0040c75e
add esp, 8
test eax, eax
jne 0x40994b
mov dword [ebx + 0x24c], 1
jmp 0x409c10
push 0x41a93c
push esi
call fcn.0040c75e
add esp, 8
test eax, eax
jne 0x40996c
mov dword [ebx + 0x3d8], 1
jmp 0x409c10
push 0x417240
push esi
call fcn.0040c75e
add esp, 8
test eax, eax
jne 0x40998d
mov dword [ebx + 0x240], 1
jmp 0x409c10
push 0x41a938
push esi
call fcn.0040c75e
add esp, 8
test eax, eax
jne 0x4099ae
mov dword [ebx + 0x250], 1
jmp 0x409c10
push 0x41a934
push esi
call fcn.0040c75e
add esp, 8
test eax, eax
je 0x40a04e
push 0x41a930
push esi
call fcn.0040c75e
add esp, 8
test eax, eax
je 0x40a04e
push 0x41a92c
push esi
call fcn.0040c75e
add esp, 8
test eax, eax
jne 0x4099fb
mov dword [ebx + 0x248], 1
jmp 0x409c10
push 0x41a928
push esi
call fcn.0040c75e
add esp, 8
test eax, eax
jne 0x409a1c
mov dword [ebx + 0x244], 1
jmp 0x409c10
push 0x41a924
push esi
call fcn.0040c75e
add esp, 8
test eax, eax
jne 0x409a3d
mov dword [ebx + 0x264], 1
jmp 0x409c10
push 0x41a920
push esi
call fcn.0040c75e
add esp, 8
test eax, eax
jne 0x409a5e
mov dword [ebx + 0x3f8], 1
jmp 0x409c10
push 0x41a91c
push esi
call fcn.0040c75e
add esp, 8
test eax, eax
jne 0x409a9c
cmp dword [ebx + 0x2c0], 3
jg 0x409c08
mov ecx, 0x14
xor eax, eax
lea edi, [ebx + 0x2c4]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov dword [ebx + 0x2c0], 3
jmp 0x409c0c
push 0x41a918
push esi
call fcn.0040c75e
add esp, 8
test eax, eax
jne 0x409b37
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
push edx
push eax
lea esi, [esp + 0x1c]
call fcn.00409120
mov ebp, dword [esp + 0x18]
add esp, 0xc
test eax, eax
mov dword [esp + 0x14], eax
jne 0x409bfb
test ebp, ebp
je 0x409c08
cmp dword [ebx + 0x2c0], 4
jg 0x409bfb
lea esi, [ebx + 0x2c4]
xor eax, eax
mov ecx, 0x14
mov edi, esi
rep stosd dword es:[edi], eax
push 0x51
push ebp
push esi
stosb byte es:[edi], al
call fcn.0040c810
mov al, byte [esi]
add esp, 0xc
test al, al
mov dword [ebx + 0x2c0], 4
jne 0x409bfb
mov dword [ebx + 0x2c0], 0
jmp 0x409bfb
push 0x41a914
push esi
call fcn.0040c75e
add esp, 8
test eax, eax
jne 0x409b75
cmp dword [ebx + 0x268], 7
jg 0x409c08
mov ecx, 0x14
xor eax, eax
lea edi, [ebx + 0x26c]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov dword [ebx + 0x268], 7
jmp 0x409c0c
push 0x41a910
push esi
call fcn.0040c75e
add esp, 8
test eax, eax
jne 0x409c34
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
push edx
push eax
lea esi, [esp + 0x1c]
call fcn.00409120
mov ebp, dword [esp + 0x18]
add esp, 0xc
test eax, eax
mov dword [esp + 0x14], eax
jne 0x409bfb
test ebp, ebp
je 0x409c08
cmp dword [ebx + 0x268], 8
jg 0x409bfb
lea esi, [ebx + 0x26c]
xor eax, eax
mov ecx, 0x14
mov edi, esi
rep stosd dword es:[edi], eax
push 0x51
push ebp
push esi
stosb byte es:[edi], al
call fcn.0040c810
mov al, byte [esi]
add esp, 0xc
test al, al
mov dword [ebx + 0x268], 8
jne 0x409bfb
mov dword [ebx + 0x268], 0
test ebp, ebp
je 0x409c08
push ebp
call fcn.0040bf42
add esp, 4
mov ebp, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
cmp esi, dword [esp + 0x1c]
jl 0x4097b0
mov edx, dword [esp + 0x18]
push edx
call fcn.0040bf42
add esp, 4
pop esi
pop edi
mov eax, ebp
pop ebp
add esp, 0x34
ret
push str.cmugdqxrk_hejisbtza
push esi
call fcn.0040c75e
add esp, 8
test eax, eax
jne 0x409cca
cmp dword [ebx + 0x268], 6
jg 0x409c08
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
je 0x409cac
lea esi, [ebx + 0x26c]
xor eax, eax
mov ecx, 0x14
mov edi, esi
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
push 0x51
lea eax, [esp + 0x30]
push eax
push esi
call fcn.0040c810
mov al, byte [esi]
add esp, 0xc
test al, al
mov dword [ebx + 0x268], 6
jne 0x409c08
mov dword [ebx + 0x268], 0
jmp 0x409c0c
push str.Cannot_determine_the_computers_name.
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 2
push 1
push ebx
call fcn.0040bdd0
add esp, 0x14
jmp 0x409c10
push 0x41a8e0
push esi
call fcn.0040c75e
add esp, 8
test eax, eax
jne 0x409f1e
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
lea ebp, [ebx + 0x324]
push ebp
push ecx
push edx
lea esi, [esp + 0x1c]
call fcn.00409120
mov dword [esp + 0x20], eax
mov eax, dword [ebp]
add esp, 0xc
test eax, eax
je 0x409c08
push 0x25
push eax
call fcn.0040cfc0
add esp, 8
test eax, eax
je 0x409d79
mov eax, dword [ebp]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409d21
sub eax, edx
lea esi, [eax + eax]
cmp esi, 0x208
jge 0x409d3a
mov esi, 0x208
lea eax, [esi + 2]
push 1
push eax
call fcn.0040d1a7
mov edi, eax
add esp, 8
test edi, edi
je 0x409d79
mov ecx, dword [ebp]
push esi
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
jle 0x409d70
cmp eax, esi
jge 0x409d70
mov edx, dword [ebp]
push edx
call fcn.0040bf42
mov dword [ebp], edi
jmp 0x409d76
push edi
call fcn.0040bf42
add esp, 4
mov ecx, dword [ebp]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x409d81
sub eax, esi
cmp byte [ecx + eax - 1], 0x22
jne 0x409daf
mov eax, ecx
mov dword [esp + 0xc], 1
lea esi, [eax + 1]
mov edi, edi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x409da0
sub eax, esi
mov byte [ecx + eax - 1], dl
jmp 0x409db7
mov dword [esp + 0xc], 0
mov ecx, dword [ebp]
mov eax, ecx
lea esi, [eax + 1]
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x409dc0
sub eax, esi
cmp byte [ecx + eax - 1], 0x5c
jne 0x409e17
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x409dd5
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 0x409df0
sub eax, esi
mov dword [esp + 0x28], eax
je 0x409e17
mov esi, dword [ebp]
mov eax, esi
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x409e07
sub eax, edi
cmp byte [esi + eax - 1], 0x5c
je 0x409dd0
mov edx, dword [ebp]
mov eax, edx
lea esi, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409e20
sub eax, esi
cmp eax, 6
mov eax, edx
lea esi, [eax + 1]
jb 0x409f00
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409e37
sub eax, esi
lea eax, [edx + eax - 6]
push str.Agent
push eax
call fcn.0040c75e
add esp, 8
test eax, eax
je 0x409eca
mov edx, dword [ebp]
mov eax, edx
lea esi, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409e60
sub eax, esi
add eax, 0x14
push eax
push edx
call fcn.0040cca3
add esp, 8
test eax, eax
mov dword [ebp], eax
je 0x409eca
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x409e82
sub ecx, esi
cmp byte [ecx + eax - 1], 0x5c
je 0x409ea7
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x409e93
mov cx, word [0x4177a4]
mov edi, eax
mov word [edi], cx
mov edi, dword [ebp]
dec edi
jmp 0x409eb0
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x409eb0
mov edx, dword [0x41a8d0]
mov dword [edi], edx
mov ax, word [0x41a8d4]
mov word [edi + 4], ax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x409c08
mov edi, dword [ebp]
test edi, edi
je 0x409c08
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x409ee2
mov cx, word [0x417ec4]
mov word [edi], cx
jmp 0x409c08
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409f00
sub eax, esi
mov dword [esp + 0x28], eax
jne 0x409e56
mov dword [edx], 0x5c3a63
jmp 0x409e56
push 0x41a8cc
push esi
call fcn.0040c75e
add esp, 8
test eax, eax
jne 0x409f82
lea edx, [esp + 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x1c]
push edx
push eax
push edi
lea esi, [esp + 0x1c]
call fcn.00409120
mov ebp, eax
add esp, 0xc
test ebp, ebp
mov dword [esp + 0x14], ebp
jne 0x409c08
mov esi, dword [esp + 0xc]
test esi, esi
je 0x409c08
push 0x32
lea ecx, [ebx + 0x33d]
push esi
push ecx
call fcn.0040c810
push esi
call fcn.0040bf42
add esp, 0x10
jmp 0x409c10
push 0x41a8c8
push esi
call fcn.0040c75e
add esp, 8
test eax, eax
jne 0x409fe6
lea edx, [esp + 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x1c]
push edx
push eax
push edi
lea esi, [esp + 0x1c]
call fcn.00409120
mov ebp, eax
add esp, 0xc
test ebp, ebp
mov dword [esp + 0x14], ebp
jne 0x409c08
mov esi, dword [esp + 0xc]
test esi, esi
je 0x409c08
push 0x64
lea ecx, [ebx + 0x370]
push esi
push ecx
call fcn.0040c810
push esi
call fcn.0040bf42
add esp, 0x10
jmp 0x409c10
push 0x41a8c4
push esi
call fcn.0040c75e
add esp, 8
test eax, eax
jne 0x409c08
lea edx, [esp + 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x1c]
push edx
push eax
push edi
lea esi, [esp + 0x1c]
call fcn.00409120
mov ebp, eax
add esp, 0xc
test ebp, ebp
mov dword [esp + 0x14], ebp
jne 0x409c08
mov esi, dword [esp + 0xc]
test esi, esi
je 0x409c08
push 0x1a
lea ecx, [ebx + 0x3dc]
push esi
push ecx
call fcn.0040c810
push esi
call fcn.0040bf42
add esp, 0x10
jmp 0x409c10
mov dword [ebx + 0x25c], 1
jmp 0x409c10
inc dword [esp + 0x10]
jmp 0x409c10
pop edi
mov eax, 0xfffffff8
pop ebp
add esp, 0x34
ret