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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x114321d
mov eax, dword fs:[0]
push eax
sub esp, 0x398
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]
mov eax, dword [ebp + 0x14]
mov esi, ecx
mov ecx, dword [ebp + 0xc]
push ecx
push edi
push 0x10527e0
push 0x10527a0
lea edx, [ebp - 0x320]
push edx
push 0x1052730
mov dword [ebp - 0x3a4], eax
lea eax, [ebp - 0x31c]
push 2
xor ebx, ebx
push eax
mov dword [ebp - 0x320], ebx
call fcn.01075110
add esp, 0x20
mov dword [ebp - 4], ebx
mov dword [ebp - 0x348], ebx
mov dword [ebp - 0x354], ebx
mov eax, dword [esi]
cmp eax, ebx
je 0x11010da
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test eax, eax
jne 0x11010d8
call fcn.01071a70
jmp 0x11010da
mov dword [esi], ebx
mov eax, dword [ebp + 0xc]
test al, 0x10
mov dword [esi + 0x20], eax
je 0x1101103
push 0xf0000000
push 0xc
push 0x100c638
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x1101151
call fcn.01071a70
jmp 0x1101153
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 0x1101122
call fcn.01071a70
jmp 0x1101124
xor eax, eax
cmp eax, 0x8009000f
mov ecx, eax
mov dword [ebp - 0x320], ecx
jne 0x110115b
mov eax, dword [esi + 0xc]
push ebx
push 0xc
push 0x100c638
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x1101151
call fcn.01071a70
jmp 0x1101153
xor eax, eax
mov ecx, eax
mov dword [ebp - 0x320], ecx
cmp ecx, ebx
jl 0x1101b2a
mov dword [ebp - 0x32c], ebx
mov dword [ebp - 0x330], 0x1051d98
mov eax, dword [esi]
lea ecx, [ebp - 0x32c]
push ecx
shl edi, 0x10
or edi, 1
push edi
push 1
push eax
mov byte [ebp - 4], 2
call dword [sym.imp.ADVAPI32.dll_CryptGenKey]
test eax, eax
jne 0x11011fe
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x11011a4
call esi
jmp 0x11011b0
call esi
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x320], eax
call fcn.01127f00
test al, al
je 0x11011da
mov edx, dword [ebp - 0x320]
push edx
push 0x10526f0
push 0x1052680
push 3
call fcn.01128b70
add esp, 0x10
mov eax, dword [ebp - 0x32c]
cmp eax, ebx
mov dword [ebp - 0x330], 0x1051d98
je 0x1101b2a
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
jmp 0x1101b2a
mov dword [ebp - 0x328], ebx
mov dword [ebp - 0x338], ebx
mov dword [ebp - 0x33c], ebx
mov dword [ebp - 0x334], ebx
mov eax, dword [0x1161d94]
mov edx, dword [eax + 0xc]
mov ecx, 0x1161d94
mov byte [ebp - 4], 4
mov dword [ebp - 0x350], ebx
mov dword [ebp - 0x34c], ebx
mov dword [ebp - 0x344], ebx
mov dword [ebp - 0x340], ebx
call edx
add eax, 0x10
mov dword [ebp - 0x324], eax
lea edi, [esi + 0x14]
push 0x100356c
mov ecx, edi
mov byte [ebp - 4], 5
call fcn.0109db20
mov ecx, dword [ebp - 0x32c]
lea eax, [ebp - 0x358]
push eax
push ebx
push ebx
push 7
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptExportKey]
test eax, eax
jne 0x11012f7
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x110128a
call esi
jmp 0x1101296
call esi
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x320], eax
call fcn.01127f00
test al, al
je 0x11012bf
mov edx, dword [ebp - 0x320]
push edx
push 0x1052640
push 0x10525d0
push ebx
call fcn.01128b70
add esp, 0x10
mov eax, dword [ebp - 0x324]
add eax, 0xfffffff0
mov byte [ebp - 4], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x11012e5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ebx
mov byte [ebp - 4], 2
call fcn.01083924
add esp, 4
jmp 0x11011da
mov ecx, dword [ebp - 0x358]
push ecx
lea ecx, [ebp - 0x328]
call fcn.010d3c70
test al, al
je 0x1101ad1
cmp dword [ebp - 0x328], ebx
je 0x1101ad1
mov eax, dword [ebp - 0x328]
mov ecx, dword [ebp - 0x32c]
lea edx, [ebp - 0x358]
push edx
push eax
push ebx
push 7
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptExportKey]
test eax, eax
jne 0x11013ab
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1101350
call esi
jmp 0x110135c
call esi
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x320], eax
call fcn.01127f00
test al, al
je 0x1101385
mov edx, dword [ebp - 0x320]
push edx
push 0x1052640
push 0x1052560
push ebx
call fcn.01128b70
add esp, 0x10
lea ecx, [ebp - 0x324]
call fcn.0111cdb0
lea ecx, [ebp - 0x33c]
call fcn.010975a0
lea ecx, [ebp - 0x328]
call fcn.01104c50
jmp 0x1101b1f
mov eax, dword [ebp - 0x358]
mov ecx, dword [ebp - 0x328]
mov dword [ebp - 0x350], eax
xor eax, eax
cmp byte [ebp + 0x10], bl
lea edx, [ebp - 0x344]
setne al
push edx
mov dword [ebp - 0x34c], ecx
lea ecx, [ebp - 0x350]
lea eax, [eax*4 + 1]
push eax
push ebx
push ebx
push ebx
push ebx
push ecx
call dword [sym.imp.CRYPT32.dll_CryptProtectData]
test eax, eax
jne 0x1101443
call fcn.01071a70
mov dword [ebp - 0x320], eax
call fcn.01127f00
test al, al
je 0x110141d
mov edx, dword [ebp - 0x320]
push edx
push 0x1052518
push 0x10524a8
push ebx
call fcn.01128b70
add esp, 0x10
lea ecx, [ebp - 0x324]
call fcn.0111cdb0
lea ecx, [ebp - 0x33c]
call fcn.010975a0
lea ecx, [ebp - 0x328]
call fcn.01104c50
jmp 0x1101b1f
mov eax, dword [ebp - 0x340]
cmp eax, ebx
mov ecx, dword [ebp - 0x344]
mov dword [ebp - 0x33c], ebx
mov dword [ebp - 0x334], ebx
je 0x1101471
mov dword [ebp - 0x338], eax
mov dword [ebp - 0x33c], ecx
mov dword [ebp - 0x334], ecx
push 2
lea edx, [ebp - 0x324]
push edx
push ecx
push eax
call fcn.010a0660
cmp eax, ebx
mov dword [ebp - 0x320], eax
jge 0x11014d4
call fcn.01127f00
test al, al
je 0x11014ae
mov eax, dword [ebp - 0x344]
push eax
push 0x1052468
push 0x10523f8
push ebx
call fcn.01128b70
add esp, 0x10
lea ecx, [ebp - 0x324]
call fcn.0111cdb0
lea ecx, [ebp - 0x33c]
call fcn.010975a0
lea ecx, [ebp - 0x328]
call fcn.01104c50
jmp 0x1101b1f
lea ecx, [ebp - 0x324]
push ecx
mov ecx, edi
call fcn.0109db00
lea ecx, [ebp - 0x324]
call fcn.0111cdb0
lea ecx, [ebp - 0x33c]
call fcn.010975a0
lea ecx, [ebp - 0x328]
call fcn.01104c50
lea ecx, [ebp - 0x330]
mov byte [ebp - 4], 1
call fcn.01100fc0
mov eax, dword [esi]
mov edi, dword [sym.imp.CRYPT32.dll_CryptExportPublicKeyInfo]
lea edx, [ebp - 0x348]
push edx
push ebx
push 0x10001
push 1
push eax
call edi
test eax, eax
jne 0x110157f
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1101540
call esi
jmp 0x110154c
call esi
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x320], eax
call fcn.01127f00
test al, al
je 0x1101b2a
mov eax, dword [ebp - 0x320]
push eax
push 0x10523a0
push 0x1052330
push 3
call fcn.01128b70
add esp, 0x10
jmp 0x1101b2a
mov ecx, dword [ebp - 0x348]
push ecx
lea ecx, [ebp - 0x354]
call fcn.010d3c70
test al, al
jne 0x11015cc
mov dword [ebp - 0x320], 0x8007000e
call fcn.01127f00
test al, al
je 0x1101b2a
mov edx, dword [ebp - 0x348]
push edx
push 0x10522e0
push 0x1052270
push 3
call fcn.01128b70
add esp, 0x10
jmp 0x1101b2a
mov edx, dword [ebp - 0x354]
mov eax, dword [esi]
lea ecx, [ebp - 0x348]
push ecx
push edx
push 0x10001
push 1
push eax
call edi
test eax, eax
jne 0x1101639
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x11015fa
call esi
jmp 0x1101606
call esi
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x320], eax
call fcn.01127f00
test al, al
je 0x1101b2a
mov eax, dword [ebp - 0x320]
push eax
push 0x1052220
push 0x10521b0
push 3
call fcn.01128b70
add esp, 0x10
jmp 0x1101b2a
xor eax, eax
push 0xff
lea ecx, [ebp - 0x20f]
push ebx
push ecx
mov dword [ebp - 0x390], ebx
mov dword [ebp - 0x38c], eax
mov dword [ebp - 0x388], eax
mov dword [ebp - 0x384], eax
mov dword [ebp - 0x380], eax
mov dword [ebp - 0x37c], eax
mov dword [ebp - 0x378], eax
mov dword [ebp - 0x374], eax
mov dword [ebp - 0x370], eax
mov dword [ebp - 0x36c], eax
mov dword [ebp - 0x368], eax
mov dword [ebp - 0x364], ebx
mov dword [ebp - 0x360], ebx
mov dword [ebp - 0x35c], ebx
mov dword [ebp - 0x350], ebx
mov dword [ebp - 0x34c], ebx
mov byte [ebp - 0x210], bl
call fcn.01084910
push 0xff
lea edx, [ebp - 0x10f]
push ebx
push edx
mov byte [ebp - 0x110], bl
call fcn.01084910
add esp, 0x18
mov dword [ebp - 0x324], ebx
mov dword [ebp - 0x33c], ebx
mov dword [ebp - 0x338], ebx
mov dword [ebp - 0x334], ebx
mov dword [ebp - 0x328], ebx
lea eax, [ebp - 0x330]
push eax
mov byte [ebp - 4], 6
mov dword [ebp - 0x330], ebx
mov dword [ebp - 0x32c], ebx
mov dword [ebp - 0x340], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
call fcn.010f91e0
mov eax, dword [eax + 0x118]
mov ecx, dword [ebp - 0x330]
mov edi, dword [ebp - 0x32c]
push 0xffffffffffffffff
cdq
push 0xff676980
push edx
push eax
mov dword [ebp - 0x344], ecx
call fcn.01090bb0
mov ecx, dword [ebp - 0x344]
add ecx, eax
adc edi, edx
lea edx, [ebp - 0x324]
push edx
lea eax, [ebp - 0x210]
push eax
push ebx
push ebx
mov dword [ebp - 0x330], ecx
lea ecx, [ebp - 0x330]
push ecx
push 0x1052194
mov dword [ebp - 0x32c], edi
mov edi, dword [sym.imp.CRYPT32.dll_CryptEncodeObjectEx]
push 1
mov dword [ebp - 0x324], 0x100
call edi
test eax, eax
jne 0x11017db
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1101795
call esi
jmp 0x11017a1
call esi
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x320], eax
call fcn.01127f00
test al, al
je 0x11017cb
mov edx, dword [ebp - 0x320]
push edx
push 0x1052120
push 0x10520b0
push 3
call fcn.01128b70
add esp, 0x10
lea ecx, [ebp - 0x328]
call fcn.01104c50
jmp 0x1101b2a
mov eax, dword [ebp - 0x324]
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x34c], ecx
lea edx, [ebp - 0x350]
mov dword [ebp - 0x35c], edx
lea ecx, [ebp - 0x3a0]
mov dword [ebp - 0x340], ebx
mov dword [ebp - 0x340], ecx
lea edx, [ebp - 0x344]
mov dword [ebp - 0x32c], ebx
lea ecx, [ebp - 0x324]
push ecx
mov dword [ebp - 0x32c], edx
lea edx, [ebp - 0x110]
push edx
push ebx
push ebx
lea ecx, [ebp - 0x330]
push ecx
mov dword [ebp - 0x350], eax
mov eax, 1
push 7
mov dword [ebp - 0x39c], ebx
mov dword [ebp - 0x398], ebx
mov dword [ebp - 0x394], ebx
push eax
mov dword [ebp - 0x364], 0x1052194
mov dword [ebp - 0x360], eax
mov dword [ebp - 0x3a0], 0x1013550
mov dword [ebp - 0x39c], 0xc
mov dword [ebp - 0x398], 0x10
mov dword [ebp - 0x394], 0x105209c
mov dword [ebp - 0x344], eax
mov dword [ebp - 0x330], eax
mov dword [ebp - 0x324], 0x100
call edi
test eax, eax
jne 0x11018ed
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x11018b8
call esi
jmp 0x11018c4
call esi
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x320], eax
call fcn.01127f00
test al, al
je 0x11017cb
mov edx, dword [ebp - 0x320]
push edx
push 0x1052040
push 0x1051fd0
jmp 0x11017c1
mov ecx, dword [ebp - 0x324]
mov dword [ebp - 0x38c], ecx
mov dword [ebp - 0x390], ebx
mov dword [ebp - 0x36c], 1
lea eax, [ebp - 0x364]
mov dword [ebp - 0x368], eax
mov eax, dword [ebp - 0x354]
lea edx, [ebp - 0x110]
mov dword [ebp - 0x388], edx
mov ecx, dword [eax]
mov dword [ebp - 0x384], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x380], edx
mov ecx, dword [eax + 8]
mov edi, dword [sym.imp.CRYPT32.dll_CryptSignAndEncodeCertificate]
mov dword [ebp - 0x37c], ecx
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x378], edx
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x374], ecx
mov edx, dword [eax + 0x14]
mov eax, dword [esi]
lea ecx, [ebp - 0x324]
push ecx
push ebx
push ebx
mov dword [ebp - 0x370], edx
lea edx, [ebp - 0x33c]
push edx
lea ecx, [ebp - 0x390]
push ecx
push 4
push 1
push 1
push eax
mov dword [ebp - 0x324], ebx
mov dword [ebp - 0x33c], 0x1051fb4
mov dword [ebp - 0x338], ebx
mov dword [ebp - 0x334], ebx
call edi
test eax, eax
jne 0x11019e9
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x11019b4
call esi
jmp 0x11019c0
call esi
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x320], eax
call fcn.01127f00
test al, al
je 0x11017cb
mov edx, dword [ebp - 0x320]
push edx
push 0x1051f30
push 0x1051ec0
jmp 0x11017c1
mov eax, dword [ebp - 0x324]
push eax
lea ecx, [ebp - 0x328]
call fcn.010d3c70
test al, al
jne 0x1101a19
lea ecx, [ebp - 0x328]
mov dword [ebp - 0x320], 0x8007000e
call fcn.01104c50
jmp 0x1101b2a
mov eax, dword [esi]
mov esi, dword [ebp - 0x328]
lea ecx, [ebp - 0x324]
push ecx
push esi
push ebx
lea edx, [ebp - 0x33c]
push edx
lea ecx, [ebp - 0x390]
push ecx
push 4
push 1
push 1
push eax
call edi
test eax, eax
jne 0x1101a8a
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1101a55
call esi
jmp 0x1101a61
call esi
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x320], eax
call fcn.01127f00
test al, al
je 0x11017cb
mov edx, dword [ebp - 0x320]
push edx
push 0x1051f30
push 0x1051e50
jmp 0x11017c1
mov eax, dword [ebp - 0x3a4]
mov ecx, dword [ebp - 0x324]
push 2
push eax
push ecx
push esi
call fcn.010a0660
cmp eax, ebx
mov dword [ebp - 0x320], eax
jge 0x11017cb
call fcn.01127f00
test al, al
je 0x11017cb
mov edx, dword [ebp - 0x320]
push edx
push 0x1051e10
push 0x1051da0
jmp 0x11017c1
mov eax, dword [ebp - 0x324]
add eax, 0xfffffff0
mov dword [ebp - 0x320], 0x8007000e
mov byte [ebp - 4], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1101b01
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x33c]
call fcn.010975a0
mov ecx, dword [ebp - 0x328]
push ecx
mov byte [ebp - 4], 2
call fcn.01083924
add esp, 4
lea ecx, [ebp - 0x330]
call fcn.01100fc0
mov edx, dword [ebp - 0x354]
mov esi, dword [ebp - 0x320]
push edx
mov byte [ebp - 4], bl
call fcn.01083924
add esp, 4
lea ecx, [ebp - 0x31c]
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 0x10