Function at 0x4134c0
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 [0x557008]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov edi, 0x80070057
cmp esi, 1
jg 0x413569
push dword [ebp + 0x10]
call dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
test eax, eax
je 0x413569
mov ebx, eax
call dword [sym.imp.ole32.dll_CoImpersonateClient]
test eax, eax
js 0x413567
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.004a8ae0
add esp, 4
mov ebx, eax
mov ecx, eax
push 0x413370
push 0x413360
call fcn.0046e510
mov dword [ebp - 0x24], ebx
lea ecx, [ebp - 0x20]
push ebx
call fcn.0046e660
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 0x41358d
cmp eax, 0x6bd
je 0x41357f
lea ecx, [ebp - 0x2c]
push 0
jmp 0x413593
mov edi, eax
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a927c
mov eax, edi
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret 0x14
lea eax, [ebp - 0x2c]
push eax
call fcn.00426df0
add esp, 4
jmp 0x413598
lea ecx, [ebp - 0x2c]
push dword [ebp - 0x38]
call fcn.00426cb0
lea edi, [ebp - 0x2c]
mov ecx, edi
call fcn.0046b330
test al, al
je 0x4135f0
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.00411ed0
add esp, 0xc
movzx eax, byte [ebp - 0x2d]
test al, al
js 0x4135cc
mov ecx, eax
and ecx, 0x7f
jmp 0x4135cf
mov ecx, dword [ebp - 0x34]
test ecx, ecx
jne 0x41369c
xor esi, esi
inc esi
mov edi, 0x8004a002
test al, al
jns 0x4135f8
push dword [ebp - 0x38]
call fcn.004a8b10
add esp, 4
jmp 0x4135f8
xor esi, esi
inc esi
mov edi, 0x8004a001
lea ecx, [ebp - 0x2c]
call fcn.00426d20
lea ecx, [ebp - 0x20]
call fcn.0046e680
test esi, esi
jne 0x413569
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], 0x53cc02
call dword [sym.imp.CRYPT32.dll_CryptProtectData]
mov esi, eax
test eax, eax
jne 0x413657
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov edi, 0x8004a006
test ebx, ebx
je 0x413662
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
test esi, esi
je 0x413569
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 0x413569
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x413569
xor eax, eax
lea edi, [ebp - 0x44]
mov dword [edi + 4], eax
mov dword [edi], eax
mov dword [edi + 8], eax
lea esi, [ebp - 0x50]
mov dword [esi], ecx
mov ebx, 4
mov ecx, edi
push ebx
push esi
call fcn.0046a4f0
movzx eax, byte [ebp - 0x2d]
mov edx, eax
and edx, 0x7f
test al, al
cmovs edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
lea ecx, [ebp - 0x38]
cmovns eax, ecx
mov ecx, edi
push edx
push eax
call fcn.0046a4f0
mov ecx, esi
push dword [ebp - 0x54]
push dword [ebp + 0x10]
call fcn.004d4190
movzx eax, byte [esi + 0xb]
test al, al
js 0x4136f7
and eax, 0x7f
jmp 0x4136fa
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x14]
mov dword [edx], eax
mov ecx, edi
push ebx
push edx
call fcn.0046a4f0
movzx eax, byte [ebp - 0x45]
test al, al
js 0x413718
and eax, 0x7f
lea edx, [ebp - 0x50]
jmp 0x41371e
mov eax, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x50]
mov ecx, edi
push eax
push edx
call fcn.0046a4f0
cmp byte [ebp - 0x45], 0
jns 0x413738
push dword [ebp - 0x50]
call fcn.004a8b10
add esp, 4
movzx eax, byte [ebp - 0x39]
mov ecx, eax
and ecx, 0x7f
test al, al
cmovs ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x50]
mov dword [eax], ecx
cmovs edi, dword [ebp - 0x44]
mov dword [eax + 4], edi
sub esp, 0x1c
lea ecx, [ebp - 0x1c]
mov dword [esp + 0x18], ecx
xorps xmm0, xmm0
movups xmmword [esp + 8], xmm0
mov dword [esp], eax
mov dword [esp + 4], 0x53cc02
call dword [sym.imp.CRYPT32.dll_CryptProtectData]
xor esi, esi
test eax, eax
jne 0x41378a
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 0x41379b
push dword [ebp - 0x44]
call fcn.004a8b10
add esp, 4
mov edi, 0x8004a005
mov al, byte [ebp - 0x2d]
jmp 0x4135df