Function at 0x10033730
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100964c5
mov eax, dword fs:[0]
push eax
sub esp, 0x4b4
mov eax, dword [0x100b84c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x4b4], 0
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x414], 0
mov dword [ebp - 0x4b8], ebx
mov dword [ebp - 0x4bc], ebx
mov dword [ebp - 0x4a4], eax
mov dword [ebp - 0x414], 0xf
mov dword [ebp - 0x418], 0
mov byte [ebp - 0x428], 0
mov dword [ebp - 4], 1
test eax, eax
jne 0x10033820
xor ecx, ecx
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100337c0
sub ecx, edx
jne 0x10033820
lea eax, [ebp - 0x428]
push eax
mov ecx, ebx
call fcn.100133a0
mov dword [ebp - 0x4b4], 1
mov byte [ebp - 4], 0
cmp dword [ebp - 0x414], 0x10
jb 0x100337fe
push dword [ebp - 0x428]
call fcn.1006e29c
add esp, 4
mov dword [ebp - 0x414], 0xf
mov dword [ebp - 0x418], 0
mov byte [ebp - 0x428], 0
mov eax, ebx
jmp 0x10033d58
push 0x3ff
lea eax, [ebp - 0x40f]
push 0
push eax
mov byte [ebp - 0x410], 0
call fcn.10073e30
add esp, 0xc
lea ecx, [ebp - 0x440]
mov dword [ebp - 0x4b0], 0
call fcn.10002880
mov esi, eax
mov byte [ebp - 4], 2
cmp dword [esi + 0x10], 0
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
je 0x1003389e
cmp dword [esi + 0x14], 8
jb 0x1003386e
mov eax, dword [esi]
jmp 0x10033870
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
mov dword [ebp - 0x4a8], ebx
test ebx, ebx
jne 0x100338a6
cmp dword [esi + 0x14], 8
jb 0x1003388b
mov esi, dword [esi]
push 0
push 0
push esi
call edi
mov ebx, eax
mov dword [ebp - 0x4a8], ebx
test ebx, ebx
jne 0x100338a6
xor ebx, ebx
mov dword [ebp - 0x4a8], ebx
mov byte [ebp - 4], 1
cmp dword [ebp - 0x42c], 8
jb 0x100338c1
push dword [ebp - 0x440]
call fcn.1006e29c
add esp, 4
xor eax, eax
mov dword [ebp - 0x42c], 7
mov dword [ebp - 0x430], 0
mov word [ebp - 0x440], ax
test ebx, ebx
je 0x10033c90
lea ecx, [ebp - 0x458]
call fcn.10023950
mov esi, eax
mov byte [ebp - 4], 3
cmp dword [esi + 0x10], 0
je 0x10033937
cmp dword [esi + 0x14], 8
jb 0x10033907
mov eax, dword [esi]
jmp 0x10033909
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
mov dword [ebp - 0x4ac], ebx
test ebx, ebx
jne 0x1003393f
cmp dword [esi + 0x14], 8
jb 0x10033924
mov esi, dword [esi]
push 0
push 0
push esi
call edi
mov ebx, eax
mov dword [ebp - 0x4ac], ebx
test ebx, ebx
jne 0x1003393f
xor ebx, ebx
mov dword [ebp - 0x4ac], ebx
mov byte [ebp - 4], 1
cmp dword [ebp - 0x444], 8
jb 0x1003395a
push dword [ebp - 0x458]
call fcn.1006e29c
add esp, 4
xor eax, eax
mov dword [ebp - 0x444], 7
mov dword [ebp - 0x448], 0
mov word [ebp - 0x458], ax
test ebx, ebx
je 0x10033c90
lea ecx, [ebp - 0x488]
call fcn.10023ae0
mov esi, eax
mov byte [ebp - 4], 4
cmp dword [esi + 0x10], 0
je 0x100339c4
cmp dword [esi + 0x14], 8
jb 0x100339a0
mov eax, dword [esi]
jmp 0x100339a2
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
jne 0x100339c6
cmp dword [esi + 0x14], 8
jb 0x100339b7
mov esi, dword [esi]
push 0
push 0
push esi
call edi
mov ebx, eax
test ebx, ebx
jne 0x100339c6
xor ebx, ebx
mov byte [ebp - 4], 1
cmp dword [ebp - 0x474], 8
jb 0x100339e1
push dword [ebp - 0x488]
call fcn.1006e29c
add esp, 4
xor eax, eax
mov dword [ebp - 0x474], 7
mov dword [ebp - 0x478], 0
mov word [ebp - 0x488], ax
test ebx, ebx
je 0x10033c90
lea ecx, [ebp - 0x470]
call fcn.10023c70
mov esi, eax
mov byte [ebp - 4], 5
cmp dword [esi + 0x10], 0
je 0x10033a4f
cmp dword [esi + 0x14], 8
jb 0x10033a27
mov eax, dword [esi]
jmp 0x10033a29
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
jne 0x10033a51
cmp dword [esi + 0x14], 8
jb 0x10033a3e
mov esi, dword [esi]
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x10033a51
xor edi, edi
mov byte [ebp - 4], 1
cmp dword [ebp - 0x45c], 8
jb 0x10033a6c
push dword [ebp - 0x470]
call fcn.1006e29c
add esp, 4
xor eax, eax
mov dword [ebp - 0x45c], 7
mov dword [ebp - 0x460], 0
mov word [ebp - 0x470], ax
test edi, edi
je 0x10033c90
lea ecx, [ebp - 0x470]
call fcn.10023e00
mov byte [ebp - 4], 6
cmp dword [eax + 0x14], 0x10
jb 0x10033aa8
mov eax, dword [eax]
mov ecx, dword [ebp - 0x4a8]
mov edx, eax
call fcn.100263f0
mov esi, eax
mov dword [ebp - 0x4a8], esi
mov byte [ebp - 4], 1
cmp dword [ebp - 0x45c], 0x10
jb 0x10033ad8
push dword [ebp - 0x470]
call fcn.1006e29c
add esp, 4
mov dword [ebp - 0x45c], 0xf
mov dword [ebp - 0x460], 0
mov byte [ebp - 0x470], 0
test esi, esi
je 0x10033c90
lea ecx, [ebp - 0x4a0]
call fcn.10023ff0
mov byte [ebp - 4], 7
cmp dword [eax + 0x14], 0x10
jb 0x10033b12
mov eax, dword [eax]
mov ecx, dword [ebp - 0x4ac]
mov edx, eax
call fcn.100263f0
mov edi, eax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x48c], 0x10
jb 0x10033b3c
push dword [ebp - 0x4a0]
call fcn.1006e29c
add esp, 4
mov dword [ebp - 0x48c], 0xf
mov dword [ebp - 0x490], 0
mov byte [ebp - 0x4a0], 0
test edi, edi
je 0x10033c90
lea ecx, [ebp - 0x458]
call fcn.100318f0
mov byte [ebp - 4], 8
cmp dword [eax + 0x14], 0x10
jb 0x10033b76
mov eax, dword [eax]
mov edx, eax
mov ecx, ebx
call fcn.100263f0
mov esi, eax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x444], 0x10
jb 0x10033b9c
push dword [ebp - 0x458]
call fcn.1006e29c
add esp, 4
mov dword [ebp - 0x444], 0xf
mov dword [ebp - 0x448], 0
mov byte [ebp - 0x458], 0
test esi, esi
je 0x10033c90
push 0xe
xor eax, eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x42c], 0
push str.SeTcbPrivilege
lea ecx, [ebp - 0x440]
mov dword [ebp - 0x42c], 7
mov dword [ebp - 0x430], 0
mov word [ebp - 0x440], ax
call fcn.100157b0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x440]
call fcn.10025930
mov byte [ebp - 4], 1
cmp dword [ebp - 0x42c], 8
jb 0x10033c2c
push dword [ebp - 0x440]
call fcn.1006e29c
add esp, 4
xor eax, eax
mov dword [ebp - 0x42c], 7
mov dword [ebp - 0x430], 0
mov word [ebp - 0x440], ax
call dword [ebp - 0x4a8]
lea ecx, [ebp - 0x4b0]
push ecx
push eax
call edi
mov edi, dword [ebp - 0x4a4]
test eax, eax
je 0x10033c96
push 0x400
lea eax, [ebp - 0x410]
push eax
push edi
push dword [ebp - 0x4b0]
call esi
test eax, eax
je 0x10033c96
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x428]
call fcn.100134c0
jmp 0x10033c96
mov edi, dword [ebp - 0x4a4]
cmp dword [ebp - 0x418], 0
jne 0x10033cec
push 0x400
lea eax, [ebp - 0x410]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x10033cec
cmp byte [ebp - 0x410], 0
jne 0x10033cc3
xor ecx, ecx
jmp 0x10033cd9
lea ecx, [ebp - 0x410]
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10033cd0
sub ecx, edx
push ecx
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x428]
call fcn.10014850
push dword [ebp - 0x4b0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x4b8]
lea eax, [ebp - 0x428]
push eax
mov ecx, esi
mov dword [ebp - 0x4b0], 0
call fcn.100133a0
mov dword [ebp - 0x4b4], 1
mov byte [ebp - 4], 0
cmp dword [ebp - 0x414], 0x10
jb 0x10033d3b
push dword [ebp - 0x428]
call fcn.1006e29c
add esp, 4
mov dword [ebp - 0x414], 0xf
mov dword [ebp - 0x418], 0
mov byte [ebp - 0x428], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006e28d
mov esp, ebp
pop ebp
ret 8