Function at 0x45268c
Capabilities:
Encode data using xor
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x452694
push ecx
push ebx
push esi
push edi
mov eax, dword [0x458954]
mov byte [eax], 1
mov eax, 0x44ea80
call fcn.00409fe4
xor eax, eax
push ebp
push 0x452ac2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x45887c]
xor edx, edx
mov dword [eax], edx
mov eax, dword [0x4587cc]
mov byte [eax], 0
mov eax, dword [0x458648]
mov byte [eax], 1
mov al, 1
call fcn.00403c44
mov eax, dword [0x45883c]
movzx eax, word [eax]
mov edx, dword [0x4587fc]
mov dword [edx], eax
xor eax, eax
call fcn.0041c5f0
push 0
mov eax, dword [0x458704]
mov ecx, 1
mov edx, dword [0x41c0f4]
call fcn.00408538
add esp, 4
push 0
mov eax, dword [0x458974]
mov ecx, 1
mov edx, dword [0x41c124]
call fcn.00408538
add esp, 4
mov dl, 1
mov eax, dword [0x44e424]
call fcn.0044e64c
mov ebx, eax
mov edx, 0x452ae0
mov eax, ebx
call fcn.0044e6b4
test al, al
je 0x45275f
mov ecx, dword [ebx + 0x40]
mov edx, 0x471da4
mov eax, dword [ebx + 0x3c]
call fcn.00404040
mov eax, ebx
call fcn.0044e6a0
mov eax, dword [0x4589ac]
mov edx, dword [0x471db0]
mov dword [eax], edx
mov edx, 0x452af4
mov eax, ebx
call fcn.0044e6b4
test al, al
je 0x452a90
lea eax, [ebp - 0x14]
call fcn.0041c1f4
mov eax, dword [ebp - 0x14]
call fcn.00407508
mov dword [0x471da0], eax
mov edx, 0x8000
mov eax, dword [0x471da0]
call fcn.0042b81c
mov dword [0x471d9c], eax
mov eax, dword [0x471da0]
call fcn.00406ea8
mov dword [0x471d98], eax
mov eax, dword [0x458704]
mov eax, dword [eax]
call fcn.0040831c
mov esi, eax
lea eax, [esi + 1]
push eax
mov eax, dword [0x458704]
mov ecx, 1
mov edx, dword [0x41c0f4]
call fcn.00408538
add esp, 4
mov eax, dword [0x471d98]
lea eax, [eax + eax*2]
call fcn.00403e9c
lea edi, [esi + esi*2]
mov edx, dword [0x458704]
mov edx, dword [edx]
mov dword [edx + edi*8], eax
lea eax, [esi + esi*2]
mov edx, dword [0x458704]
mov edx, dword [edx]
mov eax, dword [edx + eax*8]
mov edx, dword [0x471da0]
call fcn.0041513c
mov eax, dword [0x458704]
mov eax, dword [eax]
mov edx, dword [0x471d9c]
mov dword [eax + edi*8 + 4], edx
mov eax, dword [0x471d9c]
push eax
call sub.msvcrt.dll__get_osfhandle
pop ecx
mov edx, dword [0x458704]
mov edx, dword [edx]
mov dword [edx + edi*8 + 8], eax
mov eax, dword [0x458704]
mov eax, dword [eax]
mov edx, dword [ebx + 0x40]
mov dword [eax + edi*8 + 0xc], edx
lea eax, [esi + esi*2]
mov edx, dword [0x458704]
mov edx, dword [edx]
mov eax, dword [edx + eax*8 + 0xc]
call fcn.00403e9c
mov edx, dword [0x458704]
mov edx, dword [edx]
mov dword [edx + edi*8 + 0x10], eax
lea eax, [esi + esi*2]
mov edx, dword [0x458704]
mov edx, dword [edx]
mov edx, dword [edx + eax*8 + 0x10]
mov ecx, dword [ebx + 0x40]
mov eax, dword [ebx + 0x3c]
call fcn.00404040
mov eax, dword [0x458704]
mov eax, dword [eax]
mov edx, dword [eax + edi*8 + 0x10]
mov eax, dword [ebx + 0x40]
dec eax
test eax, eax
jl 0x4528a2
inc eax
xor byte [edx], 0xff
inc edx
dec eax
jne 0x45289b
lea eax, [esi + esi*2]
mov edx, dword [0x458704]
mov edx, dword [edx]
xor ecx, ecx
mov dword [edx + eax*8 + 0x14], ecx
mov eax, ebx
call fcn.00405298
lea edx, [ebp - 0x18]
mov eax, dword [0x471dac]
call fcn.0044e944
push dword [ebp - 0x18]
push 0x452b08
call sub.kernel32.dll_GetTickCount_1
xor edx, edx
push edx
push eax
lea edx, [ebp - 0x1c]
mov eax, 6
call fcn.0041487c
push dword [ebp - 0x1c]
push 0x452b1c
mov eax, 0xff
call fcn.00404284
lea ecx, [ebp - 0x20]
mov edx, 2
call fcn.0041485c
push dword [ebp - 0x20]
mov eax, dword [0x4589b4]
mov edx, 5
call fcn.00407778
mov eax, dword [0x4589b4]
mov eax, dword [eax]
call fcn.004150cc
mov eax, dword [0x4589b4]
mov eax, dword [eax]
call fcn.00407508
push eax
push 0x452b20
call sub.kernel32.dll_SetEnvironmentVariableW
mov eax, dword [0x4587f8]
xor edx, edx
mov dword [eax], edx
xor eax, eax
push ebp
push 0x452993
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
lea edx, [ebp - 0x24]
xor eax, eax
call fcn.004041fc
mov ecx, dword [ebp - 0x24]
mov dl, 1
mov eax, dword [0x44b354]
call fcn.0044bfdc
mov edx, dword [0x4587f8]
mov dword [edx], eax
mov edx, dword [0x4589b4]
mov edx, dword [edx]
mov eax, dword [0x4587f8]
mov eax, dword [eax]
call fcn.0044c794
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4529b6
call fcn.0044cec8
mov edx, dword [0x458924]
mov dword [edx], eax
mov eax, dword [0x458924]
cmp dword [eax], 0
je 0x452a97
mov eax, dword [0x458948]
call fcn.0041bfcc
test eax, eax
je 0x4529fd
mov eax, dword [0x4587b8]
cmp byte [eax], 0
je 0x4529f3
mov eax, dword [0x4587cc]
mov byte [eax], 1
jmp 0x4529fd
mov eax, 0xff
call fcn.0044e05c
mov eax, dword [0x4587cc]
cmp byte [eax], 0
jne 0x452a97
mov ecx, dword [0x458758]
mov ecx, dword [ecx]
mov edx, dword [0x458924]
mov edx, dword [edx]
mov eax, 1
call fcn.0041ce08
mov edx, dword [0x458980]
mov dword [edx], eax
mov eax, dword [0x458980]
cmp dword [eax], 1
jne 0x452a41
mov eax, 1
call fcn.0044e05c
mov eax, dword [0x458980]
cmp dword [eax], 0xffffffff
jne 0x452a52
xor eax, eax
call fcn.0044e05c
mov edx, dword [0x458980]
mov edx, dword [edx]
xor eax, eax
call fcn.004287d0
mov edx, dword [0x458650]
mov word [edx], ax
call fcn.0042c3b0
mov eax, dword [0x4587b8]
cmp byte [eax], 0
jne 0x452a86
mov eax, dword [0x458650]
movzx eax, word [eax]
call fcn.0044e05c
mov eax, dword [0x4587b8]
mov byte [eax], 0
jmp 0x452a97
mov eax, ebx
call fcn.00405298
xor eax, eax
call fcn.0044e05c
mov eax, dword [0x4585ac]
xor edx, edx
mov dword [eax], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x452ac9
lea eax, [ebp - 0x24]
mov edx, 5
call fcn.00406a1c
ret