Function at 0x40c970
Capabilities:
Create new key via cryptacquirecontext
Get client handle via schannel
Get inbound credentials handle via credssp
Get outbound credentials handle via credssp

Disassembly:
push edi
lea edi, [esp + 8]
and esp, 0xfffffff8
push dword [edi - 4]
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0x2c4]
push ebx
sub esp, 0x2e8
mov dword [esp + 4], eax
lea eax, [ebp - 0x2c0]
mov dword [esp], eax
call sub.secur32.dll_EnumerateSecurityPackagesA
sub esp, 8
test eax, eax
js 0x40ca05
mov eax, dword [ebp - 0x2c0]
mov edx, dword [ebp - 0x2c4]
mov edi, dword [sym.imp.msvcrt.dll_strcmp]
lea ebx, [eax - 1]
lea eax, [eax + eax*4]
mov dword [ebp - 0x2c8], edx
lea esi, [edx + eax*4 - 8]
jmp 0x40c9e9
mov dword [esp + 4], 0x418280
mov eax, dword [esi]
sub ebx, 1
sub esi, 0x14
mov dword [esp], eax
call edi
test eax, eax
je 0x40ca30
mov dword [ebp - 0x2c0], ebx
cmp ebx, 0xffffffff
jne 0x40c9d0
mov edx, dword [ebp - 0x2c8]
mov dword [esp], edx
call sub.secur32.dll_FreeContextBuffer
sub esp, 4
call fcn.004162e0
mov dword [eax], 0x41c5d6
mov dword [eax + 4], 0x128
mov dword [esp], str.Schannel_not_available_n
call fcn.0040a3e0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret
mov edx, dword [ebp - 0x2c8]
mov dword [esp], edx
call sub.secur32.dll_FreeContextBuffer
xor eax, eax
lea ecx, [ebp - 0x218]
sub esp, 4
lea esi, [esi]
movzx edx, word [eax + str.Microsoft_Base_Cryptographic_Provider_v1.0]
mov word [ecx + eax], dx
add eax, 2
test dx, dx
jne 0x40ca50
mov dword [ebp - 0x294], ecx
mov ebx, dword [sym.imp.crypt32.dll_CertCreateCertificateContext]
mov dword [ebp - 0x298], str.WineCryptTemp
mov dword [ebp - 0x290], 1
mov dword [ebp - 0x28c], 0
mov dword [ebp - 0x288], 0
mov dword [ebp - 0x284], 0
mov dword [ebp - 0x280], 2
mov dword [esp + 8], 0x7c
mov dword [esp + 4], 0x41e800
mov dword [esp], 1
call ebx
sub esp, 0xc
mov dword [ebp - 0x2a0], eax
mov dword [esp + 8], 0x123
mov dword [esp + 4], 0x41e6c0
mov dword [esp], 1
call ebx
mov dword [ebp - 0x29c], eax
sub esp, 0xc
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0xdeadbeef
lea eax, [ebp - 0x2b8]
mov dword [esp], eax
mov eax, dword [sym.imp.advapi32.dll_CryptAcquireContextW]
mov dword [esp + 0x10], 0x10
mov dword [esp + 0xc], 1
mov dword [esp + 8], str.Microsoft_Base_Cryptographic_Provider_v1.0
mov dword [esp + 4], str.WineCryptTemp
mov dword [ebp - 0x2c8], eax
call eax
sub esp, 0x14
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.secur32.dll_AcquireCredentialsHandleA
sub esp, 0x24
mov ebx, eax
call fcn.004162e0
mov dword [eax], 0x41c5d6
mov dword [eax + 4], 0x13d
xor eax, eax
cmp ebx, 0x80090305
sete al
mov dword [esp + 8], ebx
mov dword [esp + 4], str.Expected_SEC_E_SECPKG_NOT_FOUND__got__08lx_n
mov dword [esp], eax
call fcn.0040aa60
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x418280
mov dword [esp], 0
call sub.secur32.dll_AcquireCredentialsHandleA
sub esp, 0x24
mov ebx, eax
call fcn.004162e0
mov dword [eax], 0x41c5d6
mov dword [eax + 4], 0x140
xor eax, eax
cmp ebx, 0x8009030e
sete al
mov dword [esp + 8], ebx
mov dword [esp + 4], str.Expected_SEC_E_NO_CREDENTIALS__got__08lx_n
mov dword [esp], eax
call fcn.0040aa60
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 3
mov dword [esp + 4], 0x418280
mov dword [esp], 0
call sub.secur32.dll_AcquireCredentialsHandleA
sub esp, 0x24
mov ebx, eax
call fcn.004162e0
mov dword [eax], 0x41c5d6
mov dword [eax + 4], 0x143
xor eax, eax
cmp ebx, 0x8009030e
sete al
mov dword [esp + 8], ebx
mov dword [esp + 4], str.Expected_SEC_E_NO_CREDENTIALS__got__08lx_n
mov dword [esp], eax
call fcn.0040aa60
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x418280
mov dword [esp], 0
call sub.secur32.dll_AcquireCredentialsHandleA
sub esp, 0x24
mov ebx, eax
call fcn.004162e0
mov dword [eax], 0x41c5d6
mov dword [eax + 4], 0x146
xor eax, eax
cmp ebx, 0x8009030e
sete al
mov dword [esp + 8], ebx
lea ebx, [ebp - 0x2a8]
mov dword [esp + 4], str.Expected_SEC_E_NO_CREDENTIALS__got__08lx_n
mov dword [esp], eax
call fcn.0040aa60
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 2
mov dword [esp + 4], 0x418280
mov dword [esp], 0
call sub.secur32.dll_AcquireCredentialsHandleA
sub esp, 0x24
mov esi, eax
call fcn.004162e0
mov dword [eax], 0x41c5d6
mov dword [eax + 4], 0x14f
xor eax, eax
test esi, esi
sete al
mov dword [esp + 8], esi
mov dword [esp + 4], str.AcquireCredentialsHandleA_failed:__08lx_n
mov dword [esp], eax
call fcn.0040aa60
test esi, esi
je 0x40e190
mov dword [esp + 0x20], 0
lea edi, [ebp - 0x2b0]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x418280
mov dword [esp], 0
call sub.secur32.dll_AcquireCredentialsHandleA
sub esp, 0x24
mov esi, eax
call fcn.004162e0
mov dword [eax], 0x41c5d6
mov dword [eax + 4], 0x153
xor eax, eax
cmp esi, 0x8009030e
sete al
mov dword [esp + 8], esi
mov dword [esp + 4], str.st___08lx_n
mov dword [esp], eax
call fcn.0040aa60
mov dword [ebp - 0x2a8], 0
mov dword [ebp - 0x2a4], 0
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 2
mov dword [esp + 4], 0x418280
mov dword [esp], 0
call sub.secur32.dll_AcquireCredentialsHandleA
sub esp, 0x24
mov esi, eax
call fcn.004162e0
mov dword [eax], 0x41c5d6
mov dword [eax + 4], 0x157
xor eax, eax
test esi, esi
sete al
mov dword [esp + 8], esi
mov dword [esp], eax
mov dword [esp + 4], str.AcquireCredentialsHandleA_failed:__08lx_n
call fcn.0040aa60
call fcn.004162e0
mov dword [eax], 0x41c5d6
mov dword [eax + 4], 0x159
mov eax, dword [ebp - 0x2b0]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2ac]
mov dword [esp], str.expiry:__08lx_08lx_n
mov dword [esp + 4], eax
call fcn.0040a3f0
lea eax, [ebp - 0x2bc]
mov dword [esp + 4], 1
mov dword [esp + 8], eax
mov dword [esp], ebx
call sub.secur32.dll_QueryCredentialsAttributesA
sub esp, 0xc
mov esi, eax
call fcn.004162e0
mov dword [eax], 0x41c5d6
mov dword [eax + 4], 0x15c
xor eax, eax
cmp esi, 0x8009030e
sete al
mov dword [esp + 8], esi
lea esi, [ebp - 0x250]
mov dword [esp + 4], str.expected_SEC_E_NO_CREDENTIALS__got__08lx_n
mov dword [esp], eax
call fcn.0040aa60
mov dword [esp], ebx
call sub.secur32.dll_FreeCredentialsHandle
mov dword [ebp - 0x250], 4
mov dword [ebp - 0x24c], 0
sub esp, 4
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x230], 0x1540
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 2
mov dword [esp + 4], 0x418280
mov dword [esp], 0
call sub.secur32.dll_AcquireCredentialsHandleA
sub esp, 0x24
mov dword [ebp - 0x2cc], eax
call fcn.004162e0
mov edx, dword [ebp - 0x2cc]
mov dword [eax], 0x41c5d6
mov dword [eax + 4], 0x164
xor eax, eax
cmp edx, 0x80090331
sete al
mov dword [esp + 8], edx
mov dword [esp + 4], str.st___08lx_n
mov dword [esp], eax
call fcn.0040aa60
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x418280
mov dword [esp], 0
call sub.secur32.dll_AcquireCredentialsHandleA
sub esp, 0x24
mov dword [ebp - 0x2cc], eax
call fcn.004162e0
mov edx, dword [ebp - 0x2cc]
mov dword [eax], 0x41c5d6
mov dword [eax + 4], 0x166
xor eax, eax
test edx, edx
sete al
mov dword [esp + 8], edx
mov dword [esp + 4], str.AcquireCredentialsHandleA_failed:__08lx_n
mov dword [esp], eax
call fcn.0040aa60
mov dword [esp], ebx
call sub.secur32.dll_FreeCredentialsHandle
mov dword [ebp - 0x230], 0x2a80
sub esp, 4
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 2
mov dword [esp + 4], 0x418280
mov dword [esp], 0
call sub.secur32.dll_AcquireCredentialsHandleA
sub esp, 0x24
mov dword [ebp - 0x2cc], eax
call fcn.004162e0
mov edx, dword [ebp - 0x2cc]
mov dword [eax], 0x41c5d6
mov dword [eax + 4], 0x16b
xor eax, eax
test edx, edx
sete al
mov dword [esp + 8], edx
mov dword [esp + 4], str.AcquireCredentialsHandleA_failed:__08lx_n
mov dword [esp], eax
call fcn.0040aa60
mov dword [esp], ebx
call sub.secur32.dll_FreeCredentialsHandle
sub esp, 4
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x418280
mov dword [esp], 0
call sub.secur32.dll_AcquireCredentialsHandleA
sub esp, 0x24
mov edi, eax
call fcn.004162e0
mov dword [eax], 0x41c5d6
mov dword [eax + 4], 0x16e
xor eax, eax
cmp edi, 0x80090331
sete al
mov dword [esp + 8], edi
mov edi, esi
mov dword [esp], eax
mov dword [esp + 4], str.st___08lx_n
call fcn.0040aa60
xor eax, eax
mov ecx, 0xe
rep stosd dword es:[edi], eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 2
mov dword [esp + 4], 0x418280
mov dword [esp], 0
call sub.secur32.dll_AcquireCredentialsHandleA
sub esp, 0x24
mov edi, eax
call fcn.004162e0
mov dword [eax], 0x41c5d6
mov dword [eax + 4], 0x174
xor eax, eax
cmp edi, 0x8009030d
sete al
mov dword [esp + 8], edi
mov dword [esp + 4], str.st___08lx_n
mov dword [esp], eax
call fcn.0040aa60
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x418280
mov dword [esp], 0
call sub.secur32.dll_AcquireCredentialsHandleA
sub esp, 0x24
mov edi, eax
call fcn.004162e0
mov dword [eax], 0x41c5d6
mov dword [eax + 4], 0x177
xor eax, eax
cmp edi, 0x8009030d
sete al
mov dword [esp + 8], edi
mov dword [esp + 4], str.st___08lx_n
mov dword [esp], eax
call fcn.0040aa60
mov dword [ebp - 0x250], 4
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 2
mov dword [esp + 4], 0x418280
mov dword [esp], 0
call sub.secur32.dll_AcquireCredentialsHandleA
sub esp, 0x24
mov edi, eax
call fcn.004162e0
mov dword [eax], 0x41c5d6
mov dword [eax + 4], 0x17d
xor eax, eax
test edi, edi
sete al
mov dword [esp + 8], edi
mov dword [esp + 4], str.AcquireCredentialsHandleA_failed:__08lx_n
mov dword [esp], eax
call fcn.0040aa60
mov dword [esp], ebx
call sub.secur32.dll_FreeCredentialsHandle
sub esp, 4
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x418280
mov dword [esp], 0
call sub.secur32.dll_AcquireCredentialsHandleA
sub esp, 0x24
mov edi, eax
call fcn.004162e0
mov dword [eax], 0x41c5d6
mov dword [eax + 4], 0x181
xor eax, eax
test edi, edi
sete al
mov dword [esp + 8], edi
mov dword [esp], eax
mov dword [esp + 4], str.Expected_SEC_E_OK__got__08lx_n
call fcn.0040aa60
lea eax, [ebp - 0x2a0]
mov dword [ebp - 0x24c], 1
mov dword [ebp - 0x248], eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 2
mov dword [esp + 4], 0x418280
mov dword [esp], 0
call sub.secur32.dll_AcquireCredentialsHandleA
sub esp, 0x24
mov edi, eax
call fcn.004162e0
mov dword [eax], 0x41c5d6
mov dword [eax + 4], 0x190
xor eax, eax
cmp edi, 0x8009030d
sete al
mov dword [esp + 8], edi
mov dword [esp + 4], str.st___08lx_n
mov dword [esp], eax
call fcn.0040aa60
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x418280
mov dword [esp], 0
call sub.secur32.dll_AcquireCredentialsHandleA
sub esp, 0x24
mov edi, eax
call fcn.004162e0
mov dword [eax], 0x41c5d6
mov dword [eax + 4], 0x193
xor eax, eax
cmp edi, 0x8009030d
sete al
mov dword [esp + 8], edi
mov dword [esp], eax
mov dword [esp + 4], str.st___08lx_n
call fcn.0040aa60
lea eax, [ebp - 0x29c]
mov dword [ebp - 0x24c], 1
mov dword [ebp - 0x248], eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 2
mov dword [esp + 4], 0x418280
mov dword [esp], 0
call sub.secur32.dll_AcquireCredentialsHandleA
mov ecx, dword [0x472130]
sub esp, 0x24
mov edi, eax
mov dword [ebp - 0x2cc], ecx
call fcn.004162e0
mov ecx, dword [eax + 0x10]
mov dword [eax + 0x14], 1
lea edx, [ecx + ecx]
mov ecx, dword [ebp - 0x2cc]
test ecx, ecx
setne cl
movzx ecx, cl
or edx, ecx
mov dword [eax + 0x10], edx
jmp 0x40d5e1
call fcn.004162e0
mov dword [eax], 0x41c5d6
mov dword [eax + 4], 0x19a
xor eax, eax
cmp edi, 0x8009030e
sete al
mov dword [esp + 8], edi
mov dword [esp], eax
mov dword [esp + 4], str.Expected_SEC_E_NO_CREDENTIALS__got__08lx_n
call fcn.0040aa60
call fcn.004162e0
shr dword [eax + 0x10], 1
call fcn.004162e0
mov edx, dword [eax + 0x14]
mov dword [eax + 0x14], 0
test edx, edx
jne 0x40d5a8
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x418280
mov dword [esp], 0
call sub.secur32.dll_AcquireCredentialsHandleA
mov ecx, dword [0x472130]
sub esp, 0x24
mov edi, eax
mov dword [ebp - 0x2cc], ecx
call fcn.004162e0
mov ecx, dword [eax + 0x10]
mov dword [eax + 0x14], 1
lea edx, [ecx + ecx]
mov ecx, dword [ebp - 0x2cc]
test ecx, ecx
setne cl
movzx ecx, cl
or edx, ecx
mov dword [eax + 0x10], edx
jmp 0x40d6b1
call fcn.004162e0
mov dword [eax], 0x41c5d6
mov dword [eax + 4], 0x19d
xor eax, eax
cmp edi, 0x8009030e
sete al
mov dword [esp + 8], edi
mov dword [esp], eax
mov dword [esp + 4], str.Expected_SEC_E_NO_CREDENTIALS__got__08lx_n
call fcn.0040aa60
call fcn.004162e0
shr dword [eax + 0x10], 1
call fcn.004162e0
mov edx, dword [eax + 0x14]
mov dword [eax + 0x14], 0
test edx, edx
jne 0x40d678
lea eax, [ebp - 0x298]
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov dword [esp + 4], 2
mov eax, dword [ebp - 0x29c]
mov dword [esp], eax
call dword [sym.imp.crypt32.dll_CertSetCertificateContextProperty]
mov dword [ebp - 0x250], 3
sub esp, 0x10
mov edi, eax
call fcn.004162e0
mov dword [eax], 0x41c5d6
mov edx, dword fs:[0x18]
mov dword [eax + 4], 0x1a3
mov eax, dword [edx + 0x34]
mov dword [ebp - 0x2cc], edx
mov dword [esp], edi
mov dword [esp + 8], eax
mov dword [esp + 4], str.CertSetCertificateContextProperty_failed:__08lx_n
call fcn.0040aa60
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 2
mov dword [esp + 4], 0x418280
mov dword [esp], 0
call sub.secur32.dll_AcquireCredentialsHandleA
sub esp, 0x24
mov edi, eax
call fcn.004162e0
cmp edi, 0x8009030d
mov dword [eax], 0x41c5d6
mov dword [eax + 4], 0x1a6
sete al
cmp edi, 0x80090300
sete cl
mov dword [esp + 8], edi
or eax, ecx
mov dword [esp + 4], str.Expected_SEC_E_INSUFFICIENT_MEMORY__got__08lx_n
movzx eax, al
mov dword [esp], eax
call fcn.0040aa60
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x418280
mov dword [esp], 0
call sub.secur32.dll_AcquireCredentialsHandleA
sub esp, 0x24
mov edi, eax
call fcn.004162e0
cmp edi, 0x8009030d
mov dword [eax], 0x41c5d6
mov dword [eax + 4], 0x1aa
sete al
cmp edi, 0x80090300
sete cl
mov dword [esp + 8], edi
or eax, ecx
mov dword [esp + 4], str.Expected_SEC_E_INSUFFICIENT_MEMORY__got__08lx_n
movzx eax, al
mov dword [esp], eax
call fcn.0040aa60
lea eax, [ebp - 0x2b8]
mov dword [esp + 0x10], 8
mov dword [esp + 0xc], 1
mov dword [esp + 8], str.Microsoft_Base_Cryptographic_Provider_v1.0
mov dword [esp + 4], str.WineCryptTemp
mov dword [esp], eax
mov eax, dword [ebp - 0x2c8]
call eax
sub esp, 0x14
mov edi, eax
call fcn.004162e0
mov edx, dword [ebp - 0x2cc]
mov dword [eax], 0x41c5d6
mov dword [eax + 4], 0x1af
mov eax, dword [edx + 0x34]
mov dword [esp], edi
mov dword [esp + 8], eax
mov dword [esp + 4], str.CryptAcquireContextW_failed:__08lx_n
call fcn.0040aa60
lea eax, [ebp - 0x2b4]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x134
mov dword [esp + 4], 0x4182c0
mov eax, dword [ebp - 0x2b8]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_CryptImportKey]
sub esp, 0x18
mov edi, eax
call fcn.004162e0
mov edx, dword [ebp - 0x2cc]
mov dword [eax], 0x41c5d6
mov dword [eax + 4], 0x1b3
mov eax, dword [edx + 0x34]
mov dword [esp + 4], str.CryptImportKey_failed:__08lx_n
mov dword [esp + 8], eax
mov dword [esp], edi
call fcn.0040aa60
lea edx, [ebp - 0x27c]
test edi, edi
jne 0x40da60
lea esi, [ebp - 0x278]
xor eax, eax
mov ecx, 0xa
mov edi, esi
rep stosd dword es:[edi], eax
mov dword [ebp - 0x27c], 5
mov dword [esp + 0x10], edx
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 2
mov dword [esp + 4], 0x418280
mov dword [esp], 0
call sub.secur32.dll_AcquireCredentialsHandleA
sub esp, 0x24
mov esi, eax
call fcn.004162e0
mov dword [eax], 0x41c5d6
mov dword [eax + 4], 0x201
mov eax, 1
test esi, esi
jne 0x40da40
mov dword [esp + 8], esi
mov dword [esp + 4], str.AcquireCredentialsHandleA_failed:__08lx_n
mov dword [esp], eax
call fcn.0040aa60
mov dword [esp], ebx
call sub.secur32.dll_FreeCredentialsHandle
sub esp, 4
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x2b8]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_CryptReleaseContext]
lea eax, [ebp - 0x2b8]
sub esp, 8
mov dword [esp + 0x10], 0x10
mov dword [esp + 0xc], 1
mov dword [esp + 8], str.Microsoft_Base_Cryptographic_Provider_v1.0
mov dword [esp + 4], str.WineCryptTemp
mov dword [esp], eax
mov eax, dword [ebp - 0x2c8]
call eax
mov eax, dword [ebp - 0x2a0]
mov ebx, dword [sym.imp.crypt32.dll_CertFreeCertificateContext]
sub esp, 0x14
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x29c]
sub esp, 4
mov dword [esp], eax
call ebx
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret
mov eax, dword [0x472130]
test eax, eax
sete dl
xor eax, eax
cmp esi, 0x8009030d
sete al
and eax, edx
jmp 0x40d9a1
mov dword [ebp - 0x250], 1
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 2
mov dword [esp + 4], 0x418280
mov dword [esp], 0
call sub.secur32.dll_AcquireCredentialsHandleA
sub esp, 0x24
mov edi, eax
call fcn.004162e0
mov dword [eax], 0x41c5d6
mov dword [eax + 4], 0x1c3
xor eax, eax
cmp edi, 0x8009030d
sete al
mov dword [esp + 8], edi
mov dword [esp + 4], str.Expected_SEC_E_UNKNOWN_CREDENTIALS__got__08lx_n
mov dword [esp], eax
call fcn.0040aa60
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x418280
mov dword [esp], 0
call sub.secur32.dll_AcquireCredentialsHandleA
sub esp, 0x24
mov edi, eax
call fcn.004162e0
mov dword [eax], 0x41c5d6
mov dword [eax + 4], 0x1c6
xor eax, eax
cmp edi, 0x8009030d
sete al
mov dword [esp + 8], edi
mov dword [esp + 4], str.Expected_SEC_E_UNKNOWN_CREDENTIALS__got__08lx_n
mov dword [esp], eax
call fcn.0040aa60
mov dword [ebp - 0x250], 2
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 2
mov dword [esp + 4], 0x418280
mov dword [esp], 0
call sub.secur32.dll_AcquireCredentialsHandleA
sub esp, 0x24
mov edi, eax
call fcn.004162e0
mov dword [eax], 0x41c5d6
mov dword [eax + 4], 0x1ca
xor eax, eax
cmp edi, 0x8009030d
sete al
mov dword [esp + 8], edi
mov dword [esp + 4], str.Expected_SEC_E_UNKNOWN_CREDENTIALS__got__08lx_n
mov dword [esp], eax
call fcn.0040aa60
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x418280
mov dword [esp], 0
call sub.secur32.dll_AcquireCredentialsHandleA
sub esp, 0x24
mov edi, eax
call fcn.004162e0
mov dword [eax], 0x41c5d6
mov dword [eax + 4], 0x1cd
xor eax, eax
cmp edi, 0x8009030d
sete al
mov dword [esp + 8], edi
mov dword [esp + 4], str.Expected_SEC_E_UNKNOWN_CREDENTIALS__got__08lx_n
mov dword [esp], eax
call fcn.0040aa60
mov dword [ebp - 0x250], 3
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 2
mov dword [esp + 4], 0x418280
mov dword [esp], 0
call sub.secur32.dll_AcquireCredentialsHandleA
mov ecx, dword [0x472130]
sub esp, 0x24
mov edi, eax
mov dword [ebp - 0x2cc], ecx
call fcn.004162e0
mov ecx, dword [eax + 0x10]
mov dword [eax + 0x14], 1
lea edx, [ecx + ecx]
mov ecx, dword [ebp - 0x2cc]
test ecx, ecx
setne cl
movzx ecx, cl
or edx, ecx
mov dword [eax + 0x10], edx
jmp 0x40dd31
call fcn.004162e0
mov dword [eax], 0x41c5d6
mov dword [eax + 4], 0x1d3
mov eax, 1
cmp edi, 0x80090300
je 0x40dd15
mov eax, edi
or eax, dword [0x472130]
sete al
movzx eax, al
mov dword [esp], eax
mov dword [esp + 8], edi
mov dword [esp + 4], str.AcquireCredentialsHandleA_failed:__08lx_n
call fcn.0040aa60
call fcn.004162e0
shr dword [eax + 0x10], 1
call fcn.004162e0
mov edx, dword [eax + 0x14]
mov dword [eax + 0x14], 0
test edx, edx
jne 0x40dce8
test edi, edi
je 0x40e1a0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x418280
mov dword [esp], 0
call sub.secur32.dll_AcquireCredentialsHandleA
mov ecx, dword [0x472130]
sub esp, 0x24
mov edi, eax
mov dword [ebp - 0x2cc], ecx
call fcn.004162e0
mov ecx, dword [eax + 0x10]
mov dword [eax + 0x14], 1
lea edx, [ecx + ecx]
mov ecx, dword [ebp - 0x2cc]
test ecx, ecx
setne cl
movzx ecx, cl
or edx, ecx
mov dword [eax + 0x10], edx
jmp 0x40de19
call fcn.004162e0
mov dword [eax], 0x41c5d6
mov dword [eax + 4], 0x1d8
mov eax, 1
cmp edi, 0x80090300
je 0x40ddfd
mov eax, edi
or eax, dword [0x472130]
sete al
movzx eax, al
mov dword [esp], eax
mov dword [esp + 8], edi
mov dword [esp + 4], str.AcquireCredentialsHandleA_failed:__08lx_n
call fcn.0040aa60
call fcn.004162e0
shr dword [eax + 0x10], 1
call fcn.004162e0
mov edx, dword [eax + 0x14]
mov dword [eax + 0x14], 0
test edx, edx
jne 0x40ddd0
test edi, edi
je 0x40e2a6
mov dword [ebp - 0x250], 4
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 2
mov dword [esp + 4], 0x418280
mov dword [esp], 0
call sub.secur32.dll_AcquireCredentialsHandleA
sub esp, 0x24
mov edi, eax
call fcn.004162e0
mov dword [eax], 0x41c5d6
mov dword [eax + 4], 0x1de
xor eax, eax
test edi, edi
sete al
mov dword [esp + 8], edi
mov dword [esp + 4], str.AcquireCredentialsHandleA_failed:__08lx_n
mov dword [esp], eax
call fcn.0040aa60
mov dword [esp], ebx
call sub.secur32.dll_FreeCredentialsHandle
sub esp, 4
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x418280
mov dword [esp], 0
call sub.secur32.dll_AcquireCredentialsHandleA
sub esp, 0x24
mov edi, eax
call fcn.004162e0
mov dword [eax], 0x41c5d6
mov dword [eax + 4], 0x1e2
xor eax, eax
test edi, edi
sete al
mov dword [esp + 8], edi
mov dword [esp + 4], str.AcquireCredentialsHandleA_failed:__08lx_n
mov dword [esp], eax
call fcn.0040aa60
lea edx, [ebp - 0x27c]
test edi, edi
je 0x40e1b0
mov dword [ebp - 0x2cc], edx
mov dword [esp], ebx
call sub.secur32.dll_FreeCredentialsHandle
lea eax, [ebp - 0x2a0]
mov dword [ebp - 0x24c], 2
sub esp, 4
mov dword [ebp - 0x248], eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 2
mov dword [esp + 4], 0x418280
mov dword [esp], 0
call sub.secur32.dll_AcquireCredentialsHandleA
sub esp, 0x24
mov edi, eax
call fcn.004162e0
mov dword [eax], 0x41c5d6
mov dword [eax + 4], 0x1eb
xor eax, eax
cmp edi, 0x8009030d
sete al
mov dword [esp + 8], edi
mov dword [esp + 4], str.st___08lx_n
mov dword [esp], eax
call fcn.0040aa60
mov dword [esp + 0x10], esi
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x418280
mov dword [esp], 0
call sub.secur32.dll_AcquireCredentialsHandleA
sub esp, 0x24
mov edi, eax
call fcn.004162e0
mov dword [eax], 0x41c5d6
mov dword [eax + 4], 0x1ee
xor eax, eax
cmp edi, 0x8009030d
sete al
mov dword [esp + 8], edi
mov dword [esp], eax
mov dword [esp + 4], str.st___08lx_n
call fcn.0040aa60
mov ecx, dword [ebp - 0x29c]
mov eax, dword [ebp - 0x2a0]
mov dword [ebp - 0x2a0], ecx
mov dword [ebp - 0x29c], eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 2
mov dword [esp + 4], 0x418280
mov dword [esp], 0
call sub.secur32.dll_AcquireCredentialsHandleA
sub esp, 0x24
mov edi, eax
call fcn.004162e0
mov dword [eax], 0x41c5d6
mov dword [eax + 4], 0x1f4
xor eax, eax
cmp edi, 0x8009030d
sete al
mov dword [esp + 8], edi
mov dword [esp + 4], str.st___08lx_n
mov dword [esp], eax
call fcn.0040aa60
mov dword [esp + 0x10], esi
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x418280
mov dword [esp], 0
call sub.secur32.dll_AcquireCredentialsHandleA
sub esp, 0x24
mov esi, eax
call fcn.004162e0
mov dword [eax], 0x41c5d6
mov dword [eax + 4], 0x1f7
xor eax, eax
cmp esi, 0x8009030d
sete al
mov dword [esp + 8], esi
mov dword [esp], eax
mov dword [esp + 4], str.Expected_SEC_E_UNKNOWN_CREDENTIALS__got__08lx_n
call fcn.0040aa60
mov eax, dword [ebp - 0x2b4]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_CryptDestroyKey]
mov edx, dword [ebp - 0x2cc]
sub esp, 4
jmp 0x40d91e
mov dword [esp], ebx
call sub.secur32.dll_FreeCredentialsHandle
sub esp, 4
jmp 0x40cdc5
mov dword [esp], ebx
call sub.secur32.dll_FreeCredentialsHandle
sub esp, 4
jmp 0x40dd4c
mov dword [ebp - 0x27c], 0xffffffff
mov dword [ebp - 0x278], 0xffffffff
mov dword [esp + 8], edx
mov dword [ebp - 0x2cc], edx
mov dword [esp + 4], 0x57
mov dword [esp], ebx
call sub.secur32.dll_QueryCredentialsAttributesA
sub esp, 0xc
mov edi, eax
call fcn.004162e0
mov dword [eax], 0x41c5d6
mov dword [eax + 4], 0xb3
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 4], str.QueryCredentialsAttributesA_failed:__lu_n
mov dword [esp + 8], eax
xor eax, eax
test edi, edi
sete al
mov dword [esp], eax
call fcn.0040aa60
call fcn.004162e0
mov dword [eax], 0x41c5d6
mov dword [eax + 4], 0xb4
mov dword [esp + 4], str.dwMinimumCipherStrength_not_changed_n
mov eax, dword [ebp - 0x27c]
mov dword [esp], eax
call fcn.0040aa60
call fcn.004162e0
mov dword [eax], 0x41c5d6
mov dword [eax + 4], 0xb5
mov dword [esp + 4], str.dwMaximumCipherStrength_not_changed_n
mov eax, dword [ebp - 0x278]
mov dword [esp], eax
call fcn.0040aa60
call fcn.004162e0
mov dword [eax], 0x41c5d6
mov dword [eax + 4], 0xb6
mov eax, dword [ebp - 0x278]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x27c]
mov dword [esp], str.strength__ld____ld_n
mov dword [esp + 4], eax
call fcn.0040a3f0
mov edx, dword [ebp - 0x2cc]
jmp 0x40df43
mov dword [esp], ebx
call sub.secur32.dll_FreeCredentialsHandle
sub esp, 4
jmp 0x40de34