Function at 0x401000
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
lea ebp, [esp - 0x104]
sub esp, 0x104
push 0xffffffffffffffff
push 0x411000
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x416060]
xor eax, ebp
mov dword [ebp + 0x100], 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, dword [ebp + 0x10c]
xor esi, esi
push 0x400
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], esi
call fcn.00403f86
mov ebx, eax
add esp, 4
mov dword [ebp - 0x20], ebx
or edi, 0xffffffff
jmp 0x401070
cmp esi, dword [ebp + 0x110]
jge 0x40109d
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x34]
push eax
add ecx, esi
push 0x413b44
push ecx
call fcn.00403f04
mov dl, byte [ebp - 0x34]
add edi, 1
add esp, 0xc
mov byte [edi + ebx], dl
add esi, 1
jmp 0x401070
push 8
call fcn.00403f86
add esp, 4
test eax, eax
je 0x4010b9
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov esi, eax
mov dword [ebp - 0x18], eax
jmp 0x4010be
xor esi, esi
mov dword [ebp - 0x18], esi
add edi, 1
push edi
call fcn.00403f86
add esp, 4
mov dword [esi + 4], eax
mov dword [esi], edi
xor eax, eax
cmp eax, dword [esi]
jae 0x4010ee
mov cl, byte [eax + ebx]
mov edi, dword [esi + 4]
shl cl, 4
or cl, byte [eax + ebx + 1]
mov edx, eax
shr edx, 1
mov byte [edx + edi], cl
add eax, 2
jmp 0x4010d1
lea eax, [ebp - 0x2c]
push eax
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x24]
push ecx
push esi
mov dword [ebp - 0x24], 0
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x4011c1
mov edi, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x1c]
push edi
push edx
push eax
call fcn.0040b290
mov eax, dword [0x417f00]
mov ecx, dword [ebp - 0x30]
add esp, 0xc
test eax, eax
mov dword [ecx], edi
je 0x401289
push edi
push str.WSRV:
push str._s____Decryption_Success___KeySize:__d_n
push 0x80000
call fcn.00402f50
mov eax, dword [0x417f00]
add esp, 0x10
test eax, eax
je 0x401289
mov edx, dword [ebp - 0x1c]
push edx
push str.WSRV:
push str._s_DecodeKey:__s_n
push 0x80000
call fcn.00402f50
mov eax, dword [0x417f00]
add esp, 0x10
test eax, eax
je 0x401289
mov ecx, dword [ebp - 0x14]
push ecx
push str.WSRV:
push str._s_EncodeKey:__s_n
push 0x80000
call fcn.00402f50
mov eax, dword [0x417f00]
add esp, 0x10
test eax, eax
je 0x401289
mov edx, dword [esi]
push edx
push str.WSRV:
push str._s_EncodeKeySize:__d_n
jmp 0x40127c
push 0xff
lea eax, [ebp + 1]
push 0
push eax
mov byte [ebp], 0
call fcn.0040b210
mov edx, dword [ebp - 0x1c]
lea ecx, [ebp]
push ecx
push 0x100
push edx
call fcn.00403e37
add esp, 0x18
cmp dword [0x417f00], 0
je 0x401289
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x417f00]
push str.WSRV:
push str._s____Decryption_error__Error__d_n
push 0x80000
call fcn.00402f50
mov eax, dword [0x417f00]
add esp, 0x10
test eax, eax
je 0x401289
mov ecx, dword [ebp - 0x2c]
push ecx
push str.WSRV:
push str._s_Decode_KeySize:__d_n
push 0x80000
call fcn.00402f50
mov eax, dword [0x417f00]
add esp, 0x10
test eax, eax
je 0x401289
mov edx, dword [ebp - 0x14]
push edx
push str.WSRV:
push str._s_EncodeKey:__s_n
push 0x80000
call fcn.00402f50
mov eax, dword [0x417f00]
add esp, 0x10
test eax, eax
je 0x401289
mov ecx, dword [ebp + 0x110]
push ecx
push str.WSRV:
push str._s_KeyLen:__d_n
push 0x80000
call fcn.00402f50
add esp, 0x10
push ebx
call fcn.00403f23
mov eax, dword [esi + 4]
add esp, 4
push eax
call fcn.00403f23
add esp, 4
push esi
call fcn.00403f23
mov edx, dword [ebp - 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
add esp, 4
push edx
call esi
mov eax, dword [ebp - 0x28]
push eax
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x100]
xor ecx, ebp
call fcn.00403e28
add ebp, 0x104
mov esp, ebp
pop ebp
ret