Function at 0x401220
Capabilities:
Acquire debug privileges
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x2a8
mov eax, dword [0x405004]
xor eax, esp
mov dword [esp + 0x2a4], eax
push esi
push edi
mov edi, dword [ebp + 0xc]
lea eax, [esp + 0x14]
push eax
push 0x28
mov dword [esp + 0x18], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x401282
lea eax, [esp + 0x144]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x40130b
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.EnableDebugPrivilege_failed
call fcn.00401010
add esp, 4
cmp dword [ebp + 8], 3
jl 0x4012f4
cmp dword [edi], 0
je 0x4012f4
mov edx, dword [edi + 4]
test edx, edx
je 0x4012f4
cmp dword [edi + 8], 0
je 0x4012f4
cmp dword [edi + 0xc], 0
je 0x4012f4
xorps xmm0, xmm0
mov ecx, edx
movaps xmmword [esp + 0x160], xmm0
movaps xmmword [esp + 0x170], xmm0
movaps xmmword [esp + 0x180], xmm0
movaps xmmword [esp + 0x190], xmm0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4012d5
sub ecx, esi
cmp ecx, 0x20
jbe 0x40136e
push str.error___library_name_is_too_long_n
call fcn.00401010
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [esp + 0x2a4]
xor ecx, esp
call fcn.00401627
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x144]
push 0
push 0
mov dword [esp + 0x15c], eax
mov eax, dword [esp + 0x150]
push 0x10
mov dword [esp + 0x164], eax
lea eax, [esp + 0x15c]
push eax
push 0
push dword [esp + 0x28]
mov dword [esp + 0x168], 1
mov dword [esp + 0x174], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [esp + 0x14]
test eax, eax
je 0x40127c
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40128f
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
lea eax, [esp + 0x160]
push edx
push 0x20
push eax
call esi
mov edx, dword [edi + 8]
add esp, 0xc
mov ecx, edx
lea edi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401390
sub ecx, edi
cmp ecx, 0x20
jbe 0x4013a8
push str.error___ProcessName_name_is_too_long_n
jmp 0x4012ec
push edx
lea eax, [esp + 0x184]
push 0x20
push eax
call esi
mov eax, dword [esp + 0x1c]
push dword [eax + 0xc]
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 0x10
mov dword [esp + 0x144], eax
nop dword [eax]
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4013e7
push eax
jmp 0x401503
push 0x124
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], 0x128
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x401502
nop word [eax + eax]
lea eax, [esp + 0x180]
push eax
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x4014ee
push dword [esp + 0x20]
push eax
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4014ee
push 0x104
lea eax, [esp + 0x1a4]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 0x14c], 0x104
lea eax, [esp + 0x14c]
push eax
lea eax, [esp + 0x1a4]
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameA]
lea eax, [esp + 0x1a0]
push str.Assistant
push eax
call dword [sym.imp.VCRUNTIME140.dll_strstr]
add esp, 8
test eax, eax
jne 0x40156c
mov eax, dword [esp + 0x144]
cmp eax, 1
jne 0x4014c4
push str.WebBrowser_Plugin
jmp 0x4014ce
cmp eax, 2
jne 0x4014e7
push str.client
lea eax, [esp + 0x1a4]
push eax
call dword [sym.imp.VCRUNTIME140.dll_strstr]
add esp, 8
test eax, eax
jne 0x40156c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x401420
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
push str.GetProcessIDByName__dwProcID:_d_n
call fcn.00401010
mov eax, dword [esp + 0x18]
add esp, 8
mov ecx, str.VideoDownloader.exe
mov edx, dword [eax + 8]
mov eax, edx
mov dword [esp + 0x14], edx
mov dl, byte [eax]
cmp dl, byte [ecx]
mov byte [esp + 0xf], dl
mov edx, dword [esp + 0x14]
jne 0x401579
cmp byte [esp + 0xf], 0
je 0x401568
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
mov byte [esp + 0xf], dl
mov edx, dword [esp + 0x14]
jne 0x401579
add eax, 2
add ecx, 2
cmp byte [esp + 0xf], 0
jne 0x401536
xor eax, eax
jmp 0x40157e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x20]
jmp 0x40150b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4015bb
lea edx, [esp + 0x160]
mov ecx, edi
call fcn.00401040
test eax, eax
je 0x401615
push str.info___sucess_n
call fcn.00401010
mov ecx, dword [esp + 0x2b0]
add esp, 4
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.00401627
mov esp, ebp
pop ebp
ret
mov eax, str.VSSClient.exe
mov cl, byte [edx]
cmp cl, byte [eax]
jne 0x4015e0
test cl, cl
je 0x4015dc
mov cl, byte [edx + 1]
cmp cl, byte [eax + 1]
jne 0x4015e0
add edx, 2
add eax, 2
test cl, cl
jne 0x4015c0
xor esi, esi
jmp 0x4015e5
sbb esi, esi
or esi, 1
lea edx, [esp + 0x160]
mov ecx, edi
call fcn.00401040
test esi, esi
jne 0x40160d
test eax, eax
jne 0x401598
push str.error___function_InjectLibraryToProcess__returns_with_error_n
call fcn.00401010
add esp, 4
jmp 0x4013d0
test eax, eax
jne 0x4013d0
push str.error___function_InjectLibraryToProcess__returns_with_error_n
call fcn.00401010
add esp, 4
jmp 0x4013d0