Function at 0x401d58
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x131c
call fcn.0043fb00
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp dword [ebp + 0x14], ebx
push esi
push edi
mov dword [eax + 4], ebx
je 0x401d81
push dword [ebp + 0x10]
push dword [ebp + 0x14]
push eax
jmp 0x401e88
mov edi, 0x7fe
push edi
lea eax, [ebp - 0xb16]
push ebx
push eax
mov word [ebp - 0xb18], bx
call sub.msvcrt.dll_memset
add esp, 0xc
push dword [ebp + 0xc]
lea esi, [ebp - 0xb18]
call fcn.00406e2b
pop ecx
mov eax, esi
push 0x5c
push eax
call sub.msvcrt.dll_wcsrchr
cmp eax, ebx
pop ecx
pop ecx
je 0x401dc0
mov word [eax], bx
push edi
lea eax, [ebp - 0x1316]
push ebx
push eax
mov word [ebp - 0x1318], bx
call sub.msvcrt.dll_memset
add esp, 0xc
mov edi, str.Local_State
push edi
call sub.msvcrt.dll_wcslen
mov esi, eax
pop ecx
lea eax, [ebp - 0xb18]
push eax
call sub.msvcrt.dll_wcslen
lea eax, [esi + eax + 1]
cmp eax, 0x3ff
pop ecx
jae 0x401e15
lea eax, [ebp - 0xb18]
push edi
push eax
lea eax, [ebp - 0x1318]
call fcn.00406ed9
pop ecx
pop ecx
jmp 0x401e1c
mov word [ebp - 0x1318], bx
lea eax, [ebp - 0x1318]
push eax
call fcn.00406d56
test eax, eax
pop ecx
jne 0x401e7b
push dword [ebp + 0xc]
lea esi, [ebp - 0xb18]
call fcn.00406e2b
pop ecx
push edi
call sub.msvcrt.dll_wcslen
mov esi, eax
pop ecx
lea eax, [ebp - 0xb18]
push eax
call sub.msvcrt.dll_wcslen
lea eax, [esi + eax + 1]
cmp eax, 0x3ff
pop ecx
jae 0x401e74
lea eax, [ebp - 0xb18]
push edi
push eax
lea eax, [ebp - 0x1318]
call fcn.00406ed9
pop ecx
pop ecx
jmp 0x401e7b
mov word [ebp - 0x1318], bx
push dword [ebp + 0x10]
lea eax, [ebp - 0x1318]
push eax
push dword [ebp + 8]
call fcn.00402238
mov esi, 0x104
push esi
lea eax, [ebp - 0x197]
push ebx
push eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0x1388
mov byte [ebp - 0x198], bl
call sub.msvcrt.dll_memset
add esp, 0xc
push esi
lea eax, [ebp - 0x198]
push eax
push dword [ebp + 0xc]
call fcn.004076b8
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x198]
push eax
mov dword [ebp - 0xc], ebx
call fcn.0043d358
mov edi, dword [ebp - 0xc]
cmp edi, ebx
pop ecx
pop ecx
je 0x402229
lea eax, [ebp + 0x14]
push eax
push ebx
push ebx
push 0xffffffffffffffff
push str.SELECT_creation_utc__host_key__name__value__path__expires_utc__is_secure__is_httponly__last_access_utc__encrypted_value_FROM_cookies
lea esi, [ebp + 0xc]
mov eax, edi
mov dword [ebp + 0xc], ebx
mov dword [ebp - 0x20], 1
call fcn.0043123b
add esp, 0x14
cmp dword [ebp + 0xc], ebx
jne 0x401f51
lea eax, [ebp + 0x14]
push eax
push ebx
push ebx
push 0xffffffffffffffff
push str.SELECT_creation_utc__host_key__name__value__path__expires_utc__secure__httponly__last_access_utc__encrypted_value_FROM_cookies
mov eax, edi
call fcn.0043123b
add esp, 0x14
cmp dword [ebp + 0xc], ebx
jne 0x401f51
lea eax, [ebp + 0x14]
push eax
push ebx
push ebx
push 0xffffffffffffffff
push str.SELECT_creation_utc__host_key__name__value__path__expires_utc__secure__httponly__last_access_utc_FROM_cookies
mov eax, edi
mov dword [ebp - 0x20], ebx
call fcn.0043123b
add esp, 0x14
cmp dword [ebp + 0xc], ebx
je 0x402221
mov eax, dword [ebp + 0xc]
call fcn.0041f9c8
cmp eax, 0x64
jne 0x402219
jmp 0x401f66
xor ebx, ebx
mov edi, dword [ebp + 0xc]
xor eax, eax
inc eax
mov ecx, edi
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
call fcn.0041fc11
mov dword [ebp - 0x60], eax
push 2
pop eax
mov ecx, edi
call fcn.0041fc11
mov dword [ebp - 0x68], eax
push 3
pop eax
mov ecx, edi
call fcn.0041fc11
mov dword [ebp - 0x64], eax
push 4
pop eax
mov ecx, edi
call fcn.0041fc11
mov dword [ebp - 0x5c], eax
push 6
pop eax
mov ecx, edi
call fcn.0041fbd1
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x58], eax
push 7
pop eax
mov ecx, edi
call fcn.0041fbd1
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x54], eax
xor eax, eax
mov ecx, edi
call fcn.0041fbef
mov esi, eax
push 8
pop eax
mov ecx, edi
mov ebx, edx
call fcn.0041fbef
mov ecx, dword [ebp + 0xc]
mov edi, eax
push 5
pop eax
mov dword [ebp - 0x6c], edx
call fcn.0041fbef
push ebx
mov dword [ebp - 0x34], ebx
push esi
lea ebx, [ebp - 0x48]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x38], esi
call fcn.00401c34
push dword [ebp - 0x6c]
lea ebx, [ebp - 0x40]
push edi
call fcn.00401c34
push dword [ebp - 0x2c]
lea ebx, [ebp - 0x50]
push dword [ebp - 0x30]
call fcn.00401c34
xor ebx, ebx
add esp, 0x18
cmp dword [ebp - 0x20], ebx
je 0x4021fd
mov edi, dword [ebp + 0xc]
push 9
pop eax
mov ecx, edi
call fcn.0041fb51
mov ecx, eax
call fcn.0041d12d
mov esi, edi
mov dword [ebp - 0x10], eax
call fcn.0041fbb3
cmp dword [ebp - 0x10], 0xf
jle 0x4021fd
push 9
pop eax
mov ecx, edi
call fcn.0041fb51
mov esi, eax
call fcn.0041f73a
mov esi, edi
mov dword [ebp + 0x14], eax
call fcn.0041fbb3
cmp dword [ebp + 0x14], ebx
je 0x4021fd
push 3
push 0x440738
push dword [ebp + 0x14]
call sub.msvcrt.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x40217f
mov eax, dword [ebp + 8]
cmp dword [eax + 4], ebx
je 0x4021fd
xor eax, eax
mov byte [ebp - 0x90], bl
lea edi, [ebp - 0x8f]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [ebp - 0x80], bl
lea edi, [ebp - 0x7f]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x318]
push eax
call fcn.0043daae
mov eax, dword [ebp + 8]
add eax, 8
pop ecx
push eax
mov ebx, 0x100
lea eax, [ebp - 0x318]
call fcn.0043dcc0
mov ebx, dword [ebp - 0x10]
lea esi, [ebx - 0xf]
cmp esi, 0x10
pop ecx
jle 0x4021fd
lea eax, [esi + 0xa]
push eax
lea eax, [ebp - 0x1c]
call fcn.00407f88
mov edi, dword [ebp + 0x14]
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x1c]
lea eax, [edi + 0xf]
push eax
lea eax, [edi + 3]
push eax
lea eax, [esi - 0x10]
push eax
lea eax, [ebp - 0x318]
call fcn.0043e26b
lea eax, [ebp - 0x318]
add esp, 0x14
push eax
call fcn.0043e29d
pop ecx
push 0x10
lea eax, [edi + ebx - 0x10]
push eax
lea eax, [ebp - 0x80]
push eax
call sub.msvcrt.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x4021fd
mov eax, dword [ebp - 0x1c]
mov byte [eax + esi - 0x10], 0
mov dword [ebp - 0x64], eax
jmp 0x4021fd
xor eax, eax
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
lea edi, [ebp - 4]
mov dword [ebp - 8], ebx
stosd dword es:[edi], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x4021ae
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0x28]
push ecx
call fcn.00404f88
jmp 0x4021c1
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
cmp eax, ebx
je 0x4021fd
cmp dword [ebp - 4], ebx
je 0x4021fd
mov eax, dword [ebp - 8]
add eax, 0xa
push eax
lea eax, [ebp - 0x1c]
call fcn.00407f88
push dword [ebp - 8]
mov esi, dword [ebp - 0x1c]
push dword [ebp - 4]
push esi
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 8]
add esp, 0xc
mov byte [esi + eax], bl
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_LocalFree]
mov dword [ebp - 0x64], esi
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
lea edx, [ebp - 0x68]
push edx
call dword [eax]
mov eax, dword [ebp + 0xc]
call fcn.0041f9c8
cmp eax, 0x64
je 0x401f64
mov eax, dword [ebp + 0xc]
call fcn.0041f6b5
mov esi, dword [ebp - 0xc]
call fcn.0043c9c6
lea esi, [ebp - 0x1c]
call fcn.00407feb
pop edi
pop esi
pop ebx
leave
ret 0x10