Function at 0x413510
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 [0x53d010]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
call dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
test eax, eax
je 0x413636
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 0x413618
mov edi, dword [ebp - 0x1c]
call dword [sym.imp.ole32.dll_CoImpersonateClient]
test eax, eax
js 0x413627
mov dword [ebp - 0x6c], 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.0049a900
add esp, 4
mov edi, eax
mov ecx, eax
push 0x4130d0
push 0x4130c0
call fcn.00462b80
mov dword [ebp - 0x3c], edi
lea ecx, [ebp - 0x38]
push edi
call fcn.00462ca0
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
jne 0x413651
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
lea ecx, [ebp - 0x38]
call fcn.00462cc0
mov esi, 0x8004a003
mov edi, dword [ebp - 0x6c]
cmp byte [ebp - 0x21], 0
jns 0x413629
push dword [ebp - 0x2c]
call fcn.0049a930
add esp, 4
jmp 0x413629
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
mov esi, 0x8004a004
jmp 0x41363b
mov esi, eax
test edi, edi
je 0x41363b
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x41363b
mov esi, 0x80070057
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049b483
mov eax, esi
add esp, 0x64
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x30]
xor ebx, ebx
dec ebx
lea esi, [ebp - 0x48]
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov ecx, esi
push eax
mov dword [ebp - 0x70], edx
push edx
call fcn.004c4680
lea edi, [ebp - 0x54]
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
push esi
push edi
call fcn.004137e0
add esp, 8
movzx eax, byte [edi + 0xb]
test al, al
js 0x413695
mov ecx, eax
and ecx, 0x7f
jmp 0x413698
mov ecx, dword [ebp - 0x50]
test ecx, ecx
je 0x4136d5
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x5c], ebx
lea eax, [ebp - 0x68]
mov dword [eax], ebx
push eax
push 0x1000
push 0
call dword [sym.imp.RPCRT4.dll_I_RpcOpenClientProcess]
test eax, eax
je 0x4136e1
cmp eax, 0x6bd
jne 0x4136ce
lea eax, [ebp - 0x5c]
push eax
call fcn.00420950
add esp, 4
jmp 0x4136ec
lea ecx, [ebp - 0x5c]
push 0
jmp 0x4136e7
mov esi, 0x80070057
xor ebx, ebx
mov edi, dword [ebp - 0x6c]
jmp 0x413760
lea ecx, [ebp - 0x5c]
push dword [ebp - 0x68]
call fcn.00420810
lea ecx, [ebp - 0x5c]
mov ebx, ecx
call fcn.0045dec0
test al, al
je 0x413740
push edi
push ebx
call fcn.00411ce0
add esp, 8
test al, al
jne 0x41371a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov esi, 0x8004a007
jmp 0x413750
push esi
lea eax, [ebp - 0x68]
push eax
call fcn.004137e0
add esp, 8
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x24], eax
movsd xmm0, qword [ebp - 0x68]
movsd qword [ebp - 0x2c], xmm0
mov esi, 0x8004a007
mov bl, 1
jmp 0x413752
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov esi, 0x8004a001
xor ebx, ebx
mov edi, dword [ebp - 0x6c]
lea ecx, [ebp - 0x5c]
call fcn.00420880
mov al, byte [ebp - 0x49]
test al, al
jns 0x41376f
push dword [ebp - 0x54]
call fcn.0049a930
add esp, 4
cmp byte [ebp - 0x3d], 0
jns 0x413780
push dword [ebp - 0x48]
call fcn.0049a930
add esp, 4
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x41378e
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [ebp - 0x38]
call fcn.00462cc0
test bl, bl
je 0x413605
lea eax, [ebp - 0x2c]
movzx ecx, byte [eax + 0xb]
mov edx, ecx
and edx, 0x7f
test cl, cl
cmovs edx, dword [eax + 4]
mov esi, dword [ebp + 0x10]
cmovs eax, dword [eax]
push edx
push eax
call dword [sym.imp.OLEAUT32.dll_DllRegisterServer]
mov dword [esi], eax
xor ecx, ecx
test eax, eax
mov esi, 0x8007000e
cmovne esi, ecx
jmp 0x413605