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

Disassembly:
mov eax, 0x1005857c
call fcn.100573b8
sub esp, 0x208
push ebx
push esi
mov byte [ebp - 0x28], dl
xor ebx, ebx
mov dword [ebp - 0x1c], 0x7e38
cmp dword [ebp - 0x1c], 0x8087
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x74], ecx
jle 0x1002ad94
mov esi, ebx
mov dword [ebp - 0x18], ebx
mov edi, ebx
mov dword [ebp - 0x20], ebx
mov ebx, edi
and ebx, esi
mov esi, dword [ebp - 0x20]
mov eax, ebx
mov ecx, 0x100720b8
xor eax, esi
cdq
push edx
push eax
call fcn.10001c38
inc esi
cmp esi, 0x2338
jl 0x1002ad5f
mov esi, dword [ebp - 0x18]
inc edi
push 0
pop ebx
cmp edi, 0x537e
jl 0x1002ad55
inc esi
mov dword [ebp - 0x18], esi
cmp esi, 0x75d1
jl 0x1002ad53
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x1c], 0x7ce0
jge 0x1002adaf
mov edx, str.qegfzg_qpi_oolaxri_uihqqskn_eixsfqan_qumotzfo_niifodyh_olvqswfx_xycbzj_kndjdfmd_puxoib
mov ecx, 0x100720b8
call fcn.100035ef
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x20], 0x7832
mov dword [ebp - 0x1c], 0x1ee7
cmp dword [ebp - 0x1c], 0x51f
jge 0x1002af0b
push 0x144
lea eax, [ebp - 0x210]
mov dword [ebp - 0x214], ebx
push ebx
push eax
call fcn.1003fe30
add esp, 0xc
mov dword [ebp - 0x38], ebx
lea eax, [ebp - 0x38]
xor esi, esi
xorps xmm0, xmm0
mov edi, 0x100604ac
inc esi
movsd qword [ebp - 0x34], xmm0
push eax
push edi
call fcn.1003ffd2
pop ecx
pop ecx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x48], ebx
jmp 0x1002aefc
dec eax
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x48]
push eax
push 0x10061854
call fcn.1003ffd2
cmp dword [ebp - 0x48], 1
pop ecx
pop ecx
jne 0x1002ae8e
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x64]
push eax
push str._ld__ld
call fcn.1003ffd2
mov ecx, dword [ebp - 0x64]
add esp, 0xc
mov edx, dword [ebp - 0x58]
mov eax, ebx
test ecx, ecx
jle 0x1002ae85
add dword [ebp + eax*4 - 0x214], edx
inc eax
cmp eax, ecx
jl 0x1002ae79
imul ecx, edx
movd xmm0, ecx
jmp 0x1002aeaf
cmp dword [ebp - 0x48], 2
jne 0x1002aeba
lea eax, [ebp - 0x60]
push eax
push edi
call fcn.1003ffd2
mov eax, dword [ebp - 0x60]
pop ecx
mov dword [ebp + esi*4 - 0x214], eax
inc esi
pop ecx
movd xmm0, eax
cvtdq2pd xmm1, xmm0
addsd xmm1, qword [ebp - 0x34]
jmp 0x1002aed7
cmp dword [ebp - 0x48], 3
movsd xmm1, qword [ebp - 0x34]
jne 0x1002aedc
movd xmm0, dword [ebp + esi*4 - 0x218]
dec esi
cvtdq2pd xmm0, xmm0
subsd xmm1, xmm0
movsd qword [ebp - 0x34], xmm1
movd xmm0, esi
cvtdq2pd xmm0, xmm0
push ecx
push ecx
divsd xmm1, xmm0
movsd qword [esp], xmm1
push str._.9lf_n
call fcn.1003fd76
add esp, 0xc
mov eax, dword [ebp - 0x38]
test eax, eax
jne 0x1002ae3e
dec eax
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x20], 0x7afc
jle 0x1002af81
push 0x10e6
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, ebx
mov esi, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x1c], 0x3667
mov eax, esi
lea ecx, [ebp - 0xc8]
xor eax, edi
cdq
push edx
push eax
call fcn.10001a51
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x1002af4e
mov eax, dword [eax]
push eax
call fcn.1003fd76
pop ecx
push ebx
push 1
lea ecx, [ebp - 0xc8]
call fcn.10002015
dec esi
dec dword [ebp - 0x1c]
jne 0x1002af32
mov esi, dword [ebp - 0x18]
inc esi
mov dword [ebp - 0x18], esi
cmp esi, 0x3fb6
jl 0x1002af28
inc edi
cmp edi, 0x4aea
jl 0x1002af23
cmp byte [ebp - 0x28], 0
je 0x1002b364
mov edi, 0xd313dd33
push 0xfffffffffffffffa
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x18], ebx
pop esi
jmp 0x1002afca
sub esp, 0x10
call fcn.1002bc2f
push 0x7106
push 1
lea eax, [ebp - 0x29]
mov byte [ebp - 0x29], bl
push eax
push 1
push 0x4a30
mov edx, 0x41a2
mov cl, 1
call fcn.1002aa6a
add esp, 0x24
dec dword [ebp - 0x18]
cmp dword [ebp - 0x18], esi
je 0x1002af9b
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x18], ebx
jmp 0x1002b022
push ebx
mov edx, 0x258c
mov ecx, 0x4e01
call fcn.1002c6cc
mov dword [esp], 0x3c4f
lea eax, [ebp - 0x2b]
push 0x6466
push 1
push 0x2e70
push 0x7112
push eax
push ecx
push 0x7642
push ecx
mov byte [ebp - 0x2b], bl
mov edx, 0x193d
mov ecx, 0x475b
call fcn.1002abcd
add esp, 0x24
dec dword [ebp - 0x18]
cmp dword [ebp - 0x18], esi
je 0x1002afd7
push 0x7c
pop eax
mov word [ebp - 0x54], ax
xor eax, eax
mov byte [ebp - 0x50], bl
mov byte [ebp - 0x4f], 0xae
mov word [ebp - 0x52], ax
mov dword [ebp - 0x18], 0x4caf14c9
mov dword [ebp - 0x30], 0xffffffff
mov dword [ebp - 0x20], 0x5c96
cmp dword [ebp - 0x20], 0x5e5d
jle 0x1002b0b7
mov esi, ebx
mov dword [ebp - 0x18], ebx
mov edi, ebx
mov ecx, ebx
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], ecx
lea eax, [ebx + esi]
xor eax, ecx
mov ecx, 0x100720b8
xor eax, edi
cdq
push edx
push eax
call fcn.10001c38
mov ecx, dword [ebp - 0x1c]
inc ecx
mov dword [ebp - 0x1c], ecx
cmp ecx, 0x1ba7
jl 0x1002b068
inc edi
push 0
pop ebx
cmp edi, 0xd81
jl 0x1002b060
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp eax, 0x55c5
jl 0x1002b05e
inc esi
cmp esi, 0x5416
jl 0x1002b05b
push ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorOwner]
mov dword [ebp - 4], 2
cmp dword [ebp - 0x20], 0x5b38
jge 0x1002b0d6
mov edx, str.qzlxlvqx_mlp_gwzxzg_qfq_ofsr_odmbssqbo_dza_qokazbcx_njjnjera_uwula_zjfcma_mkokhi_mauibl
mov ecx, 0x100720b8
call fcn.100035ef
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x18], ebx
jmp 0x1002b10f
mov eax, dword [ebp - 0x18]
mov dword [ebp + eax*4 - 0x24], 0x8876
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 1
jl 0x1002b101
mov byte [ebp - 0x2a], bl
mov dword [ebp - 0x1c], 0x244e
cmp dword [ebp - 0x1c], 0x2676
jle 0x1002b171
mov esi, ebx
mov dword [ebp - 0x20], ebx
mov edi, ebx
mov eax, esi
mov dword [ebp - 0x30], ebx
cdq
idiv edi
mov esi, dword [ebp - 0x30]
mov ebx, edx
mov eax, esi
mov ecx, 0x100720b8
or eax, ebx
cdq
push edx
push eax
call fcn.10001c38
inc esi
cmp esi, 0x4a0
jl 0x1002b13c
mov esi, dword [ebp - 0x20]
inc edi
push 0
pop ebx
cmp edi, 0x3854
jl 0x1002b12f
inc esi
mov dword [ebp - 0x20], esi
cmp esi, 0x4a17
jl 0x1002b12d
lea eax, [ebp - 0x2a]
xor dl, dl
push eax
push 0x2023
push 1
push 0x41e6
mov ecx, 0x2e18
call fcn.1002ad20
add esp, 0x10
mov dword [ebp - 4], 4
cmp dword [ebp - 0x1c], 0x2366
jge 0x1002b1af
mov edx, str.pers_vbka_cje_msmfjyg_yeotcey_vlpuniv_njyqkqfi_nfmayg_nwihgm_qzufxs_rvgfvx_dxfi
mov ecx, 0x100720b8
call fcn.100035ef
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x1002b1c7
mov eax, dword [ebp - 0x24]
mov eax, dword [ebp - 0x24]
mov eax, dword [ebp - 0x24]
mov eax, dword [ebp - 0x24]
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0x24], ebx
jne 0x1002b1fd
cmp dword [ebp - 0x18], ebx
jne 0x1002b1fd
mov eax, ebx
jmp 0x1002b200
xor eax, eax
inc eax
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x98]
xor eax, eax
mov dword [ebp - 0x88], ebx
push 7
pop edi
mov word [ebp - 0x98], ax
lea eax, [ebp - 0x54]
push eax
mov dword [ebp - 0x84], edi
call fcn.100229f9
mov edx, dword [ebp - 0x74]
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x80]
mov dword [ebp - 4], 6
call fcn.1002a9bc
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 8
call fcn.1001171d
push 9
pop eax
push 2
mov ecx, ebx
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x44], bl
mov dword [ebp - 0x43], 0x4ec302c1
mov dword [ebp - 0x3f], 0x2d030401
mov word [ebp - 0x3b], 0x2a02
mov word [ebp - 0x70], ax
pop esi
mov dword [ebp - 0x5c], ecx
cmp esi, 2
jne 0x1002b28e
push 3
pop ecx
push ecx
mov dword [ebp - 0x5c], ecx
pop esi
jmp 0x1002b2c0
movzx edx, byte [ebp + esi - 0x43]
mov eax, esi
sub eax, ecx
movzx eax, byte [ebp + eax - 0x46]
movzx eax, word [ebp + eax*2 - 0x70]
mov ecx, eax
and eax, edx
or ecx, edx
sub ecx, eax
movzx eax, byte [ebp + esi - 0x44]
push ecx
mov word [ebp + eax*2 - 0x70], cx
lea ecx, [ebp - 0x5c]
call fcn.1002c41d
pop ecx
mov ecx, dword [ebp - 0x5c]
add esi, 2
cmp esi, 0xb
jb 0x1002b27f
xor eax, eax
mov dword [ebp - 0x9c], edi
mov word [ebp - 0x68], ax
lea ecx, [ebp - 0xb0]
mov word [ebp - 0xb0], ax
lea eax, [ebp - 0x70]
push eax
mov dword [ebp - 0xa0], ebx
call fcn.100229f9
xor eax, eax
mov byte [ebp - 4], 9
lea edi, [ebp - 0x70]
mov dword [ebp - 0x4c], ebx
stosd dword es:[edi], eax
push 0x18
pop ecx
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp - 0x7c]
sub eax, dword [ebp - 0x80]
cdq
idiv ecx
mov esi, eax
test esi, esi
je 0x1002b340
lea eax, [ebp - 0x80]
mov ecx, 0x579a
push eax
lea eax, [ebp - 0x4c]
push eax
push 0x3282
push ebx
push 1
lea edx, [ebp - 0xb0]
call fcn.1002b43b
mov eax, dword [ebp - 0x4c]
add esp, 0x14
inc eax
mov dword [ebp - 0x4c], eax
cmp eax, esi
jb 0x1002b312
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x80]
push eax
call fcn.1002da05
push ebx
push 1
lea ecx, [ebp - 0xb0]
call fcn.1001171d
lea ecx, [ebp - 0x80]
call fcn.1002de90
jmp 0x1002b387
mov eax, dword [ebp + 0x14]
cmp byte [eax], 0
je 0x1002b373
push ebx
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
cmp dword [ebp - 0x20], 0x76ce
jge 0x1002b387
push str.tilswtcn_gdglbee_zwqekgps_jklur_sqp_reulm_ynwe_avoviuh
call fcn.1003fd76
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret