Function at 0x4137b0
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x74
mov esi, dword [ebp + 0xc]
mov eax, dword [0x557008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
call dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
test eax, eax
je 0x4138d6
mov edi, dword [ebp + 0x14]
lea ecx, [ebp - 0x28]
mov dword [ecx], eax
mov dword [ecx + 4], esi
xor eax, eax
lea ebx, [ebp - 0x30]
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 0x4138b8
mov edi, dword [ebp - 0x2c]
call dword [sym.imp.ole32.dll_CoImpersonateClient]
test eax, eax
js 0x4138c7
mov dword [ebp - 0x80], edi
xor esi, esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x34], esi
lea eax, [ebp - 0x44]
mov dword [eax + 4], esi
mov dword [eax], esi
lea eax, [ebp - 0x48]
mov dword [eax], 0xffffffff
push 0x14
call fcn.004a8ae0
add esp, 4
mov edi, eax
mov ecx, eax
push 0x413370
push 0x413360
call fcn.0046e510
mov dword [ebp - 0x4c], edi
lea ecx, [ebp - 0x48]
push edi
call fcn.0046e660
sub esp, 0x1c
lea eax, [ebp - 0x44]
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 0x4138f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
lea ecx, [ebp - 0x48]
call fcn.0046e680
mov esi, 0x8004a003
cmp byte [ebp - 0x31], 0
mov edi, dword [ebp - 0x80]
jns 0x4138c9
push dword [ebp - 0x3c]
call fcn.004a8b10
add esp, 4
jmp 0x4138c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
mov esi, 0x8004a004
jmp 0x4138db
mov esi, eax
test edi, edi
je 0x4138db
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x4138db
mov esi, 0x80070057
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a927c
mov eax, esi
add esp, 0x74
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
mov eax, dword [ebp - 0x44]
mov ebx, dword [ebp - 0x40]
xor edi, edi
dec edi
lea esi, [ebp - 0x58]
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov ecx, esi
push eax
push ebx
call fcn.004d4190
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x5c], edi
movzx eax, byte [esi + 0xb]
test al, al
js 0x413926
mov ecx, eax
and ecx, 0x7c
jmp 0x413929
mov ecx, dword [ebp - 0x54]
cmp ecx, 3
ja 0x4139b5
xor eax, eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x5c], eax
mov esi, 0x80070057
xor edi, edi
inc edi
cmp byte [ebp - 0x59], 0
jns 0x413956
push dword [ebp - 0x64]
call fcn.004a8b10
add esp, 4
cmp byte [ebp - 0x4d], 0
jns 0x413967
push dword [ebp - 0x58]
call fcn.004a8b10
add esp, 4
test ebx, ebx
je 0x413972
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [ebp - 0x48]
call fcn.0046e680
test edi, edi
jne 0x4138a2
lea eax, [ebp - 0x3c]
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 0x4138a2
mov dword [ebp - 0x7c], ebx
lea ecx, [ebp - 0x54]
test al, al
mov edx, dword [ecx - 4]
mov ecx, esi
cmovs ecx, edx
mov ebx, dword [ecx]
xor ecx, ecx
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x5c], ecx
test ebx, ebx
je 0x4139ee
add edx, 4
test al, al
lea eax, [ebp - 0x54]
cmovns edx, eax
lea eax, [edx + ebx]
lea ecx, [ebp - 0x64]
push eax
push edx
call fcn.004d4240
add ebx, 4
lea eax, [ebp - 0x78]
lea ecx, [ebp - 0x20]
push eax
push 0xffffffffffffffff
push ebx
push esi
call fcn.00425960
cmp byte [ebp - 0x4d], 0
jns 0x413a12
push dword [ebp - 0x58]
call fcn.004a8b10
add esp, 4
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x50], eax
movsd xmm0, qword [ebp - 0x20]
movsd qword [ebp - 0x58], xmm0
mov al, byte [ebp - 0x59]
test al, al
mov ebx, dword [ebp - 0x7c]
js 0x413a33
and al, 0x7f
movzx eax, al
jmp 0x413a36
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x41393d
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x20], edi
lea eax, [ebp - 0x20]
push eax
push 0x1000
push 0
call dword [sym.imp.RPCRT4.dll_I_RpcOpenClientProcess]
test eax, eax
je 0x413a72
cmp eax, 0x6bd
mov edi, dword [ebp + 0x14]
je 0x413a82
lea ecx, [ebp - 0x6c]
push 0
call fcn.00426cb0
jmp 0x413a8e
lea ecx, [ebp - 0x6c]
push dword [ebp - 0x20]
call fcn.00426cb0
mov edi, dword [ebp + 0x14]
jmp 0x413a8e
lea eax, [ebp - 0x6c]
push eax
call fcn.00426df0
add esp, 4
lea ecx, [ebp - 0x6c]
call fcn.0046b330
test al, al
jne 0x413ab7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
mov esi, 0x8004a001
xor edi, edi
inc edi
lea ecx, [ebp - 0x6c]
call fcn.00426d20
jmp 0x413945
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.00411fb0
add esp, 8
test al, al
jne 0x413ada
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
mov esi, 0x8004a007
jmp 0x413aa7
movzx eax, byte [ebp - 0x4d]
test al, al
js 0x413ae9
mov ecx, eax
and ecx, 0x7c
jmp 0x413aec
mov ecx, dword [ebp - 0x54]
cmp ecx, 3
ja 0x413b26
xor eax, eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x70], eax
cmp byte [ebp - 0x31], 0
jns 0x413b0d
push dword [ebp - 0x3c]
call fcn.004a8b10
add esp, 4
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x34], eax
movsd xmm0, qword [ebp - 0x78]
movsd qword [ebp - 0x3c], xmm0
mov esi, 0x8004a007
xor edi, edi
jmp 0x413aaa
test al, al
mov ecx, dword [ebp - 0x58]
mov edx, esi
cmovs edx, ecx
mov edi, dword [edx]
xor edx, edx
mov dword [ebp - 0x74], edx
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x70], edx
test edi, edi
je 0x413b59
add ecx, 4
test al, al
lea edx, [ebp - 0x54]
cmovs edx, ecx
lea eax, [edx + edi]
lea ecx, [ebp - 0x78]
push eax
push edx
call fcn.004d4240
add edi, 4
lea eax, [ebp - 0x11]
lea ecx, [ebp - 0x20]
push eax
push 0xffffffffffffffff
push edi
push esi
call fcn.00425960
cmp byte [ebp - 0x4d], 0
jns 0x413b7d
push dword [ebp - 0x58]
call fcn.004a8b10
add esp, 4
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x50], eax
movsd xmm0, qword [ebp - 0x20]
movsd qword [ebp - 0x58], xmm0
mov ebx, dword [ebp - 0x7c]
jmp 0x413afc