Function at 0x1001bd20
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101c514d
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x10244540]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, ecx
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0xe4], eax
xorps xmm0, xmm0
mov eax, dword [ebp + 8]
mov dword [ebp - 0xe0], eax
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xc4], eax
movq qword [eax], xmm0
mov dword [eax + 8], 0
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov esi, 1
mov dword [ebp - 4], 0
mov dword [ebp - 0xb8], esi
mov dword [ebp - 0xc0], esi
mov esi, ecx
cmp byte [esi], 0
je 0x1001c875
cmp dword [esi + 0x20], 0
je 0x1001c875
mov ecx, dword [esi + 0xc]
lea eax, [ebp - 0xcc]
push 0
push eax
push 0
push 0x80
push 0xffffffffffffffff
mov edx, str.select_host_key__name__value__encrypted_value__path_from_cookies_order_by_creation_utc
call fcn.100cbff0
add esp, 0x14
test eax, eax
jne 0x1001c896
mov edi, dword [ebp - 0xcc]
push edi
call fcn.10074c20
add esp, 4
cmp eax, 0x64
jne 0x1001c848
test edi, edi
je 0x1001beae
cmp dword [edi], 0
jne 0x1001be2d
push 0x1543d
push str.L:DevGetDouYinCookieClientDll_srcLibrary_sqlite_sqlite3.c
push str.pVm__db
call fcn.101aa953
add esp, 0xc
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
test esi, esi
je 0x1001be61
mov eax, dword [0x10245120]
test eax, eax
jne 0x1001be5b
push 0x6bee
push str.L:DevGetDouYinCookieClientDll_srcLibrary_sqlite_sqlite3.c
push str.sqlite3GlobalConfig.mutex.xMutexEnter
call fcn.101aa953
mov eax, dword [0x10245120]
add esp, 0xc
push esi
call eax
add esp, 4
mov ecx, dword [edi + 0x78]
test ecx, ecx
je 0x1001be7e
mov eax, 3
cmp ax, word [edi + 0x98]
jae 0x1001be7e
add ecx, 0x90
jmp 0x1001beb3
mov esi, dword [edi]
test esi, esi
jne 0x1001be9b
push 0x8266
push str.L:DevGetDouYinCookieClientDll_srcLibrary_sqlite_sqlite3.c
push str.db_0
call fcn.101aa953
add esp, 0xc
mov edx, 0x19
mov dword [esi + 0x40], 0x19
mov ecx, esi
call fcn.100376c0
mov ecx, 0x101f0280
mov dl, 1
call fcn.1006a340
mov ecx, edi
mov dword [ebp - 0xc8], eax
call fcn.100756a0
test edi, edi
je 0x1001bf6c
cmp dword [edi], 0
jne 0x1001beeb
push 0x1543d
push str.L:DevGetDouYinCookieClientDll_srcLibrary_sqlite_sqlite3.c
push str.pVm__db
call fcn.101aa953
add esp, 0xc
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
test esi, esi
je 0x1001bf1f
mov eax, dword [0x10245120]
test eax, eax
jne 0x1001bf19
push 0x6bee
push str.L:DevGetDouYinCookieClientDll_srcLibrary_sqlite_sqlite3.c
push str.sqlite3GlobalConfig.mutex.xMutexEnter
call fcn.101aa953
mov eax, dword [0x10245120]
add esp, 0xc
push esi
call eax
add esp, 4
mov ecx, dword [edi + 0x78]
test ecx, ecx
je 0x1001bf3c
mov eax, 3
cmp ax, word [edi + 0x98]
jae 0x1001bf3c
add ecx, 0x90
jmp 0x1001bf71
mov esi, dword [edi]
test esi, esi
jne 0x1001bf59
push 0x8266
push str.L:DevGetDouYinCookieClientDll_srcLibrary_sqlite_sqlite3.c
push str.db_0
call fcn.101aa953
add esp, 0xc
mov edx, 0x19
mov dword [esi + 0x40], 0x19
mov ecx, esi
call fcn.100376c0
mov ecx, 0x101f0280
mov dl, 1
call fcn.10069990
mov ecx, edi
mov esi, eax
call fcn.100756a0
push dword [ebp - 0xc8]
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x2c], xmm0
call fcn.100191c0
mov dword [ebp - 4], 1
cmp dword [ebp - 0x1c], 0
jne 0x1001bff3
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xf
jbe 0x1001bdf7
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1001bfe4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001c90c
push ecx
push edx
call fcn.1018eb3e
add esp, 8
jmp 0x1001bdf7
xorps xmm0, xmm0
mov dword [ebp - 0x94], 0
movups xmmword [ebp - 0xa4], xmm0
mov dword [ebp - 0x90], 0xf
movups xmmword [ebp - 0x8c], xmm0
mov byte [ebp - 0xa4], 0
movups xmmword [ebp - 0x74], xmm0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0xf
mov byte [ebp - 0x8c], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0xf
mov byte [ebp - 0x74], 0
mov byte [ebp - 4], 2
test edi, edi
je 0x1001c0e8
cmp dword [edi], 0
jne 0x1001c072
push 0x1543d
push str.L:DevGetDouYinCookieClientDll_srcLibrary_sqlite_sqlite3.c
push str.pVm__db
call fcn.101aa953
add esp, 0xc
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
test esi, esi
je 0x1001c0a6
mov eax, dword [0x10245120]
test eax, eax
jne 0x1001c0a0
push 0x6bee
push str.L:DevGetDouYinCookieClientDll_srcLibrary_sqlite_sqlite3.c
push str.sqlite3GlobalConfig.mutex.xMutexEnter
call fcn.101aa953
mov eax, dword [0x10245120]
add esp, 0xc
push esi
call eax
add esp, 4
mov ecx, dword [edi + 0x78]
test ecx, ecx
je 0x1001c0b8
xor eax, eax
cmp ax, word [edi + 0x98]
jb 0x1001c0ed
mov esi, dword [edi]
test esi, esi
jne 0x1001c0d5
push 0x8266
push str.L:DevGetDouYinCookieClientDll_srcLibrary_sqlite_sqlite3.c
push str.db_0
call fcn.101aa953
add esp, 0xc
mov edx, 0x19
mov dword [esi + 0x40], 0x19
mov ecx, esi
call fcn.100376c0
mov ecx, 0x101f0280
mov dl, 1
call fcn.10069990
mov ecx, edi
mov esi, eax
call fcn.100756a0
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001c102
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0xa4]
call fcn.10017d60
test edi, edi
je 0x1001c1ba
cmp dword [edi], 0
jne 0x1001c13c
push 0x1543d
push str.L:DevGetDouYinCookieClientDll_srcLibrary_sqlite_sqlite3.c
push str.pVm__db
call fcn.101aa953
add esp, 0xc
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
test esi, esi
je 0x1001c170
mov eax, dword [0x10245120]
test eax, eax
jne 0x1001c16a
push 0x6bee
push str.L:DevGetDouYinCookieClientDll_srcLibrary_sqlite_sqlite3.c
push str.sqlite3GlobalConfig.mutex.xMutexEnter
call fcn.101aa953
mov eax, dword [0x10245120]
add esp, 0xc
push esi
call eax
add esp, 4
mov ecx, dword [edi + 0x78]
test ecx, ecx
je 0x1001c18a
mov eax, 1
cmp ax, word [edi + 0x98]
jae 0x1001c18a
add ecx, 0x30
jmp 0x1001c1bf
mov esi, dword [edi]
test esi, esi
jne 0x1001c1a7
push 0x8266
push str.L:DevGetDouYinCookieClientDll_srcLibrary_sqlite_sqlite3.c
push str.db_0
call fcn.101aa953
add esp, 0xc
mov edx, 0x19
mov dword [esi + 0x40], 0x19
mov ecx, esi
call fcn.100376c0
mov ecx, 0x101f0280
mov dl, 1
call fcn.10069990
mov ecx, edi
mov esi, eax
call fcn.100756a0
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001c1d4
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x8c]
call fcn.10017d60
mov ecx, 3
mov dword [ebp - 0x34], 0
cmp dword [ebp - 0x1c], ecx
lea eax, [ebp - 0x2c]
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
cmovb ecx, dword [ebp - 0x1c]
cmp dword [ebp - 0x18], 0xf
push ecx
cmova eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x44]
push eax
movups xmmword [ebp - 0x44], xmm0
call fcn.100191c0
mov esi, dword [ebp - 0xb8]
or esi, 8
mov byte [ebp - 4], 3
lea eax, [ebp - 0x44]
mov ecx, dword [ebp - 0x44]
or esi, 2
cmp dword [ebp - 0x30], 0xf
push 3
push 0x101f4118
push dword [ebp - 0x34]
cmova eax, ecx
mov dword [ebp - 0xb8], esi
push eax
mov dword [ebp - 0xc0], esi
mov dword [ebp - 0xc8], ecx
call fcn.10019f40
add esp, 0x10
test al, al
jne 0x1001c2da
mov ecx, 3
mov dword [ebp - 0x4c], 0
cmp dword [ebp - 0x1c], ecx
lea eax, [ebp - 0x2c]
xorps xmm0, xmm0
mov dword [ebp - 0x48], 0
cmovb ecx, dword [ebp - 0x1c]
cmp dword [ebp - 0x18], 0xf
push ecx
cmova eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x5c]
push eax
movups xmmword [ebp - 0x5c], xmm0
call fcn.100191c0
or esi, 0x84
lea eax, [ebp - 0x5c]
cmp dword [ebp - 0x48], 0xf
push 3
push 0x101f411c
push dword [ebp - 0x4c]
mov dword [ebp - 0xb8], esi
mov dword [ebp - 0xc0], esi
mov esi, dword [ebp - 0x5c]
cmova eax, esi
push eax
call fcn.10019f40
add esp, 0x10
test al, al
jne 0x1001c2dd
mov byte [ebp - 0xb9], al
jmp 0x1001c2e4
mov esi, dword [ebp - 0x5c]
mov byte [ebp - 0xb9], 1
mov ecx, dword [ebp - 0xb8]
test cl, 4
je 0x1001c337
mov eax, dword [ebp - 0x48]
and ecx, 0xfffffffb
mov dword [ebp - 0xb8], ecx
mov dword [ebp - 0xc0], ecx
cmp eax, 0xf
jbe 0x1001c337
lea ecx, [eax + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x1001c327
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001c90c
push ecx
push esi
call fcn.1018eb3e
mov ecx, dword [ebp - 0xb8]
add esp, 8
mov dword [ebp - 4], 2
test cl, 2
je 0x1001c391
mov eax, dword [ebp - 0x30]
and ecx, 0xfffffffd
mov dword [ebp - 0xb8], ecx
mov dword [ebp - 0xc0], ecx
cmp eax, 0xf
jbe 0x1001c391
mov edx, dword [ebp - 0xc8]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x1001c381
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001c90c
push ecx
push edx
call fcn.1018eb3e
mov ecx, dword [ebp - 0xb8]
add esp, 8
cmp byte [ebp - 0xb9], 0
je 0x1001c5e2
mov eax, dword [ebp - 0x1c]
xorps xmm0, xmm0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x44], xmm0
cmp eax, 3
jb 0x1001c8e1
add eax, 0xfffffffd
mov ecx, 0xc
cmp eax, ecx
cmovb ecx, eax
cmp dword [ebp - 0x18], 0xf
lea eax, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
push ecx
add eax, 3
lea ecx, [ebp - 0x44]
push eax
call fcn.100191c0
mov esi, dword [ebp - 0xb8]
or esi, 0x10
mov dword [ebp - 0xc0], esi
mov byte [ebp - 4], 4
xorps xmm0, xmm0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
movups xmmword [ebp - 0x5c], xmm0
cmp eax, 0xf
jb 0x1001c8e1
add eax, 0xfffffff1
or ecx, 0xffffffff
cmp eax, 0xffffffff
cmovb ecx, eax
cmp dword [ebp - 0x18], 0xf
lea eax, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
push ecx
add eax, 0xf
lea ecx, [ebp - 0x5c]
push eax
call fcn.100191c0
or esi, 0x20
mov dword [ebp - 0xb8], esi
mov dword [ebp - 0xc0], esi
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 6
push eax
mov eax, dword [ebp - 0xd0]
add eax, 0x10
push eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x120]
push eax
call fcn.1001c920
push eax
lea ecx, [ebp - 0x74]
call fcn.10017500
mov ecx, dword [ebp - 0x10c]
cmp ecx, 0xf
jbe 0x1001c4b0
mov edx, dword [ebp - 0x120]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1001c4a6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001c8d7
push ecx
push edx
call fcn.1018eb3e
add esp, 8
mov eax, dword [ebp - 0xc4]
mov esi, dword [eax + 4]
cmp esi, dword [eax + 8]
je 0x1001c508
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xc8], esi
push eax
mov ecx, esi
call fcn.100175c0
lea eax, [ebp - 0x8c]
mov byte [ebp - 4], 7
push eax
lea ecx, [esi + 0x18]
call fcn.100175c0
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 8
push eax
lea ecx, [esi + 0x30]
call fcn.100175c0
mov esi, dword [ebp - 0xc4]
add dword [esi + 4], 0x48
mov dword [ebp - 4], 5
jmp 0x1001c557
lea ecx, [ebp - 0xa4]
push ecx
push esi
mov ecx, eax
call fcn.10023280
mov dword [ebp - 4], 5
jmp 0x1001c557
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x48]
cmp ecx, 0xf
jbe 0x1001c58f
mov edx, dword [ebp - 0x5c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1001c585
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001c8dc
push ecx
push edx
call fcn.1018eb3e
add esp, 8
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0xf
mov byte [ebp - 0x5c], 0
cmp ecx, 0xf
jbe 0x1001c802
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1001c5d3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001c8dc
push ecx
push edx
call fcn.1018eb3e
add esp, 8
jmp 0x1001c802
cmp dword [ebp - 0x18], 0xf
lea eax, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 0xb
xorps xmm0, xmm0
mov dword [ebp - 0xb0], eax
or ecx, 0x40
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xb4], eax
lea eax, [ebp - 0xac]
push eax
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xb4]
movq qword [ebp - 0xdc], xmm0
mov dword [ebp - 0xd4], 0
push eax
mov dword [ebp - 0xdc], 0
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xd4], 0
mov dword [ebp - 0xb8], ecx
mov dword [ebp - 0xc0], ecx
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x1001c8eb
mov eax, dword [ebp - 0xac]
mov ecx, dword [ebp - 0xa8]
push eax
push ecx
lea ecx, [ebp - 0xdc]
call fcn.10023110
push dword [ebp - 0xa8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea edx, [ebp - 0xdc]
lea ecx, [ebp - 0x44]
call fcn.1001bc50
push eax
lea ecx, [ebp - 0x74]
call fcn.10017500
mov ecx, dword [ebp - 0x30]
cmp ecx, 0xf
jbe 0x1001c6d8
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1001c6ce
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001c8e6
push ecx
push edx
call fcn.1018eb3e
add esp, 8
mov esi, dword [ebp - 0xb8]
and esi, 0xffffffbf
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0xdc]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
mov dword [ebp - 0xb8], esi
mov dword [ebp - 0xc0], esi
test ecx, ecx
je 0x1001c75b
mov edx, dword [ebp - 0xd4]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x1001c733
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001c8e6
push edx
push ecx
call fcn.1018eb3e
add esp, 8
mov dword [ebp - 0xdc], 0
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xd4], 0
mov eax, dword [ebp - 0xc4]
mov esi, dword [eax + 4]
cmp esi, dword [eax + 8]
je 0x1001c7b3
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xc8], esi
push eax
mov ecx, esi
call fcn.100175c0
lea eax, [ebp - 0x8c]
mov byte [ebp - 4], 0xc
push eax
lea ecx, [esi + 0x18]
call fcn.100175c0
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 0xd
push eax
lea ecx, [esi + 0x30]
call fcn.100175c0
mov esi, dword [ebp - 0xc4]
add dword [esi + 4], 0x48
mov dword [ebp - 4], 2
jmp 0x1001c802
lea ecx, [ebp - 0xa4]
push ecx
push esi
mov ecx, eax
call fcn.10023280
mov dword [ebp - 4], 2
jmp 0x1001c802
lea ecx, [ebp - 0xa4]
call fcn.10004f90
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xf
jbe 0x1001bdf7
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1001bfe4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001c90c
jmp 0x1001bfe4
push edi
call fcn.10073160
mov eax, dword [ebp - 0xc4]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1018e7c9
mov esp, ebp
pop ebp
ret 4
push str.Failed_to_get_Cookie
lea ecx, [ebp - 0x108]
call fcn.1001a300
push 0x102425dc
lea eax, [ebp - 0x108]
push eax
call fcn.101908e7
cmp dword [ebp - 0xcc], 0
je 0x1001c8b6
push 0x210e8
push str.L:DevGetDouYinCookieClientDll_srcLibrary_sqlite_sqlite3.c
push str.rcSQLITE_OK__ppStmt0__ppStmt0
call fcn.101aa953
add esp, 0xc
push str.Failed_to_prepare_SQL_statement
lea ecx, [ebp - 0xf0]
call fcn.1001a300
push 0x102425dc
lea eax, [ebp - 0xf0]
push eax
call fcn.101908e7
call fcn.1019b181
call fcn.1019b181
call fcn.10018190
call fcn.1019b181
push str.Failed_to_unprotect_data
lea ecx, [ebp - 0xfc]
call fcn.1001a300
push 0x102425dc
lea eax, [ebp - 0xfc]
push eax
call fcn.101908e7
call fcn.1019b181
int3