Function at 0x4096c0
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 0x40a016
cmp ebp, edi
je 0x40a016
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409707
sub eax, edx
push esi
lea esi, [eax + 1]
push esi
mov dword [esp + 0x20], eax
call fcn.0040c292
add esp, 4
cmp eax, edi
mov dword [esp + 0x18], eax
jne 0x409735
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.0040c870
mov edx, dword [esp + 0x24]
push edx
xor esi, esi
push esi
push 1
push 3
push ebx
call fcn.0040bd80
mov eax, dword [esp + 0x3c]
mov ebp, dword [esp + 0x34]
add esp, 0x20
test eax, eax
jle 0x409bcd
mov edi, dword [esp + 0x18]
mov al, byte [edi + esi]
cmp al, 0x20
je 0x409793
cmp al, 9
je 0x409793
cmp al, 0xd
je 0x409793
cmp al, 0xa
jne 0x40979d
inc esi
mov dword [esp + 0x10], esi
jmp 0x409bbf
cmp al, 0x2d
je 0x4097af
cmp al, 0x2f
je 0x4097af
inc esi
mov dword [esp + 0x10], esi
jmp 0x409bbf
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.004090a0
add esp, 0xc
test eax, eax
je 0x40a00d
mov esi, dword [esp + 0x20]
push 0x41a908
push esi
call fcn.0040c70e
add esp, 8
test eax, eax
jne 0x40983a
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.004090f0
mov ebp, eax
add esp, 0xc
test ebp, ebp
mov dword [esp + 0x14], ebp
jne 0x409bb7
mov esi, dword [esp + 0xc]
test esi, esi
je 0x409bb7
push 0x14
lea edx, [ebx + 0x328]
push esi
push edx
call fcn.0040c870
push esi
call fcn.0040bef2
add esp, 0x10
jmp 0x409bbf
push 0x41a904
push esi
call fcn.0040c70e
add esp, 8
test eax, eax
jne 0x409882
mov ecx, dword [esp + 0x1c]
lea eax, [ebx + 0x318]
push eax
push ecx
push edi
lea esi, [esp + 0x1c]
call fcn.004090f0
mov ebp, eax
add esp, 0xc
test ebp, ebp
mov dword [esp + 0x14], ebp
jne 0x409bb7
mov dword [ebx + 0x260], 1
jmp 0x409bbf
push 0x41a900
push esi
call fcn.0040c70e
add esp, 8
test eax, eax
jne 0x4098b8
mov eax, dword [esp + 0x1c]
lea edx, [ebx + 0x31c]
push edx
push eax
push edi
lea esi, [esp + 0x1c]
call fcn.004090f0
mov ebp, eax
add esp, 0xc
mov dword [esp + 0x14], ebp
jmp 0x409bbf
push 0x41a8fc
push esi
call fcn.0040c70e
add esp, 8
test eax, eax
jne 0x4098d9
mov dword [ebx + 0x254], 1
jmp 0x409bbf
push 0x41a8f8
push esi
call fcn.0040c70e
add esp, 8
test eax, eax
jne 0x4098fa
mov dword [ebx + 0x258], 1
jmp 0x409bbf
push 0x41a8f4
push esi
call fcn.0040c70e
add esp, 8
test eax, eax
jne 0x40991b
mov dword [ebx + 0x24c], 1
jmp 0x409bbf
push 0x41a8f0
push esi
call fcn.0040c70e
add esp, 8
test eax, eax
jne 0x40993c
mov dword [ebx + 0x3d8], 1
jmp 0x409bbf
push 0x417240
push esi
call fcn.0040c70e
add esp, 8
test eax, eax
jne 0x40995d
mov dword [ebx + 0x240], 1
jmp 0x409bbf
push 0x41a8ec
push esi
call fcn.0040c70e
add esp, 8
test eax, eax
jne 0x40997e
mov dword [ebx + 0x250], 1
jmp 0x409bbf
push 0x41a8e8
push esi
call fcn.0040c70e
add esp, 8
test eax, eax
je 0x409ffe
push 0x41a8e4
push esi
call fcn.0040c70e
add esp, 8
test eax, eax
je 0x409ffe
push 0x41a8e0
push esi
call fcn.0040c70e
add esp, 8
test eax, eax
jne 0x4099cb
mov dword [ebx + 0x248], 1
jmp 0x409bbf
push 0x41a8dc
push esi
call fcn.0040c70e
add esp, 8
test eax, eax
jne 0x4099ec
mov dword [ebx + 0x244], 1
jmp 0x409bbf
push 0x41a8d8
push esi
call fcn.0040c70e
add esp, 8
test eax, eax
jne 0x409a0d
mov dword [ebx + 0x264], 1
jmp 0x409bbf
push 0x41a8d4
push esi
call fcn.0040c70e
add esp, 8
test eax, eax
jne 0x409a4b
cmp dword [ebx + 0x2c0], 3
jg 0x409bb7
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 0x409bbb
push 0x41a8d0
push esi
call fcn.0040c70e
add esp, 8
test eax, eax
jne 0x409ae6
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.004090f0
mov ebp, dword [esp + 0x18]
add esp, 0xc
test eax, eax
mov dword [esp + 0x14], eax
jne 0x409baa
test ebp, ebp
je 0x409bb7
cmp dword [ebx + 0x2c0], 4
jg 0x409baa
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.0040c870
mov al, byte [esi]
add esp, 0xc
test al, al
mov dword [ebx + 0x2c0], 4
jne 0x409baa
mov dword [ebx + 0x2c0], 0
jmp 0x409baa
push 0x41a8cc
push esi
call fcn.0040c70e
add esp, 8
test eax, eax
jne 0x409b24
cmp dword [ebx + 0x268], 7
jg 0x409bb7
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 0x409bbb
push 0x41a8c8
push esi
call fcn.0040c70e
add esp, 8
test eax, eax
jne 0x409be3
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.004090f0
mov ebp, dword [esp + 0x18]
add esp, 0xc
test eax, eax
mov dword [esp + 0x14], eax
jne 0x409baa
test ebp, ebp
je 0x409bb7
cmp dword [ebx + 0x268], 8
jg 0x409baa
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.0040c870
mov al, byte [esi]
add esp, 0xc
test al, al
mov dword [ebx + 0x268], 8
jne 0x409baa
mov dword [ebx + 0x268], 0
test ebp, ebp
je 0x409bb7
push ebp
call fcn.0040bef2
add esp, 4
mov ebp, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
cmp esi, dword [esp + 0x1c]
jl 0x409780
mov edx, dword [esp + 0x18]
push edx
call fcn.0040bef2
add esp, 4
pop esi
pop edi
mov eax, ebp
pop ebp
add esp, 0x34
ret
push str.cmugdxrk_hejisbtza
push esi
call fcn.0040c70e
add esp, 8
test eax, eax
jne 0x409c79
cmp dword [ebx + 0x268], 6
jg 0x409bb7
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
je 0x409c5b
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.0040c870
mov al, byte [esi]
add esp, 0xc
test al, al
mov dword [ebx + 0x268], 6
jne 0x409bb7
mov dword [ebx + 0x268], 0
jmp 0x409bbb
push str.Cannot_determine_the_computers_name.
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 2
push 1
push ebx
call fcn.0040bd80
add esp, 0x14
jmp 0x409bbf
push 0x41a898
push esi
call fcn.0040c70e
add esp, 8
test eax, eax
jne 0x409ece
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.004090f0
mov dword [esp + 0x20], eax
mov eax, dword [ebp]
add esp, 0xc
test eax, eax
je 0x409bb7
push 0x25
push eax
call fcn.0040cff0
add esp, 8
test eax, eax
je 0x409d28
mov eax, dword [ebp]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409cd0
sub eax, edx
lea esi, [eax + eax]
cmp esi, 0x208
jge 0x409ce9
mov esi, 0x208
lea eax, [esi + 2]
push 1
push eax
call fcn.0040d1d7
mov edi, eax
add esp, 8
test edi, edi
je 0x409d28
mov ecx, dword [ebp]
push esi
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
jle 0x409d1f
cmp eax, esi
jge 0x409d1f
mov edx, dword [ebp]
push edx
call fcn.0040bef2
mov dword [ebp], edi
jmp 0x409d25
push edi
call fcn.0040bef2
add esp, 4
mov ecx, dword [ebp]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x409d30
sub eax, esi
cmp byte [ecx + eax - 1], 0x22
jne 0x409d5f
mov eax, ecx
mov dword [esp + 0xc], 1
lea esi, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x409d50
sub eax, esi
mov byte [ecx + eax - 1], dl
jmp 0x409d67
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 0x409d70
sub eax, esi
cmp byte [ecx + eax - 1], 0x5c
jne 0x409dc7
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x409d85
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 0x409da0
sub eax, esi
mov dword [esp + 0x28], eax
je 0x409dc7
mov esi, dword [ebp]
mov eax, esi
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x409db7
sub eax, edi
cmp byte [esi + eax - 1], 0x5c
je 0x409d80
mov edx, dword [ebp]
mov eax, edx
lea esi, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409dd0
sub eax, esi
cmp eax, 6
mov eax, edx
lea esi, [eax + 1]
jb 0x409eb0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409de7
sub eax, esi
lea eax, [edx + eax - 6]
push str.Agent
push eax
call fcn.0040c70e
add esp, 8
test eax, eax
je 0x409e7a
mov edx, dword [ebp]
mov eax, edx
lea esi, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409e10
sub eax, esi
add eax, 0x14
push eax
push edx
call fcn.0040cccf
add esp, 8
test eax, eax
mov dword [ebp], eax
je 0x409e7a
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x409e32
sub ecx, esi
cmp byte [ecx + eax - 1], 0x5c
je 0x409e57
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x409e43
mov cx, word [0x41775c]
mov edi, eax
mov word [edi], cx
mov edi, dword [ebp]
dec edi
jmp 0x409e60
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x409e60
mov edx, dword [0x41a888]
mov dword [edi], edx
mov ax, word [0x41a88c]
mov word [edi + 4], ax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x409bb7
mov edi, dword [ebp]
test edi, edi
je 0x409bb7
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x409e92
mov cx, word [0x417e7c]
mov word [edi], cx
jmp 0x409bb7
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409eb0
sub eax, esi
mov dword [esp + 0x28], eax
jne 0x409e06
mov dword [edx], 0x5c3a63
jmp 0x409e06
push 0x41a884
push esi
call fcn.0040c70e
add esp, 8
test eax, eax
jne 0x409f32
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.004090f0
mov ebp, eax
add esp, 0xc
test ebp, ebp
mov dword [esp + 0x14], ebp
jne 0x409bb7
mov esi, dword [esp + 0xc]
test esi, esi
je 0x409bb7
push 0x32
lea ecx, [ebx + 0x33d]
push esi
push ecx
call fcn.0040c870
push esi
call fcn.0040bef2
add esp, 0x10
jmp 0x409bbf
push 0x41a880
push esi
call fcn.0040c70e
add esp, 8
test eax, eax
jne 0x409f96
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.004090f0
mov ebp, eax
add esp, 0xc
test ebp, ebp
mov dword [esp + 0x14], ebp
jne 0x409bb7
mov esi, dword [esp + 0xc]
test esi, esi
je 0x409bb7
push 0x64
lea ecx, [ebx + 0x370]
push esi
push ecx
call fcn.0040c870
push esi
call fcn.0040bef2
add esp, 0x10
jmp 0x409bbf
push 0x41a87c
push esi
call fcn.0040c70e
add esp, 8
test eax, eax
jne 0x409bb7
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.004090f0
mov ebp, eax
add esp, 0xc
test ebp, ebp
mov dword [esp + 0x14], ebp
jne 0x409bb7
mov esi, dword [esp + 0xc]
test esi, esi
je 0x409bb7
push 0x1a
lea ecx, [ebx + 0x3dc]
push esi
push ecx
call fcn.0040c870
push esi
call fcn.0040bef2
add esp, 0x10
jmp 0x409bbf
mov dword [ebx + 0x25c], 1
jmp 0x409bbf
inc dword [esp + 0x10]
jmp 0x409bbf
pop edi
mov eax, 0xfffffff8
pop ebp
add esp, 0x34
ret