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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x49aa1c56
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], 0x49ba0258
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.49aa1bcd
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.49b15e30
cmp eax, edi
mov dword [ebp - 0x34], eax
je 0x49b15ddd
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 [0x49bb01f8]
mov edx, dword [eax + 0x14]
sub ecx, edx
mov edx, dword [eax + 0xc]
mov eax, dword [edx + ecx*4]
push eax
call fcn.49aa1908
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 0x49b15c64
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.49aa1727
lea edx, [ebp - 0x48]
mov dword [ebp - 0x40], eax
push edx
mov dword [ebp - 0x48], 8
call fcn.49b15700
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 [0x49bb01f8]
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.49aa1908
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 0x49b15c64
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 0x49b15c64
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 [0x49bb01f8]
mov edx, dword [eax + 0x14]
sub ecx, edx
mov edx, dword [eax + 0xc]
mov eax, dword [edx + ecx*4]
push eax
call fcn.49aa1908
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 0x80
call dword [sym.imp.MSVBVM60.DLL___vbaRedimPreserve]
add esp, 0x1c
mov dword [ebp - 0x2c], 0xffffffff
cmp dword [ebp - 0x14], edi
je 0x49b15cd8
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 [0x49bb01f8]
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.49aa1908
lea edx, [ebp - 0x4c]
push edx
push edi
call dword [sym.imp.MSVBVM60.DLL___vbaErase]
cmp dword [ebp - 0x30], edi
je 0x49b15d4c
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 [0x49bb01f8]
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.49aa1908
lea edx, [ebp - 0x4c]
push edx
push edi
call dword [sym.imp.MSVBVM60.DLL___vbaErase]
cmp dword [ebp - 0x34], edi
je 0x49b15ddd
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
sbb al, 0xc1
loope 0x49b15d85