Function at 0x42c030
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5aae75
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x5fa040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
mov eax, ebx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x2c], 0
cmp dword [ebx + 0x14], 7
jbe 0x42c075
mov eax, dword [ebx]
push 0
push 0
lea ecx, [ebp - 0x2c]
push ecx
push 0
push 4
push dword [ebx + 0x10]
push eax
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
jne 0x42c0b2
mov dword [esi], eax
mov ecx, esi
mov dword [esi + 4], eax
mov dword [esi + 8], eax
push eax
mov dword [esi + 0xc], eax
push 0x5c0630
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
call fcn.004068c0
jmp 0x42c243
mov edi, dword [ebp - 0x2c]
inc edi
push edi
call fcn.0058813f
push edi
mov edi, eax
mov dword [ebp - 0x38], eax
push 0
push edi
call fcn.0058ad30
add esp, 0x10
mov dword [ebp - 0x4c], edi
mov dword [ebp - 4], 0
cmp dword [ebx + 0x14], 7
mov eax, dword [ebx + 0x10]
jbe 0x42c0e2
mov ebx, dword [ebx]
push 0
push 0
lea ecx, [ebp - 0x2c]
push ecx
push edi
push 4
push eax
push ebx
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
jne 0x42c127
xor eax, eax
mov ecx, esi
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
push eax
mov dword [esi + 0x10], eax
push 0x5c0630
mov dword [esi + 0x14], eax
call fcn.004068c0
push edi
call fcn.00588148
add esp, 4
jmp 0x42c243
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x34]
push eax
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x40], edi
push eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x34], 0
push eax
mov dword [ebp - 0x30], 0
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x42c0f9
mov ecx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x40]
test ecx, ecx
je 0x42c171
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x42c166
mov eax, dword [ebp - 0x34]
mov ecx, 2
inc eax
mul ecx
setb cl
movsx edi, cl
neg edi
or edi, eax
push edi
call fcn.0058813f
push edi
mov ebx, eax
push 0
push ebx
call fcn.0058ad30
mov dword [ebp - 0x50], ebx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x34]
mov eax, ecx
shr eax, 1
push eax
push dword [ebp - 0x30]
lea eax, [ecx + 1]
push eax
push ebx
call fcn.0059320b
mov ecx, dword [ebp - 0x34]
add esp, 0x20
mov eax, dword [ebp - 0x30]
test ecx, ecx
je 0x42c1ce
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x42c1c0
mov eax, dword [ebp - 0x30]
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
push eax
call edi
push dword [ebp - 0x3c]
call edi
xor eax, eax
mov ecx, ebx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
lea edx, [ecx + 2]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42c1f5
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x28]
call fcn.004068c0
mov eax, dword [ebp - 0x28]
mov dword [esi], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x14]
push ebx
mov dword [esi + 0x14], eax
call fcn.00588148
mov eax, dword [ebp - 0x38]
push eax
call fcn.00588148
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00587d99
mov esp, ebp
pop ebp
ret 8