Function at 0x413820
Capabilities:
Encrypt data using dpapi
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x80
mov esi, esp
mov edi, dword [ebp + 0xc]
mov eax, dword [0x550014]
xor eax, ebp
mov dword [esi + 0x78], eax
push edi
call dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
test eax, eax
je 0x41393c
mov ebx, dword [ebp + 0x14]
lea ecx, [esi + 0x64]
mov dword [ecx], eax
mov dword [ecx + 4], edi
xor eax, eax
lea edx, [esi + 0x5c]
mov dword [edx + 4], eax
mov dword [edx], eax
sub esp, 0x1c
mov dword [esp + 0x18], edx
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 0x413943
mov ebx, dword [esi + 0x60]
call dword [sym.imp.ole32.dll_CoImpersonateClient]
test eax, eax
js 0x413952
mov dword [esi + 0xc], ebx
mov dword [esi], esp
xor edi, edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x58], edi
lea eax, [esi + 0x48]
mov dword [eax + 4], edi
mov dword [eax], edi
lea eax, [esi + 0x44]
mov dword [eax], 0xffffffff
push eax
mov dword [esi + 4], esp
push 0x14
call fcn.0049a541
add esp, 4
mov ebx, eax
mov ecx, eax
push 0x413300
push 0x4132f0
call fcn.00464fe0
mov eax, dword [esi + 4]
mov dword [eax], ebx
lea ecx, [esi + 0x44]
call fcn.00464f60
mov esp, dword [esi]
sub esp, 0x1c
lea eax, [esi + 0x48]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edi
xorps xmm0, xmm0
movups xmmword [esp + 4], xmm0
lea eax, [esi + 0x5c]
mov dword [esp], eax
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
jne 0x413975
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
lea ecx, [esi + 0x44]
call fcn.00464f80
mov edi, 0x8004a003
cmp byte [esi + 0x5b], 0
mov ebx, dword [esi + 0xc]
jns 0x413954
push dword [esi + 0x50]
call fcn.0049a571
add esp, 4
jmp 0x413954
mov edi, 0x80070057
jmp 0x41395f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], eax
mov edi, 0x8004a004
jmp 0x41395f
mov edi, eax
test ebx, ebx
je 0x41395f
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [esi + 0x78]
xor ecx, ebp
call fcn.0049b033
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
mov eax, dword [esi + 0x48]
mov edx, dword [esi + 0x4c]
xor ebx, ebx
dec ebx
lea edi, [esi + 0x38]
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov ecx, edi
push eax
mov dword [esi], edx
push edx
call fcn.004c4ce0
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
movzx eax, byte [edi + 0xb]
test al, al
jns 0x4139aa
mov ecx, dword [esi + 0x3c]
jmp 0x4139af
mov ecx, eax
and ecx, 0x7c
cmp ecx, 3
ja 0x413a41
xor eax, eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x30], eax
mov edi, 0x80070057
xor ebx, ebx
inc ebx
cmp byte [esi + 0x33], 0
mov eax, dword [esi]
jns 0x4139e0
push dword [esi + 0x28]
call fcn.0049a571
mov eax, dword [esi]
add esp, 4
cmp byte [esi + 0x43], 0
jns 0x4139f3
push dword [esi + 0x38]
call fcn.0049a571
mov eax, dword [esi]
add esp, 4
test eax, eax
je 0x4139fe
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [esi + 0x44]
call fcn.00464f80
test ebx, ebx
jne 0x413926
lea eax, [esi + 0x50]
movzx ecx, byte [eax + 0xb]
mov edx, ecx
and edx, 0x7f
test cl, cl
cmovs edx, dword [eax + 4]
mov edi, dword [ebp + 0x10]
cmovs eax, dword [eax]
push edx
push eax
call dword [sym.imp.OLEAUT32.dll_DllRegisterServer]
mov dword [edi], eax
xor ecx, ecx
test eax, eax
mov edi, 0x8007000e
cmovne edi, ecx
jmp 0x413926
lea ecx, [esi + 0x3c]
test al, al
mov edx, dword [ecx - 4]
mov ecx, edi
mov dword [esi + 8], edx
cmovs ecx, edx
mov edx, dword [ecx]
xor ecx, ecx
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x28], ecx
mov dword [esi + 0x30], ecx
mov ecx, edx
mov dword [esi + 4], edx
test edx, edx
je 0x413a84
mov edx, dword [esi + 8]
add edx, 4
test al, al
lea eax, [esi + 0x3c]
cmovns edx, eax
mov eax, dword [esi + 4]
add eax, edx
lea ecx, [esi + 0x28]
push eax
push edx
call fcn.004c4d90
mov eax, dword [esi + 4]
add eax, 4
lea edx, [esi + 0x44]
lea ecx, [esi + 0x6c]
push edx
push 0xffffffffffffffff
push eax
push edi
call fcn.00420110
lea eax, [esi + 0x44]
cmp byte [eax - 1], 0
jns 0x413aae
push dword [esi + 0x38]
call fcn.0049a571
add esp, 4
mov eax, dword [esi + 0x74]
mov dword [esi + 0x40], eax
movsd xmm0, qword [esi + 0x6c]
movsd qword [esi + 0x38], xmm0
mov al, byte [esi + 0x33]
test al, al
jns 0x413aca
mov eax, dword [esi + 0x2c]
jmp 0x413acf
and al, 0x7f
movzx eax, al
test eax, eax
je 0x4139c3
mov dword [esi + 0x24], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x6c], ebx
lea eax, [esi + 0x6c]
push eax
push 0x1000
push 0
call dword [sym.imp.RPCRT4.dll_I_RpcOpenClientProcess]
test eax, eax
je 0x413b0d
cmp eax, 0x6bd
mov ebx, dword [ebp + 0x14]
jne 0x413b1d
lea eax, [esi + 0x20]
push eax
call fcn.004287b0
add esp, 4
jmp 0x413b27
lea ecx, [esi + 0x20]
push dword [esi + 0x6c]
call fcn.00467d30
mov ebx, dword [ebp + 0x14]
jmp 0x413b27
lea ecx, [esi + 0x20]
push 0
call fcn.00467d30
lea ecx, [esi + 0x20]
call fcn.00467e80
test al, al
je 0x413b54
lea eax, [esi + 0x28]
push eax
lea eax, [esi + 0x20]
push eax
call fcn.004120f0
add esp, 8
test al, al
je 0x413b63
movzx eax, byte [esi + 0x43]
test al, al
jns 0x413b75
mov ecx, dword [esi + 0x3c]
jmp 0x413b7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], eax
mov edi, 0x8004a001
jmp 0x413b70
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], eax
mov edi, 0x8004a007
xor ebx, ebx
inc ebx
jmp 0x413bb2
mov ecx, eax
and ecx, 0x7c
cmp ecx, 3
ja 0x413bbf
xor eax, eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x18], eax
cmp byte [esi + 0x5b], 0
jns 0x413b9b
push dword [esi + 0x50]
call fcn.0049a571
add esp, 4
mov eax, dword [esi + 0x18]
mov dword [esi + 0x58], eax
movsd xmm0, qword [esi + 0x10]
movsd qword [esi + 0x50], xmm0
mov edi, 0x8004a007
xor ebx, ebx
lea ecx, [esi + 0x20]
call fcn.00467da0
jmp 0x4139cb
test al, al
mov ecx, dword [esi + 0x38]
mov edx, edi
cmovs edx, ecx
mov ebx, dword [edx]
xor edx, edx
mov dword [esi + 0x14], edx
mov dword [esi + 0x10], edx
mov dword [esi + 0x18], edx
test ebx, ebx
je 0x413bf2
add ecx, 4
test al, al
lea edx, [esi + 0x3c]
cmovs edx, ecx
lea eax, [edx + ebx]
lea ecx, [esi + 0x10]
push eax
push edx
call fcn.004c4d90
add ebx, 4
lea ecx, [esi + 0x6c]
lea eax, [esi + 0x44]
push eax
push 0xffffffffffffffff
push ebx
push edi
call fcn.00420110
cmp byte [esi + 0x43], 0
jns 0x413c16
push dword [esi + 0x38]
call fcn.0049a571
add esp, 4
mov eax, dword [esi + 0x74]
mov dword [esi + 0x40], eax
movsd xmm0, qword [esi + 0x6c]
movsd qword [esi + 0x38], xmm0
jmp 0x413b8a