Function at 0xeb79a0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0xf9e469
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0xfcf584]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push esi
push edi
mov eax, dword [0xfcf584]
xor eax, esp
push eax
lea eax, [esp + 0x240]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
mov edi, 0xf
mov eax, esi
mov dword [esp + 0xf4], edi
mov dword [esp + 0xf0], ebx
mov byte [esp + 0xe0], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0xeb7a04
sub eax, edx
push eax
push esi
lea ecx, [esp + 0xe8]
call fcn.00eb2a60
mov dword [esp + 0x248], ebx
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
mov dword [esp + 0xa0], edi
mov dword [esp + 0x9c], ebx
mov byte [esp + 0x8c], bl
mov dword [esp + 0x84], edi
mov dword [esp + 0x80], ebx
mov byte [esp + 0x70], bl
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0xe4]
push ecx
lea edx, [esp + 0x78]
lea ecx, [esp + 0x94]
mov byte [esp + 0x250], 3
call fcn.00eb8070
mov esi, eax
add esp, 8
cmp esi, ebx
je 0xeb7b42
mov byte [esp + 0x248], 2
cmp dword [esp + 0x84], 0x10
jb 0xeb7aa6
mov edx, dword [esp + 0x70]
push edx
call fcn.00f325e4
add esp, 4
mov byte [esp + 0x248], 1
cmp dword [esp + 0xa0], 0x10
mov dword [esp + 0x84], edi
mov dword [esp + 0x80], ebx
mov byte [esp + 0x70], bl
jb 0xeb7ada
mov eax, dword [esp + 0x8c]
push eax
call fcn.00f325e4
add esp, 4
mov byte [esp + 0x248], bl
cmp dword [esp + 0x4c], 0x10
mov dword [esp + 0xa0], edi
mov dword [esp + 0x9c], ebx
mov byte [esp + 0x8c], bl
jb 0xeb7b0a
mov ecx, dword [esp + 0x38]
push ecx
call fcn.00f325e4
add esp, 4
mov dword [esp + 0x248], 0xffffffff
cmp dword [esp + 0xf4], 0x10
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
jb 0xeb7b3b
mov edx, dword [esp + 0xe0]
push edx
call fcn.00f325e4
add esp, 4
mov eax, esi
jmp 0xeb803d
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x94]
push eax
lea ecx, [esp + 0xd0]
mov dword [esp + 0xe4], edi
mov dword [esp + 0xe0], ebx
mov byte [esp + 0xd0], bl
call fcn.00eb2c50
mov byte [esp + 0x248], 4
cmp dword [esp + 0x80], ebx
je 0xeb7c7f
push 1
push 0xfbe3c8
lea ecx, [esp + 0x5c]
mov dword [esp + 0x70], edi
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
call fcn.00eb2a60
lea ecx, [esp + 0x54]
lea eax, [esp + 0x8c]
lea esi, [esp + 0xa8]
mov byte [esp + 0x248], 5
call fcn.00eb46a0
lea ecx, [esp + 0x70]
push ecx
push eax
lea edx, [esp + 0x120]
push edx
mov byte [esp + 0x254], 6
call fcn.00ebd720
add esp, 0xc
push eax
lea ecx, [esp + 0xc8]
mov byte [esp + 0x24c], 7
call fcn.00eb2870
mov esi, 0x10
mov byte [esp + 0x248], 6
cmp dword [esp + 0x12c], esi
jb 0xeb7c17
mov eax, dword [esp + 0x118]
push eax
call fcn.00f325e4
add esp, 4
mov byte [esp + 0x248], 5
mov dword [esp + 0x12c], edi
mov dword [esp + 0x128], ebx
mov byte [esp + 0x118], bl
cmp dword [esp + 0xbc], esi
jb 0xeb7c4d
mov ecx, dword [esp + 0xa8]
push ecx
call fcn.00f325e4
add esp, 4
mov byte [esp + 0x248], 4
mov dword [esp + 0xbc], edi
mov dword [esp + 0xb8], ebx
mov byte [esp + 0xa8], bl
cmp dword [esp + 0x68], esi
jb 0xeb7c84
mov edx, dword [esp + 0x54]
push edx
call fcn.00f325e4
add esp, 4
jmp 0xeb7c84
mov esi, 0x10
mov eax, dword [esp + 0x38]
cmp dword [esp + 0x4c], esi
jae 0xeb7c92
lea eax, [esp + 0x38]
push str.HKEY_CLASSES_ROOT
push eax
call fcn.00f33a50
add esp, 8
test eax, eax
je 0xeb7cad
push 0xc
push str.CLASSES_ROOT
jmp 0xeb7d2a
mov eax, dword [esp + 0x38]
cmp dword [esp + 0x4c], esi
jae 0xeb7cbb
lea eax, [esp + 0x38]
push str.HKEY_CURRENT_USER
push eax
call fcn.00f33a50
add esp, 8
test eax, eax
je 0xeb7cd6
push 0xc
push str.CURRENT_USER
jmp 0xeb7d2a
mov eax, dword [esp + 0x38]
cmp dword [esp + 0x4c], esi
jae 0xeb7ce4
lea eax, [esp + 0x38]
push str.HKEY_LOCAL_MACHINE
push eax
call fcn.00f33a50
add esp, 8
test eax, eax
je 0xeb7cff
push 7
push str.MACHINE
jmp 0xeb7d2a
mov eax, dword [esp + 0x38]
cmp dword [esp + 0x4c], esi
jae 0xeb7d0d
lea eax, [esp + 0x38]
push 0xfbdac8
push eax
call fcn.00f33a50
add esp, 8
test eax, eax
je 0xeb7fd8
push 5
push str.USERS
lea ecx, [esp + 0x40]
call fcn.00eb2a60
push 1
push 0xfbe3c8
lea ecx, [esp + 0x5c]
mov dword [esp + 0x70], edi
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
call fcn.00eb2a60
lea ecx, [esp + 0x54]
lea eax, [esp + 0x38]
lea esi, [esp + 0xa8]
mov byte [esp + 0x248], 8
call fcn.00eb46a0
lea ecx, [esp + 0xc4]
push ecx
push eax
lea edx, [esp + 0x104]
push edx
mov byte [esp + 0x254], 9
call fcn.00ebd720
add esp, 0xc
mov esi, 0x10
mov byte [esp + 0x248], 0xb
cmp dword [esp + 0xbc], esi
jb 0xeb7db2
mov eax, dword [esp + 0xa8]
push eax
call fcn.00f325e4
add esp, 4
mov dword [esp + 0xbc], edi
mov dword [esp + 0xb8], ebx
mov byte [esp + 0xa8], bl
mov byte [esp + 0x248], 0xc
cmp dword [esp + 0x68], esi
jb 0xeb7de2
mov ecx, dword [esp + 0x54]
push ecx
call fcn.00f325e4
add esp, 4
push 0xff
lea edx, [esp + 0x139]
push ebx
push edx
mov dword [esp + 0x74], edi
mov dword [esp + 0x70], ebx
mov byte [esp + 0x60], bl
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x140], bl
call fcn.00f36830
add esp, 0xc
push 0x100
lea eax, [esp + 0x138]
push eax
push str.USERNAME
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push ebx
push 2
push 0x10000000
lea ecx, [esp + 0x140]
push ecx
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.ADVAPI32.dll_BuildExplicitAccessWithNameA]
lea eax, [esp + 0x10]
push eax
push ebx
lea ecx, [esp + 0x20]
push ecx
push 1
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclA]
cmp eax, ebx
jne 0xeb7ea7
mov eax, dword [esp + 0xfc]
cmp dword [esp + 0x110], esi
jae 0xeb7e90
lea eax, [esp + 0xfc]
mov edx, dword [esp + 0x10]
push ebx
push edx
push ebx
push ebx
push 4
push 4
push eax
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoA]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0xeb7eb6
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov byte [esp + 0x248], 4
cmp dword [esp + 0x110], esi
jb 0xeb7ed7
mov eax, dword [esp + 0xfc]
push eax
call fcn.00f325e4
add esp, 4
mov byte [esp + 0x248], 3
mov dword [esp + 0x110], edi
mov dword [esp + 0x10c], ebx
mov byte [esp + 0xfc], bl
cmp dword [esp + 0xd8], esi
jb 0xeb7f0d
mov ecx, dword [esp + 0xc4]
push ecx
call fcn.00f325e4
add esp, 4
mov byte [esp + 0x248], 2
mov dword [esp + 0xd8], edi
mov dword [esp + 0xd4], ebx
mov byte [esp + 0xc4], bl
cmp dword [esp + 0x84], esi
jb 0xeb7f40
mov edx, dword [esp + 0x70]
push edx
call fcn.00f325e4
add esp, 4
mov byte [esp + 0x248], 1
mov dword [esp + 0x84], edi
mov dword [esp + 0x80], ebx
mov byte [esp + 0x70], bl
cmp dword [esp + 0xa0], esi
jb 0xeb7f73
mov eax, dword [esp + 0x8c]
push eax
call fcn.00f325e4
add esp, 4
mov byte [esp + 0x248], bl
mov dword [esp + 0xa0], edi
mov dword [esp + 0x9c], ebx
mov byte [esp + 0x8c], bl
cmp dword [esp + 0x4c], esi
jb 0xeb7fa2
mov ecx, dword [esp + 0x38]
push ecx
call fcn.00f325e4
add esp, 4
mov dword [esp + 0x248], 0xffffffff
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
cmp dword [esp + 0xf4], esi
jb 0xeb7fd2
mov edx, dword [esp + 0xe0]
push edx
call fcn.00f325e4
add esp, 4
mov eax, dword [esp + 0x14]
jmp 0xeb803d
lea ecx, [esp + 0xc4]
mov byte [esp + 0x248], 3
call fcn.00f8c760
lea ecx, [esp + 0x70]
mov byte [esp + 0x248], 2
call fcn.00f8c760
lea ecx, [esp + 0x8c]
mov byte [esp + 0x248], 1
call fcn.00f8c760
lea ecx, [esp + 0x38]
mov byte [esp + 0x248], bl
call fcn.00f8c760
lea ecx, [esp + 0xe0]
mov dword [esp + 0x248], 0xffffffff
call fcn.00f8c760
mov eax, 0x57
mov ecx, dword [esp + 0x240]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.00f32239
mov esp, ebp
pop ebp
ret