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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45b44f
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
xor ecx, ecx
mov dword [ebp - 4], 0
mov dword [0x4725c0], 3
cmp dword [0x472520], ecx
jne 0x404c65
mov dword [ebp - 0x38], 0xc8ddd6d5
mov dword [ebp - 0x34], 0xa5e0d7ca
mov dword [ebp - 0x30], 0xa0a2a7
mov byte [ebp - 0x2c], 1
nop dword [eax]
mov al, cl
sub al, 0x46
xor byte [ebp + ecx - 0x38], al
inc ecx
cmp ecx, 0xb
jb 0x404c20
lea eax, [ebp - 0x38]
mov byte [ebp - 0x2c], 0
push 5
push eax
call fcn.0040d170
add esp, 8
mov byte [0x47249d], 1
xor al, al
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
mov dword [ebp - 0x20], 0xcfd9c8cf
mov dword [ebp - 0x1c], 0xa4added0
mov word [ebp - 0x18], 0x100
nop dword [eax]
mov al, cl
sub al, 0x46
xor byte [ebp + ecx - 0x20], al
inc ecx
cmp ecx, 8
jb 0x404c80
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 - 0x9c], 0
mov ecx, edx
mov dword [ebp - 0x8c], 0
add esp, 4
mov dword [ebp - 0x88], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404cc4
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x9c]
call fcn.00402080
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
push 4
mov byte [ebp - 4], 2
call fcn.00459a3a
add esp, 4
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x404d13
mov ecx, eax
call fcn.0040cc90
push 0x1024
mov byte [ebp - 4], 2
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
push 0x1024
mov ebx, eax
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov byte [0x47249c], 0
mov ecx, 0x4724a0
push 0
push 0x45d68b
call fcn.00402a50
mov dword [ebp - 0x20], 0xc9ddc9f8
xor ecx, ecx
mov dword [ebp - 0x1c], 0x100dec8
nop dword [eax]
mov al, cl
sub al, 0x46
xor byte [ebp + ecx - 0x20], al
inc ecx
cmp ecx, 6
jb 0x404d60
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], 4
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.0040e010
add esp, 8
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 5
jb 0x404da8
mov edx, dword [edx]
mov dword [ebp - 0x28], 0xd4c8d8db
xor ecx, ecx
mov dword [ebp - 0x24], 0x100d1d1
mov al, cl
sub al, 0x46
xor byte [ebp + ecx - 0x28], al
inc ecx
cmp ecx, 6
jb 0x404db8
push edx
lea eax, [ebp - 0x28]
mov byte [ebp - 0x21], 0
push eax
lea ecx, [ebp - 0x58]
call fcn.0040be30
mov ecx, dword [ebp - 0x60]
mov byte [ebp - 4], 4
cmp ecx, 0x10
jb 0x404e0b
mov edx, dword [ebp - 0x74]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x404e01
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404e47
push ecx
push edx
call fcn.00459a6a
add esp, 8
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0xf
mov byte [ebp - 0x74], 0
mov byte [ebp - 4], 2
cmp ecx, 0x10
jb 0x404e57
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x404e4d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x404e4d
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
lea eax, [ebp - 0x74]
push 0x472540
push eax
call fcn.0040e010
add esp, 8
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 6
jb 0x404e76
mov edx, dword [edx]
mov dword [ebp - 0x20], 0xd5c8cedb
xor ecx, ecx
mov dword [ebp - 0x1c], 0xa4d6e1
mov byte [ebp - 0x18], 1
nop word [eax + eax]
mov al, cl
sub al, 0x46
xor byte [ebp + ecx - 0x20], al
inc ecx
cmp ecx, 7
jb 0x404e90
push edx
lea eax, [ebp - 0x20]
mov byte [ebp - 0x18], 0
push eax
lea ecx, [ebp - 0x58]
call fcn.0040be30
mov ecx, dword [ebp - 0x60]
mov byte [ebp - 4], 2
cmp ecx, 0x10
jb 0x404ee9
mov edx, dword [ebp - 0x74]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x404edf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x404edf
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 0x472528
call fcn.00402320
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x9d]
call fcn.004100c0
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 7
jb 0x404f15
mov edx, dword [edx]
mov dword [ebp - 0x38], 0xd5c8cedb
xor ecx, ecx
mov dword [ebp - 0x34], 0xa8b4d1db
mov dword [ebp - 0x30], 0xacb0a2a1
mov dword [ebp - 0x2c], 0x100a9a9
mov al, cl
sub al, 0x46
xor byte [ebp + ecx - 0x38], al
inc ecx
cmp ecx, 0xe
jb 0x404f33
push edx
lea eax, [ebp - 0x38]
mov byte [ebp - 0x29], 0
push eax
lea ecx, [ebp - 0x58]
call fcn.0040be30
mov ecx, dword [ebp - 0x60]
mov byte [ebp - 4], 2
cmp ecx, 0x10
jb 0x404f8c
mov edx, dword [ebp - 0x74]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x404f82
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x404f82
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 edi
call fcn.00402320
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x9d]
call fcn.004100c0
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 8
jb 0x404fb4
mov edx, dword [edx]
mov dword [ebp - 0x20], 0xc9ddc9f8
xor ecx, ecx
mov dword [ebp - 0x1c], 0x100dec8
mov al, cl
sub al, 0x46
xor byte [ebp + ecx - 0x20], al
inc ecx
cmp ecx, 6
jb 0x404fc4
push edx
lea eax, [ebp - 0x20]
mov byte [ebp - 0x19], 0
push eax
lea ecx, [ebp - 0x58]
call fcn.0040be30
mov ecx, dword [ebp - 0x60]
mov byte [ebp - 4], 2
cmp ecx, 0x10
jb 0x40501d
mov edx, dword [ebp - 0x74]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x405013
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x405013
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 - 0x74]
push eax
lea ecx, [ebp - 0x9d]
call fcn.004100c0
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 9
jb 0x405049
mov edx, dword [edx]
mov dword [ebp - 0x20], 0xd8cfd4d6
xor ecx, ecx
mov word [ebp - 0x1c], 0xcc
mov byte [ebp - 0x1a], 1
nop dword [eax]
mov al, cl
sub al, 0x46
xor byte [ebp + ecx - 0x20], al
inc ecx
cmp ecx, 5
jb 0x405060
push edx
lea eax, [ebp - 0x20]
mov byte [ebp - 0x1a], 0
push eax
lea ecx, [ebp - 0x58]
call fcn.0040be30
mov ecx, dword [ebp - 0x60]
mov byte [ebp - 4], 2
cmp ecx, 0x10
jb 0x4050b9
mov edx, dword [ebp - 0x74]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4050af
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4050af
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, [ebp - 0x9c]
mov ecx, esp
push eax
call fcn.00402320
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x9d]
call fcn.004100c0
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 0xa
jb 0x4050e7
mov edx, dword [edx]
mov dword [ebp - 0x1c], 0xcfd9c8d3
xor ecx, ecx
mov word [ebp - 0x18], 0x100
mov al, cl
sub al, 0x46
xor byte [ebp + ecx - 0x1c], al
inc ecx
cmp ecx, 4
jb 0x4050f6
push edx
lea eax, [ebp - 0x1c]
mov byte [ebp - 0x17], 0
push eax
lea ecx, [ebp - 0x58]
call fcn.0040be30
mov ecx, dword [ebp - 0x60]
mov byte [ebp - 4], 2
cmp ecx, 0x10
jb 0x40514f
mov edx, dword [ebp - 0x74]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x405145
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x405145
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 0x405165
movaps xmm0, xmmword [0x45d720]
xor ecx, ecx
mov byte [ebp - 0x2b], 0
movups xmmword [ebp - 0x6c], xmm0
mov byte [ebp - 0x5c], 1
mov al, cl
sub al, 0x46
xor byte [ebp + ecx - 0x6c], al
inc ecx
cmp ecx, 0xf
jb 0x405188
push 0
lea ecx, [ebp - 0x58]
mov byte [ebp - 0x5c], 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 0x4051d0
sub ecx, edi
push ecx
push esi
mov ecx, edx
call fcn.00402080
push ebx
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.004098b0
add esp, 0x2c
test al, al
je 0x405207
cmp ebx, str.Req_IDNF
jne 0x405297
mov ecx, dword [ebp - 0x44]
mov byte [0x47249d], 1
cmp ecx, 0x10
jb 0x405242
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x405238
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405345
push ecx
push edx
call fcn.00459a6a
add esp, 8
mov ecx, dword [ebp - 0x88]
mov byte [ebp - 0x58], 0
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
cmp ecx, 0x10
jb 0x404c47
mov edx, dword [ebp - 0x9c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x405288
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405345
push ecx
push edx
call fcn.00459a6a
add esp, 8
jmp 0x404c47
push 0x1024
push 0
push dword [0x47258c]
call sub.VCRUNTIME140.dll_memset
mov esi, dword [0x47258c]
add esp, 0xc
mov edx, ebx
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [esi], al
lea esi, [esi + 1]
test al, al
jne 0x4052b4
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
mov ecx, dword [ebp - 0x44]
cmp ecx, 0x10
jb 0x405307
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4052fd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405345
push ecx
push edx
call fcn.00459a6a
add esp, 8
mov ecx, dword [ebp - 0x88]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
cmp ecx, 0x10
jb 0x405355
mov edx, dword [ebp - 0x9c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40534b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40534b
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
jmp 0x404c49