Function at 0x11025f0
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1143407
mov eax, dword fs:[0]
push eax
sub esp, 0x1c0
mov eax, dword [0x115f604]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
push 0x1053338
lea eax, [ebp - 0x120]
push eax
push 0x10532c8
mov esi, ecx
lea ecx, [ebp - 0x11c]
push 2
push ecx
mov dword [ebp - 0x120], ebx
call fcn.01075110
add esp, 0x18
cmp edi, ebx
mov dword [ebp - 4], ebx
je 0x1102960
cmp word [edi], bx
je 0x1102960
lea edx, [ebp - 0x1c8]
mov dword [ebp - 0x1cc], edx
call dword [0x115f5dc]
push eax
push edi
lea ecx, [ebp - 0x1cc]
call fcn.01097b60
mov eax, dword [ebp - 0x1cc]
lea edi, [esi + 0x14]
push eax
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.01133ee0
mov eax, dword [ebp - 0x1cc]
cmp eax, ebx
mov byte [ebp - 4], bl
je 0x11026b6
lea ecx, [ebp - 0x1c8]
cmp eax, ecx
je 0x11026b6
push eax
call fcn.01083cad
add esp, 4
mov eax, dword [esi]
cmp eax, ebx
mov edx, dword [ebp + 0xc]
mov dword [esi + 0x20], edx
je 0x11026d7
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test eax, eax
jne 0x11026d5
call fcn.01071a70
jmp 0x11026d7
mov dword [esi], ebx
test byte [esi + 0x20], 0x10
je 0x1102700
push 0xf0000000
push 0xc
push 0x100c638
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x11026fc
call fcn.01071a70
jmp 0x1102741
xor eax, eax
jmp 0x1102741
mov eax, dword [esi + 0xc]
push 8
push 0xc
push 0x100c638
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x110271f
call fcn.01071a70
jmp 0x1102721
xor eax, eax
cmp eax, 0x8009000f
mov dword [ebp - 0x120], eax
jne 0x1102747
mov eax, dword [esi + 0xc]
push ebx
push 0x100c638
push eax
push 0xc
mov ecx, esi
call fcn.01100f40
mov dword [ebp - 0x120], eax
cmp eax, ebx
jge 0x1102770
call fcn.01127f00
test al, al
je 0x1102987
push 0x1053280
push 0x1053210
push ebx
call fcn.01128b70
add esp, 0xc
jmp 0x1102987
mov dword [ebp - 0x134], ebx
mov dword [ebp - 0x138], 0x1051d98
mov eax, dword [0x1161d94]
mov edx, dword [eax + 0xc]
mov ecx, 0x1161d94
mov byte [ebp - 4], 2
call edx
add eax, 0x10
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 0x130], ebx
mov dword [ebp - 0x128], ebx
mov eax, dword [edi]
lea edx, [ebp - 0x124]
mov dword [ebp - 0x140], ebx
mov dword [ebp - 0x13c], ebx
mov dword [ebp - 0x148], ebx
mov dword [ebp - 0x144], ebx
mov ecx, dword [eax - 0xc]
push edx
push ecx
push eax
mov byte [ebp - 4], 4
call fcn.010a07b0
cmp eax, ebx
mov dword [ebp - 0x120], eax
jge 0x110282f
call fcn.01127f00
test al, al
je 0x1102809
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
push eax
push 0x10531d0
push 0x1053160
push ebx
call fcn.01128b70
add esp, 0x10
lea ecx, [ebp - 0x130]
call fcn.010975a0
lea ecx, [ebp - 0x124]
call fcn.0111cdb0
lea ecx, [ebp - 0x138]
call fcn.01100fc0
jmp 0x1102987
mov eax, dword [ebp - 0x124]
mov ecx, dword [eax - 0xc]
mov dword [ebp - 0x13c], eax
xor eax, eax
cmp byte [ebp + 0x10], bl
lea edx, [ebp - 0x148]
setne al
push edx
mov dword [ebp - 0x140], ecx
lea ecx, [ebp - 0x140]
lea eax, [eax*4 + 1]
push eax
push ebx
push ebx
push ebx
push ebx
push ecx
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
jne 0x11028c4
call fcn.01071a70
mov dword [ebp - 0x120], eax
call fcn.01127f00
test al, al
je 0x110289e
mov edx, dword [ebp - 0x120]
push edx
push 0x1053110
push 0x10530a0
push ebx
call fcn.01128b70
add esp, 0x10
lea ecx, [ebp - 0x130]
call fcn.010975a0
lea ecx, [ebp - 0x124]
call fcn.0111cdb0
lea ecx, [ebp - 0x138]
call fcn.01100fc0
jmp 0x1102987
mov eax, dword [ebp - 0x144]
cmp eax, ebx
mov ecx, dword [ebp - 0x148]
mov dword [ebp - 0x130], ebx
mov dword [ebp - 0x128], ebx
je 0x11028f2
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x130], ecx
mov dword [ebp - 0x128], ecx
mov esi, dword [esi]
lea edx, [ebp - 0x134]
push edx
push 1
push ebx
push ecx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x1102809
call fcn.01071a70
mov dword [ebp - 0x120], eax
call fcn.01127f00
test al, al
je 0x110293d
mov eax, dword [ebp - 0x120]
push eax
push 0x1053060
push 0x1052ff0
push ebx
call fcn.01128b70
add esp, 0x10
lea ecx, [ebp - 0x130]
call fcn.010975a0
lea ecx, [ebp - 0x124]
call fcn.0111cdb0
lea ecx, [ebp - 0x138]
call fcn.01100fc0
jmp 0x1102987
call fcn.01127f00
test al, al
je 0x110297d
push 0x1052fb8
push 0x1052f48
push 3
call fcn.01128b70
add esp, 0xc
mov dword [ebp - 0x120], 0x80048890
mov esi, dword [ebp - 0x120]
lea ecx, [ebp - 0x11c]
mov dword [ebp - 4], 0xffffffff
call fcn.01075230
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.010840d6
mov esp, ebp
pop ebp
ret 0xc