Function at 0x407630
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x513e50
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x567650]
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, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
xor esi, esi
push 0x400
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x124], esi
mov dword [ebp - 0x11c], esi
mov dword [ebp - 4], esi
call fcn.0040858d
mov ebx, eax
add esp, 4
mov dword [ebp - 0x124], ebx
or edi, 0xffffffff
cmp esi, dword [ebp + 0xc]
jge 0x4076d4
mov ecx, dword [ebp - 0x118]
lea eax, [ebp - 0x138]
push eax
add ecx, esi
push 0x522ce8
push ecx
call fcn.004fcc39
mov dl, byte [ebp - 0x138]
inc edi
add esp, 0xc
mov byte [edi + ebx], dl
inc esi
jmp 0x4076a5
push 8
call fcn.0040858d
add esp, 4
test eax, eax
je 0x4076f3
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov esi, eax
mov dword [ebp - 0x11c], eax
jmp 0x4076fb
xor esi, esi
mov dword [ebp - 0x11c], esi
inc edi
push edi
call fcn.0040858d
add esp, 4
mov dword [esi + 4], eax
mov dword [esi], edi
xor eax, eax
lea esp, [esp]
cmp eax, dword [esi]
jae 0x40772d
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 0x407710
lea eax, [ebp - 0x130]
push eax
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x128]
push ecx
push esi
mov dword [ebp - 0x128], 0
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x40781e
mov edi, dword [ebp - 0x130]
mov edx, dword [ebp - 0x12c]
mov eax, dword [ebp - 0x120]
push edi
push edx
push eax
call fcn.004fc250
mov ecx, dword [ebp - 0x134]
mov dword [ecx], edi
mov eax, dword [0x568d00]
add esp, 0xc
test eax, eax
je 0x4078f9
push edi
push str.WSRV:
push str._s____Decryption_Success___KeySize:__d_n
push 0x80000
push eax
call fcn.00402b30
mov eax, dword [0x568d00]
add esp, 0x14
test eax, eax
je 0x4078f9
mov edx, dword [ebp - 0x120]
push edx
push str.WSRV:
push str._s_DecodeKey:__s_n
push 0x80000
push eax
call fcn.00402b30
mov eax, dword [0x568d00]
add esp, 0x14
test eax, eax
je 0x4078f9
mov ecx, dword [ebp - 0x118]
push ecx
push str.WSRV:
push str._s_EncodeKey:__s_n
push 0x80000
push eax
call fcn.00402b30
mov eax, dword [0x568d00]
add esp, 0x14
test eax, eax
je 0x4078f9
mov edx, dword [esi]
push edx
push str.WSRV:
push str._s_EncodeKeySize:__d_n
jmp 0x4078eb
push 0xff
lea eax, [ebp - 0x113]
push 0
push eax
mov byte [ebp - 0x114], 0
call fcn.004fc170
mov edx, dword [ebp - 0x120]
lea ecx, [ebp - 0x114]
push ecx
push 0x100
push edx
call fcn.004fc107
add esp, 0x18
cmp dword [0x568d00], 0
je 0x4078f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x568d00]
push str.WSRV:
push str._s____Decryption_error__Error__d_n
push 0x80000
push eax
call fcn.00402b30
mov eax, dword [0x568d00]
add esp, 0x14
test eax, eax
je 0x4078f9
mov ecx, dword [ebp - 0x130]
push ecx
push str.WSRV:
push str._s_Decode_KeySize:__d_n
push 0x80000
push eax
call fcn.00402b30
mov eax, dword [0x568d00]
add esp, 0x14
test eax, eax
je 0x4078f9
mov edx, dword [ebp - 0x118]
push edx
push str.WSRV:
push str._s_EncodeKey:__s_n
push 0x80000
push eax
call fcn.00402b30
mov eax, dword [0x568d00]
add esp, 0x14
test eax, eax
je 0x4078f9
mov ecx, dword [ebp + 0xc]
push ecx
push str.WSRV:
push str._s_KeyLen:__d_n
push 0x80000
push eax
call fcn.00402b30
add esp, 0x14
push ebx
call fcn.004085c7
mov eax, dword [esi + 4]
add esp, 4
push eax
call fcn.004085c7
add esp, 4
push esi
call fcn.004085c7
mov edx, dword [ebp - 0x128]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
add esp, 4
push edx
call esi
mov eax, dword [ebp - 0x12c]
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 - 0x14]
xor ecx, ebp
call fcn.004fb314
mov esp, ebp
pop ebp
ret