Function at 0x42f4e0
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x64
mov esi, dword [ebp + 0xc]
mov eax, dword [0x575010]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
call dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
test eax, eax
je 0x42f669
mov edi, dword [ebp + 0x14]
lea ecx, [ebp - 0x18]
mov dword [ecx], eax
mov dword [ecx + 4], esi
xor eax, eax
lea ebx, [ebp - 0x20]
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 0x42f673
mov edi, dword [ebp - 0x1c]
call dword [sym.imp.ole32.dll_CoImpersonateClient]
test eax, eax
js 0x42f685
mov dword [ebp - 0x70], edi
xor esi, esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x24], esi
lea eax, [ebp - 0x34]
mov dword [eax + 4], esi
mov dword [eax], esi
lea eax, [ebp - 0x38]
mov dword [eax], 0xffffffff
push 0x14
call fcn.00507d96
add esp, 4
mov edi, eax
mov ecx, eax
push 0x42e230
push 0x42e220
call fcn.00487990
mov dword [ebp - 0x3c], edi
lea ecx, [ebp - 0x38]
push edi
call fcn.00487a70
sub esp, 0x1c
lea eax, [ebp - 0x34]
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
je 0x42f68c
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x30]
xor esi, esi
dec esi
lea edi, [ebp - 0x48]
mov dword [edi], esi
mov dword [edi + 4], esi
mov dword [edi + 8], esi
mov ecx, edi
push eax
mov dword [ebp - 0x6c], edx
push edx
call fcn.0042f42c
lea ebx, [ebp - 0x54]
mov dword [ebx], esi
mov dword [ebx + 4], esi
mov dword [ebx + 8], esi
push edi
push ebx
call fcn.0042f782
add esp, 8
movzx eax, byte [ebx + 0xb]
mov ecx, eax
test al, al
jns 0x42f600
mov ecx, dword [ebp - 0x50]
test ecx, ecx
je 0x42f6a9
lea edi, [ebp - 0x5c]
mov dword [edi + 4], esi
mov dword [edi], esi
mov ecx, edi
call fcn.0042f370
mov ecx, edi
call fcn.004725f0
test al, al
je 0x42f6b6
push ebx
push edi
call fcn.0042cc3a
add esp, 8
test al, al
jne 0x42f646
push ebx
push edi
call fcn.0042d0cd
add esp, 8
test al, al
je 0x42f6cb
lea esi, [ebp - 0x68]
lea eax, [ebp - 0x48]
push eax
push esi
call fcn.0042f782
add esp, 8
mov eax, dword [esi + 8]
mov dword [ebp - 0x24], eax
movsd xmm0, qword [esi]
movsd qword [ebp - 0x2c], xmm0
xor edi, edi
jmp 0x42f6d9
mov esi, 0x80070057
jmp 0x42f76b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
mov esi, 0x8004a004
jmp 0x42f76b
mov esi, eax
jmp 0x42f760
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
lea ecx, [ebp - 0x38]
call fcn.00487aa0
mov esi, 0x8004a003
jmp 0x42f74c
xor edi, edi
inc edi
mov esi, 0x80070057
mov ebx, dword [ebp - 0x6c]
jmp 0x42f6ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
xor edi, edi
inc edi
mov esi, 0x8004a001
jmp 0x42f6de
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
xor edi, edi
inc edi
mov esi, 0x8004a007
mov ebx, dword [ebp - 0x6c]
lea ecx, [ebp - 0x5c]
call fcn.0042e250
mov al, byte [ebp - 0x49]
test al, al
jns 0x42f6fb
push dword [ebp - 0x54]
call fcn.00507dc6
add esp, 4
cmp byte [ebp - 0x3d], 0
jns 0x42f70c
push dword [ebp - 0x48]
call fcn.00507dc6
add esp, 4
test ebx, ebx
je 0x42f717
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [ebp - 0x38]
call fcn.00487aa0
test edi, edi
jne 0x42f74c
lea ecx, [ebp - 0x2c]
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
cmp byte [ebp - 0x21], 0
mov edi, dword [ebp - 0x70]
jns 0x42f760
push dword [ebp - 0x2c]
call fcn.00507dc6
add esp, 4
test edi, edi
je 0x42f76b
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00508d63
mov eax, esi
add esp, 0x64
pop esi
pop edi
pop ebx
pop ebp
ret 0x10