Function at 0x100f0447
Capabilities:
Encrypt data using dpapi

Disassembly:
push 0x9c
mov eax, 0x10138c75
call fcn.101108dc
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
mov edx, dword [eax + 0x10]
test edx, edx
je 0x100f06b7
mov edi, dword [ecx + 0x10]
test edi, edi
je 0x100f06b7
cmp byte [ebp + 0x10], 0
jne 0x100f06c0
cmp dword [eax + 0x14], 0x10
jb 0x100f0487
mov eax, dword [eax]
cmp dword [ecx + 0x14], 0x10
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x70], edx
jb 0x100f0495
mov ecx, dword [ecx]
lea eax, [ebp - 0x60]
mov dword [ebp - 0x64], ecx
push eax
xor ebx, ebx
mov dword [ebp - 0x68], edi
push ebx
push ebx
push ebx
lea eax, [ebp - 0x68]
push eax
push ebx
lea eax, [ebp - 0x70]
push eax
call sub.CRYPT32.dll_CryptProtectData
test eax, eax
je 0x100f04f9
push dword [ebp - 0x60]
lea ecx, [ebp - 0x28]
push dword [ebp - 0x5c]
call fcn.10063887
push dword [ebp - 0x5c]
mov dword [ebp - 4], ebx
call dword [sym.imp.kernel32.dll_LocalFree]
mov dword [esi + 0x10], ebx
mov eax, esi
cmp dword [esi + 0x14], 0x10
jb 0x100f04dd
mov eax, dword [esi]
mov byte [eax], bl
mov ecx, esi
lea eax, [ebp - 0x28]
push eax
call fcn.10063887
lea ecx, [ebp - 0x28]
call fcn.1001524d
xor eax, eax
jmp 0x100f06ba
call dword [sym.imp.kernel32.dll_GetLastError]
mov edi, eax
lea eax, [ebp - 0x40]
push edi
push eax
call fcn.10063887
pop ecx
pop ecx
push str.EncryptDataWithKey_failed_with:
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 1
call fcn.10063887
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x58]
push eax
mov byte [ebp - 4], 2
call fcn.10063887
push 0x101e2a68
call sub.MSVCP140.dll__Mtx_lock
push eax
call fcn.10063887
pop ecx
pop ecx
call fcn.100e1984
mov esi, 0x1014a0f1
lea ecx, [ebp - 0xa8]
push esi
call fcn.10063887
push esi
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 3
call fcn.10063887
push dword [0x101d94d8]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.10063887
lea eax, [ebp - 0xa8]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.100e1c13
add esp, 0xc
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.1001524d
lea ecx, [ebp - 0x90]
call fcn.1001524d
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 2
call fcn.1001524d
test esi, esi
je 0x100f066a
call fcn.100e1984
mov esi, 0x1014a0f1
lea ecx, [ebp - 0x28]
push esi
call fcn.10063887
push esi
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 6
call fcn.10063887
push dword [0x101d94d8]
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 7
call fcn.10063887
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0xa8]
push eax
call fcn.100e1c13
add esp, 0xc
mov esi, dword [eax]
push edi
push str.EncryptDataWithKey
push str._s_:_failed_with_error:__lu
mov ecx, dword [esi + 0x24]
push 0x1014a0f1
push eax
call dword [0x1014488c]
call dword [esi + 0x24]
add esp, 0x14
lea ecx, [ebp - 0xa8]
call fcn.1001524d
lea ecx, [ebp - 0x90]
call fcn.1001524d
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.1001524d
push 0x101e2a68
call sub.MSVCP140.dll__Mtx_unlock
or dword [ebp - 0x74], 0xffffffff
lea eax, [ebp - 0x74]
pop ecx
push eax
lea eax, [ebp - 0x58]
push eax
sub esp, 0x18
lea eax, [ebp - 0x40]
mov ecx, esp
push eax
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.10063887
push 0x1fa
push 0x1be
call fcn.1007af33
add esp, 0x28
lea ecx, [ebp - 0x58]
call fcn.1001524d
lea ecx, [ebp - 0x40]
call fcn.1001524d
xor eax, eax
inc eax
call fcn.10110886
ret
push esi
push ecx
push eax
call fcn.10063887
add esp, 0xc
jmp 0x100f06ba