Function at 0x77cc8e52
Capabilities:
Query environment variable

Disassembly:
push 0x80090017
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x77cc93c3
push 8
jmp 0x77c91b19
push 0x80090014
jmp 0x77c91b19
cmp dword [ebp - 0x60], ebx
jne 0x77cdc386
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x77cc941f
cmp byte [eax], bl
je 0x77cc8ecc
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x77cac49d
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 0x77cac4b6
sub eax, edi
lea ecx, [ebp - 0x30]
push ecx
push eax
push dword [ebp - 0x34]
call fcn.77cc9589
test eax, eax
jl 0x77cdc2a1
lea eax, [ebp - 0x30]
push eax
push 1
push dword [ebp - 0x30]
call fcn.77cc9589
test eax, eax
jl 0x77cdc2a1
mov ecx, dword [ebp - 0x34]
lea eax, [ecx + 1]
mov dword [ebp - 0x6c], eax
cmp eax, ecx
jb 0x77cdc2a1
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 0x77c91b24
push dword [ebp - 0x6c]
push 0x40
call edi
mov dword [ebp - 0x3c], eax
cmp eax, ebx
je 0x77c91b24
push dword [ebp - 0x64]
push dword [ebp - 0x6c]
push eax
call fcn.77cc8e04
push esi
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
call fcn.77cc8e04
push dword [ebp - 0x64]
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
call fcn.77cc9221
add esp, 0x24
jmp 0x77cc9040
push 0x8c
push 0x77cc9200
call fcn.77cc8277
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 0x77c91b28
cmp dword [ebp + 0x14], 0x3e7
ja 0x77c91b28
cmp eax, ebx
jne 0x77cac492
mov eax, str.SOFTWAREMicrosoftCryptographyDefaultsProvider_TypesType
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x77cc8ed4
sub eax, edx
mov ecx, eax
mov dword [ebp - 0x30], ecx
lea eax, [ecx + 5]
cmp eax, ecx
jb 0x77cdc2a1
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 0x77c91b24
lea ecx, [ebp - 0x28]
mov eax, dword [ebp + 0x14]
call fcn.77cc942f
push str.SOFTWAREMicrosoftCryptographyDefaultsProvider_TypesType
push dword [ebp - 0x30]
push esi
call fcn.77cc8e04
lea eax, [ebp - 0x23]
push eax
push dword [ebp - 0x30]
push esi
call fcn.77cc9221
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 0x77c91b14
lea eax, [ebp - 0x34]
push eax
push ebx
lea eax, [ebp - 0x50]
push eax
push ebx
push 0x77cce110
push dword [ebp - 0x38]
call sym.ADVAPI32.dll_RegQueryValueExA
cmp eax, ebx
jne 0x77c91b14
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 0x77cc8f86
sub eax, ecx
lea ecx, [ebp - 0x30]
push ecx
push eax
push dword [ebp - 0x34]
call fcn.77cc9589
test eax, eax
jl 0x77cdc2a1
lea eax, [ebp - 0x30]
push eax
push 1
push dword [ebp - 0x30]
call fcn.77cc9589
test eax, eax
jl 0x77cdc2a1
mov eax, dword [ebp - 0x34]
lea ecx, [eax + 1]
cmp ecx, eax
jb 0x77cdc2a1
push dword [ebp - 0x30]
push 0x40
call edi
mov dword [ebp - 0x2c], eax
cmp eax, ebx
je 0x77c91b24
mov eax, dword [ebp - 0x34]
inc eax
push eax
push 0x40
call edi
mov dword [ebp - 0x3c], eax
cmp eax, ebx
je 0x77c91b24
push esi
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
call fcn.77cc8e04
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 0x77cce110
push dword [ebp - 0x38]
call sym.ADVAPI32.dll_RegQueryValueExA
cmp eax, ebx
jne 0x77c91b14
push dword [ebp - 0x3c]
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
call fcn.77cc9221
add esp, 0xc
push dword [ebp - 0x38]
call sym.ADVAPI32.dll_RegCloseKey
mov dword [ebp - 0x38], ebx
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 0x77cdc2ab
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 0x77cc95ac
push dword [ebp - 0x38]
call sym.ADVAPI32.dll_RegQueryValueExA
cmp eax, ebx
jne 0x77cdc2b5
mov eax, dword [ebp - 0x70]
cmp eax, dword [ebp + 0x14]
jne 0x77cdc2bf
lea eax, [ebp - 0x34]
push eax
push ebx
lea eax, [ebp - 0x50]
push eax
push ebx
mov esi, 0x77cc91f0
push esi
push dword [ebp - 0x38]
call sym.ADVAPI32.dll_RegQueryValueExA
cmp eax, ebx
jne 0x77cdc2b5
push dword [ebp - 0x34]
push 0x40
call edi
mov dword [ebp - 0x2c], eax
cmp eax, ebx
je 0x77c91b24
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 0x77cdc2b5
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 0x77cc93c3
push eax
push 0x40
call edi
mov dword [ebp - 0x44], eax
cmp eax, ebx
je 0x77c91b24
push dword [ebp - 0x4c]
push eax
push dword [ebp - 0x2c]
call esi
mov dword [ebp - 0x4c], eax
cmp eax, ebx
je 0x77cc93c3
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.77cc95b6
test eax, eax
jne 0x77cc91a0
push esi
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.ntdll.dll_RtlCreateUnicodeStringFromAsciiz]
test al, al
je 0x77cc9186
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 0x77cdc2c9
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x54], eax
cmp eax, ebx
je 0x77cdc331
push eax
call fcn.77cce183
push 0x80
push 0x40
call edi
mov esi, eax
mov dword [ebp - 0x60], esi
cmp esi, ebx
je 0x77c91b24
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 + 0x77d26928]
cmp eax, ebx
je 0x77cc9751
push eax
push dword [ebp - 0x54]
call edi
mov ecx, dword [ebp - 0x40]
mov dword [ecx], eax
cmp eax, ebx
je 0x77cdc331
add dword [ebp - 0x40], 4
inc dword [ebp - 0x48]
jmp 0x77cc91c2
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], 0x77cf2cd2
mov dword [ebp - 0x94], 0x77c97cb9
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x84], eax
mov eax, dword [0x77d2b314]
mov dword [ebp - 0x8c], eax
mov eax, dword [0x77d2b318]
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 0x77cc93c3
test byte [ebp + 0x18], 0x10
jne 0x77cc93c3
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 0x77cc93e2
push dword [ebp - 0x3c]
call edi
cmp dword [ebp - 0x2c], ebx
je 0x77cc93ec
push dword [ebp - 0x2c]
call edi
cmp dword [ebp - 0x38], ebx
je 0x77cc93f9
push dword [ebp - 0x38]
call sym.ADVAPI32.dll_RegCloseKey
cmp dword [ebp - 0x44], ebx
jne 0x77cdc372
cmp dword [ebp - 0x58], ebx
jne 0x77cdc37c
cmp dword [ebp - 0x5c], 1
jne 0x77c91b2f
test byte [ebp + 0x18], 0x10
jne 0x77c91b2f
mov eax, dword [ebp - 0x5c]
call fcn.77cc8268
ret 0x14
mov dword [ebp - 0x48], ebx
add dword [ebp - 0x40], 4
mov eax, dword [ebp - 0x48]
mov eax, dword [eax*4 + 0x77d26190]
cmp eax, ebx
je 0x77cc932c
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 0x77cc9758
push 0x216
jmp 0x77c91b19
push 0x80090019
jmp 0x77c91b19
push 0x8009001a
jmp 0x77c91b19
push 0x8009001b
jmp 0x77c91b19
lea eax, [ebp - 0x34]
push eax
push ebx
lea eax, [ebp - 0x50]
push eax
push ebx
mov esi, 0x77cdc390
push esi
push dword [ebp - 0x38]
call sym.ADVAPI32.dll_RegQueryValueExA
cmp eax, ebx
je 0x77cdc2ef
push 0x80090006
jmp 0x77c91b19
push dword [ebp - 0x34]
push 0x40
call edi
mov dword [ebp - 0x58], eax
cmp eax, ebx
je 0x77c91b24
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 0x77cdc2e5
push ebx
push dword [ebp - 0x34]
push dword [ebp - 0x58]
push dword [ebp - 0x2c]
call fcn.77cf2bef
test eax, eax
jne 0x77cc9186
jmp 0x77cdc2e5
push 0x8009001d
jmp 0x77c91b19
push dword [ebp - 0x44]
call edi
jmp 0x77cc9402
push dword [ebp - 0x58]
call edi
jmp 0x77cc940b
push dword [ebp - 0x60]
call edi
jmp 0x77c91b38