Function at 0x1030c66
Capabilities:
Persist via run registry key
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x1046190]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
xor edx, edx
xor ecx, ecx
inc ecx
cmp ebx, edx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x218], edx
mov dword [ebp - 0x210], edx
mov dword [ebp - 0x214], ecx
jne 0x1030ca5
xor eax, eax
jmp 0x1030faa
mov eax, dword [esi]
cmp eax, 0x208
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x21c], eax
jb 0x1030f0b
lea eax, [ebp - 0x218]
push eax
push ecx
push edx
push 0x1006570
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1030e29
mov eax, dword [esi]
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x21c]
push eax
push ebx
lea eax, [ebp - 0x214]
push eax
push 0
push 0x1006554
push dword [ebp - 0x218]
call edi
test eax, eax
jne 0x1030d69
cmp dword [ebp - 0x214], 1
jne 0x1030d1d
push ebx
call fcn.01033ed9
test eax, eax
jne 0x1030d5a
cmp dword [ebp - 0x214], 2
jne 0x1030d69
push 0x104
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x1030d69
lea eax, [ebp - 0x20c]
push eax
push dword [esi]
push ebx
call fcn.01028aa1
test eax, eax
jl 0x1030d69
push ebx
call fcn.01033ed9
test eax, eax
je 0x1030d69
mov dword [ebp - 0x210], 1
jmp 0x1030e10
mov eax, dword [esi]
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x21c]
push eax
push ebx
lea eax, [ebp - 0x214]
push eax
push 0
push 0x1006544
push dword [ebp - 0x218]
call edi
test eax, eax
jne 0x1030e10
cmp dword [ebp - 0x214], 1
jne 0x1030da6
push ebx
call fcn.01033ed9
test eax, eax
jne 0x1030de3
cmp dword [ebp - 0x214], 2
jne 0x1030e10
push 0x104
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x1030e10
lea eax, [ebp - 0x20c]
push eax
push dword [esi]
push ebx
call fcn.01028aa1
test eax, eax
jl 0x1030e10
push ebx
call fcn.01033ed9
test eax, eax
je 0x1030e10
push ebx
mov dword [ebp - 0x210], 1
call fcn.01032458
push 0x10064f0
push dword [esi]
push ebx
call fcn.01028b1e
push ebx
call fcn.01033ed9
test eax, eax
jne 0x1030e10
and dword [ebp - 0x210], eax
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x210], 0
jne 0x1030f9b
lea eax, [ebp - 0x218]
push eax
push 1
push 0
push 0x10031c0
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1030f0b
mov eax, dword [esi]
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x21c]
push eax
push ebx
lea eax, [ebp - 0x214]
push eax
push 0
push 0x1006554
push dword [ebp - 0x218]
call edi
test eax, eax
jne 0x1030e95
cmp dword [ebp - 0x214], 1
jne 0x1030e95
push ebx
call fcn.01033ed9
test eax, eax
je 0x1030e95
mov dword [ebp - 0x210], 1
jmp 0x1030ef2
mov eax, dword [esi]
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x21c]
push eax
push ebx
lea eax, [ebp - 0x214]
push eax
push 0
push 0x1006544
push dword [ebp - 0x218]
call edi
test eax, eax
jne 0x1030eeb
inc eax
cmp dword [ebp - 0x214], eax
jne 0x1030eeb
push ebx
mov dword [ebp - 0x210], eax
call fcn.01032458
push 0x10064f0
push dword [esi]
push ebx
call fcn.01028b1e
push ebx
call fcn.01033ed9
test eax, eax
jne 0x1030ef2
and dword [ebp - 0x210], 0
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x210], 0
jne 0x1030f9b
lea eax, [ebp - 0x218]
push eax
push 1
push 0
push 0x1006478
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1030f9b
push 0x96
lea eax, [ebp - 0x130]
push eax
push 0x9d
push dword [0x1047500]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x1030f8f
mov eax, dword [esi]
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x21c]
push eax
push ebx
lea eax, [ebp - 0x214]
push eax
push 0
lea eax, [ebp - 0x130]
push eax
push dword [ebp - 0x218]
call edi
test eax, eax
jne 0x1030f88
inc eax
cmp dword [ebp - 0x214], eax
jne 0x1030f88
mov dword [ebp - 0x210], eax
jmp 0x1030f8f
and dword [ebp - 0x210], 0
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x21c]
mov dword [esi], eax
mov eax, dword [ebp - 0x210]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.01031a01
leave
ret 8