Function at 0x509a00
Capabilities:
Acquire credentials from windows credential manager

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6e9568
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x82d084]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x88], ebx
mov eax, dword [ebp + 8]
mov edi, 4
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x34], 0
push eax
push 0
push 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_CredEnumerateW]
test eax, eax
je 0x509e0b
xor ecx, ecx
mov dword [ebp - 0x84], ecx
cmp ecx, dword [ebp - 0x30]
jae 0x50a105
mov eax, dword [ebp - 0x34]
mov esi, dword [eax + ecx*4]
xor eax, eax
mov edx, dword [esi + 8]
mov ecx, edx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x509aa3
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.0042fe00
mov ebx, dword [ebp - 0x68]
mov eax, ebx
mov byte [ebp - 4], 1
cmp dword [ebx + 0x14], 8
jb 0x509acd
mov eax, dword [ebx]
push dword [ebx + 0x10]
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
cmovae ecx, dword [ebp - 0x2c]
push eax
push 0
call fcn.004389e0
add esp, 0xc
cmp eax, 0xffffffff
je 0x509df3
push 0
push 1
push dword [esi + 8]
call dword [sym.imp.ADVAPI32.dll_CredDeleteW]
test eax, eax
je 0x509b0a
xor edi, edi
jmp 0x509df3
push 0x854764
call fcn.0067f606
add esp, 4
test eax, eax
jne 0x50a145
push eax
push 0x761dc7
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], 0xf
mov byte [ebp - 0x64], al
call fcn.00430160
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x80]
push 0
push 0x761dc7
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0xf
mov byte [ebp - 0x80], 0
call fcn.00430160
mov edi, dword [ebp - 0x88]
mov byte [ebp - 4], 3
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0xf
mov edx, dword [edi + 4]
mov ecx, edx
mov byte [ebp - 0x4c], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x509b83
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x4c]
call fcn.00430160
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 4
push eax
lea edx, [ebp - 0x80]
lea ecx, [ebp - 0x4c]
call fcn.005f8830
add esp, 4
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x38]
test eax, eax
setne bl
cmp edx, 0x10
jb 0x509be9
mov ecx, dword [ebp - 0x4c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x509bdf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x50a14b
push edx
push ecx
call fcn.0067bc93
add esp, 8
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0xf
mov byte [ebp - 0x4c], 0
cmp edx, 0x10
jb 0x509c33
mov ecx, dword [ebp - 0x80]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x509c29
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x50a14b
push edx
push ecx
call fcn.0067bc93
add esp, 8
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x50]
cmp edx, 0x10
jb 0x509c6b
mov ecx, dword [ebp - 0x64]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x509c61
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x50a14b
push edx
push ecx
call fcn.0067bc93
add esp, 8
test bl, bl
je 0x509ddb
push 0
push 0x761dc7
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0xf
mov byte [ebp - 0x80], 0
call fcn.00430160
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x64]
push 0
push 0x761dc7
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0xf
mov byte [ebp - 0x64], 0
call fcn.00430160
mov byte [ebp - 4], 6
mov edx, dword [edi + 4]
mov ecx, edx
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0xf
mov byte [ebp - 0x4c], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x509cd7
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x4c]
call fcn.00430160
lea eax, [ebp - 0x80]
mov byte [ebp - 4], 7
push eax
lea edx, [ebp - 0x64]
lea ecx, [ebp - 0x4c]
call fcn.005f8830
mov edi, eax
add esp, 4
mov esi, dword [edi]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.ClearUserStorageHavingInputKey
push str._s_error_Credentaial_delete_Failed_with_return_val__lu_.
push 0x761dc7
push edi
call dword [esi + 0x24]
mov byte [ebp - 4], 6
add esp, 0x14
mov edx, dword [ebp - 0x38]
cmp edx, 0x10
jb 0x509d59
mov ecx, dword [ebp - 0x4c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x509d4f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x50a150
push edx
push ecx
call fcn.0067bc93
add esp, 8
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0xf
mov byte [ebp - 0x4c], 0
cmp edx, 0x10
jb 0x509da3
mov ecx, dword [ebp - 0x64]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x509d99
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x50a150
push edx
push ecx
call fcn.0067bc93
add esp, 8
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x6c]
cmp edx, 0x10
jb 0x509ddb
mov ecx, dword [ebp - 0x80]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x509dd1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x50a150
push edx
push ecx
call fcn.0067bc93
add esp, 8
push 0x854764
call fcn.0067f62b
add esp, 4
test eax, eax
jne 0x50a155
lea edi, [eax + 1]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.0042fd70
mov ecx, dword [ebp - 0x84]
inc ecx
jmp 0x509a72
push 0x854764
call fcn.0067f606
add esp, 4
test eax, eax
jne 0x50a15b
call fcn.005f8600
push 0
push 0x761dc7
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.00430160
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x64]
push 0
push 0x761dc7
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0xf
mov byte [ebp - 0x64], 0
call fcn.00430160
mov byte [ebp - 4], 9
mov edx, dword [ebx + 4]
mov ecx, edx
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0xf
mov byte [ebp - 0x4c], 0
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x509e90
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x4c]
call fcn.00430160
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0xa
push eax
lea edx, [ebp - 0x64]
lea ecx, [ebp - 0x4c]
call fcn.005f8830
add esp, 4
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x38]
test eax, eax
setne bl
cmp edx, 0x10
jb 0x509ef6
mov ecx, dword [ebp - 0x4c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x509eec
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x50a161
push edx
push ecx
call fcn.0067bc93
add esp, 8
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0xf
mov byte [ebp - 0x4c], 0
cmp edx, 0x10
jb 0x509f40
mov ecx, dword [ebp - 0x64]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x509f36
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x50a161
push edx
push ecx
call fcn.0067bc93
add esp, 8
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x509f78
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x509f6e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x50a161
push edx
push ecx
call fcn.0067bc93
add esp, 8
test bl, bl
je 0x50a0f4
call fcn.005f8600
push 0
push 0x761dc7
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.00430160
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x64]
push 0
push 0x761dc7
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0xf
mov byte [ebp - 0x64], 0
call fcn.00430160
mov edx, dword [ebp - 0x88]
mov byte [ebp - 4], 0xc
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0xf
mov edx, dword [edx + 4]
mov ecx, edx
mov byte [ebp - 0x80], 0
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x509ff0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x80]
call fcn.00430160
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0xd
push eax
lea edx, [ebp - 0x64]
lea ecx, [ebp - 0x80]
call fcn.005f8830
mov ebx, eax
add esp, 4
mov esi, dword [ebx]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.ClearUserStorageHavingInputKey
push str._s_Error:_Credentaial_Enumerate_Failed_with_return_val:__lu
push 0x761dc7
push ebx
call dword [esi + 0x24]
mov byte [ebp - 4], 0xc
add esp, 0x14
mov edx, dword [ebp - 0x6c]
cmp edx, 0x10
jb 0x50a072
mov ecx, dword [ebp - 0x80]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x50a068
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x50a166
push edx
push ecx
call fcn.0067bc93
add esp, 8
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0xf
mov byte [ebp - 0x80], 0
cmp edx, 0x10
jb 0x50a0bc
mov ecx, dword [ebp - 0x64]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x50a0b2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x50a166
push edx
push ecx
call fcn.0067bc93
add esp, 8
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x50a0f4
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x50a0ea
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x50a166
push edx
push ecx
call fcn.0067bc93
add esp, 8
push 0x854764
call fcn.0067f62b
add esp, 4
test eax, eax
jne 0x50a16b
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x50a125
push eax
call dword [sym.imp.ADVAPI32.dll_CredFree]
jmp 0x50a125
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0067ba01
mov esp, ebp
pop ebp
ret 8
push eax
call fcn.0067f8f8
call fcn.00691015
call fcn.00691015
push eax
call fcn.0067f8f8
push eax
call fcn.0067f8f8
call fcn.00691015
call fcn.00691015
push eax
call fcn.0067f8f8
int3