Function at 0x413520
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x50
mov esi, esp
mov eax, dword [0x550014]
xor eax, ebp
mov dword [esi + 0x48], eax
mov ebx, 0x80070057
cmp dword [ebp + 0xc], 1
jg 0x41366b
push dword [ebp + 0x10]
call dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
test eax, eax
je 0x41366b
mov edi, eax
call dword [sym.imp.ole32.dll_CoImpersonateClient]
test eax, eax
js 0x4135dc
mov dword [esi + 4], edi
mov dword [esi], esp
xor eax, eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x3c], eax
xor ebx, ebx
dec ebx
lea eax, [esi + 0x38]
mov dword [eax], ebx
push eax
mov dword [esi + 8], esp
push 0x14
call fcn.0049a541
add esp, 4
mov edi, eax
mov ecx, eax
push 0x413300
push 0x4132f0
call fcn.00464fe0
mov eax, dword [esi + 8]
mov dword [eax], edi
lea ecx, [esi + 0x38]
call fcn.00464f60
mov esp, dword [esi]
mov dword [esi + 0x34], ebx
mov dword [esi + 0x30], ebx
lea edi, [esi + 0x24]
mov dword [edi], ebx
push edi
push 0x1000
xor eax, eax
push eax
call dword [sym.imp.RPCRT4.dll_I_RpcOpenClientProcess]
test eax, eax
je 0x4135e3
cmp eax, 0x6bd
jne 0x4135eb
lea eax, [esi + 0x30]
push eax
call fcn.004287b0
add esp, 4
jmp 0x4135f5
mov ebx, eax
jmp 0x41366b
lea ecx, [esi + 0x30]
push dword [esi + 0x24]
jmp 0x4135f0
lea ecx, [esi + 0x30]
push 0
call fcn.00467d30
lea ebx, [esi + 0x30]
mov ecx, ebx
call fcn.00467e80
test al, al
je 0x413629
xor eax, eax
dec eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
push ebx
push dword [ebp + 0xc]
push edi
call fcn.00411ff0
add esp, 0xc
movzx eax, byte [esi + 0x2f]
test al, al
jns 0x413633
mov ecx, dword [esi + 0x28]
jmp 0x413638
xor edi, edi
inc edi
mov ebx, 0x8004a001
jmp 0x413657
mov ecx, eax
and ecx, 0x7f
test ecx, ecx
jne 0x41370d
xor edi, edi
inc edi
mov ebx, 0x8004a002
test al, al
jns 0x413657
push dword [esi + 0x24]
call fcn.0049a571
add esp, 4
lea ecx, [esi + 0x30]
call fcn.00467da0
lea ecx, [esi + 0x38]
call fcn.00464f80
test edi, edi
je 0x413681
mov ecx, dword [esi + 0x48]
xor ecx, ebp
call fcn.0049b033
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x14
xor eax, eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x24], eax
lea eax, [esi + 0x3c]
mov ecx, dword [eax + 4]
mov dword [esi], ecx
sub esp, 0x1c
lea ecx, [esi + 0x24]
mov dword [esp + 0x18], ecx
xorps xmm0, xmm0
movups xmmword [esp + 8], xmm0
mov dword [esp], eax
mov dword [esp + 4], 0x536a3a
call dword [sym.imp.CRYPT32.dll_CryptProtectData]
mov edi, eax
test eax, eax
jne 0x4136ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov ebx, 0x8004a006
mov eax, dword [esi]
test eax, eax
je 0x4136d7
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
test edi, edi
je 0x41366b
mov ebx, dword [ebp + 0x14]
mov edi, dword [esi + 0x28]
push dword [esi + 0x24]
push edi
call dword [sym.imp.OLEAUT32.dll_DllRegisterServer]
mov dword [ebx], eax
xor ecx, ecx
test eax, eax
mov ebx, 0x8007000e
cmovne ebx, ecx
test edi, edi
je 0x41366b
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x41366b
xor eax, eax
lea ebx, [esi + 0x18]
mov dword [ebx + 4], eax
mov dword [ebx], eax
mov dword [ebx + 8], eax
lea edi, [esi + 0xc]
mov dword [edi], ecx
mov eax, 4
mov ecx, ebx
push eax
push edi
call fcn.0041ffa0
movzx eax, byte [esi + 0x2f]
mov edx, eax
and edx, 0x7f
test al, al
cmovs edx, dword [esi + 0x28]
mov eax, dword [esi + 0x24]
lea ecx, [esi + 0x24]
cmovns eax, ecx
mov ecx, ebx
push edx
push eax
call fcn.0041ffa0
mov ecx, edi
push dword [esi + 4]
push dword [ebp + 0x10]
call fcn.004c4ce0
movzx eax, byte [edi + 0xb]
test al, al
jns 0x413768
mov eax, dword [esi + 0x10]
jmp 0x41376b
and eax, 0x7f
mov edi, 4
lea edx, [esi + 0x44]
mov dword [edx], eax
mov ecx, ebx
push edi
push edx
call fcn.0041ffa0
movzx eax, byte [esi + 0x17]
test al, al
jns 0x41378e
mov eax, dword [esi + 0x10]
mov edx, dword [esi + 0xc]
jmp 0x413794
and eax, 0x7f
lea edx, [esi + 0xc]
mov ecx, ebx
push eax
push edx
call fcn.0041ffa0
cmp byte [esi + 0x17], 0
jns 0x4137ae
push dword [esi + 0xc]
call fcn.0049a571
add esp, 4
movzx eax, byte [esi + 0x23]
mov ecx, eax
and ecx, 0x7f
test al, al
cmovs ecx, dword [esi + 0x1c]
lea eax, [esi + 0xc]
mov dword [eax], ecx
cmovs ebx, dword [esi + 0x18]
mov dword [eax + 4], ebx
sub esp, 0x1c
lea ecx, [esi + 0x3c]
mov dword [esp + 0x18], ecx
xorps xmm0, xmm0
movups xmmword [esp + 8], xmm0
mov dword [esp], eax
mov dword [esp + 4], 0x536a3a
call dword [sym.imp.CRYPT32.dll_CryptProtectData]
xor edi, edi
test eax, eax
jne 0x413800
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
xor edi, edi
inc edi
cmp byte [esi + 0x23], 0
jns 0x413811
push dword [esi + 0x18]
call fcn.0049a571
add esp, 4
mov ebx, 0x8004a005
mov al, byte [esi + 0x2f]
jmp 0x413648