Function at 0x77cad321
Capabilities:
Query environment variable

Disassembly:
push 0x80090017
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x77cad7ac
push 8
jmp 0x77c81b59
push 0x80090014
jmp 0x77c81b59
cmp dword [ebp - 0x60], ebx
jne 0x77ccde19
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x77cad808
push 0x8c
push 0x77cad618
call fcn.77cacc5f
mov eax, dword [ebp + 8]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x64], eax
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x5c], ebx
mov byte [ebp - 0x28], bl
mov byte [ebp - 0x27], bl
mov byte [ebp - 0x26], bl
mov byte [ebp - 0x25], bl
mov byte [ebp - 0x24], bl
mov byte [ebp - 0x23], bl
mov byte [ebp - 0x22], bl
mov byte [ebp - 0x21], bl
mov byte [ebp - 0x20], bl
mov dword [ebp - 0x68], ebx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0x14], ebx
je 0x77c81b68
cmp dword [ebp + 0x14], 0x3e7
ja 0x77c81b68
cmp eax, ebx
je 0x77cad813
cmp byte [eax], bl
je 0x77cad813
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x77cad3a6
sub eax, esi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], ebx
mov esi, str.SOFTWAREMicrosoftCryptographyDefaultsProvider_
mov eax, esi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x77cad3bf
sub eax, edi
lea ecx, [ebp - 0x30]
push ecx
push eax
push dword [ebp - 0x34]
call fcn.77cadbb9
test eax, eax
jl 0x77ccdd34
lea eax, [ebp - 0x30]
push eax
push 1
push dword [ebp - 0x30]
call fcn.77cadbb9
test eax, eax
jl 0x77ccdd34
mov ecx, dword [ebp - 0x34]
lea eax, [ecx + 1]
mov dword [ebp - 0x6c], eax
cmp eax, ecx
jb 0x77ccdd34
push dword [ebp - 0x30]
push 0x40
mov edi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
call edi
mov dword [ebp - 0x2c], eax
cmp eax, ebx
je 0x77c81b64
push dword [ebp - 0x6c]
push 0x40
call edi
mov dword [ebp - 0x3c], eax
cmp eax, ebx
je 0x77c81b64
push dword [ebp - 0x64]
push dword [ebp - 0x6c]
push eax
call fcn.77cad639
push esi
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
call fcn.77cad639
push dword [ebp - 0x64]
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
call fcn.77cad687
add esp, 0x24
lea eax, [ebp - 0x38]
push eax
push 0x20019
push ebx
push dword [ebp - 0x2c]
push 0x80000002
call sym.ADVAPI32.dll_RegOpenKeyExA
cmp eax, ebx
jne 0x77ccdd3e
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], 4
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x50]
push eax
push ebx
push 0x77cadbdc
push dword [ebp - 0x38]
call sym.ADVAPI32.dll_RegQueryValueExA
cmp eax, ebx
jne 0x77ccdd48
mov eax, dword [ebp - 0x70]
cmp eax, dword [ebp + 0x14]
jne 0x77ccdd52
lea eax, [ebp - 0x34]
push eax
push ebx
lea eax, [ebp - 0x50]
push eax
push ebx
mov esi, 0x77cad608
push esi
push dword [ebp - 0x38]
call sym.ADVAPI32.dll_RegQueryValueExA
cmp eax, ebx
jne 0x77ccdd48
push dword [ebp - 0x34]
push 0x40
call edi
mov dword [ebp - 0x2c], eax
cmp eax, ebx
je 0x77c81b64
lea ecx, [ebp - 0x34]
push ecx
push eax
lea eax, [ebp - 0x50]
push eax
push ebx
push esi
push dword [ebp - 0x38]
call sym.ADVAPI32.dll_RegQueryValueExA
cmp eax, ebx
jne 0x77ccdd48
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x4c], ebx
push ebx
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
call esi
mov dword [ebp - 0x4c], eax
cmp eax, ebx
je 0x77cad7ac
push eax
push 0x40
call edi
mov dword [ebp - 0x44], eax
cmp eax, ebx
je 0x77c81b64
push dword [ebp - 0x4c]
push eax
push dword [ebp - 0x2c]
call esi
mov dword [ebp - 0x4c], eax
cmp eax, ebx
je 0x77cad7ac
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [ebp - 0x44]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x44], ebx
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x54]
push eax
push esi
call fcn.77cadbe6
test eax, eax
jne 0x77cad5b7
push esi
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.ntdll.dll_RtlCreateUnicodeStringFromAsciiz]
test al, al
je 0x77cad59d
push dword [ebp - 0x7c]
call sym.ADVAPI32.dll_SystemFunction035
mov esi, eax
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
cmp esi, ebx
je 0x77ccdd5c
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x54], eax
cmp eax, ebx
je 0x77ccddc4
push eax
call fcn.77cb2887
push 0x80
push 0x40
call edi
mov esi, eax
mov dword [ebp - 0x60], esi
cmp esi, ebx
je 0x77c81b64
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x48], ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov eax, dword [ebp - 0x48]
mov eax, dword [eax*4 + 0x77d1a928]
cmp eax, ebx
je 0x77cb2855
push eax
push dword [ebp - 0x54]
call edi
mov ecx, dword [ebp - 0x40]
mov dword [ecx], eax
cmp eax, ebx
je 0x77ccddc4
add dword [ebp - 0x40], 4
inc dword [ebp - 0x48]
jmp 0x77cad5d9
mov eax, dword [ebp - 0x54]
mov dword [esi + 0x6c], eax
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x9c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x9c], 3
mov dword [ebp - 0x98], 0x77ce4b7a
mov dword [ebp - 0x94], 0x77c8a499
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x84], eax
mov eax, dword [0x77d1f26c]
mov dword [ebp - 0x8c], eax
mov eax, dword [0x77d1f270]
mov dword [ebp - 0x88], eax
mov edi, dword [ebp - 0x74]
mov dword [edi], ebx
lea eax, [ebp - 0x9c]
push eax
push dword [ebp + 0x18]
push dword [ebp - 0x78]
lea eax, [ebp - 0x68]
push eax
call dword [esi]
mov dword [ebp - 0x5c], eax
xor eax, eax
inc eax
cmp dword [ebp - 0x5c], eax
jne 0x77cad7ac
test byte [ebp + 0x18], 0x10
jne 0x77cad7ac
mov ecx, dword [ebp - 0x68]
mov dword [esi + 0x70], ecx
mov dword [edi], esi
mov dword [esi + 0x74], 0x11111111
mov dword [esi + 0x78], eax
mov dword [esi + 0x7c], eax
mov dword [ebp - 4], 0xfffffffe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x3c], ebx
je 0x77cad7cb
push dword [ebp - 0x3c]
call edi
cmp dword [ebp - 0x2c], ebx
je 0x77cad7d5
push dword [ebp - 0x2c]
call edi
cmp dword [ebp - 0x38], ebx
je 0x77cad7e2
push dword [ebp - 0x38]
call sym.ADVAPI32.dll_RegCloseKey
cmp dword [ebp - 0x44], ebx
jne 0x77ccde05
cmp dword [ebp - 0x58], ebx
jne 0x77ccde0f
cmp dword [ebp - 0x5c], 1
jne 0x77c81b6f
test byte [ebp + 0x18], 0x10
jne 0x77c81b6f
mov eax, dword [ebp - 0x5c]
call fcn.77cacca7
ret 0x14
mov eax, str.SOFTWAREMicrosoftCryptographyDefaultsProvider_TypesType
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x77cad81b
sub eax, edx
mov ecx, eax
mov dword [ebp - 0x30], ecx
lea eax, [ecx + 5]
cmp eax, ecx
jb 0x77ccdd34
mov dword [ebp - 0x30], eax
push eax
push 0x40
mov edi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
call edi
mov esi, eax
mov dword [ebp - 0x2c], esi
cmp esi, ebx
je 0x77c81b64
lea ecx, [ebp - 0x28]
mov eax, dword [ebp + 0x14]
call fcn.77cad991
push str.SOFTWAREMicrosoftCryptographyDefaultsProvider_TypesType
push dword [ebp - 0x30]
push esi
call fcn.77cad639
lea eax, [ebp - 0x23]
push eax
push dword [ebp - 0x30]
push esi
call fcn.77cad687
add esp, 0x18
lea eax, [ebp - 0x38]
push eax
push 0x20019
push ebx
push esi
push 0x80000002
call sym.ADVAPI32.dll_RegOpenKeyExA
cmp eax, ebx
jne 0x77c81b54
lea eax, [ebp - 0x34]
push eax
push ebx
lea eax, [ebp - 0x50]
push eax
push ebx
push 0x77cb28c8
push dword [ebp - 0x38]
call sym.ADVAPI32.dll_RegQueryValueExA
cmp eax, ebx
jne 0x77c81b54
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ebx
mov esi, str.SOFTWAREMicrosoftCryptographyDefaultsProvider_
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x77cad8cd
sub eax, ecx
lea ecx, [ebp - 0x30]
push ecx
push eax
push dword [ebp - 0x34]
call fcn.77cadbb9
test eax, eax
jl 0x77ccdd34
lea eax, [ebp - 0x30]
push eax
push 1
push dword [ebp - 0x30]
call fcn.77cadbb9
test eax, eax
jl 0x77ccdd34
mov eax, dword [ebp - 0x34]
lea ecx, [eax + 1]
cmp ecx, eax
jb 0x77ccdd34
push dword [ebp - 0x30]
push 0x40
call edi
mov dword [ebp - 0x2c], eax
cmp eax, ebx
je 0x77c81b64
mov eax, dword [ebp - 0x34]
inc eax
push eax
push 0x40
call edi
mov dword [ebp - 0x3c], eax
cmp eax, ebx
je 0x77c81b64
push esi
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
call fcn.77cad639
add esp, 0xc
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x3c]
lea eax, [ebp - 0x50]
push eax
push ebx
push 0x77cb28c8
push dword [ebp - 0x38]
call sym.ADVAPI32.dll_RegQueryValueExA
cmp eax, ebx
jne 0x77c81b54
push dword [ebp - 0x3c]
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
call fcn.77cad687
add esp, 0xc
push dword [ebp - 0x38]
call sym.ADVAPI32.dll_RegCloseKey
mov dword [ebp - 0x38], ebx
jmp 0x77cad457
mov dword [ebp - 0x48], ebx
add dword [ebp - 0x40], 4
mov eax, dword [ebp - 0x48]
mov eax, dword [eax*4 + 0x77d1a190]
cmp eax, ebx
je 0x77cad715
push eax
push dword [ebp - 0x54]
call edi
mov ecx, dword [ebp - 0x40]
mov dword [ecx], eax
add dword [ebp - 0x40], 4
inc dword [ebp - 0x48]
jmp 0x77cb285c
push 0x216
jmp 0x77c81b59
push 0x80090019
jmp 0x77c81b59
push 0x8009001a
jmp 0x77c81b59
push 0x8009001b
jmp 0x77c81b59
lea eax, [ebp - 0x34]
push eax
push ebx
lea eax, [ebp - 0x50]
push eax
push ebx
mov esi, 0x77ccde24
push esi
push dword [ebp - 0x38]
call sym.ADVAPI32.dll_RegQueryValueExA
cmp eax, ebx
je 0x77ccdd82
push 0x80090006
jmp 0x77c81b59
push dword [ebp - 0x34]
push 0x40
call edi
mov dword [ebp - 0x58], eax
cmp eax, ebx
je 0x77c81b64
lea ecx, [ebp - 0x34]
push ecx
push eax
lea eax, [ebp - 0x50]
push eax
push ebx
push esi
push dword [ebp - 0x38]
call sym.ADVAPI32.dll_RegQueryValueExA
cmp eax, ebx
jne 0x77ccdd78
push ebx
push dword [ebp - 0x34]
push dword [ebp - 0x58]
push dword [ebp - 0x2c]
call fcn.77ce4a97
test eax, eax
jne 0x77cad59d
jmp 0x77ccdd78
push 0x8009001d
jmp 0x77c81b59
push dword [ebp - 0x44]
call edi
jmp 0x77cad7eb
push dword [ebp - 0x58]
call edi
jmp 0x77cad7f4
push dword [ebp - 0x60]
call edi
jmp 0x77c81b78