Function at 0x46f8fc
Capabilities:
Set file attributes

Disassembly:
sub esp, 0x114
push ebx
push ebp
push esi
push edi
push 2
xor eax, eax
lea edi, [esp + 0x20]
mov ebp, ecx
xor esi, esi
pop ecx
mov dword [esp + 0x18], ecx
mov ebx, edx
stosd dword es:[edi], eax
push 0x48
push esi
mov dword [esp + 0x48], ecx
stosd dword es:[edi], eax
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x54]
push eax
mov dword [esp + 0x38], 0xfa0
mov dword [esp + 0x3c], 0x8009
mov dword [esp + 0x40], 0x6603
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
call fcn.0049ee30
mov eax, dword [esp + 0x14c]
xorps xmm0, xmm0
mov dword [esp + 0xa8], eax
add esp, 0xc
mov dword [esp + 0x94], esi
lea eax, [esp + 0x18]
mov dword [esp + 0x98], esi
movlpd qword [esp + 0xa0], xmm0
movlpd qword [esp + 0xa8], xmm0
movlpd qword [esp + 0xb0], xmm0
movlpd qword [esp + 0xb8], xmm0
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], esi
mov dword [esp + 0xc8], esi
mov dword [esp + 0xcc], esi
test ebx, ebx
je 0x46fbab
push str.Key_GUID:
call fcn.00409cda
pop ecx
mov ecx, ebx
call fcn.0040f8a2
push 0x4c75d0
call fcn.00409cda
mov edi, dword [esp + 0x12c]
pop ecx
test edi, edi
je 0x46fba0
mov esi, dword [esp + 0x12c]
test esi, esi
je 0x46fba0
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.ntdll.dll_RtlStringFromGUID]
test eax, eax
js 0x46fbab
push 0x10
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.cryptdll.dll_CDGenerateRandomBits]
movzx eax, word [esp + 0x10]
sub eax, 4
push eax
mov eax, dword [esp + 0x18]
add eax, 2
push eax
lea eax, [esp + 0x54]
push eax
call fcn.0049fa90
add esp, 0xc
cmp dword [esp + 0x130], 0
je 0x46fa78
push ecx
mov ecx, dword [esp + 0xa0]
lea edx, [esp + 0x1c]
push esi
push edi
push dword [esp + 0x148]
push ebp
push dword [esp + 0x144]
call fcn.0040732f
add esp, 0x18
test eax, eax
jne 0x46faba
push str.ERROR_kuhl_m_dpapi_create_data___kull_m_dpapi_protect_masterkey_with_password_n
jmp 0x46fab4
mov edx, dword [esp + 0x134]
test edx, edx
je 0x46faba
cmp dword [esp + 0x138], 0
je 0x46faba
push ecx
push esi
push edi
push dword [esp + 0x148]
lea ecx, [esp + 0x28]
push ebp
push dword [esp + 0x14c]
call fcn.004073c5
add esp, 0x18
test eax, eax
jne 0x46faba
push str.ERROR_kuhl_m_dpapi_create_data___kull_m_dpapi_protect_masterkey_with_userHash_n
call fcn.00409cda
pop ecx
cmp dword [esp + 0x38], 0
je 0x46fbab
lea edx, [esp + 0xa0]
lea ecx, [esp + 0x40]
call fcn.0040643f
mov ebp, dword [sym.imp.KERNEL32.dll_LocalFree]
mov ebx, eax
test ebx, ebx
je 0x46fb98
cmp dword [esp + 0x144], 0
je 0x46fb0c
push 0x4d3dd0
push 0
push str._sMASTERKEYS_n
call fcn.00409cda
add esp, 0xc
lea ecx, [esp + 0x40]
call fcn.0040631c
push 0x12
pop ecx
xor eax, eax
lea esi, [esp + 0x4c]
lea edi, [esp + 0xd0]
rep movsd dword es:[edi], dword [esi]
mov word [esp + 0x118], ax
lea eax, [esp + 0xd0]
push eax
push str.File__s__hidden__system_:
call fcn.00409cda
push dword [esp + 0xa8]
mov edx, ebx
lea ecx, [esp + 0xdc]
call fcn.00407eb5
add esp, 0xc
test eax, eax
je 0x46fb82
push 0x26
lea eax, [esp + 0xd4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x46fb74
push 0x4ea464
call fcn.00409cda
jmp 0x46fb94
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR_kuhl_m_dpapi_create_data___SetFileAttributes__0x_08x__n
jmp 0x46fb8e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR_kuhl_m_dpapi_create_data___kull_m_file_writeData__0x_08x__n
call fcn.00409cda
pop ecx
pop ecx
push ebx
call ebp
push dword [esp + 0x38]
call ebp
jmp 0x46fbab
push str.ERROR_kuhl_m_dpapi_create_data___No_key_n
call fcn.00409cda
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret