Function at 0x102d396
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 [0x103f058]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
xor edx, edx
xor ecx, ecx
inc ecx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x218], edx
mov dword [ebp - 0x210], edx
mov dword [ebp - 0x214], ecx
cmp ebx, edx
jne 0x102d3d5
xor eax, eax
jmp 0x102d6da
mov eax, dword [esi]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x21c], eax
cmp eax, 0x208
jb 0x102d63b
lea eax, [ebp - 0x218]
push eax
push ecx
push edx
push 0x1005280
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x102d559
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 0x1005264
push dword [ebp - 0x218]
call edi
test eax, eax
jne 0x102d499
cmp dword [ebp - 0x214], 1
jne 0x102d44d
push ebx
call fcn.0102fe6a
test eax, eax
jne 0x102d48a
cmp dword [ebp - 0x214], 2
jne 0x102d499
push 0x104
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x102d499
lea eax, [ebp - 0x20c]
push eax
push dword [esi]
push ebx
call fcn.01027ea2
test eax, eax
jl 0x102d499
push ebx
call fcn.0102fe6a
test eax, eax
je 0x102d499
mov dword [ebp - 0x210], 1
jmp 0x102d540
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 0x1005254
push dword [ebp - 0x218]
call edi
test eax, eax
jne 0x102d540
cmp dword [ebp - 0x214], 1
jne 0x102d4d6
push ebx
call fcn.0102fe6a
test eax, eax
jne 0x102d513
cmp dword [ebp - 0x214], 2
jne 0x102d540
push 0x104
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x102d540
lea eax, [ebp - 0x20c]
push eax
push dword [esi]
push ebx
call fcn.01027ea2
test eax, eax
jl 0x102d540
push ebx
call fcn.0102fe6a
test eax, eax
je 0x102d540
push ebx
mov dword [ebp - 0x210], 1
call fcn.0102e61a
push 0x1005200
push dword [esi]
push ebx
call fcn.01027f1e
push ebx
call fcn.0102fe6a
test eax, eax
jne 0x102d540
and dword [ebp - 0x210], eax
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x210], 0
jne 0x102d6cb
lea eax, [ebp - 0x218]
push eax
push 1
push 0
push 0x1005178
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x102d63b
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 0x1005264
push dword [ebp - 0x218]
call edi
test eax, eax
jne 0x102d5c5
cmp dword [ebp - 0x214], 1
jne 0x102d5c5
push ebx
call fcn.0102fe6a
test eax, eax
je 0x102d5c5
mov dword [ebp - 0x210], 1
jmp 0x102d622
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 0x1005254
push dword [ebp - 0x218]
call edi
test eax, eax
jne 0x102d61b
inc eax
cmp dword [ebp - 0x214], eax
jne 0x102d61b
push ebx
mov dword [ebp - 0x210], eax
call fcn.0102e61a
push 0x1005200
push dword [esi]
push ebx
call fcn.01027f1e
push ebx
call fcn.0102fe6a
test eax, eax
jne 0x102d622
and dword [ebp - 0x210], 0
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x210], 0
jne 0x102d6cb
lea eax, [ebp - 0x218]
push eax
push 1
push 0
push 0x1005100
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x102d6cb
push 0x96
lea eax, [ebp - 0x130]
push eax
push 0x9d
push dword [0x10405b0]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x102d6bf
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 0x102d6b8
inc eax
cmp dword [ebp - 0x214], eax
jne 0x102d6b8
mov dword [ebp - 0x210], eax
jmp 0x102d6bf
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.0102df7d
leave
ret 8