Function at 0x517190
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x74
mov esi, dword [ebp + 0xc]
mov eax, dword [0x72a00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
call dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
test eax, eax
je 0x517298
mov edi, dword [ebp + 0x14]
lea ecx, [ebp - 0x28]
mov dword [ecx], eax
mov dword [ecx + 4], esi
xor eax, eax
lea ebx, [ebp - 0x30]
mov dword [ebx + 4], eax
mov dword [ebx], eax
sub esp, 0x1c
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], eax
xorps xmm0, xmm0
movups xmmword [esp + 4], xmm0
mov dword [esp], ecx
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x51729f
mov edi, dword [ebp - 0x2c]
call dword [sym.imp.ole32.dll_CoImpersonateClient]
test eax, eax
js 0x5172ae
mov dword [ebp - 0x80], edi
xor esi, esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x34], esi
lea eax, [ebp - 0x44]
mov dword [eax + 4], esi
mov dword [eax], esi
lea eax, [ebp - 0x48]
mov dword [eax], 0xffffffff
push 0x14
call fcn.0066d870
add esp, 4
mov edi, eax
mov ecx, eax
push 0x516d90
push 0x516d80
call fcn.0063d5e0
mov dword [ebp - 0x4c], edi
lea ecx, [ebp - 0x48]
push edi
call fcn.0063d710
sub esp, 0x1c
lea eax, [ebp - 0x44]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], esi
xorps xmm0, xmm0
movups xmmword [esp + 4], xmm0
mov dword [esp], ebx
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
jne 0x5172d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
lea ecx, [ebp - 0x48]
call fcn.0063d730
mov esi, 0x8004a003
cmp byte [ebp - 0x31], 0
mov edi, dword [ebp - 0x80]
jns 0x5172b0
push dword [ebp - 0x3c]
call fcn.0066d8a0
add esp, 4
jmp 0x5172b0
mov esi, 0x80070057
jmp 0x5172bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
mov esi, 0x8004a004
jmp 0x5172bb
mov esi, eax
test edi, edi
je 0x5172bb
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0066e1f1
mov eax, esi
add esp, 0x74
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
mov eax, dword [ebp - 0x44]
mov ebx, dword [ebp - 0x40]
xor edi, edi
dec edi
lea esi, [ebp - 0x58]
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov ecx, esi
push eax
push ebx
call fcn.0069b640
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x5c], edi
movzx eax, byte [esi + 0xb]
test al, al
jns 0x517304
mov ecx, dword [ebp - 0x54]
jmp 0x517309
mov ecx, eax
and ecx, 0x7c
cmp ecx, 3
ja 0x51738c
xor eax, eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x5c], eax
mov esi, 0x80070057
xor edi, edi
inc edi
cmp byte [ebp - 0x59], 0
jns 0x517332
push dword [ebp - 0x64]
call fcn.0066d8a0
add esp, 4
cmp byte [ebp - 0x4d], 0
jns 0x517343
push dword [ebp - 0x58]
call fcn.0066d8a0
add esp, 4
test ebx, ebx
je 0x51734e
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [ebp - 0x48]
call fcn.0063d730
test edi, edi
jne 0x517282
lea ecx, [ebp - 0x3c]
movzx eax, byte [ecx + 0xb]
test al, al
cmovs eax, dword [ecx + 4]
mov esi, dword [ebp + 0x10]
cmovs ecx, dword [ecx]
push eax
push ecx
call dword [sym.imp.OLEAUT32.dll_DllRegisterServer]
mov dword [esi], eax
xor ecx, ecx
test eax, eax
mov esi, 0x8007000e
cmovne esi, ecx
jmp 0x517282
mov dword [ebp - 0x7c], ebx
lea ecx, [ebp - 0x54]
test al, al
mov edx, dword [ecx - 4]
mov ecx, esi
cmovs ecx, edx
mov ebx, dword [ecx]
xor ecx, ecx
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x5c], ecx
test ebx, ebx
je 0x5173c5
add edx, 4
test al, al
lea eax, [ebp - 0x54]
cmovns edx, eax
lea eax, [edx + ebx]
lea ecx, [ebp - 0x64]
push eax
push edx
call fcn.0069b6f0
add ebx, 4
lea eax, [ebp - 0x78]
lea ecx, [ebp - 0x20]
push eax
push 0xffffffffffffffff
push ebx
push esi
call fcn.00525fc0
cmp byte [ebp - 0x4d], 0
jns 0x5173e9
push dword [ebp - 0x58]
call fcn.0066d8a0
add esp, 4
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x50], eax
movsd xmm0, qword [ebp - 0x20]
movsd qword [ebp - 0x58], xmm0
mov al, byte [ebp - 0x59]
test al, al
mov ebx, dword [ebp - 0x7c]
jns 0x517408
mov eax, dword [ebp - 0x60]
jmp 0x51740b
movzx eax, al
test eax, eax
je 0x517319
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x20], edi
lea eax, [ebp - 0x20]
push eax
push 0x1000
push 0
call dword [sym.imp.RPCRT4.dll_I_RpcOpenClientProcess]
test eax, eax
je 0x517449
cmp eax, 0x6bd
mov edi, dword [ebp + 0x14]
jne 0x517459
lea eax, [ebp - 0x6c]
push eax
call fcn.0052bda0
add esp, 4
jmp 0x517463
lea ecx, [ebp - 0x6c]
push dword [ebp - 0x20]
call fcn.0052bc60
mov edi, dword [ebp + 0x14]
jmp 0x517463
lea ecx, [ebp - 0x6c]
push 0
call fcn.0052bc60
lea ecx, [ebp - 0x6c]
call fcn.00634140
test al, al
je 0x517490
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.00515b70
add esp, 8
test al, al
je 0x51749f
movzx eax, byte [ebp - 0x4d]
test al, al
jns 0x5174b1
mov ecx, dword [ebp - 0x54]
jmp 0x5174b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
mov esi, 0x8004a001
jmp 0x5174ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
mov esi, 0x8004a007
xor edi, edi
inc edi
jmp 0x5174ee
mov ecx, eax
and ecx, 0x7c
cmp ecx, 3
ja 0x5174fb
xor eax, eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x70], eax
cmp byte [ebp - 0x31], 0
jns 0x5174d7
push dword [ebp - 0x3c]
call fcn.0066d8a0
add esp, 4
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x34], eax
movsd xmm0, qword [ebp - 0x78]
movsd qword [ebp - 0x3c], xmm0
mov esi, 0x8004a007
xor edi, edi
lea ecx, [ebp - 0x6c]
call fcn.0052bcd0
jmp 0x517321
test al, al
mov ecx, dword [ebp - 0x58]
mov edx, esi
cmovs edx, ecx
mov edi, dword [edx]
xor edx, edx
mov dword [ebp - 0x74], edx
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x70], edx
test edi, edi
je 0x51752e
add ecx, 4
test al, al
lea edx, [ebp - 0x54]
cmovs edx, ecx
lea eax, [edx + edi]
lea ecx, [ebp - 0x78]
push eax
push edx
call fcn.0069b6f0
add edi, 4
lea eax, [ebp - 0x11]
lea ecx, [ebp - 0x20]
push eax
push 0xffffffffffffffff
push edi
push esi
call fcn.00525fc0
cmp byte [ebp - 0x4d], 0
jns 0x517552
push dword [ebp - 0x58]
call fcn.0066d8a0
add esp, 4
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x50], eax
movsd xmm0, qword [ebp - 0x20]
movsd qword [ebp - 0x58], xmm0
mov ebx, dword [ebp - 0x7c]
jmp 0x5174c6