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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x9c54
call fcn.00612c90
mov eax, dword [0x6ffe74]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x9c4c]
mov dword [ebp - 0x9c50], ecx
push eax
lea eax, [ebp - 0x9c54]
xor ebx, ebx
push eax
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_CredEnumerateA]
test eax, eax
jne 0x4122b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x4124ee
mov edi, ebx
cmp dword [ebp - 0x9c54], ebx
jbe 0x4124df
mov eax, dword [ebp - 0x9c4c]
mov esi, 0x2710
mov byte [ebp - 0x4e28], bl
mov byte [ebp - 0x7538], bl
mov byte [ebp - 0x9c48], bl
mov eax, dword [eax + edi*4]
cmp dword [eax + 0x1c], ebx
je 0x4124cf
cmp dword [eax + 0x18], ebx
je 0x4124cf
push dword [eax + 8]
lea eax, [ebp - 0x9c48]
push esi
push eax
call fcn.006494f3
mov eax, dword [ebp - 0x9c4c]
add esp, 0xc
mov eax, dword [eax + edi*4]
push dword [eax + 8]
lea eax, [ebp - 0x2718]
push esi
push eax
call fcn.006494f3
add esp, 0xc
lea eax, [ebp - 0x2718]
push eax
call fcn.00643470
pop ecx
inc eax
push eax
lea eax, [ebp - 0x2718]
push eax
call fcn.0064ffd4
lea eax, [ebp - 0x2718]
push str.:oauth2:
push eax
call fcn.00639500
add esp, 0x10
test eax, eax
jne 0x4124cf
lea eax, [ebp - 0x2718]
push str.microsoftoffice
push eax
call fcn.00639500
pop ecx
pop ecx
test eax, eax
je 0x41238d
lea eax, [ebp - 0x2718]
push str.:oauth
push eax
call fcn.00639500
pop ecx
pop ecx
test eax, eax
jne 0x4124cf
lea eax, [ebp - 0x2718]
push str.microsoftoffice16_data
push eax
call fcn.00639500
pop ecx
pop ecx
test eax, eax
jne 0x4123bf
lea eax, [ebp - 0x2718]
push str.microsoftoffice15_data
push eax
call fcn.00639500
pop ecx
pop ecx
test eax, eax
je 0x4124cf
mov eax, dword [ebp - 0x9c4c]
mov eax, dword [eax + edi*4]
cmp dword [eax + 0x30], 0
je 0x4123e1
push dword [eax + 0x30]
lea eax, [ebp - 0x7538]
push esi
push eax
call fcn.006494f3
add esp, 0xc
mov eax, dword [ebp - 0x9c4c]
mov eax, dword [eax + edi*4]
mov esi, dword [eax + 0x18]
mov ebx, dword [eax + 0x1c]
cmp esi, 0x10
jbe 0x41244b
push 0x10
push 0x70f010
push ebx
call fcn.00639b07
add esp, 0xc
test eax, eax
jne 0x41244b
lea eax, [ebp - 0x4e28]
push eax
mov eax, dword [ebp - 0x9c4c]
push esi
push ebx
mov eax, dword [eax + edi*4]
push dword [eax + 4]
call fcn.00412503
test eax, eax
je 0x4124cf
push 0xffffffffffffffff
mov ebx, 0x6c5bb9
lea eax, [ebp - 0x4e28]
push ebx
push eax
lea eax, [ebp - 0x7538]
push eax
lea eax, [ebp - 0x9c48]
push eax
push ebx
jmp 0x4124bd
cmp esi, 0x32
ja 0x4124cf
cmp esi, 2
jb 0x412481
cmp byte [ebx + 1], 0
jne 0x412481
xor ecx, ecx
shr esi, 1
push ecx
push ecx
push 0x2710
lea eax, [ebp - 0x4e28]
push eax
push esi
push ebx
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp esi, 0x2710
jae 0x4124fd
jmp 0x412497
push esi
push ebx
lea eax, [ebp - 0x4e28]
push 0x2710
push eax
call fcn.00650b7d
add esp, 0x10
push 0xffffffffffffffff
mov ecx, 0x6c5bb9
mov byte [ebp + esi - 0x4e28], 0
push ecx
lea eax, [ebp - 0x4e28]
push eax
lea eax, [ebp - 0x7538]
push eax
lea eax, [ebp - 0x9c48]
push eax
push ecx
mov ecx, dword [ebp - 0x9c50]
push 0xfc
push 2
call fcn.0043ee6b
inc edi
cmp edi, dword [ebp - 0x9c54]
jae 0x4124df
xor ebx, ebx
jmp 0x4122c3
push dword [ebp - 0x9c4c]
call dword [sym.imp.ADVAPI32.dll_CredFree]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006122f0
leave
ret
call fcn.00612782
int3