Function at 0x401120
Capabilities:
Decode data using base64 via winapi
Encrypt data using dpapi
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
xor edi, edi
push edi
push 0x20
push 3
push edi
push 1
push 0x80000000
push eax
mov dword [ebp - 4], 1
xor ebx, ebx
xor esi, esi
mov dword [ebp - 8], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
jne 0x40116a
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push edi
push edi
push 2
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x14], eax
cmp eax, edi
je 0x401161
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x10], eax
cmp eax, edi
je 0x401161
push str._encrypted_key_:_
push eax
call fcn.00401440
add esp, 8
cmp eax, edi
je 0x4011e3
add eax, 0x11
push 0x22
push eax
mov dword [ebp - 0xc], eax
call fcn.00401380
mov esi, eax
add esp, 8
sub esi, dword [ebp - 0xc]
je 0x4011e3
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
cmp ebx, edi
je 0x4011e3
push esi
push edi
push ebx
call fcn.00402de0
mov ecx, dword [ebp - 0xc]
push esi
push ecx
push esi
push ebx
call fcn.0040156d
add esp, 0x1c
jmp 0x4011e6
mov dword [ebp - 4], edi
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], edi
je 0x4012cb
push edi
push edi
lea edx, [ebp - 8]
push edx
push edi
push 1
push esi
push ebx
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
je 0x4012cb
mov eax, dword [ebp - 8]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0xc], eax
cmp eax, edi
je 0x4012ae
push edi
push edi
lea ecx, [ebp - 8]
push ecx
push eax
push 1
push esi
push ebx
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
je 0x4012ae
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 0x20]
push ecx
push edi
push edi
push edi
add edx, 0xfffffffb
push edi
mov dword [ebp - 0x28], edx
push edi
lea edx, [ebp - 0x28]
add eax, 5
push edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x4012ae
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp + 8]
push eax
push ecx
push 0x20
push edx
call fcn.0040156d
mov eax, dword [ebp - 0xc]
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xc]
push eax
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret