Function at 0x100255b0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1011e150
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x1016e750]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
call fcn.10022690
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x10025602
push 0x80004005
call fcn.100223c0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 1
lea eax, [ebp - 0x10]
push dword [ebp + 8]
push str.SoftwareVOS_s
push eax
call fcn.10044f30
add esp, 0xc
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 2
push eax
push 1
push 0
push dword [ebp - 0x10]
push SysFreeString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10025752
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x10025676
push 0x104
lea ecx, [ebp - 0x18]
call fcn.100249c0
mov esi, dword [ebp - 0x18]
push 0x104
push esi
push str.USERNAME
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push dword [esi - 8]
mov edi, eax
push esi
call fcn.1010374b
add esp, 8
test eax, eax
js 0x10025748
cmp eax, dword [esi - 8]
jg 0x10025748
xor ecx, ecx
mov dword [esi - 0xc], eax
or ebx, 0xffffffff
mov word [esi + eax*2], cx
test edi, edi
je 0x1002570d
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push 0x1012f214
call fcn.10023fc0
push ecx
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 3
mov edi, esp
call fcn.10024750
add eax, 0x10
xor ecx, ecx
mov dword [edi], eax
mov byte [ebp - 4], 2
call fcn.10047ff0
add esp, 8
test eax, eax
jne 0x1002570d
push ecx
mov eax, esp
push esi
push str.IsSystemProcess:_USERNAME_s__secondary_envvar_check_:_this_is_indeed_a_USER_process
push eax
call fcn.10044f30
add esp, 0xc
call fcn.10025540
add esp, 4
xor edi, edi
jmp 0x1002579f
push esi
lea eax, [ebp - 0x1c]
push 0x1012f218
push eax
call fcn.10044f30
add esp, 0xc
mov byte [ebp - 4], 4
mov ecx, str.CameyoUtils
mov edx, dword [ebp - 0x1c]
call fcn.10043b30
mov byte [ebp - 4], 2
mov ecx, ebx
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jmp 0x10025790
push 0x80070057
call fcn.100223c0
push dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push str.IsSystemProcess:_cannot_access_HKCU_s__this_is_a_SYSTEM_process
push eax
call fcn.10044f30
add esp, 0xc
mov byte [ebp - 4], 5
mov ecx, str.CameyoUtils
mov edx, dword [ebp - 0x1c]
call fcn.10043b30
mov byte [ebp - 4], 2
or ebx, 0xffffffff
mov edx, dword [ebp - 0x1c]
mov eax, ebx
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x1002579a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, 1
mov byte [ebp - 4], 1
mov ecx, ebx
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100257bf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 0
mov ecx, ebx
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100257dc
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp + 8]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x100257fd
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret