Function at 0x406e90
Capabilities:
Encode data using xor
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45b69f
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x4720bc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0xa4], edi
lea eax, [edi + 0x18]
mov dword [0x4725c0], 1
cmp eax, 0x4725cc
je 0x406ef4
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x406ee8
mov eax, dword [eax]
push ecx
push eax
mov ecx, 0x4725cc
call fcn.00402a50
cmp dword [0x4725ac], 0
mov dword [ebp - 4], 0
jne 0x40760f
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
push 4
mov byte [ebp - 4], 1
call fcn.00459a3a
add esp, 4
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x406f41
mov ecx, eax
call fcn.0040cc90
mov byte [ebp - 4], 1
call fcn.00404500
push 0
push 0x45d68b
mov ecx, 0x4724a0
mov byte [0x47249c], 0
call fcn.00402a50
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
push 0x1024
call esi
push 0x1024
push 0
push eax
mov dword [0x472588], eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
lea eax, [ebp - 0x58]
lea ecx, [ebp - 0x9d]
push 0x20
push eax
call fcn.00410440
mov ecx, eax
cmp dword [ecx + 0x14], 0x10
jb 0x406f9f
mov ecx, dword [ecx]
mov edx, dword [0x472588]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx], al
lea edx, [edx + 1]
test al, al
jne 0x406fa5
mov ecx, dword [ebp - 0x44]
cmp ecx, 0x10
jb 0x406fe9
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406fdf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x406fdf
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00459a6a
add esp, 8
push 0x1024
call esi
push 0x1024
mov ebx, eax
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov dword [ebp - 0x20], 0xd4c8d8db
mov dword [ebp - 0x1c], 0x100dac8
xor ecx, ecx
mov al, cl
sub al, 0x46
xor byte [ebp + ecx - 0x20], al
inc ecx
cmp ecx, 6
jb 0x407012
lea eax, [ebp - 0x21]
mov byte [ebp - 0x19], 0
push eax
lea eax, [ebp - 0x1a]
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x40]
call fcn.00403020
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0040e010
add esp, 8
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 4
jb 0x40705a
mov edx, dword [edx]
mov dword [ebp - 0x28], 0xd4c8d8db
xor ecx, ecx
mov dword [ebp - 0x24], 0x100d1d1
nop word [eax + eax]
mov al, cl
sub al, 0x46
xor byte [ebp + ecx - 0x28], al
inc ecx
cmp ecx, 6
jb 0x407070
push edx
lea eax, [ebp - 0x28]
mov byte [ebp - 0x21], 0
push eax
lea ecx, [ebp - 0x70]
call fcn.0040be30
mov ecx, dword [ebp - 0x44]
mov byte [ebp - 4], 3
cmp ecx, 0x10
jb 0x4070c3
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4070b9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4070ff
push ecx
push edx
call fcn.00459a6a
add esp, 8
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
mov byte [ebp - 4], 1
cmp ecx, 0x10
jb 0x40710f
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x407105
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x407105
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00459a6a
add esp, 8
sub esp, 0x18
lea eax, [edi + 0x48]
mov ecx, esp
push eax
call fcn.00402320
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x9d]
call fcn.004100c0
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 5
jb 0x40713a
mov edx, dword [edx]
mov dword [ebp - 0x38], 0xd1cccbdb
xor ecx, ecx
mov dword [ebp - 0x34], 0xb5a1dcd7
mov dword [ebp - 0x30], 0x9aaaacab
mov dword [ebp - 0x2c], 0x100a3af
mov al, cl
sub al, 0x46
xor byte [ebp + ecx - 0x38], al
inc ecx
cmp ecx, 0xe
jb 0x407158
push edx
lea eax, [ebp - 0x38]
mov byte [ebp - 0x29], 0
push eax
lea ecx, [ebp - 0x70]
call fcn.0040be30
mov ecx, dword [ebp - 0x44]
mov byte [ebp - 4], 1
cmp ecx, 0x10
jb 0x4071b1
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4071a7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4071a7
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00459a6a
add esp, 8
sub esp, 0x18
mov ecx, esp
push 0x4724f8
call fcn.00402320
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x9d]
call fcn.004100c0
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 6
jb 0x4071dd
mov edx, dword [edx]
mov dword [ebp - 0x20], 0xcdcbd3d7
xor ecx, ecx
mov word [ebp - 0x1c], 0xda
mov byte [ebp - 0x1a], 1
mov al, cl
sub al, 0x46
xor byte [ebp + ecx - 0x20], al
inc ecx
cmp ecx, 5
jb 0x4071f0
push edx
lea eax, [ebp - 0x20]
mov byte [ebp - 0x1a], 0
push eax
lea ecx, [ebp - 0x70]
call fcn.0040be30
mov ecx, dword [ebp - 0x44]
mov byte [ebp - 4], 1
cmp ecx, 0x10
jb 0x407249
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40723f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40723f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00459a6a
add esp, 8
mov dword [ebp - 0x20], 0xcfd9c8cf
xor ecx, ecx
mov dword [ebp - 0x1c], 0xa4added0
mov word [ebp - 0x18], 0x100
nop
mov al, cl
sub al, 0x46
xor byte [ebp + ecx - 0x20], al
inc ecx
cmp ecx, 8
jb 0x407260
lea eax, [ebp - 0x20]
mov byte [ebp - 0x17], 0
push eax
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov edx, eax
mov dword [ebp - 0x58], 0
mov ecx, edx
mov dword [ebp - 0x48], 0
add esp, 4
mov dword [ebp - 0x44], 0
lea esi, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4072a0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x58]
call fcn.00402080
sub esp, 0x18
mov byte [ebp - 4], 7
lea eax, [ebp - 0x58]
mov ecx, esp
push eax
call fcn.00402320
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x9d]
call fcn.004100c0
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 8
jb 0x4072e5
mov edx, dword [edx]
mov dword [ebp - 0x34], 0xdcc5d4c8
xor ecx, ecx
mov dword [ebp - 0x30], 0xb2b5e0d2
mov dword [ebp - 0x2c], 0x100b1a7
nop dword [eax]
mov al, cl
sub al, 0x46
xor byte [ebp + ecx - 0x34], al
inc ecx
cmp ecx, 0xa
jb 0x407300
push edx
lea eax, [ebp - 0x34]
mov byte [ebp - 0x29], 0
push eax
lea ecx, [ebp - 0x70]
call fcn.0040be30
mov ecx, dword [ebp - 0x78]
mov byte [ebp - 4], 7
cmp ecx, 0x10
jb 0x40735c
mov edx, dword [ebp - 0x8c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x407352
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x407352
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00459a6a
add esp, 8
mov ecx, dword [ebp - 0x44]
mov byte [ebp - 4], 1
cmp ecx, 0x10
jb 0x407396
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40738c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40738c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00459a6a
add esp, 8
mov edx, dword [0x472588]
mov ecx, edx
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4073b6
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x58]
call fcn.00402080
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0040e010
add esp, 8
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 0xa
jb 0x4073eb
mov edx, dword [edx]
mov dword [ebp - 0x20], 0xdcc5d4c8
xor ecx, ecx
mov word [ebp - 0x1c], 0xd2
mov byte [ebp - 0x1a], 1
nop
mov al, cl
sub al, 0x46
xor byte [ebp + ecx - 0x20], al
inc ecx
cmp ecx, 5
jb 0x407400
push edx
lea eax, [ebp - 0x20]
mov byte [ebp - 0x1a], 0
push eax
lea ecx, [ebp - 0x70]
call fcn.0040be30
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 4], 9
cmp ecx, 0x10
jb 0x407453
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x407449
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40748f
push ecx
push edx
call fcn.00459a6a
add esp, 8
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
mov byte [ebp - 4], 1
cmp ecx, 0x10
jb 0x40749f
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x407495
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x407495
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00459a6a
add esp, 8
mov dword [ebp - 0x34], 0x92d5cbdb
xor ecx, ecx
mov dword [ebp - 0x30], 0xeeacd3da
mov word [ebp - 0x2c], 0x100
mov al, cl
sub al, 0x46
xor byte [ebp + ecx - 0x34], al
inc ecx
cmp ecx, 8
jb 0x4074b5
movaps xmm0, xmmword [0x45d720]
xor ecx, ecx
mov byte [ebp - 0x2b], 0
movups xmmword [ebp - 0x54], xmm0
mov byte [ebp - 0x44], 1
mov al, cl
sub al, 0x46
xor byte [ebp + ecx - 0x54], al
inc ecx
cmp ecx, 0xf
jb 0x4074d8
push 0
lea ecx, [ebp - 0x70]
mov byte [ebp - 0x44], 0
mov word [ebp - 0x24], 0
call fcn.0040bff0
mov esi, eax
sub esp, 0x18
mov edx, esp
mov ecx, esi
mov dword [edx], 0
lea edi, [ecx + 1]
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x407520
sub ecx, edi
push ecx
push esi
mov ecx, edx
call fcn.00402080
push ebx
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.004098b0
add esp, 0x2c
test al, al
je 0x407553
cmp ebx, str.Req_IDNF
jne 0x407591
mov ecx, dword [ebp - 0x5c]
mov byte [0x47249d], 1
cmp ecx, 0x10
jb 0x40758a
mov edx, dword [ebp - 0x70]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x407580
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4075ff
push ecx
push edx
call fcn.00459a6a
add esp, 8
xor al, al
jmp 0x407611
push 0x1024
push 0
push dword [0x47258c]
call sub.VCRUNTIME140.dll_memset
mov esi, dword [0x47258c]
add esp, 0xc
mov edx, ebx
nop
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [esi], al
lea esi, [esi + 1]
test al, al
jne 0x4075b0
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [ebp - 0xa4]
add esp, 4
call fcn.004053d0
inc dword [0x4725ac]
mov ecx, dword [ebp - 0x5c]
cmp ecx, 0x10
jb 0x40760f
mov edx, dword [ebp - 0x70]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x407605
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x407605
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00459a6a
add esp, 8
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00459a78
mov esp, ebp
pop ebp
ret