Function at 0x10012a90
Capabilities:
Encrypt data using dpapi

Disassembly:
sub esp, 0x5c
push ebx
push esi
mov esi, dword [esp + 0x68]
xor ebx, ebx
cmp esi, ebx
je 0x10012ceb
cmp dword [esp + 0x6c], ebx
je 0x10012ceb
cmp dword [esp + 0x70], ebx
je 0x10012ceb
mov ecx, dword [0x10050fc0]
mov eax, dword [0x10050fbc]
mov dl, byte [esp + 0x70]
push ebp
push edi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x18], ebx
push ebx
lea ecx, [esp + 0x40]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x40], dl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
push 0x10056a88
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
mov edi, eax
lea ecx, [esp + 0x3c]
push 1
push edi
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Grow_unsigned_int__bool_]
test al, al
je 0x10012b33
mov eax, dword [esp + 0x40]
push edi
push 0x10056a88
push eax
call fcn.10014d40
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x50], edi
add esp, 0xc
mov word [ecx + edi*2], bx
mov dl, byte [esp + 0x78]
push ebx
lea ecx, [esp + 0x30]
mov byte [esp + 0x30], dl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x30]
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x10012b84
mov edi, dword [esp + 0x30]
mov ecx, ebp
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x34], ebp
mov byte [ecx + ebp], bl
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
cmp eax, ebx
lea edi, [edx + 1]
jne 0x10012b98
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov ebp, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
push ebx
push edi
push eax
push ebx
push ebx
call ebp
mov esi, eax
lea eax, [esp + 0x70]
lea ecx, [esp + 0x10]
push eax
push ecx
push esi
lea ecx, [esp + 0x68]
mov dword [esp + 0x1c], ebx
call fcn.1000a110
mov eax, dword [esp + 0x30]
cmp eax, ebx
jne 0x10012bcd
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov edx, dword [esp + 0x60]
push esi
push edx
push edi
push eax
push ebx
push ebx
call ebp
mov al, byte [esp + 0x78]
mov esi, dword [esp + 0x60]
push ebx
lea ecx, [esp + 0x50]
mov byte [esp + 0x50], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
lea ecx, [esp + 0x4c]
push eax
push esi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_unsigned_short_int_const___unsigned_int_]
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::npos]
lea eax, [esp + 0x4c]
mov edx, dword [ecx]
lea ecx, [esp + 0x3c]
push edx
push ebx
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___unsigned_int__unsigned_int_]
push 1
lea ecx, [esp + 0x50]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
lea ecx, [esp + 0x5c]
call fcn.1000a170
push 1
lea ecx, [esp + 0x30]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov eax, dword [esp + 0x40]
pop edi
cmp eax, ebx
pop ebp
jne 0x10012c56
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
mov dword [esp + 0x18], ecx
jmp 0x10012c5a
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0xc]
push ecx
push 1
lea eax, [edx + edx]
push ebx
mov dword [esp + 0x20], eax
push ebx
lea edx, [esp + 0x2c]
push ebx
lea eax, [esp + 0x28]
push edx
push eax
call dword [sym.imp.CRYPT32.dll_CryptProtectData]
test eax, eax
setne al
cmp al, bl
mov byte [esp + 0x68], al
je 0x10012ca8
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x14]
push edx
push eax
push ecx
call fcn.100129f0
add esp, 0x10
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [esp + 0x38]
cmp ecx, ebx
je 0x10012ce1
mov al, byte [ecx - 1]
cmp al, bl
je 0x10012cd5
cmp al, 0xff
je 0x10012cd5
dec al
pop esi
mov byte [ecx - 1], al
mov al, byte [esp + 0x64]
pop ebx
add esp, 0x5c
ret
add ecx, 0xfffffffe
push ecx
call fcn.10047cb0
add esp, 4
mov al, byte [esp + 0x68]
pop esi
pop ebx
add esp, 0x5c
ret
pop esi
xor al, al
pop ebx
add esp, 0x5c
ret