Function at 0x4b9820
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c0
mov eax, dword [0x4e8014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
push esi
mov dword [ebp - 0x1b8], esi
xor edi, edi
call fcn.0042e6a0
add esp, 4
mov dword [ebp - 0x1a8], eax
cmp eax, 0x64
jne 0x4b9aa3
nop dword [eax + eax]
push edi
inc ebx
push esi
mov dword [ebp - 0x1ac], ebx
call fcn.0042eef0
push edi
push esi
mov ebx, eax
call fcn.0042efa0
mov esi, eax
add esp, 0x10
mov dword [ebp - 0x1b0], esi
test esi, esi
je 0x4b9a78
test ebx, ebx
je 0x4b9a78
cmp byte [0x4ed33c], 0
je 0x4b995a
xorps xmm0, xmm0
mov dword [ebp - 0x1bc], ebx
push 0
movlpd qword [ebp - 0x1b4], xmm0
mov dword [ebp - 0x1c0], esi
mov dword [ebp - 0x1a8], 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 0x1b4]
push eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1a8]
push eax
lea eax, [ebp - 0x1c0]
push eax
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x4b992f
mov eax, dword [0x4ef740]
push dword [ebp - 0x1b0]
push str._s_r_n___Get_Cookie_Successfully_r_n_r_n
lea eax, [eax + 0x4ed740]
push eax
call fcn.004b8c80
add dword [0x4ef740], eax
add esp, 0xc
mov ebx, dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x1b0]
call ebx
push dword [ebp - 0x1a8]
call ebx
jmp 0x4b9a51
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x4ef740]
push str.____CryptUnprotectData_Decrypt_Failed__Error_is__d_r_n
lea eax, [eax + 0x4ed740]
push eax
call fcn.004b8c80
add esp, 0xc
add dword [0x4ef740], eax
jmp 0x4b9a51
lea eax, [ebp - 0x1a4]
push eax
call fcn.004b9440
cmp dword [0x4ed338], 0x20
mov ecx, 0x100
mov eax, 0x80
cmove eax, ecx
push eax
push 0x4ecb38
lea eax, [ebp - 0x1a4]
push 2
push eax
call fcn.004b9460
xorps xmm0, xmm0
add esi, esi
push esi
movups xmmword [ebp - 0x24], xmm0
movups xmmword [ebp - 0x14], xmm0
call fcn.004bad8f
push esi
mov esi, eax
mov dword [ebp - 0x1a8], eax
push 0
push esi
call fcn.004bb940
mov eax, dword [ebx + 0xb]
movq xmm0, qword [ebx + 3]
push esi
mov dword [ebp - 0x1c], eax
lea eax, [ebx + 0xf]
push eax
push 0
push 0
push 0
push 0
push 0xc
lea eax, [ebp - 0x24]
movq qword [ebp - 0x24], xmm0
push eax
mov eax, dword [ebp - 0x1b0]
add eax, 0xffffffe1
push eax
lea eax, [ebp - 0x1a4]
push eax
call fcn.004b90d0
mov ebx, eax
add esp, 0x4c
test ebx, ebx
je 0x4b9a17
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x4ef740]
push ebx
push str.____AES_GCM_Decrypt_Failed__ret_is__d_Error_is__d_r_n
lea eax, [eax + 0x4ed740]
push eax
call fcn.004b8c80
add esp, 0x10
jmp 0x4b9a31
mov eax, dword [0x4ef740]
push esi
push str._s_r_n___Get_Cookie_Successfully_r_n_r_n
lea eax, [eax + 0x4ed740]
push eax
call fcn.004b8c80
add esp, 0xc
add eax, dword [0x4ef740]
mov dword [0x4ef740], eax
lea eax, [ebp - 0x1a4]
push eax
call fcn.004b9410
push esi
call fcn.004bad98
add esp, 8
mov esi, dword [ebp - 0x1b8]
push esi
call fcn.0042e6a0
mov ebx, dword [ebp - 0x1ac]
add esp, 4
inc edi
mov dword [ebp - 0x1a8], eax
cmp eax, 0x64
je 0x4b9860
jmp 0x4b9a9d
mov eax, dword [0x4ef740]
push str.____Queried_Data_is_NULL_r_n
lea eax, [eax + 0x4ed740]
push eax
call fcn.004b8c80
add esp, 8
add dword [0x4ef740], eax
mov eax, dword [ebp - 0x1a8]
mov ebx, dword [ebp - 0x1ac]
cmp eax, 0x65
jne 0x4b9adf
test ebx, ebx
jne 0x4b9adf
mov eax, dword [0x4ef740]
push str.____Could_Not_Find_Cookies_You_Queried_r_n
lea eax, [eax + 0x4ed740]
push eax
call fcn.004b8c80
add dword [0x4ef740], eax
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bab62
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bab62
mov esp, ebp
pop ebp
ret