Function at 0x428917
Capabilities:
Encrypt data using dpapi
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x66d342
mov eax, dword fs:[0]
push eax
mov eax, 0x42d0
call fcn.00612c90
mov eax, dword [0x6ffe74]
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 ebx, ecx
mov dword [ebp - 0x4280], ebx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x3fb]
push 0x3e7
push 0
push eax
mov byte [ebp - 0x3fc], 0
call fcn.006390b0
add esp, 0xc
push esi
call fcn.00643470
cmp eax, 1
mov edi, 0x3e8
pop ecx
lea eax, [ebp - 0x3fc]
jae 0x4289b6
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x428d30
push str.MySQLmysqlx_user_connections.xml
lea eax, [ebp - 0x3fc]
push edi
push eax
call fcn.006500a8
add esp, 0xc
jmp 0x4289cf
push str.mysqlx_user_connections.xml
push esi
push 0x6c643c
push 0x208
push eax
call fcn.00402e0a
add esp, 0x14
lea ecx, [ebp - 0x3fc]
call fcn.00405670
test eax, eax
jne 0x4289e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x428d30
lea eax, [ebp - 0x3fc]
push eax
lea ecx, [ebp - 0x42dc]
call fcn.00614650
and dword [ebp - 4], 0
lea ecx, [ebp - 0x42dc]
push 0
call fcn.00615770
test al, al
je 0x428d25
push str.user_connections
lea ecx, [ebp - 0x42dc]
call fcn.006154c0
test eax, eax
je 0x428d25
push str.user_connection
mov ecx, eax
call fcn.006154c0
mov esi, eax
test esi, esi
je 0x428d25
xor eax, eax
mov ecx, esi
push str.username
mov byte [ebp - 0x427c], al
mov byte [ebp - 0x139c], al
mov byte [ebp - 0xbcc], al
mov byte [ebp - 0xfb4], al
mov byte [ebp - 0x2ef4], al
mov byte [ebp - 0x7e4], al
call fcn.006154c0
test eax, eax
je 0x428a9f
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x428a9f
mov eax, dword [ecx]
call dword [eax + 0x2c]
test eax, eax
je 0x428a9f
mov eax, dword [eax + 0x20]
add eax, 8
push eax
lea eax, [ebp - 0x7e4]
push edi
push eax
call fcn.006494f3
add esp, 0xc
push str.password
mov ecx, esi
call fcn.006154c0
test eax, eax
je 0x428bcc
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x428bcc
mov eax, dword [ecx]
call dword [eax + 0x2c]
test eax, eax
je 0x428bcc
mov eax, dword [eax + 0x20]
add eax, 8
push eax
lea eax, [ebp - 0x2ef4]
push 0x1388
push eax
call fcn.006494f3
add esp, 0xc
lea eax, [ebp - 0x2ef4]
push eax
call fcn.00643470
pop ecx
lea eax, [ebp - 0x2ef4]
push eax
call fcn.00643470
pop ecx
lea eax, [ebp - 0x2ef4]
push eax
call fcn.00643470
pop ecx
cmp eax, 1
jb 0x428bcc
xor edi, edi
lea ebx, [ebp - 0x2ef4]
cmp byte [ebp - 0x2ef4], 0
je 0x428bc1
lea eax, [ebp - 0x4284]
push eax
push str._02X
push ebx
call fcn.00404468
add esp, 0xc
cmp eax, 1
jne 0x428b5b
mov al, byte [ebp - 0x4284]
add ebx, 2
mov byte [ebp + edi - 0x2ef4], al
inc edi
cmp byte [ebx], 0
jne 0x428b2b
cmp edi, 1
jb 0x428bc1
lea eax, [ebp - 0x2ef4]
mov dword [ebp - 0x4294], edi
mov dword [ebp - 0x4290], eax
xor ebx, ebx
lea eax, [ebp - 0x428c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x4294]
push eax
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
jne 0x428b99
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x428bc1
push dword [ebp - 0x428c]
lea eax, [ebp - 0x427c]
push dword [ebp - 0x4288]
push eax
call fcn.00638b30
mov eax, dword [ebp - 0x428c]
add esp, 0xc
mov byte [ebp + eax - 0x427c], bl
mov ebx, dword [ebp - 0x4280]
mov edi, 0x3e8
cmp byte [ebp - 0x7e4], 0
jne 0x428be2
cmp byte [ebp - 0x427c], 0
je 0x428cf9
push str.hostname
mov ecx, esi
call fcn.006154c0
test eax, eax
je 0x428c19
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x428c19
mov eax, dword [ecx]
call dword [eax + 0x2c]
test eax, eax
je 0x428c19
mov eax, dword [eax + 0x20]
add eax, 8
push eax
lea eax, [ebp - 0xfb4]
push edi
push eax
call fcn.006494f3
add esp, 0xc
push 0x6cb0c0
mov ecx, esi
call fcn.006154c0
test eax, eax
je 0x428c50
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x428c50
mov eax, dword [ecx]
call dword [eax + 0x2c]
test eax, eax
je 0x428c50
mov eax, dword [eax + 0x20]
add eax, 8
push eax
lea eax, [ebp - 0xbcc]
push edi
push eax
call fcn.006494f3
add esp, 0xc
push str.schema
mov ecx, esi
call fcn.006154c0
test eax, eax
je 0x428c87
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x428c87
mov eax, dword [ecx]
call dword [eax + 0x2c]
test eax, eax
je 0x428c87
mov eax, dword [eax + 0x20]
add eax, 8
push eax
lea eax, [ebp - 0x139c]
push edi
push eax
call fcn.006494f3
add esp, 0xc
lea eax, [ebp - 0xbcc]
push eax
lea eax, [ebp - 0xfb4]
push eax
push str._s:_s
lea eax, [ebp - 0x1b6c]
push edi
push eax
call fcn.00402e0a
add esp, 0x14
lea eax, [ebp - 0x139c]
push eax
lea eax, [ebp - 0x7e4]
push eax
push str._s__db:_s_
lea eax, [ebp - 0x1784]
push edi
push eax
call fcn.00402e0a
add esp, 0x14
lea eax, [ebp - 0x427c]
mov ecx, 0x6c5bb9
push 0xffffffffffffffff
push ecx
push eax
lea eax, [ebp - 0x1784]
push eax
lea eax, [ebp - 0x1b6c]
push eax
push ecx
push 0x259
push 6
mov ecx, ebx
call fcn.0043ee6b
mov ecx, esi
call fcn.00615810
mov esi, eax
test esi, esi
jne 0x428a42
lea ecx, [ebp - 0x42dc]
call fcn.00614d20
lea ecx, [ebp - 0x42dc]
call fcn.00408812
xor eax, eax
inc eax
jmp 0x428d32
lea ecx, [ebp - 0x42dc]
call fcn.00408812
xor eax, eax
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.006122f0
leave
ret 4