Function at 0x476ef0
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0x403356
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
push ebx
push esi
push edi
mov dword [ebp - 0xc], esp
mov dword [ebp - 8], 0x4020c0
xor esi, esi
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x48], 0xb
call dword [sym.imp.MSVBVM60.DLL___vbaVarMove]
mov eax, dword [0x4920b8]
push eax
push 0x4108e0
call dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
mov edx, eax
lea ecx, [ebp - 0x1c]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
mov edx, 0x4108fc
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x50], 0xffffffff
mov dword [ebp - 0x4c], esi
call ebx
lea ecx, [ebp - 0x50]
lea edx, [ebp - 0x4c]
push ecx
lea eax, [ebp - 0x34]
push edx
push eax
call fcn.00473580
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea ecx, [ebp - 0x34]
call edi
mov edx, 0x41091c
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x50], 0xffffffff
mov dword [ebp - 0x4c], esi
call ebx
lea ecx, [ebp - 0x50]
lea edx, [ebp - 0x4c]
push ecx
lea eax, [ebp - 0x34]
push edx
push eax
call fcn.00473580
lea ecx, [ebp - 0x34]
call edi
mov edx, 0x410938
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x50], 0xffffffff
mov dword [ebp - 0x4c], esi
call ebx
lea ecx, [ebp - 0x50]
lea edx, [ebp - 0x4c]
push ecx
lea eax, [ebp - 0x34]
push edx
push eax
call fcn.00473580
lea ecx, [ebp - 0x34]
call edi
push pe_nt_image_headers32
call fcn.0040b6d8
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
call ebx
lea ecx, [ebp - 0x34]
push 0x410954
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push eax
call fcn.0040b71c
call ebx
lea ecx, [ebp - 0x34]
call edi
lea edx, [ebp - 0x34]
push 0x410974
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push eax
call fcn.0040b71c
call ebx
lea ecx, [ebp - 0x34]
call edi
mov eax, dword [0x492090]
push eax
push 0x410998
call dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
mov edx, eax
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
mov ecx, dword [ebp - 0x20]
lea edx, [ebp - 0x34]
push ecx
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push eax
call fcn.0040b71c
call ebx
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x20]
push eax
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrToUnicode]
lea ecx, [ebp - 0x34]
call edi
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x34]
push edx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push eax
call fcn.0040b71c
call ebx
mov ecx, dword [ebp - 0x34]
lea edx, [ebp - 0x1c]
push ecx
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaStrToUnicode]
lea ecx, [ebp - 0x34]
call edi
lea eax, [ebp - 0x50]
lea ecx, [ebp - 0x1c]
push eax
push ecx
mov dword [ebp - 0x50], esi
call fcn.004638d0
mov edx, eax
lea ecx, [ebp - 0x34]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
push eax
push 0x40af3c
call dword [sym.imp.MSVBVM60.DLL___vbaStrCmp]
mov esi, eax
lea ecx, [ebp - 0x34]
neg esi
sbb esi, esi
neg esi
neg esi
call edi
test si, si
je 0x4770eb
mov dword [ebp - 0x40], 0
jmp 0x47724e
mov edx, dword [0x4920b0]
push edx
push 0x40ea8c
call dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
mov edx, eax
lea ecx, [ebp - 0x1c]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
xor eax, eax
jmp 0x47710f
mov eax, dword [ebp - 0x18]
add eax, 1
lea ecx, [ebp - 0x34]
jo 0x4772cb
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
push eax
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push eax
call fcn.0040b71c
call ebx
mov edx, dword [ebp - 0x34]
lea eax, [ebp - 0x1c]
push edx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrToUnicode]
lea ecx, [ebp - 0x34]
call edi
push pe_nt_image_headers32
call fcn.0040b6d8
call ebx
lea ecx, [ebp - 0x50]
lea edx, [ebp - 0x1c]
push ecx
push edx
mov dword [ebp - 0x50], 0
call fcn.004638d0
mov edx, eax
lea ecx, [ebp - 0x34]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
push eax
push 0x40af3c
call dword [sym.imp.MSVBVM60.DLL___vbaStrCmp]
mov esi, eax
lea ecx, [ebp - 0x34]
neg esi
sbb esi, esi
inc esi
neg esi
call edi
test si, si
jne 0x4771fb
mov edx, 0x4109c8
lea ecx, [ebp - 0x34]
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
lea eax, [ebp - 0x34]
push 0x49212c
push eax
call fcn.00481020
mov si, ax
lea ecx, [ebp - 0x34]
neg si
sbb esi, esi
inc esi
neg esi
call edi
test si, si
je 0x4771f1
mov edx, 0x40e69c
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x50], 0xffffffff
mov dword [ebp - 0x4c], 0
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
lea ecx, [ebp - 0x50]
lea edx, [ebp - 0x4c]
push ecx
lea eax, [ebp - 0x34]
push edx
push eax
call fcn.00473580
lea ecx, [ebp - 0x34]
call edi
cmp dword [ebp - 0x18], 2
jle 0x47710c
cmp dword [ebp - 0x18], 2
jle 0x47720a
mov dword [ebp - 0x40], 0
jmp 0x47724e
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
lea ecx, [ebp - 0x38]
push 0x4109d8
push ecx
call esi
push eax
lea edx, [ebp - 0x34]
push 0x40aabc
push edx
call esi
push eax
push 0x80000001
call fcn.0040c258
call ebx
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0x34]
push eax
push ecx
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0xc
mov dword [ebp - 0x40], 0xffffffff
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x48], 0xb
call dword [sym.imp.MSVBVM60.DLL___vbaVarMove]
push 0x47729c
jmp 0x47728b
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea ecx, [ebp - 0x1c]
call esi
lea ecx, [ebp - 0x20]
call esi
ret
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop