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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45b855
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
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 - 0xb0], edi
mov dword [ebp - 0x74], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0xf
mov byte [ebp - 0x74], 0
push 4
mov byte [ebp - 4], 2
call fcn.00459a3a
add esp, 4
mov dword [ebp - 0xac], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x40907c
mov ecx, eax
call fcn.0040cc90
mov byte [ebp - 4], 2
xor ecx, ecx
mov dword [ebp - 0x20], 0xcfd9c8cf
mov dword [ebp - 0x1c], 0xa4added0
mov word [ebp - 0x18], 0x100
mov al, cl
sub al, 0x46
xor byte [ebp + ecx - 0x20], al
inc ecx
cmp ecx, 8
jb 0x409096
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 - 0xa4], 0
mov ecx, edx
mov dword [ebp - 0x94], 0
add esp, 4
mov dword [ebp - 0x90], 0
lea esi, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4090e0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0xa4]
call fcn.00402080
push 0x1024
mov byte [ebp - 4], 4
mov byte [0x47249c], 0
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 dword [ebp - 0x2c], 0xdce3d8c9
mov dword [ebp - 0x28], 0xb7a9cbdd
xor ecx, ecx
mov word [ebp - 0x24], 0xa7
mov byte [ebp - 0x22], 1
mov al, cl
sub al, 0x46
xor byte [ebp + ecx - 0x2c], al
inc ecx
cmp ecx, 9
jb 0x409138
lea eax, [ebp - 0xa9]
mov byte [ebp - 0x22], 0
push eax
lea eax, [ebp - 0x23]
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x4c]
call fcn.00403020
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.0040e010
add esp, 8
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 6
jb 0x409186
mov edx, dword [edx]
mov dword [ebp - 0x20], 0xd4c8d8db
xor ecx, ecx
mov dword [ebp - 0x1c], 0x100d1d1
mov al, cl
sub al, 0x46
xor byte [ebp + ecx - 0x20], al
inc ecx
cmp ecx, 6
jb 0x409196
push edx
lea eax, [ebp - 0x20]
mov byte [ebp - 0x19], 0
push eax
lea ecx, [ebp - 0x74]
call fcn.0040be30
mov ecx, dword [ebp - 0x78]
mov byte [ebp - 4], 5
cmp ecx, 0x10
jb 0x4091ec
mov edx, dword [ebp - 0x8c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4091e2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40922b
push ecx
push edx
call fcn.00459a6a
add esp, 8
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0xf
mov byte [ebp - 0x8c], 0
mov byte [ebp - 4], 4
cmp ecx, 0x10
jb 0x40923b
mov edx, dword [ebp - 0x4c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409231
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x409231
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 - 0x4c]
push 0x472540
push eax
call fcn.0040e010
add esp, 8
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 7
jb 0x40925a
mov edx, dword [edx]
mov dword [ebp - 0x20], 0xd5c8cedb
xor ecx, ecx
mov dword [ebp - 0x1c], 0xa4d6e1
mov byte [ebp - 0x18], 1
nop
mov al, cl
sub al, 0x46
xor byte [ebp + ecx - 0x20], al
inc ecx
cmp ecx, 7
jb 0x409270
push edx
lea eax, [ebp - 0x20]
mov byte [ebp - 0x18], 0
push eax
lea ecx, [ebp - 0x74]
call fcn.0040be30
mov ecx, dword [ebp - 0x38]
mov byte [ebp - 4], 4
cmp ecx, 0x10
jb 0x4092c9
mov edx, dword [ebp - 0x4c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4092bf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4092bf
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 - 0x4c]
push eax
lea ecx, [ebp - 0xa5]
call fcn.004100c0
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 8
jb 0x4092f5
mov edx, dword [edx]
mov dword [ebp - 0x30], 0xd5c8cedb
xor ecx, ecx
mov dword [ebp - 0x2c], 0xa8b4d1db
mov dword [ebp - 0x28], 0xacb0a2a1
mov dword [ebp - 0x24], 0x100a9a9
mov al, cl
sub al, 0x46
xor byte [ebp + ecx - 0x30], al
inc ecx
cmp ecx, 0xe
jb 0x409313
push edx
lea eax, [ebp - 0x30]
mov byte [ebp - 0x21], 0
push eax
lea ecx, [ebp - 0x74]
call fcn.0040be30
mov ecx, dword [ebp - 0x38]
mov byte [ebp - 4], 4
cmp ecx, 0x10
jb 0x40936c
mov edx, dword [ebp - 0x4c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409362
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x409362
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 + 0x78]
mov ecx, esp
push eax
call fcn.00402320
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0xa5]
call fcn.004100c0
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 9
jb 0x409397
mov edx, dword [edx]
mov dword [ebp - 0x2c], 0xd3ddd3d9
xor ecx, ecx
mov dword [ebp - 0x28], 0x9eacdad0
mov dword [ebp - 0x24], 0x100a7ab
nop
mov al, cl
sub al, 0x46
xor byte [ebp + ecx - 0x2c], al
inc ecx
cmp ecx, 0xa
jb 0x4093b0
push edx
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x21], 0
push eax
lea ecx, [ebp - 0x74]
call fcn.0040be30
mov ecx, dword [ebp - 0x38]
mov byte [ebp - 4], 4
cmp ecx, 0x10
jb 0x409409
mov edx, dword [ebp - 0x4c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4093ff
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4093ff
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 + 8]
mov ecx, esp
push eax
call fcn.00402320
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0xa5]
call fcn.004100c0
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 0xa
jb 0x409434
mov edx, dword [edx]
mov dword [ebp - 0x20], 0xcecfded7
xor ecx, ecx
mov dword [ebp - 0x1c], 0xa5d8df
mov byte [ebp - 0x18], 1
mov al, cl
sub al, 0x46
xor byte [ebp + ecx - 0x20], al
inc ecx
cmp ecx, 7
jb 0x409448
push edx
lea eax, [ebp - 0x20]
mov byte [ebp - 0x18], 0
push eax
lea ecx, [ebp - 0x74]
call fcn.0040be30
mov ecx, dword [ebp - 0x38]
mov byte [ebp - 4], 4
cmp ecx, 0x10
jb 0x4094a1
mov edx, dword [ebp - 0x4c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409497
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x409497
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 - 0xa4]
mov ecx, esp
push eax
call fcn.00402320
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0xa5]
call fcn.004100c0
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 0xb
jb 0x4094cf
mov edx, dword [edx]
mov dword [ebp - 0x1c], 0xcfd9c8d3
xor ecx, ecx
mov word [ebp - 0x18], 0x100
nop
mov al, cl
sub al, 0x46
xor byte [ebp + ecx - 0x1c], al
inc ecx
cmp ecx, 4
jb 0x4094e0
push edx
lea eax, [ebp - 0x1c]
mov byte [ebp - 0x17], 0
push eax
lea ecx, [ebp - 0x74]
call fcn.0040be30
mov ecx, dword [ebp - 0x38]
mov byte [ebp - 4], 4
cmp ecx, 0x10
jb 0x409539
mov edx, dword [ebp - 0x4c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40952f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40952f
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 - 0x4c]
push eax
lea ecx, [ebp - 0xa5]
call fcn.004100c0
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 0xc
jb 0x409561
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 0x409571
push edx
lea eax, [ebp - 0x20]
mov byte [ebp - 0x19], 0
push eax
lea ecx, [ebp - 0x74]
call fcn.0040be30
mov ecx, dword [ebp - 0x38]
mov byte [ebp - 4], 4
cmp ecx, 0x10
jb 0x4095ca
mov edx, dword [ebp - 0x4c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4095c0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4095c0
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 - 0x2c], 0x92d5cbdb
xor ecx, ecx
mov dword [ebp - 0x28], 0xeeacd3da
mov word [ebp - 0x24], 0x100
mov al, cl
sub al, 0x46
xor byte [ebp + ecx - 0x2c], al
inc ecx
cmp ecx, 8
jb 0x4095e0
movaps xmm0, xmmword [0x45d720]
xor ecx, ecx
mov byte [ebp - 0x23], 0
movups xmmword [ebp - 0x88], xmm0
mov byte [ebp - 0x78], 1
nop word [eax + eax]
mov al, cl
sub al, 0x46
xor byte [ebp + ecx - 0x88], al
inc ecx
cmp ecx, 0xf
jb 0x409610
push 0
lea ecx, [ebp - 0x74]
mov byte [ebp - 0x78], 0
mov word [ebp - 0xac], 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
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409658
sub ecx, edi
push ecx
push esi
mov ecx, edx
call fcn.00402080
push ebx
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0xac]
push eax
call fcn.004098b0
add esp, 0x2c
test al, al
jne 0x409766
mov ecx, dword [ebp - 0x90]
mov byte [0x47249d], 1
cmp ecx, 0x10
jb 0x4096ce
mov edx, dword [ebp - 0xa4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4096c4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409802
push ecx
push edx
call fcn.00459a6a
add esp, 8
mov ecx, dword [ebp - 0x60]
cmp ecx, 0x10
jb 0x409702
mov edx, dword [ebp - 0x74]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4096f8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409802
push ecx
push edx
call fcn.00459a6a
add esp, 8
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0xf
mov byte [ebp - 0x74], 0
cmp ecx, 0x10
jb 0x409748
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40973e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409802
push ecx
push edx
call fcn.00459a6a
add esp, 8
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 0x18
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 0x409783
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [ebp - 0xb0]
add esp, 4
call fcn.004053d0
mov ecx, dword [ebp - 0x90]
cmp ecx, 0x10
jb 0x4097dc
mov edx, dword [ebp - 0xa4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4097d2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409802
push ecx
push edx
call fcn.00459a6a
add esp, 8
mov ecx, dword [ebp - 0x60]
cmp ecx, 0x10
jb 0x409812
mov edx, dword [ebp - 0x74]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409808
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x409808
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 + 0x1c]
cmp ecx, 0x10
jb 0x409748
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40973e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40973e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
movaps xmm0, xmmword [0x45d790]
xor ecx, ecx
movups xmmword [ebp - 0x5c], xmm0
mov dword [ebp - 0x3c], 0xf3ae95fa
movaps xmm0, xmmword [0x45d800]
movups xmmword [ebp - 0x4c], xmm0
mov dword [ebp - 0x38], 0xd3b5fe
mov byte [ebp - 0x34], 1
mov al, cl
sub al, 0x46
xor byte [ebp + ecx - 0x5c], al
inc ecx
cmp ecx, 0x27
jb 0x409874
lea eax, [ebp - 0x5c]
mov byte [ebp - 0x34], 0
push 5
push eax
call fcn.0040d170
add esp, 8
mov byte [0x47249d], 1
mov eax, 0x409812
ret