Function at 0x4131e0
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 [0x54a010]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
call dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
test eax, eax
je 0x4132e8
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 0x4132ef
mov edi, dword [ebp - 0x2c]
call dword [sym.imp.ole32.dll_CoImpersonateClient]
test eax, eax
js 0x4132fe
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.0049f91a
add esp, 4
mov edi, eax
mov ecx, eax
push 0x412de0
push 0x412dd0
call fcn.004674b0
mov dword [ebp - 0x4c], edi
lea ecx, [ebp - 0x48]
push edi
call fcn.00467600
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 0x413321
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
lea ecx, [ebp - 0x48]
call fcn.00467620
mov esi, 0x8004a003
cmp byte [ebp - 0x31], 0
mov edi, dword [ebp - 0x80]
jns 0x413300
push dword [ebp - 0x3c]
call fcn.0049f94a
add esp, 4
jmp 0x413300
mov esi, 0x80070057
jmp 0x41330b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
mov esi, 0x8004a004
jmp 0x41330b
mov esi, eax
test edi, edi
je 0x41330b
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a0403
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.004c9dd0
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x5c], edi
movzx eax, byte [esi + 0xb]
test al, al
jns 0x413354
mov ecx, dword [ebp - 0x54]
jmp 0x413359
mov ecx, eax
and ecx, 0x7c
cmp ecx, 3
ja 0x4133dc
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 0x413382
push dword [ebp - 0x64]
call fcn.0049f94a
add esp, 4
cmp byte [ebp - 0x4d], 0
jns 0x413393
push dword [ebp - 0x58]
call fcn.0049f94a
add esp, 4
test ebx, ebx
je 0x41339e
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [ebp - 0x48]
call fcn.00467620
test edi, edi
jne 0x4132d2
lea ecx, [ebp - 0x3c]
movzx eax, byte [ecx + 0xb]
test al, al
cmovs eax, dword [ecx + 4]
mov esi, dword [ebp + 0x10]
cmovs ecx, dword [ecx]
push eax
push ecx
call dword [sym.imp.OLEAUT32.dll_DllRegisterServer]
mov dword [esi], eax
xor ecx, ecx
test eax, eax
mov esi, 0x8007000e
cmovne esi, ecx
jmp 0x4132d2
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 0x413415
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.004c9e80
add ebx, 4
lea eax, [ebp - 0x78]
lea ecx, [ebp - 0x20]
push eax
push 0xffffffffffffffff
push ebx
push esi
call fcn.0041fdb0
cmp byte [ebp - 0x4d], 0
jns 0x413439
push dword [ebp - 0x58]
call fcn.0049f94a
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]
jns 0x413458
mov eax, dword [ebp - 0x60]
jmp 0x41345b
movzx eax, al
test eax, eax
je 0x413369
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 0x413499
cmp eax, 0x6bd
mov edi, dword [ebp + 0x14]
jne 0x4134a9
lea eax, [ebp - 0x6c]
push eax
call fcn.00421440
add esp, 4
jmp 0x4134b3
lea ecx, [ebp - 0x6c]
push dword [ebp - 0x20]
call fcn.00421300
mov edi, dword [ebp + 0x14]
jmp 0x4134b3
lea ecx, [ebp - 0x6c]
push 0
call fcn.00421300
lea ecx, [ebp - 0x6c]
call fcn.004642e0
test al, al
je 0x4134e0
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.00411bd0
add esp, 8
test al, al
je 0x4134ef
movzx eax, byte [ebp - 0x4d]
test al, al
jns 0x413501
mov ecx, dword [ebp - 0x54]
jmp 0x413506
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
mov esi, 0x8004a001
jmp 0x4134fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
mov esi, 0x8004a007
xor edi, edi
inc edi
jmp 0x41353e
mov ecx, eax
and ecx, 0x7c
cmp ecx, 3
ja 0x41354b
xor eax, eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x70], eax
cmp byte [ebp - 0x31], 0
jns 0x413527
push dword [ebp - 0x3c]
call fcn.0049f94a
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
lea ecx, [ebp - 0x6c]
call fcn.00421370
jmp 0x413371
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 0x41357e
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.004c9e80
add edi, 4
lea eax, [ebp - 0x11]
lea ecx, [ebp - 0x20]
push eax
push 0xffffffffffffffff
push edi
push esi
call fcn.0041fdb0
cmp byte [ebp - 0x4d], 0
jns 0x4135a2
push dword [ebp - 0x58]
call fcn.0049f94a
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 0x413516