Function at 0x1009a070
Capabilities:
Query environment variable
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f0b90
mov eax, dword fs:[0]
push eax
sub esp, 0x3b8
mov eax, dword [0x1011d1c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov edi, dword [ebp + 8]
push eax
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [ebp - 0x394], eax
mov dword [ebp - 0x384], eax
mov dword [ebp - 0x3a4], eax
lea eax, [ebp - 0x3a4]
push eax
push 0
push 0
push 0
push edi
mov dword [ebp - 0x3a8], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x1009a129
mov ecx, dword [0x1011de3c]
cmp ecx, 0x1011de3c
je 0x1009a10c
test byte [ecx + 0x1c], 4
je 0x1009a10c
cmp byte [ecx + 0x19], 5
jb 0x1009a10c
push eax
push dword [ecx + 0x14]
mov edx, 0x101059c4
push dword [ecx + 0x10]
mov ecx, 0x1e9
call fcn.10022cf0
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100be435
mov esp, ebp
pop ebp
ret 4
xor esi, esi
mov dword [ebp - 0x3a0], esi
cmp dword [ebp - 0x3a4], esi
jbe 0x1009a10c
nop dword [eax]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x3ac]
mov dword [ebp - 0x3ac], 0xc8
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x1009a1b0
mov ecx, dword [0x1011de3c]
cmp ecx, 0x1011de3c
je 0x1009ad37
test byte [ecx + 0x1c], 4
je 0x1009ad37
cmp byte [ecx + 0x19], 5
jb 0x1009ad37
push eax
push dword [ecx + 0x14]
mov edx, 0x101059c4
push dword [ecx + 0x10]
mov ecx, 0x1ea
call fcn.10022cf0
add esp, 0xc
jmp 0x1009ad37
xorps xmm0, xmm0
mov dword [ebp - 0x31c], 0
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x318], 0
movups xmmword [ebp - 0x32c], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1009a1d7
sub ecx, edx
lea eax, [ebp - 0x210]
push ecx
push eax
lea ecx, [ebp - 0x32c]
call fcn.10022b30
mov dword [ebp - 4], 0
lea eax, [ebp - 0x390]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x210]
mov dword [ebp - 0x390], 0
push eax
push edi
call dword [0x1011d018]
test eax, eax
je 0x1009a268
mov ecx, dword [0x1011de3c]
cmp ecx, 0x1011de3c
je 0x1009acdf
test byte [ecx + 0x1c], 4
je 0x1009ac9e
cmp byte [ecx + 0x19], 5
jb 0x1009ac9e
push eax
push dword [ecx + 0x14]
mov edx, 0x101059c4
push dword [ecx + 0x10]
mov ecx, 0x1eb
call fcn.10022cf0
add esp, 0xc
jmp 0x1009ac98
mov eax, dword [ebp - 0x390]
lea edx, [ebp - 0x378]
lea ecx, [ebp - 0x3b4]
mov dword [ebp - 0x378], eax
call fcn.1009ad60
mov byte [ebp - 4], 1
lea eax, [ebp - 0x380]
push eax
lea eax, [ebp - 0x148]
mov dword [ebp - 0x380], 0x12c
push eax
lea eax, [ebp - 0x37c]
mov dword [ebp - 0x37c], 0
push eax
push 0
push str.FriendlyName
push dword [ebp - 0x390]
call dword [0x1011d020]
test eax, eax
jne 0x1009a43c
cmp dword [ebp - 0x37c], 1
jne 0x1009a43c
push 3
push 0x101058e4
lea ecx, [ebp - 0x32c]
call fcn.10021a80
lea ecx, [ebp - 0x148]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1009a2f5
sub ecx, edx
lea eax, [ebp - 0x148]
push ecx
push eax
lea ecx, [ebp - 0x32c]
call fcn.10021a80
mov esi, dword [ebp - 0x318]
mov edi, dword [ebp - 0x31c]
mov dword [ebp - 0x38c], esi
cmp edi, esi
jae 0x1009a34b
lea eax, [edi + 1]
cmp esi, 0xf
mov dword [ebp - 0x31c], eax
lea eax, [ebp - 0x32c]
cmova eax, dword [ebp - 0x32c]
mov word [eax + edi], 0x22
jmp 0x1009a44e
mov eax, SysReAllocString
sub eax, edi
cmp eax, 1
jb 0x1009ad54
lea ecx, [edi + 1]
or ecx, 0xf
cmp ecx, 0x7fffffff
jbe 0x1009a370
mov ecx, SysReAllocString
jmp 0x1009a38e
mov edx, esi
mov eax, SysReAllocString
shr edx, 1
sub eax, edx
cmp esi, eax
jbe 0x1009a386
mov ecx, SysReAllocString
jmp 0x1009a38e
lea eax, [edx + esi]
cmp ecx, eax
cmovb ecx, eax
lea eax, [ebp - 0x388]
mov dword [ebp - 0x388], ecx
push eax
lea eax, [ebp - 0x32c]
push eax
call fcn.10016ae0
lea ecx, [edi + 1]
mov dword [ebp - 0x378], eax
add esp, 8
mov dword [ebp - 0x31c], ecx
mov ecx, dword [ebp - 0x388]
mov dword [ebp - 0x318], ecx
lea ecx, [eax + edi]
mov dword [ebp - 0x388], ecx
push edi
cmp esi, 0xf
jbe 0x1009a413
lfence
mov esi, dword [ebp - 0x32c]
push esi
push eax
call fcn.100c0760
mov eax, dword [ebp - 0x388]
push dword [ebp - 0x38c]
push esi
mov word [eax], 0x22
lea eax, [ebp - 0x32c]
push eax
call fcn.10016b80
mov eax, dword [ebp - 0x378]
add esp, 0x18
mov dword [ebp - 0x32c], eax
jmp 0x1009a44e
lea ecx, [ebp - 0x32c]
push ecx
push eax
call fcn.100c0760
mov eax, dword [ebp - 0x388]
add esp, 0xc
mov word [eax], 0x22
mov eax, dword [ebp - 0x378]
mov dword [ebp - 0x32c], eax
jmp 0x1009a44e
push 2
push 0x1010485c
lea ecx, [ebp - 0x32c]
call fcn.10021a80
push 2
push 0x1010485c
lea ecx, [ebp - 0x32c]
call fcn.10021a80
lea eax, [ebp - 0x380]
mov dword [ebp - 0x380], 0x12c
push eax
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x37c]
push eax
push 0
push str.LoadBehavior
push dword [ebp - 0x390]
call dword [0x1011d020]
test eax, eax
jne 0x1009a4e9
cmp dword [ebp - 0x37c], 4
jne 0x1009a4e9
push dword [ebp - 0x148]
lea eax, [ebp - 0x1c]
push str.0x_lx
push 0xa
push eax
call fcn.10053ae0
add esp, 0x10
lea ecx, [ebp - 0x32c]
push 6
push str.Load:
call fcn.10021a80
lea ecx, [ebp - 0x1c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1009a4d0
sub ecx, edx
lea eax, [ebp - 0x1c]
push ecx
push eax
lea ecx, [ebp - 0x32c]
call fcn.10021a80
push 2
push 0x1010485c
lea ecx, [ebp - 0x32c]
call fcn.10021a80
lea eax, [ebp - 0x380]
mov dword [ebp - 0x380], 0x12c
push eax
lea eax, [ebp - 0x148]
mov dword [ebp - 0x37c], 0
push eax
lea eax, [ebp - 0x37c]
push eax
push 0
push str.Manifest
push dword [ebp - 0x390]
call dword [0x1011d020]
test eax, eax
jne 0x1009a6a0
cmp dword [ebp - 0x37c], 1
jne 0x1009a6a0
push 0xb
push str.Manifest:__
lea ecx, [ebp - 0x32c]
call fcn.10021a80
lea ecx, [ebp - 0x148]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1009a567
sub ecx, edx
lea eax, [ebp - 0x148]
push ecx
push eax
lea ecx, [ebp - 0x32c]
call fcn.10021a80
mov esi, dword [ebp - 0x318]
mov edi, dword [ebp - 0x31c]
mov dword [ebp - 0x38c], esi
cmp edi, esi
jae 0x1009a5bd
lea eax, [edi + 1]
cmp esi, 0xf
mov dword [ebp - 0x31c], eax
lea eax, [ebp - 0x32c]
cmova eax, dword [ebp - 0x32c]
mov word [eax + edi], 0x22
jmp 0x1009a6a0
mov eax, SysReAllocString
sub eax, edi
cmp eax, 1
jb 0x1009ad54
lea ecx, [edi + 1]
or ecx, 0xf
cmp ecx, 0x7fffffff
jbe 0x1009a5e2
mov ecx, SysReAllocString
jmp 0x1009a600
mov edx, esi
mov eax, SysReAllocString
shr edx, 1
sub eax, edx
cmp esi, eax
jbe 0x1009a5f8
mov ecx, SysReAllocString
jmp 0x1009a600
lea eax, [esi + edx]
cmp ecx, eax
cmovb ecx, eax
lea eax, [ebp - 0x378]
mov dword [ebp - 0x378], ecx
push eax
lea eax, [ebp - 0x32c]
push eax
call fcn.10016ae0
lea ecx, [edi + 1]
mov dword [ebp - 0x388], eax
add esp, 8
mov dword [ebp - 0x31c], ecx
mov ecx, dword [ebp - 0x378]
mov dword [ebp - 0x318], ecx
lea ecx, [edi + eax]
mov dword [ebp - 0x378], ecx
push edi
cmp esi, 0xf
jbe 0x1009a679
lfence
mov esi, dword [ebp - 0x32c]
push esi
push eax
call fcn.100c0760
mov eax, dword [ebp - 0x378]
push dword [ebp - 0x38c]
push esi
mov word [eax], 0x22
lea eax, [ebp - 0x32c]
push eax
call fcn.10016b80
add esp, 0x18
jmp 0x1009a694
lea ecx, [ebp - 0x32c]
push ecx
push eax
call fcn.100c0760
mov eax, dword [ebp - 0x378]
add esp, 0xc
mov word [eax], 0x22
mov eax, dword [ebp - 0x388]
mov dword [ebp - 0x32c], eax
push 2
push 0x1010485c
lea ecx, [ebp - 0x32c]
call fcn.10021a80
xorps xmm0, xmm0
mov dword [ebp - 0x334], 0
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x330], 0
movups xmmword [ebp - 0x344], xmm0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1009a6e0
sub ecx, edx
lea eax, [ebp - 0x210]
push ecx
push eax
lea ecx, [ebp - 0x344]
call fcn.10022b30
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x344]
push 6
push str.CLSID
call fcn.10021a80
cmp dword [ebp - 0x330], 0xf
lea ecx, [ebp - 0x398]
push ecx
push 0x20019
lea eax, [ebp - 0x344]
mov dword [ebp - 0x398], 0
cmova eax, dword [ebp - 0x344]
push 0
push eax
push SysReAllocString
call dword [0x1011d018]
test eax, eax
jne 0x1009ac1a
mov edi, dword [ebp - 0x398]
mov byte [ebp - 4], 3
mov byte [ebp - 0x3bc], al
mov eax, dword [ebp - 0x384]
or eax, 2
mov dword [ebp - 0x3b8], edi
mov dword [ebp - 0x394], eax
mov dword [ebp - 0x384], eax
lea eax, [ebp - 0x380]
push eax
lea eax, [ebp - 0x148]
mov dword [ebp - 0x380], 0x12c
push eax
lea eax, [ebp - 0x37c]
push eax
push 0
push 0x10100b91
push dword [ebp - 0x398]
call dword [0x1011d020]
test eax, eax
jne 0x1009abfa
cmp dword [ebp - 0x37c], 1
jne 0x1009abfa
lea ecx, [ebp - 0x148]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1009a7d0
sub ecx, edx
lea eax, [ebp - 0x148]
push ecx
push eax
lea ecx, [ebp - 0x32c]
call fcn.10021a80
push 2
push 0x1010485c
lea ecx, [ebp - 0x32c]
call fcn.10021a80
mov esi, dword [ebp - 0x330]
mov dword [ebp - 0x38c], esi
cmp esi, 6
jb 0x1009a846
cmp dword [ebp - 0x38c], 0xf
lea esi, [ebp - 0x344]
push 6
cmova esi, dword [ebp - 0x344]
push str.CLSID_
push esi
mov dword [ebp - 0x334], 6
call fcn.100c0760
add esp, 0xc
mov byte [esi + 6], 0
jmp 0x1009a8e2
mov ecx, esi
mov eax, SysReAllocString
shr ecx, 1
sub eax, ecx
cmp esi, eax
jbe 0x1009a85c
mov ecx, SysReAllocString
jmp 0x1009a869
lea eax, [esi + ecx]
mov ecx, 0xf
cmp eax, ecx
cmova ecx, eax
lea eax, [ebp - 0x378]
mov dword [ebp - 0x378], ecx
push eax
lea eax, [ebp - 0x344]
push eax
call fcn.10016ae0
mov ecx, dword [ebp - 0x378]
add esp, 8
mov dword [ebp - 0x330], ecx
mov ecx, dword [str.CLSID_]
mov dword [ebp - 0x334], 6
mov dword [eax], ecx
mov cx, word [0x1010592c]
mov word [eax + 4], cx
mov dword [ebp - 0x38c], eax
mov byte [eax + 6], 0
cmp esi, 0xf
jbe 0x1009a8dc
push esi
lfence
push dword [ebp - 0x344]
lea eax, [ebp - 0x344]
push eax
call fcn.10016b80
mov eax, dword [ebp - 0x38c]
add esp, 0xc
mov dword [ebp - 0x344], eax
lea ecx, [ebp - 0x148]
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1009a8f0
sub ecx, edx
lea eax, [ebp - 0x148]
push ecx
push eax
lea ecx, [ebp - 0x344]
call fcn.10021a80
push 0xf
push str.InprocServer32
lea ecx, [ebp - 0x344]
call fcn.10021a80
cmp dword [ebp - 0x330], 0xf
lea ecx, [ebp - 0x39c]
push ecx
push 0x20019
lea eax, [ebp - 0x344]
mov dword [ebp - 0x39c], 0
cmova eax, dword [ebp - 0x344]
push 0
push eax
push SysReAllocString
call dword [0x1011d018]
test eax, eax
je 0x1009a99e
mov ecx, dword [0x1011de3c]
cmp ecx, 0x1011de3c
je 0x1009abfa
test byte [ecx + 0x1c], 4
je 0x1009abfa
cmp byte [ecx + 0x19], 5
jb 0x1009abfa
push eax
push dword [ecx + 0x14]
mov edx, 0x101059c4
push dword [ecx + 0x10]
mov ecx, 0x1ec
call fcn.10022cf0
add esp, 0xc
jmp 0x1009abfa
mov esi, dword [ebp - 0x39c]
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x384]
or eax, 4
mov byte [ebp - 0x3c4], 0
mov dword [ebp - 0x394], eax
mov dword [ebp - 0x384], eax
lea eax, [ebp - 0x380]
push eax
lea eax, [ebp - 0x148]
mov dword [ebp - 0x3c0], esi
push eax
lea eax, [ebp - 0x37c]
mov dword [ebp - 0x380], 0x12c
push eax
push 0
push 0x10100b91
push dword [ebp - 0x39c]
call dword [0x1011d020]
test eax, eax
jne 0x1009abda
mov eax, dword [ebp - 0x37c]
cmp eax, 1
je 0x1009aa18
cmp eax, 2
jne 0x1009abda
xorps xmm0, xmm0
mov dword [ebp - 0x34c], 0
lea ecx, [ebp - 0x148]
mov dword [ebp - 0x348], 0
movups xmmword [ebp - 0x35c], xmm0
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1009aa40
sub ecx, edx
lea eax, [ebp - 0x148]
push ecx
push eax
lea ecx, [ebp - 0x35c]
call fcn.10022b30
mov byte [ebp - 4], 5
lea eax, [ebp - 0x35c]
cmp dword [ebp - 0x348], 0xf
lea ecx, [ebp - 0x32c]
push dword [ebp - 0x34c]
cmova eax, dword [ebp - 0x35c]
push eax
call fcn.10021a80
push 2
push 0x1010485c
lea ecx, [ebp - 0x32c]
call fcn.10021a80
cmp dword [ebp - 0x37c], 2
jne 0x1009aaed
cmp dword [ebp - 0x348], 0xf
lea ecx, [ebp - 0x314]
push 0x104
lea eax, [ebp - 0x35c]
cmova eax, dword [ebp - 0x35c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea ecx, [ebp - 0x314]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1009aad1
sub ecx, edx
lea eax, [ebp - 0x314]
push ecx
push eax
lea ecx, [ebp - 0x35c]
call fcn.10021d40
cmp dword [ebp - 0x348], 0xf
lea edx, [ebp - 0x35c]
lea ecx, [ebp - 0x374]
cmova edx, dword [ebp - 0x35c]
call fcn.1004db00
mov byte [ebp - 4], 6
cmp dword [eax + 0x14], 0xf
mov ecx, dword [eax + 0x10]
jbe 0x1009ab1b
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x32c]
call fcn.10021a80
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x360]
cmp ecx, 0xf
jbe 0x1009ab66
mov edx, dword [ebp - 0x374]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1009ab5c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1009ad4f
push ecx
push edx
call fcn.100be473
add esp, 8
mov dword [ebp - 0x364], 0
mov dword [ebp - 0x360], 0xf
mov byte [ebp - 0x374], 0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x348]
cmp ecx, 0xf
jbe 0x1009abbf
mov edx, dword [ebp - 0x35c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1009abb5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1009ad4f
push ecx
push edx
call fcn.100be473
add esp, 8
mov dword [ebp - 0x34c], 0
mov dword [ebp - 0x348], 0xf
mov byte [ebp - 0x35c], 0
mov eax, dword [ebp - 0x384]
and eax, 0xfffffffb
mov dword [ebp - 0x384], eax
mov dword [ebp - 0x394], eax
mov byte [ebp - 4], 3
push esi
call dword [0x1011d00c]
mov eax, dword [ebp - 0x384]
and eax, 0xfffffffd
mov dword [ebp - 0x384], eax
mov dword [ebp - 0x394], eax
mov byte [ebp - 4], 2
push edi
call dword [0x1011d00c]
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x330]
cmp ecx, 0xf
jbe 0x1009ac58
mov edx, dword [ebp - 0x344]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1009ac4e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1009ad4f
push ecx
push edx
call fcn.100be473
add esp, 8
mov dword [ebp - 0x334], 0
mov dword [ebp - 0x330], 0xf
mov byte [ebp - 0x344], 0
mov byte [ebp - 4], 0
cmp byte [ebp - 0x3b4], 0
jne 0x1009ac8c
push dword [ebp - 0x3b0]
call dword [0x1011d00c]
mov edi, dword [ebp - 0x3a8]
mov esi, dword [ebp - 0x3a0]
mov ecx, dword [0x1011de3c]
cmp ecx, 0x1011de3c
je 0x1009acdf
test byte [ecx + 0x1c], 4
je 0x1009acdf
cmp byte [ecx + 0x19], 4
jb 0x1009acdf
cmp dword [ebp - 0x318], 0xf
lea eax, [ebp - 0x32c]
mov edx, 0x101059c4
cmova eax, dword [ebp - 0x32c]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x1ed
call fcn.1002d7a0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x318]
cmp ecx, 0xf
jbe 0x1009ad1c
mov edx, dword [ebp - 0x32c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1009ad12
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1009ad4f
push ecx
push edx
call fcn.100be473
add esp, 8
mov dword [ebp - 0x31c], 0
mov dword [ebp - 0x318], 0xf
mov byte [ebp - 0x32c], 0
inc esi
mov dword [ebp - 0x3a0], esi
cmp esi, dword [ebp - 0x3a4]
jb 0x1009a140
jmp 0x1009a10c
call fcn.100c3f97
call fcn.10016a80
int3