Function at 0x10018220
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b1f05
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x100df300]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x1c], ebx
lea edx, [ebp + 8]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.100180c0
mov byte [ebp - 4], 1
mov edi, dword [ebp - 0x18]
lea eax, [edi + 5]
cmp edi, eax
je 0x1001828b
mov esi, dword [ebp - 0x14]
sub esi, eax
push esi
push eax
push edi
call fcn.10076cd0
lea eax, [esi + edi]
add esp, 0xc
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
jmp 0x1001828e
mov eax, dword [ebp - 0x14]
sub eax, edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x30], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x24]
movlpd qword [ebp - 0x24], xmm0
push eax
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x100183e9
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x24]
add esi, ecx
mov dword [ebx], 0
mov dword [ebp - 0x1c], esi
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebp - 0x28], ecx
sub esi, ecx
je 0x10018351
cmp esi, 0x7fffffff
ja 0x10018470
cmp esi, 0x1000
jb 0x1001831f
lea eax, [esi + 0x23]
cmp eax, esi
jbe 0x10018475
push eax
call fcn.1007511e
add esp, 4
test eax, eax
je 0x1001847a
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x1001832a
push esi
call fcn.1007511e
add esp, 4
mov edi, eax
lea eax, [edi + esi]
mov dword [ebx], edi
mov esi, dword [ebp - 0x1c]
mov dword [ebx + 4], edi
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x28]
sub esi, eax
push esi
push eax
push edi
call fcn.10076cd0
mov ecx, dword [ebp - 0x20]
lea eax, [esi + edi]
add esp, 0xc
mov dword [ebx + 4], eax
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x100183a1
mov edx, dword [ebp - 0x10]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x10018382
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001847a
push edx
push ecx
call fcn.10075468
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0xf
jbe 0x100183d5
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100183cb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001847a
push ecx
push edx
call fcn.10075468
add esp, 8
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x1001842e
mov edx, dword [ebp - 0x10]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x1001840f
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001847a
push edx
push ecx
call fcn.10075468
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0xf
jbe 0x1001845e
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10018454
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001847a
push ecx
push edx
call fcn.10075468
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.1001d1a0
call fcn.10001340
call fcn.100819d1
int3