Function at 0x401000
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5433c0
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x59bad0]
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 dword [ebp - 0x118], eax
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x138], edx
xor edi, edi
mov dword [ebp - 0x120], edi
mov dword [ebp - 0x128], edi
mov dword [ebp - 4], edi
push 0x400
call fcn.0041c286
add esp, 4
mov ebx, eax
mov dword [ebp - 0x120], ebx
or esi, 0xffffffff
mov dword [ebp - 0x134], esi
mov dword [ebp - 0x144], edi
cmp edi, dword [ebp + 0xc]
jge 0x4010b0
lea eax, [ebp - 0x13c]
push eax
push 0x5728b0
mov ecx, dword [ebp - 0x118]
add ecx, edi
push ecx
call fcn.0051c4df
add esp, 0xc
inc esi
mov dword [ebp - 0x134], esi
mov dl, byte [ebp - 0x13c]
mov byte [esi + ebx], dl
inc edi
jmp 0x401075
push 8
call fcn.0041c286
add esp, 4
test eax, eax
je 0x4010c7
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
jmp 0x4010c9
xor eax, eax
mov edi, eax
mov dword [ebp - 0x128], edi
inc esi
push esi
call fcn.0041c286
add esp, 4
mov dword [edi + 4], eax
mov dword [edi], esi
xor eax, eax
mov dword [ebp - 0x140], eax
cmp eax, dword [edi]
jae 0x40110b
mov cl, byte [eax + ebx]
shl cl, 4
movzx edx, byte [eax + ebx + 1]
movzx ecx, cl
or edx, ecx
mov ecx, eax
shr ecx, 1
mov esi, dword [edi + 4]
mov byte [ecx + esi], dl
add eax, 2
jmp 0x4010e2
mov dword [ebp - 0x124], 0
lea edx, [ebp - 0x130]
push edx
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x124]
push eax
push edi
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x4011f9
mov esi, dword [ebp - 0x130]
push esi
mov ecx, dword [ebp - 0x12c]
push ecx
mov edx, dword [ebp - 0x11c]
push edx
call fcn.005225f0
add esp, 0xc
mov eax, dword [ebp - 0x138]
mov dword [eax], esi
mov eax, dword [0x5a3ae0]
test eax, eax
je 0x4012d0
push esi
push str.WSRV:
push str._s____Decryption_Success___KeySize:__d_n
push 0x80000
call fcn.00402f40
add esp, 0x10
mov eax, dword [0x5a3ae0]
test eax, eax
je 0x4012d0
mov ecx, dword [ebp - 0x11c]
push ecx
push str.WSRV:
push str._s_DecodeKey:__s_n
push 0x80000
call fcn.00402f40
add esp, 0x10
mov eax, dword [0x5a3ae0]
test eax, eax
je 0x4012d0
mov edx, dword [ebp - 0x118]
push edx
push str.WSRV:
push str._s_EncodeKey:__s_n
push 0x80000
call fcn.00402f40
add esp, 0x10
mov eax, dword [0x5a3ae0]
test eax, eax
je 0x4012d0
mov ecx, dword [edi]
push ecx
push str.WSRV:
push str._s_EncodeKeySize:__d_n
jmp 0x4012c3
mov byte [ebp - 0x114], 0
push 0xff
push 0
lea edx, [ebp - 0x113]
push edx
call fcn.0051f1a0
lea eax, [ebp - 0x114]
push eax
push 0x100
mov ecx, dword [ebp - 0x11c]
push ecx
call fcn.0051c501
add esp, 0x18
cmp dword [0x5a3ae0], 0
je 0x4012d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WSRV:
push str._s____Decryption_error__Error__d_n
push 0x80000
mov eax, dword [0x5a3ae0]
call fcn.00402f40
add esp, 0x10
mov eax, dword [0x5a3ae0]
test eax, eax
je 0x4012d0
mov edx, dword [ebp - 0x130]
push edx
push str.WSRV:
push str._s_Decode_KeySize:__d_n
push 0x80000
call fcn.00402f40
add esp, 0x10
mov eax, dword [0x5a3ae0]
test eax, eax
je 0x4012d0
mov ecx, dword [ebp - 0x118]
push ecx
push str.WSRV:
push str._s_EncodeKey:__s_n
push 0x80000
call fcn.00402f40
add esp, 0x10
mov eax, dword [0x5a3ae0]
test eax, eax
je 0x4012d0
mov edx, dword [ebp + 0xc]
push edx
push str.WSRV:
push str._s_KeyLen:__d_n
push 0x80000
call fcn.00402f40
add esp, 0x10
push ebx
call fcn.0041c2c0
mov eax, dword [edi + 4]
push eax
call fcn.0041c2c0
push edi
call fcn.0041c2c0
add esp, 0xc
mov eax, dword [ebp - 0x124]
push eax
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
mov ecx, dword [ebp - 0x12c]
push ecx
call esi
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 - 0x14]
xor ecx, ebp
call fcn.0051c462
mov esp, ebp
pop ebp
ret