Function at 0x4156b0
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 [0x53c014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
call dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
test eax, eax
je 0x415844
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 0x41584e
mov edi, dword [ebp - 0x1c]
call dword [sym.imp.ole32.dll_CoImpersonateClient]
test eax, eax
js 0x415860
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x68], esp
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 eax
mov dword [ebp - 0x6c], esp
push 0x14
call fcn.004e8c26
add esp, 4
mov edi, eax
mov ecx, eax
push 0x4144e0
push 0x4144d0
call fcn.00442a90
mov eax, dword [ebp - 0x6c]
mov dword [eax], edi
lea ecx, [ebp - 0x38]
call fcn.004429e0
mov esp, dword [ebp - 0x68]
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 0x415867
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x30]
xor esi, esi
dec esi
lea edi, [ebp - 0x44]
mov dword [edi], esi
mov dword [edi + 4], esi
mov dword [edi + 8], esi
mov ecx, edi
push eax
mov dword [ebp - 0x68], edx
push edx
call fcn.004155f4
lea ebx, [ebp - 0x50]
mov dword [ebx], esi
mov dword [ebx + 4], esi
mov dword [ebx + 8], esi
push edi
push ebx
call fcn.0041595c
add esp, 8
movzx eax, byte [ebx + 0xb]
mov ecx, eax
test al, al
jns 0x4157db
mov ecx, dword [ebp - 0x4c]
test ecx, ecx
je 0x415884
lea edi, [ebp - 0x58]
mov dword [edi + 4], esi
mov dword [edi], esi
mov ecx, edi
call fcn.00415538
mov ecx, edi
call fcn.0044b290
test al, al
je 0x415891
push ebx
push edi
call fcn.00412fbe
add esp, 8
test al, al
jne 0x415821
push ebx
push edi
call fcn.004133cd
add esp, 8
test al, al
je 0x4158a6
lea esi, [ebp - 0x64]
lea eax, [ebp - 0x44]
push eax
push esi
call fcn.0041595c
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 0x4158b4
mov esi, 0x80070057
jmp 0x415946
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
mov esi, 0x8004a004
jmp 0x415946
mov esi, eax
jmp 0x41593b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
lea ecx, [ebp - 0x38]
call fcn.00442a10
mov esi, 0x8004a003
jmp 0x415927
xor edi, edi
inc edi
mov esi, 0x80070057
mov ebx, dword [ebp - 0x68]
jmp 0x4158c7
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 0x4158b9
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 - 0x68]
lea ecx, [ebp - 0x58]
call fcn.00414500
mov al, byte [ebp - 0x45]
test al, al
jns 0x4158d6
push dword [ebp - 0x50]
call fcn.004e8c56
add esp, 4
cmp byte [ebp - 0x39], 0
jns 0x4158e7
push dword [ebp - 0x44]
call fcn.004e8c56
add esp, 4
test ebx, ebx
je 0x4158f2
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [ebp - 0x38]
call fcn.00442a10
test edi, edi
jne 0x415927
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 0x41593b
push dword [ebp - 0x2c]
call fcn.004e8c56
add esp, 4
test edi, edi
je 0x415946
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e96e3
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x10