Function at 0x40a6f0
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42cfd0
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x168
mov eax, dword [0x438df0]
xor eax, ebp
mov dword [ebp - 0x40], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
push 0x400
call fcn.0040ba51
add esp, 4
mov dword [ebp - 0x16c], eax
mov eax, dword [ebp - 0x16c]
mov dword [ebp - 0x144], eax
mov ecx, dword [ebp - 0x144]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x28], 0xffffffff
mov dword [ebp - 0x24], 0
jmp 0x40a778
mov edx, dword [ebp - 0x24]
add edx, 1
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp + 0xc]
jge 0x40a7ae
lea ecx, [ebp - 0x38]
push ecx
push 0x42f498
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x24]
push edx
call fcn.0041a0b2
add esp, 0xc
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x14]
add ecx, dword [ebp - 0x28]
mov dl, byte [ebp - 0x38]
mov byte [ecx], dl
jmp 0x40a76f
mov dword [ebp - 0x148], 8
mov eax, dword [ebp - 0x148]
push eax
call fcn.0040ba51
add esp, 4
mov dword [ebp - 0x170], eax
mov ecx, dword [ebp - 0x170]
mov dword [ebp - 0x14c], ecx
cmp dword [ebp - 0x14c], 0
je 0x40a808
mov edx, dword [ebp - 0x148]
push edx
push 0
mov eax, dword [ebp - 0x14c]
push eax
call fcn.00418d60
add esp, 0xc
mov ecx, dword [ebp - 0x14c]
mov dword [ebp - 0x174], ecx
jmp 0x40a812
mov dword [ebp - 0x174], 0
mov edx, dword [ebp - 0x174]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x28]
add eax, 1
push eax
call fcn.0040ba51
add esp, 4
mov dword [ebp - 0x178], eax
mov ecx, dword [ebp - 0x178]
mov dword [ebp - 0x150], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x150]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 0x28]
add ecx, 1
mov edx, dword [ebp - 0x18]
mov dword [edx], ecx
mov dword [ebp - 0x3c], 0
jmp 0x40a865
mov eax, dword [ebp - 0x3c]
add eax, 2
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x3c]
cmp edx, dword [ecx]
jae 0x40a8a4
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x3c]
movzx ecx, byte [eax]
shl ecx, 4
mov byte [ebp - 0x29], cl
mov edx, dword [ebp - 0x14]
add edx, dword [ebp - 0x3c]
mov al, byte [edx + 1]
mov byte [ebp - 0x1d], al
mov ecx, dword [ebp - 0x3c]
shr ecx, 1
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 4]
movzx edx, byte [ebp - 0x1d]
movzx ebx, byte [ebp - 0x29]
or ebx, edx
mov byte [ecx + eax], bl
jmp 0x40a85c
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x34]
push eax
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x40a99b
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call fcn.00419120
add esp, 0xc
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x34]
mov dword [eax], ecx
cmp dword [0x43a380], 0
je 0x40a913
mov edx, dword [ebp - 0x34]
push edx
push 0x42f49c
push str._s____Decryption_Success___KeySize:__d_n
push 0x80000
mov eax, dword [0x43a380]
push eax
call fcn.00403f10
add esp, 0x14
cmp dword [0x43a380], 0
je 0x40a93e
mov ecx, dword [ebp + 0x10]
push ecx
push 0x42f4cc
push str._s_DecodeKey:__s_n
push 0x80000
mov edx, dword [0x43a380]
push edx
call fcn.00403f10
add esp, 0x14
cmp dword [0x43a380], 0
je 0x40a969
mov eax, dword [ebp + 8]
push eax
push 0x42f4e8
push 0x42f4f0
push 0x80000
mov ecx, dword [0x43a380]
push ecx
call fcn.00403f10
add esp, 0x14
cmp dword [0x43a380], 0
je 0x40a996
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
push eax
push 0x42f504
push str._s_EncodeKeySize:__d_n
push 0x80000
mov ecx, dword [0x43a380]
push ecx
call fcn.00403f10
add esp, 0x14
jmp 0x40aa7e
mov byte [ebp - 0x140], 0
push 0xff
push 0
lea edx, [ebp - 0x13f]
push edx
call fcn.00418d60
add esp, 0xc
lea eax, [ebp - 0x140]
push eax
push 0x100
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.004198fb
add esp, 0xc
cmp dword [0x43a380], 0
je 0x40a9fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x42f524
push str._s____Decryption_error__Error__d_n
push 0x80000
mov edx, dword [0x43a380]
push edx
call fcn.00403f10
add esp, 0x14
cmp dword [0x43a380], 0
je 0x40aa29
mov eax, dword [ebp - 0x34]
push eax
push 0x42f550
push str._s_Decode_KeySize:__d_n
push 0x80000
mov ecx, dword [0x43a380]
push ecx
call fcn.00403f10
add esp, 0x14
cmp dword [0x43a380], 0
je 0x40aa53
mov edx, dword [ebp + 8]
push edx
push 0x42f570
push str._s_EncodeKey:__s_n
push 0x80000
mov eax, dword [0x43a380]
push eax
call fcn.00403f10
add esp, 0x14
cmp dword [0x43a380], 0
je 0x40aa7e
mov ecx, dword [ebp + 0xc]
push ecx
push 0x42f58c
push str._s_KeyLen:__d_n
push 0x80000
mov edx, dword [0x43a380]
push edx
call fcn.00403f10
add esp, 0x14
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x154], eax
mov ecx, dword [ebp - 0x154]
push ecx
call fcn.0040ba8b
add esp, 4
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 4]
mov dword [ebp - 0x158], eax
mov ecx, dword [ebp - 0x158]
push ecx
call fcn.0040ba8b
add esp, 4
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x15c], edx
mov eax, dword [ebp - 0x15c]
push eax
call fcn.0040ba8b
add esp, 4
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x40ab67
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x40]
xor ecx, ebp
call fcn.004183cd
mov esp, ebp
pop ebp
ret