Function at 0x5fa38f20
Capabilities:
Encrypt data using aes via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x5f9f30e6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xcc
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x5f9f12c0
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x28], edi
mov eax, dword [eax]
mov dword [ebp - 0x2c], edi
push eax
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x8c], edi
mov dword [ebp - 0x9c], edi
mov dword [ebp - 0xac], edi
mov dword [ebp - 0xb4], edi
call fcn.5f9f305d
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
lea edx, [ebp - 0x5c]
mov dword [ebp - 0x5c], 8
mov eax, dword [ecx]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0x54], eax
call dword [sym.imp.MSVBVM60.DLL___vbaVarCopy]
call fcn.5fa395c0
cmp eax, edi
mov dword [ebp - 0x34], eax
je 0x5fa3956d
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaRedim]
push edi
push 4
push 1
lea edx, [ebp - 0x4c]
push edi
push edx
push 0x10
push 0x880
call ebx
lea eax, [ebp - 0x34]
mov dword [ebp - 0x5c], 0x4003
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x4c]
add esp, 0x1c
lea edx, [ebp - 0x5c]
mov ecx, dword [eax + 0x14]
shl ecx, 4
mov esi, ecx
mov ecx, dword [eax + 0xc]
sub ecx, esi
call dword [sym.imp.MSVBVM60.DLL___vbaVarZero]
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x64], 0x8003
mov dword [ebp - 0x6c], 3
lea edx, [ebp - 0x6c]
mov ecx, dword [eax + 0x14]
shl ecx, 4
mov esi, ecx
mov ecx, dword [eax + 0xc]
sub ecx, esi
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaVarMove]
add ecx, 0x10
call esi
mov eax, dword [ebp - 0x4c]
mov ecx, 2
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], ecx
sub ecx, dword [eax + 0x14]
lea edx, [ebp - 0x7c]
shl ecx, 4
add ecx, dword [eax + 0xc]
call esi
mov eax, dword [ebp - 0x4c]
mov ecx, 3
mov dword [ebp - 0x84], edi
mov dword [ebp - 0x8c], 2
sub ecx, dword [eax + 0x14]
lea edx, [ebp - 0x8c]
shl ecx, 4
add ecx, dword [eax + 0xc]
call esi
lea edx, [ebp - 0x30]
push edx
call dword [sym.imp.MSVBVM60.DLL_VarPtr]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x4c]
mov ecx, 4
mov dword [ebp - 0x9c], 3
sub ecx, dword [eax + 0x14]
lea edx, [ebp - 0x9c]
shl ecx, 4
add ecx, dword [eax + 0xc]
call esi
lea eax, [ebp - 0x4c]
mov ecx, 0x14
push eax
mov eax, dword [0x5faa31f8]
mov edx, dword [eax + 0x14]
sub ecx, edx
mov edx, dword [eax + 0xc]
mov eax, dword [edx + ecx*4]
push eax
call fcn.5f9f2d98
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0xb0], eax
push ecx
push edi
call dword [sym.imp.MSVBVM60.DLL___vbaErase]
cmp dword [ebp - 0xb0], edi
je 0x5fa393f4
push edi
push 3
push 1
lea edx, [ebp - 0x4c]
push edi
push edx
push 0x10
push 0x880
call ebx
lea eax, [ebp - 0x30]
mov dword [ebp - 0x5c], 0x4003
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x4c]
add esp, 0x1c
lea edx, [ebp - 0x5c]
mov ecx, dword [eax + 0x14]
shl ecx, 4
mov dword [ebp - 0xc8], ecx
mov ecx, dword [eax + 0xc]
mov eax, dword [ebp - 0xc8]
sub ecx, eax
call dword [sym.imp.MSVBVM60.DLL___vbaVarZero]
mov ecx, dword [ebp - 0xc4]
push ecx
call fcn.5f9f2bb7
lea edx, [ebp - 0x48]
mov dword [ebp - 0x40], eax
push edx
mov dword [ebp - 0x48], 8
call fcn.5fa38e90
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x6c], 3
lea edx, [ebp - 0x6c]
mov ecx, dword [eax + 0x14]
shl ecx, 4
mov dword [ebp - 0xcc], ecx
mov ecx, dword [eax + 0xc]
mov eax, dword [ebp - 0xcc]
sub ecx, eax
add ecx, 0x10
call esi
mov ecx, dword [ebp - 0xc4]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaLenBstr]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x4c]
mov ecx, 2
mov dword [ebp - 0x7c], 3
sub ecx, dword [eax + 0x14]
lea edx, [ebp - 0x7c]
shl ecx, 4
add ecx, dword [eax + 0xc]
call esi
mov eax, dword [ebp - 0x4c]
mov ecx, 3
mov dword [ebp - 0x84], edi
mov dword [ebp - 0x8c], 2
sub ecx, dword [eax + 0x14]
lea edx, [ebp - 0x8c]
shl ecx, 4
add ecx, dword [eax + 0xc]
call esi
mov eax, dword [0x5faa31f8]
lea edx, [ebp - 0x4c]
push edx
mov ecx, 0x15
mov edx, dword [eax + 0x14]
sub ecx, edx
mov edx, dword [eax + 0xc]
mov eax, dword [edx + ecx*4]
push eax
call fcn.5f9f2d98
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0xb0], eax
push ecx
push edi
call dword [sym.imp.MSVBVM60.DLL___vbaErase]
mov eax, dword [ebp - 0xb0]
xor edx, edx
cmp eax, edi
sete dl
neg edx
lea ecx, [ebp - 0x48]
mov dword [ebp - 0xbc], edx
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
cmp word [ebp - 0xbc], di
jne 0x5fa393f4
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x34]
lea eax, [ebp - 0x14]
push eax
push edi
push ecx
push 0x6610
push edx
call dword [sym.imp.ADVAPI32.DLL_CryptDeriveKey]
test eax, eax
je 0x5fa393f4
push edi
push 5
push 1
lea eax, [ebp - 0x4c]
push edi
push eax
push 0x10
push 0x880
call ebx
mov eax, dword [ebp - 0x4c]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x5c], 0x4003
mov ecx, dword [eax + 0x14]
add esp, 0x1c
shl ecx, 4
mov dword [ebp - 0xd0], ecx
mov ecx, dword [eax + 0xc]
mov eax, dword [ebp - 0xd0]
lea edx, [ebp - 0x5c]
sub ecx, eax
call dword [sym.imp.MSVBVM60.DLL___vbaVarZero]
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x6c], 2
lea edx, [ebp - 0x6c]
mov ecx, dword [eax + 0x14]
shl ecx, 4
mov dword [ebp - 0xd4], ecx
mov ecx, dword [eax + 0xc]
mov eax, dword [ebp - 0xd4]
sub ecx, eax
add ecx, 0x10
call esi
mov eax, dword [ebp - 0x4c]
mov ecx, 2
mov dword [ebp - 0x74], 1
mov dword [ebp - 0x7c], ecx
sub ecx, dword [eax + 0x14]
lea edx, [ebp - 0x7c]
shl ecx, 4
add ecx, dword [eax + 0xc]
call esi
mov eax, dword [ebp - 0x4c]
mov ecx, 3
mov dword [ebp - 0x84], edi
mov dword [ebp - 0x8c], 2
sub ecx, dword [eax + 0x14]
lea edx, [ebp - 0x8c]
shl ecx, 4
add ecx, dword [eax + 0xc]
call esi
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x38]
mov eax, dword [ecx]
push eax
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaAryLock]
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 0x14]
sub ecx, edx
push ecx
call dword [sym.imp.MSVBVM60.DLL_VarPtr]
lea edx, [ebp - 0x38]
mov dword [ebp - 0xb0], eax
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaAryUnlock]
mov eax, dword [ebp - 0xb0]
mov ecx, 4
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x9c], 3
lea edx, [ebp - 0x9c]
sub ecx, dword [eax + 0x14]
shl ecx, 4
add ecx, dword [eax + 0xc]
call esi
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 0xb4]
mov dword [ebp - 0xb4], ecx
push edx
call dword [sym.imp.MSVBVM60.DLL_VarPtr]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0x4c]
mov ecx, 5
mov dword [ebp - 0xac], 3
sub ecx, dword [eax + 0x14]
lea edx, [ebp - 0xac]
shl ecx, 4
add ecx, dword [eax + 0xc]
call esi
lea eax, [ebp - 0x4c]
mov ecx, 0x17
push eax
mov eax, dword [0x5faa31f8]
mov edx, dword [eax + 0x14]
sub ecx, edx
mov edx, dword [eax + 0xc]
mov eax, dword [edx + ecx*4]
push eax
call fcn.5f9f2d98
lea ecx, [ebp - 0x4c]
push ecx
push edi
call dword [sym.imp.MSVBVM60.DLL___vbaErase]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
dec edx
push edi
push edx
push 1
push 0x11
push eax
push 1
push pe_nt_image_headers32
call dword [sym.imp.MSVBVM60.DLL___vbaRedimPreserve]
add esp, 0x1c
mov dword [ebp - 0x2c], 0xffffffff
cmp dword [ebp - 0x14], edi
je 0x5fa39468
push edi
push edi
push 1
lea ecx, [ebp - 0x4c]
push edi
push ecx
push 0x10
push 0x880
call ebx
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x14]
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x5c], 0x4003
mov ecx, dword [eax + 0x14]
add esp, 0x1c
shl ecx, 4
mov dword [ebp - 0xd8], ecx
mov ecx, dword [eax + 0xc]
mov eax, dword [ebp - 0xd8]
lea edx, [ebp - 0x5c]
sub ecx, eax
call dword [sym.imp.MSVBVM60.DLL___vbaVarZero]
mov eax, dword [0x5faa31f8]
lea ecx, [ebp - 0x4c]
push ecx
mov edx, 0x19
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
sub edx, ecx
mov ecx, dword [eax + edx*4]
push ecx
call fcn.5f9f2d98
lea edx, [ebp - 0x4c]
push edx
push edi
call dword [sym.imp.MSVBVM60.DLL___vbaErase]
cmp dword [ebp - 0x30], edi
je 0x5fa394dc
push edi
push edi
push 1
lea eax, [ebp - 0x4c]
push edi
push eax
push 0x10
push 0x880
call ebx
mov eax, dword [ebp - 0x4c]
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x5c], 0x4003
mov ecx, dword [eax + 0x14]
add esp, 0x1c
shl ecx, 4
mov dword [ebp - 0xdc], ecx
mov ecx, dword [eax + 0xc]
mov eax, dword [ebp - 0xdc]
lea edx, [ebp - 0x5c]
sub ecx, eax
call dword [sym.imp.MSVBVM60.DLL___vbaVarZero]
mov eax, dword [0x5faa31f8]
lea ecx, [ebp - 0x4c]
push ecx
mov edx, 0x1a
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
sub edx, ecx
mov ecx, dword [eax + edx*4]
push ecx
call fcn.5f9f2d98
lea edx, [ebp - 0x4c]
push edx
push edi
call dword [sym.imp.MSVBVM60.DLL___vbaErase]
cmp dword [ebp - 0x34], edi
je 0x5fa3956d
push edi
push 1
push 1
lea eax, [ebp - 0x4c]
push edi
push eax
push 0x10
push 0x880
call ebx
mov eax, dword [ebp - 0x4c]
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x5c], 0x4003
mov ecx, dword [eax + 0x14]
add esp, 0x1c
shl ecx, 4
mov ebx, ecx
mov ecx, dword [eax + 0xc]
lea edx, [ebp - 0x5c]
sub ecx, ebx
call dword [sym.imp.MSVBVM60.DLL___vbaVarZero]
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x6c], 3
lea edx, [ebp - 0x6c]
mov ecx, dword [eax + 0x14]
shl ecx, 4
mov ebx, ecx
mov ecx, dword [eax + 0xc]
sub ecx, ebx
add ecx, 0x10
call esi
mov eax, dword [0x5faa31f8]
lea edx, [ebp - 0x4c]
mov ecx, 0x1b
push edx
mov ebx, dword [eax + 0x14]
mov edx, dword [eax + 0xc]
sub ecx, ebx
mov eax, dword [edx + ecx*4]
push eax
call fcn.5f9f2d98
lea ecx, [ebp - 0x4c]
push ecx
push edi
call dword [sym.imp.MSVBVM60.DLL___vbaErase]
push 0x5fa3959e
jmp 0x5fa39594
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
ret