Function at 0x516ec0
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x48
mov esi, dword [ebp + 0xc]
mov eax, dword [0x72a00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov edi, 0x80070057
cmp esi, 1
jg 0x516ffa
push dword [ebp + 0x10]
call dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
test eax, eax
je 0x516ffa
mov ebx, eax
call dword [sym.imp.ole32.dll_CoImpersonateClient]
test eax, eax
js 0x516f72
mov dword [ebp - 0x54], ebx
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
xor edi, edi
dec edi
lea eax, [ebp - 0x20]
mov dword [eax], edi
push 0x14
call fcn.0066d870
add esp, 4
mov ebx, eax
mov ecx, eax
push 0x516d90
push 0x516d80
call fcn.0063d5e0
mov dword [ebp - 0x24], ebx
lea ecx, [ebp - 0x20]
push ebx
call fcn.0063d710
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], edi
lea eax, [ebp - 0x38]
mov ebx, edi
mov dword [eax], edi
push eax
push 0x1000
xor eax, eax
push eax
call dword [sym.imp.RPCRT4.dll_I_RpcOpenClientProcess]
test eax, eax
je 0x516f79
cmp eax, 0x6bd
jne 0x516f81
lea eax, [ebp - 0x2c]
push eax
call fcn.0052bda0
add esp, 4
jmp 0x516f8b
mov edi, eax
jmp 0x516ffa
lea ecx, [ebp - 0x2c]
push dword [ebp - 0x38]
jmp 0x516f86
lea ecx, [ebp - 0x2c]
push 0
call fcn.0052bc60
lea edi, [ebp - 0x2c]
mov ecx, edi
call fcn.00634140
test al, al
je 0x516fde
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
push edi
push esi
lea eax, [ebp - 0x38]
push eax
call fcn.00515a90
add esp, 0xc
movzx eax, byte [ebp - 0x2d]
mov ecx, eax
test al, al
jns 0x516fbd
mov ecx, dword [ebp - 0x34]
test ecx, ecx
jne 0x517098
xor esi, esi
inc esi
mov edi, 0x8004a002
test al, al
jns 0x516fe6
push dword [ebp - 0x38]
call fcn.0066d8a0
add esp, 4
jmp 0x516fe6
xor esi, esi
inc esi
mov edi, 0x8004a001
lea ecx, [ebp - 0x2c]
call fcn.0052bcd0
lea ecx, [ebp - 0x20]
call fcn.0063d730
test esi, esi
je 0x517010
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0066e1f1
mov eax, edi
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret 0x14
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x1c]
mov ebx, dword [eax + 4]
sub esp, 0x1c
lea ecx, [ebp - 0x38]
mov dword [esp + 0x18], ecx
xorps xmm0, xmm0
movups xmmword [esp + 8], xmm0
mov dword [esp], eax
mov dword [esp + 4], 0x704564
call dword [sym.imp.CRYPT32.dll_CryptProtectData]
mov esi, eax
test eax, eax
jne 0x517057
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov edi, 0x8004a006
test ebx, ebx
je 0x517062
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
test esi, esi
je 0x516ffa
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp - 0x34]
push dword [ebp - 0x38]
push esi
call dword [sym.imp.OLEAUT32.dll_DllRegisterServer]
mov dword [edi], eax
xor ecx, ecx
test eax, eax
mov edi, 0x8007000e
cmovne edi, ecx
test esi, esi
je 0x516ffa
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x516ffa
xor eax, eax
lea edi, [ebp - 0x44]
mov dword [edi + 4], eax
mov dword [edi], eax
mov dword [edi + 8], eax
lea ebx, [ebp - 0x50]
mov dword [ebx], ecx
mov esi, 4
mov ecx, edi
push esi
push ebx
call fcn.00631040
movzx eax, byte [ebp - 0x2d]
test al, al
cmovs eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x38]
lea ecx, [ebp - 0x38]
cmovns edx, ecx
mov ecx, edi
push eax
push edx
call fcn.00631040
mov ecx, ebx
push dword [ebp - 0x54]
push dword [ebp + 0x10]
call fcn.0069b640
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x5170ec
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x14]
mov dword [edx], eax
mov ecx, edi
push esi
push edx
call fcn.00631040
movzx eax, byte [ebp - 0x45]
test al, al
jns 0x517108
mov eax, dword [ebp - 0x4c]
mov ebx, dword [ebp - 0x50]
mov ecx, edi
push eax
push ebx
call fcn.00631040
cmp byte [ebp - 0x45], 0
jns 0x517122
push dword [ebp - 0x50]
call fcn.0066d8a0
add esp, 4
movzx eax, byte [ebp - 0x39]
test al, al
cmovs eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x50]
mov dword [ecx], eax
cmovs edi, dword [ebp - 0x44]
mov dword [ecx + 4], edi
sub esp, 0x1c
lea eax, [ebp - 0x1c]
mov dword [esp + 0x18], eax
xorps xmm0, xmm0
movups xmmword [esp + 8], xmm0
mov dword [esp], ecx
mov dword [esp + 4], 0x704564
call dword [sym.imp.CRYPT32.dll_CryptProtectData]
xor esi, esi
test eax, eax
jne 0x51716f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
xor esi, esi
inc esi
cmp byte [ebp - 0x39], 0
jns 0x517180
push dword [ebp - 0x44]
call fcn.0066d8a0
add esp, 4
mov edi, 0x8004a005
mov al, byte [ebp - 0x2d]
jmp 0x516fcd