Function at 0x40c670
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x401326
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf0
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x401308
xor ebx, ebx
mov edx, 0x4043c0
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0xa4], ebx
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
cmp dword [0x40e838], ebx
jne 0x40c703
push 0x40e838
push 0x403b58
call dword [sym.imp.MSVBVM60.DLL___vbaNew2]
mov esi, dword [0x40e838]
lea ecx, [ebp - 0x3c]
push ecx
push esi
mov eax, dword [esi]
call dword [eax + 0x14]
cmp eax, ebx
fnclex
jge 0x40c72c
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
push 0x14
push 0x403da0
push esi
push eax
call edi
jmp 0x40c732
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov eax, dword [ebp - 0x3c]
lea ecx, [ebp - 0x28]
push ecx
push eax
mov edx, dword [eax]
mov esi, eax
call dword [edx + 0x50]
cmp eax, ebx
fnclex
jge 0x40c752
push 0x50
push 0x403b68
push esi
push eax
call edi
cmp dword [0x40e838], ebx
jne 0x40c76a
push 0x40e838
push 0x403b58
call dword [sym.imp.MSVBVM60.DLL___vbaNew2]
mov esi, dword [0x40e838]
lea eax, [ebp - 0x40]
push eax
push esi
mov edx, dword [esi]
call dword [edx + 0x14]
cmp eax, ebx
fnclex
jge 0x40c78b
push 0x14
push 0x403da0
push esi
push eax
call edi
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x2c]
push edx
push eax
mov ecx, dword [eax]
mov esi, eax
call dword [ecx + 0x58]
cmp eax, ebx
fnclex
jge 0x40c7ab
push 0x58
push 0x403b68
push esi
push eax
call edi
cmp dword [0x40e838], ebx
jne 0x40c7c3
push 0x40e838
push 0x403b58
call dword [sym.imp.MSVBVM60.DLL___vbaNew2]
mov esi, dword [0x40e838]
lea ecx, [ebp - 0x38]
push ecx
push esi
mov eax, dword [esi]
call dword [eax + 0x14]
cmp eax, ebx
fnclex
jge 0x40c7e4
push 0x14
push 0x403da0
push esi
push eax
call edi
mov eax, dword [ebp - 0x38]
lea ecx, [ebp - 0x24]
push ecx
push eax
mov edx, dword [eax]
mov esi, eax
call dword [edx + 0x50]
cmp eax, ebx
fnclex
jge 0x40c804
push 0x50
push 0x403b68
push esi
push eax
call edi
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x8c], eax
mov eax, dword [0x40e838]
mov ebx, 8
test eax, eax
mov dword [ebp - 0x94], ebx
jne 0x40c834
push 0x40e838
push 0x403b58
call dword [sym.imp.MSVBVM60.DLL___vbaNew2]
mov esi, dword [0x40e838]
lea eax, [ebp - 0x44]
push eax
push esi
mov edx, dword [esi]
call dword [edx + 0x14]
test eax, eax
fnclex
jge 0x40c855
push 0x14
push 0x403da0
push esi
push eax
call edi
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x34]
push edx
push eax
mov ecx, dword [eax]
mov esi, eax
call dword [ecx + 0x58]
test eax, eax
fnclex
jge 0x40c875
push 0x58
push 0x403b68
push esi
push eax
call edi
mov eax, dword [ebp - 0x34]
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
push eax
push 0x40397c
call esi
mov ecx, dword [ebp - 0x2c]
push 0x403c48
push ecx
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x74], ebx
call esi
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
mov edx, eax
lea ecx, [ebp - 0x30]
call edi
push eax
push 0x40397c
call esi
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x64], ebx
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaLenBstr]
push edx
mov dword [ebp - 0x5c], eax
call ebx
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x74]
lea ecx, [ebp - 0x64]
push eax
lea edx, [ebp - 0x54]
push ecx
lea eax, [ebp - 0x84]
push edx
push eax
mov dword [ebp - 0x54], 3
call dword [sym.imp.MSVBVM60.DLL_rtcImmediateIf]
lea ecx, [ebp - 0x94]
lea edx, [ebp - 0x84]
push ecx
lea eax, [ebp - 0xa4]
push edx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaVarCat]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrVarMove]
mov edx, eax
lea ecx, [ebp - 0x1c]
call edi
lea ecx, [ebp - 0x34]
lea edx, [ebp - 0x30]
push ecx
lea eax, [ebp - 0x2c]
push edx
lea ecx, [ebp - 0x28]
push eax
push ecx
push 4
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
lea edx, [ebp - 0x44]
lea eax, [ebp - 0x40]
push edx
lea ecx, [ebp - 0x3c]
push eax
lea edx, [ebp - 0x38]
push ecx
push edx
push 4
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObjList]
lea eax, [ebp - 0xa4]
lea ecx, [ebp - 0x84]
push eax
lea edx, [ebp - 0x94]
push ecx
lea eax, [ebp - 0x74]
push edx
lea ecx, [ebp - 0x64]
push eax
lea edx, [ebp - 0x54]
push ecx
push edx
push 6
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
add esp, 0x44
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x24]
push eax
push 0x4043cc
push ecx
call esi
push eax
push 0x80000002
call fcn.00402d30
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
call edi
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
mov edx, dword [ebp - 0x1c]
push edx
call ebx
imul eax, eax, 2
jo 0x40ca8e
push eax
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x28]
push eax
push ecx
call esi
mov edx, dword [ebp - 0x18]
push eax
push 1
push 0
lea eax, [ebp - 0x24]
push edx
push eax
call esi
mov ecx, dword [ebp - 0x14]
push eax
push ecx
call fcn.00402d88
call edi
mov edx, dword [ebp - 0x24]
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaStrToUnicode]
lea eax, [ebp - 0x18]
push edx
push eax
call esi
mov ecx, dword [ebp - 0x28]
lea edx, [ebp - 0x1c]
push ecx
push edx
call esi
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x24]
push eax
push ecx
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
mov edx, dword [ebp - 0x14]
add esp, 0xc
push edx
call fcn.00402e14
call edi
push 0x40ca7d
jmp 0x40ca6c
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea ecx, [ebp - 0x18]
call esi
lea ecx, [ebp - 0x1c]
call esi
ret
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
sahf
sahf
sahf
sahf
int3