Function at 0x5d3a20
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x667b80
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x758898]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebp, ecx
push 0
lea eax, [esp + 0x18]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SYSTEMCurrentControlSetControlSecurityProviders
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
test esi, esi
je 0x5d3c03
or ebx, 0xffffffff
cmp esi, 5
jne 0x5d3bc6
lea ecx, [esp + 0x14]
push ecx
push 1
push 0
push str.SYSTEMCurrentControlSetControlSecurityProviders
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x5d3bc6
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x20]
push edx
push eax
push eax
push eax
mov eax, dword [esp + 0x24]
push str.SecurityProviders
push eax
call edi
mov esi, eax
test esi, esi
jne 0x5d3bbb
cmp dword [esp + 0x20], eax
jbe 0x5d3bbb
lea ecx, [esp + 0x18]
call fcn.004024f0
mov dword [esp + 0x38], esi
mov ecx, dword [esp + 0x20]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00402840
lea edx, [esp + 0x20]
push edx
push eax
mov eax, dword [esp + 0x1c]
push esi
push esi
push str.SecurityProviders
push eax
call edi
mov esi, eax
test esi, esi
je 0x5d3b51
lea ecx, [esp + 0x24]
call fcn.004024f0
mov byte [esp + 0x38], 1
push esi
lea ecx, [esp + 0x28]
push str.Error__ld_RegQueryValueEx___during_CheckRegSecurityProvider___r_n
push ecx
call fcn.00402f60
mov edx, dword [esp + 0x30]
add esp, 0xc
push edx
mov ecx, ebp
call fcn.005cbb60
mov byte [esp + 0x38], 0
lea ecx, [esp + 0x24]
call fcn.00402560
mov dword [esp + 0x38], ebx
lea ecx, [esp + 0x18]
jmp 0x5d3e2e
lea ecx, [esp + 0x18]
call fcn.004b0fb0
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], 0
jl 0x5d3bae
push str.schannel.dll
push eax
call fcn.00620db5
add esp, 8
test eax, eax
je 0x5d3bae
sub eax, dword [esp + 0x18]
js 0x5d3bae
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.00402560
mov al, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
mov dword [esp + 0x38], ebx
lea ecx, [esp + 0x18]
call fcn.00402560
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x28]
call fcn.004024f0
mov dword [esp + 0x38], 2
push esi
lea edx, [esp + 0x2c]
push str.Error__ld_opening_Key_during_CheckRegSecurityProvider___r_n
push edx
call fcn.00402f60
mov eax, dword [esp + 0x34]
add esp, 0xc
push eax
mov ecx, ebp
call fcn.005cbb60
mov dword [esp + 0x38], ebx
lea ecx, [esp + 0x28]
jmp 0x5d3e2e
lea ecx, [esp + 0x1c]
call fcn.004024f0
mov dword [esp + 0x38], 3
mov edx, dword [esp + 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x2c]
push ecx
push 0
push 0
push 0
push str.SecurityProviders
push edx
call edi
mov esi, eax
test esi, esi
jne 0x5d3d72
cmp dword [esp + 0x2c], eax
jbe 0x5d3d77
lea ecx, [esp + 0x18]
call fcn.004024f0
mov bl, 4
mov byte [esp + 0x38], bl
mov eax, dword [esp + 0x2c]
push eax
lea ecx, [esp + 0x1c]
call fcn.00402840
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x2c]
push ecx
push eax
push esi
push esi
push str.SecurityProviders
push edx
call edi
mov esi, eax
test esi, esi
je 0x5d3cc4
lea ecx, [esp + 0x28]
call fcn.004024f0
mov byte [esp + 0x38], 5
push esi
lea eax, [esp + 0x2c]
push str.Error__ld_RegQueryValueEx___during_CheckRegSecurityProvider___r_n
push eax
call fcn.00402f60
mov ecx, dword [esp + 0x34]
add esp, 0xc
push ecx
mov ecx, ebp
call fcn.005cbb60
mov byte [esp + 0x38], bl
lea ecx, [esp + 0x28]
call fcn.00402560
mov byte [esp + 0x38], 3
lea ecx, [esp + 0x18]
jmp 0x5d3e1d
lea ecx, [esp + 0x18]
call fcn.004b0fb0
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], 0
jl 0x5d3cef
push str.schannel.dll
push eax
call fcn.00620db5
add esp, 8
test eax, eax
je 0x5d3cef
sub eax, dword [esp + 0x18]
jns 0x5d3d32
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x2c]
push str.schannel.dll_
push eax
call fcn.005cf830
add esp, 0xc
mov byte [esp + 0x38], 6
push eax
lea ecx, [esp + 0x20]
call fcn.00405900
mov byte [esp + 0x38], bl
lea ecx, [esp + 0x28]
call fcn.00402560
mov byte [esp + 0x38], 3
lea ecx, [esp + 0x18]
call fcn.00402560
jmp 0x5d3d85
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [esp + 0x38], 3
lea ecx, [esp + 0x18]
call fcn.00402560
mov dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.00402560
mov al, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
cmp esi, 2
jne 0x5d3ddc
push str.schannel.dll
lea ecx, [esp + 0x20]
call fcn.0054f750
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax - 0xc]
mov edx, dword [esp + 0x14]
inc ecx
push ecx
push eax
push 1
push 0
push str.SecurityProviders
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
sete bl
mov dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.00402560
mov al, bl
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x28]
call fcn.004024f0
mov byte [esp + 0x38], 7
push esi
lea edx, [esp + 0x2c]
push str.Error__ld_RegQueryValueEx___during_CheckRegSecurityProvider___r_n
push edx
call fcn.00402f60
mov eax, dword [esp + 0x34]
add esp, 0xc
push eax
mov ecx, ebp
call fcn.005cbb60
mov byte [esp + 0x38], 3
lea ecx, [esp + 0x28]
call fcn.00402560
mov dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.00402560
xor al, al
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret