Function at 0x40f9e0
Capabilities:
Get hostname
Query environment variable

Disassembly:
sub esp, 0x38
mov eax, dword [0x435e80]
xor eax, esp
mov dword [esp + 0x34], eax
xor eax, eax
cmp ebx, eax
push edi
mov edi, ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x18], eax
mov byte [esp + 0x24], al
mov dword [esp + 0x25], eax
mov dword [esp + 0x29], eax
mov dword [esp + 0x2d], eax
mov dword [esp + 0x31], eax
mov dword [esp + 0x1c], 0x10
je 0x4102ab
cmp edi, eax
je 0x4102ab
mov eax, edi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40fa30
push ebp
sub eax, edx
push esi
lea esi, [eax + 1]
push esi
mov dword [esp + 0x1c], eax
call fcn.00412f17
mov ebp, eax
add esp, 4
test ebp, ebp
mov dword [esp + 0x1c], ebp
jne 0x40fa6c
pop esi
lea eax, [ebp - 0xd]
pop ebp
pop edi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.00412a21
add esp, 0x38
ret
push esi
push 0
push ebp
call fcn.00412590
mov esi, dword [esp + 0x24]
push esi
push edi
push ebp
call fcn.00413710
push ebp
push 0
push 1
push 3
push ebx
mov dword [esp + 0x3c], 0
call fcn.004120f0
mov edi, dword [esp + 0x40]
add esp, 0x2c
test esi, esi
jle 0x41012c
mov edx, dword [esp + 0x10]
movzx ecx, byte [edx + ebp]
push ecx
call fcn.0040f2e0
add esp, 4
test eax, eax
je 0x40fac6
add edx, 1
mov dword [esp + 0x10], edx
jmp 0x41011e
cmp cl, 0x2d
je 0x40fadc
cmp cl, 0x2f
je 0x40fadc
add edx, 1
mov dword [esp + 0x10], edx
jmp 0x41011e
add edx, 1
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], edx
push ecx
add edx, ebp
push edx
call fcn.0040f300
add esp, 0xc
test eax, eax
je 0x4102a1
mov esi, dword [esp + 0x20]
push 0x42e3d8
push esi
call fcn.00413d2f
add esp, 8
test eax, eax
jne 0x40fb68
mov ecx, dword [esp + 0x18]
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push ecx
push ebp
lea esi, [esp + 0x1c]
call fcn.0040f350
mov edi, eax
add esp, 0xc
test edi, edi
mov dword [esp + 0x14], edi
jne 0x410116
mov esi, dword [esp + 0xc]
test esi, esi
je 0x410116
push 0x14
lea edx, [ebx + 0x328]
push esi
push edx
call fcn.00413710
push esi
call fcn.00412262
add esp, 0x10
jmp 0x41011e
push 0x42e3d4
push esi
call fcn.00413d2f
add esp, 8
test eax, eax
jne 0x40fbb0
mov ecx, dword [esp + 0x18]
lea eax, [ebx + 0x318]
push eax
push ecx
push ebp
lea esi, [esp + 0x1c]
call fcn.0040f350
mov edi, eax
add esp, 0xc
test edi, edi
mov dword [esp + 0x14], edi
jne 0x410116
mov dword [ebx + 0x260], 1
jmp 0x41011e
push 0x42e3d0
push esi
call fcn.00413d2f
add esp, 8
test eax, eax
jne 0x40fbe6
mov eax, dword [esp + 0x18]
lea edx, [ebx + 0x31c]
push edx
push eax
push ebp
lea esi, [esp + 0x1c]
call fcn.0040f350
mov edi, eax
add esp, 0xc
mov dword [esp + 0x14], edi
jmp 0x41011e
push 0x42e3cc
push esi
call fcn.00413d2f
add esp, 8
test eax, eax
jne 0x40fc07
mov dword [ebx + 0x254], 1
jmp 0x41011e
push 0x42e3c8
push esi
call fcn.00413d2f
add esp, 8
test eax, eax
jne 0x40fc28
mov dword [ebx + 0x258], 1
jmp 0x41011e
push 0x42e3c4
push esi
call fcn.00413d2f
add esp, 8
test eax, eax
jne 0x40fc49
mov dword [ebx + 0x24c], 1
jmp 0x41011e
push 0x42e3c0
push esi
call fcn.00413d2f
add esp, 8
test eax, eax
jne 0x40fc6a
mov dword [ebx + 0x3d8], 1
jmp 0x41011e
push 0x42a3d0
push esi
call fcn.00413d2f
add esp, 8
test eax, eax
jne 0x40fc8b
mov dword [ebx + 0x240], 1
jmp 0x41011e
push 0x42e3bc
push esi
call fcn.00413d2f
add esp, 8
test eax, eax
jne 0x40fcac
mov dword [ebx + 0x250], 1
jmp 0x41011e
push 0x42e3b8
push esi
call fcn.00413d2f
add esp, 8
test eax, eax
je 0x410292
push 0x42e3b4
push esi
call fcn.00413d2f
add esp, 8
test eax, eax
je 0x410292
push 0x42e3b0
push esi
call fcn.00413d2f
add esp, 8
test eax, eax
jne 0x40fcf9
mov dword [ebx + 0x248], 1
jmp 0x41011e
push 0x42e3ac
push esi
call fcn.00413d2f
add esp, 8
test eax, eax
jne 0x40fd1a
mov dword [ebx + 0x244], 1
jmp 0x41011e
push 0x42e3a8
push esi
call fcn.00413d2f
add esp, 8
test eax, eax
jne 0x40fd3b
mov dword [ebx + 0x264], 1
jmp 0x41011e
push 0x42e3a4
push esi
call fcn.00413d2f
add esp, 8
test eax, eax
jne 0x40fd5c
mov dword [ebx + 0x3f8], 1
jmp 0x41011e
push 0x42e3a0
push esi
call fcn.00413d2f
add esp, 8
test eax, eax
jne 0x40fd9c
cmp dword [ebx + 0x2c0], 3
jg 0x410116
push 0x51
push eax
lea ecx, [ebx + 0x2c4]
push ecx
call fcn.00412590
add esp, 0xc
mov dword [ebx + 0x2c0], 3
jmp 0x41011e
push 0x42e39c
push esi
call fcn.00413d2f
add esp, 8
test eax, eax
jne 0x40fe35
lea edx, [esp + 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
push edx
push eax
push ebp
lea esi, [esp + 0x1c]
call fcn.0040f350
mov edi, dword [esp + 0x18]
add esp, 0xc
test eax, eax
mov dword [esp + 0x14], eax
jne 0x40fe1f
test edi, edi
je 0x410116
cmp dword [ebx + 0x2c0], 4
jg 0x40fe1f
push 0x51
lea esi, [ebx + 0x2c4]
push 0
push esi
call fcn.00412590
push 0x51
push edi
push esi
call fcn.00413710
add esp, 0x18
cmp byte [esi], 0
mov dword [ebx + 0x2c0], 4
jne 0x40fe1f
mov dword [ebx + 0x2c0], 0
test edi, edi
je 0x410116
push edi
call fcn.00412262
add esp, 4
jmp 0x41011a
push 0x42e398
push esi
call fcn.00413d2f
add esp, 8
test eax, eax
jne 0x40fe75
cmp dword [ebx + 0x268], 7
jg 0x410116
push 0x51
push eax
lea ecx, [ebx + 0x26c]
push ecx
call fcn.00412590
add esp, 0xc
mov dword [ebx + 0x268], 7
jmp 0x41011e
push 0x42e394
push esi
call fcn.00413d2f
add esp, 8
test eax, eax
jne 0x40ff05
lea edx, [esp + 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
push edx
push eax
push ebp
lea esi, [esp + 0x1c]
call fcn.0040f350
mov edi, dword [esp + 0x18]
add esp, 0xc
test eax, eax
mov dword [esp + 0x14], eax
jne 0x40fe1f
test edi, edi
je 0x410116
cmp dword [ebx + 0x268], 8
jg 0x40fe1f
push 0x51
lea esi, [ebx + 0x26c]
push 0
push esi
call fcn.00412590
push 0x51
push edi
push esi
call fcn.00413710
add esp, 0x18
cmp byte [esi], 0
mov dword [ebx + 0x268], 8
jne 0x40fe1f
mov dword [ebx + 0x268], 0
jmp 0x40fe1f
push str.cmugdqxrk_hejisbtza
push esi
call fcn.00413d2f
add esp, 8
test eax, eax
jne 0x40ff9c
cmp dword [ebx + 0x268], 6
jg 0x410116
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
je 0x40ff7e
push 0x51
lea esi, [ebx + 0x26c]
push 0
push esi
call fcn.00412590
push 0x51
lea eax, [esp + 0x3c]
push eax
push esi
call fcn.00413710
add esp, 0x18
cmp byte [esi], 0
mov dword [ebx + 0x268], 6
jne 0x410116
mov dword [ebx + 0x268], 0
jmp 0x41011e
push 0x42e368
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 2
push 1
push ebx
call fcn.004120f0
add esp, 0x14
jmp 0x41011e
push 0x42e364
push esi
call fcn.00413d2f
add esp, 8
test eax, eax
jne 0x410149
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
lea ebp, [ebx + 0x324]
push ebp
push ecx
push edx
lea esi, [esp + 0x1c]
call fcn.0040f350
mov dword [esp + 0x20], eax
mov eax, dword [ebp]
add esp, 0xc
test eax, eax
je 0x410116
push 0x25
push eax
call fcn.004134d0
add esp, 8
test eax, eax
je 0x41004d
mov eax, dword [ebp]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40fff3
sub eax, edx
lea esi, [eax + eax]
cmp esi, 0x208
jge 0x41000e
mov esi, 0x208
lea eax, [esi + 2]
push 1
push eax
call fcn.00414cd8
mov edi, eax
add esp, 8
test edi, edi
je 0x41004d
mov ecx, dword [ebp]
push esi
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
jle 0x410044
cmp eax, esi
jge 0x410044
mov edx, dword [ebp]
push edx
call fcn.00412262
mov dword [ebp], edi
jmp 0x41004a
push edi
call fcn.00412262
add esp, 4
mov ecx, dword [ebp]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x410055
sub eax, esi
cmp byte [ecx + eax - 1], 0x22
jne 0x410085
mov eax, ecx
mov dword [esp + 0xc], 1
lea esi, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x410074
sub eax, esi
mov byte [ecx + eax - 1], dl
jmp 0x41008d
mov dword [esp + 0xc], 0
mov ecx, dword [ebp]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x410095
sub eax, esi
cmp byte [ecx + eax - 1], 0x5c
jne 0x4100f2
mov eax, ecx
lea esi, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x4100b0
sub eax, esi
mov byte [ecx + eax - 1], dl
mov ecx, dword [ebp]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x4100c7
sub eax, esi
je 0x4100f2
mov esi, ecx
mov eax, ecx
lea edi, [eax + 1]
jmp 0x4100e0
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x4100e0
sub eax, edi
cmp byte [esi + eax - 1], 0x5c
je 0x4100a7
cmp dword [esp + 0xc], 0
je 0x410116
mov edi, dword [ebp]
test edi, edi
je 0x410116
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x410103
mov ax, word [0x42ba5c]
mov word [edi], ax
mov ebp, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
cmp ecx, dword [esp + 0x18]
jl 0x40faa5
push ebp
call fcn.00412262
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.00412a21
add esp, 0x38
ret
push 0x42e360
push esi
call fcn.00413d2f
add esp, 8
test eax, eax
jne 0x4101a5
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0xc]
push ecx
push edx
push ebp
lea esi, [esp + 0x1c]
mov dword [esp + 0x18], eax
call fcn.0040f350
mov edi, eax
add esp, 0xc
test edi, edi
mov dword [esp + 0x14], edi
jne 0x410116
mov esi, dword [esp + 0xc]
test esi, esi
je 0x410116
push 0x32
lea eax, [ebx + 0x33d]
push esi
push eax
call fcn.00413710
push esi
call fcn.00412262
add esp, 0x10
jmp 0x41011e
push 0x42e35c
push esi
call fcn.00413d2f
add esp, 8
test eax, eax
jne 0x410209
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0xc]
push ecx
push edx
push ebp
lea esi, [esp + 0x1c]
mov dword [esp + 0x18], eax
call fcn.0040f350
mov edi, eax
add esp, 0xc
test edi, edi
mov dword [esp + 0x14], edi
jne 0x410116
mov esi, dword [esp + 0xc]
test esi, esi
je 0x410116
push 0x64
lea eax, [ebx + 0x370]
push esi
push eax
call fcn.00413710
push esi
call fcn.00412262
add esp, 0x10
jmp 0x41011e
push 0x42e358
push esi
call fcn.00413d2f
add esp, 8
test eax, eax
jne 0x41026d
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0xc]
push ecx
push edx
push ebp
lea esi, [esp + 0x1c]
mov dword [esp + 0x18], eax
call fcn.0040f350
mov edi, eax
add esp, 0xc
test edi, edi
mov dword [esp + 0x14], edi
jne 0x410116
mov esi, dword [esp + 0xc]
test esi, esi
je 0x410116
push 0x1a
lea eax, [ebx + 0x3dc]
push esi
push eax
call fcn.00413710
push esi
call fcn.00412262
add esp, 0x10
jmp 0x41011e
push str.vnfop
push esi
call fcn.00413d2f
add esp, 8
test eax, eax
jne 0x410116
mov dword [ebx + 0x504], 1
jmp 0x41011e
mov dword [ebx + 0x25c], 1
jmp 0x41011e
add dword [esp + 0x10], 1
jmp 0x41011e
mov ecx, dword [esp + 0x38]
pop edi
xor ecx, esp
mov eax, 0xfffffff8
call fcn.00412a21
add esp, 0x38
ret