Function at 0x10018574
Capabilities:
Acquire debug privileges
Enumerate processes
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x64]
sub esp, 0x3b0
push ebx
push esi
mov esi, dword [ebp + 0x70]
xor ebx, ebx
cmp esi, ebx
push edi
jne 0x100185a6
cmp dword [ebp + 0x74], ebx
jne 0x100185a6
cmp dword [ebp + 0x78], ebx
jne 0x100185a6
cmp dword [ebp + 0x7c], ebx
jne 0x100185a6
push dword [ebp + 0x6c]
call fcn.1000fc3e
pop ecx
mov dword [ebp + 0x6c], eax
mov eax, dword [ebp + 0x6c]
mov dword [ebp + 0x54], eax
push 0x7c
lea eax, [ebp + 0x54]
call fcn.100a1095
mov eax, dword [ebp + 0x54]
cmp word [eax], bx
pop ecx
je 0x100185cc
mov word [eax], bx
inc eax
inc eax
cmp word [eax], bx
mov dword [ebp + 0x54], eax
jne 0x100185cf
mov dword [ebp + 0x54], ebx
mov eax, esi
and eax, 0x10000
mov dword [ebp + 0x50], eax
mov eax, esi
and eax, 2
mov dword [ebp - 0x1c], eax
mov eax, esi
and eax, 0x10
mov dword [ebp - 4], eax
mov eax, esi
and eax, 0x20
mov dword [ebp + 0x1c], eax
mov eax, esi
and ax, 0x80
sub al, 0x80
mov edi, esi
and edi, 0x40
neg al
mov dword [ebp + 0x14], ebx
mov dword [ebp + 0xc], edi
sbb eax, eax
inc eax
mov dword [ebp + 0x40], eax
mov eax, esi
and eax, 0x100
mov dword [ebp - 0x18], eax
mov eax, esi
and eax, 0x80000
and esi, 1
mov dword [ebp + 0x18], eax
mov dword [ebp + 0x70], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor ecx, ecx
cmp dword [ebp + 0x40], ebx
mov dword [ebp + 0x10], eax
mov dword [ebp + 0x34], 0x400
mov dword [ebp + 0x4c], ebx
mov dword [ebp + 0x48], ecx
je 0x1001864c
mov eax, dword [ebp + 0x74]
mov dword [ebp + 0x14], eax
mov dword [ebp + 0x74], ebx
cmp edi, ebx
je 0x10018668
cmp dword [ebp + 0x40], ebx
je 0x10018668
push 0x1000
lea ecx, [ebp + 0x48]
mov dword [ebp + 0x74], ebx
call fcn.10045ff1
mov ecx, dword [ebp + 0x48]
cmp edi, ebx
setne byte [ebp + 0x63]
cmp edi, ebx
mov dword [ebp + 0x3c], ecx
je 0x1001868e
cmp dword [ebp + 0x40], ebx
je 0x1001868e
mov eax, dword [ebp + 0x7c]
cmp eax, ebx
je 0x1001868e
mov dword [ecx], eax
mov dword [ebp + 0x4c], 1
mov byte [ebp + 0x63], 2
cmp dword [0x100e3044], ebx
jne 0x100186b2
push str.NtQuerySystemInformation
push str.ntdll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x100e3044], eax
push 4
push 2
push str.SeDebugPrivilege
call fcn.10013699
add esp, 0xc
push 0x48f3
lea ecx, [ebp + 4]
mov dword [ebp + 0x5c], ebx
call fcn.10046141
mov eax, dword [ebp + 4]
mov dword [ebp + 0x30], eax
add eax, 0xa0
mov dword [ebp + 0x38], eax
add eax, 0x64
lea edi, [eax + 0x8c]
mov dword [ebp + 0x2c], edi
add edi, 0xa16
lea eax, [edi + 0x20a]
push ebx
mov dword [ebp], eax
add eax, 0x20a
mov word [eax], 9
lea ecx, [eax + 2]
push 0x24
add eax, 0x20c
mov word [ecx], bx
push edi
mov word [eax], bx
push ebx
mov dword [ebp - 8], ecx
mov dword [ebp + 8], eax
mov word [edi], bx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
call esi
cmp dword [ebp + 0x74], ebx
lea eax, [edi + eax*2]
mov dword [ebp - 0x10], eax
je 0x100187c7
push 7
pop ecx
xor eax, eax
cmp byte [0x100e2c3d], 1
push 0x4d
lea edi, [ebp - 0x48]
mov dword [ebp - 0x4c], ebx
rep stosd dword es:[edi], eax
pop ecx
lea edi, [ebp - 0x2d0]
rep stosd dword es:[edi], eax
push 0x4e
pop ecx
lea edi, [ebp - 0x19c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x2d4], ebx
mov dword [ebp - 0x2d0], ebx
mov edi, 0x138
jne 0x10018782
mov edi, 0x270
push ebx
push 0x20
lea eax, [ebp - 0x4c]
push eax
push 3
call dword [0x100e3044]
push ebx
push edi
lea eax, [ebp - 0x2d4]
push eax
push 2
call dword [0x100e3044]
push dword [ebp - 0x2d0]
push dword [ebp - 0x2d4]
push dword [ebp + 0x30]
call fcn.100a0e43
push dword [ebp - 0x40]
push dword [ebp - 0x44]
push dword [ebp + 0x38]
call fcn.100a0e43
add esp, 0x18
cmp dword [ebp + 0x70], ebx
jne 0x100188a2
mov eax, dword [ebp + 0x6c]
cmp word [eax], bx
jne 0x100188a2
mov edi, dword [ebp + 0x74]
push dword [ebp + 0x30]
mov ecx, edi
call fcn.1005026c
push 0x100ca344
mov ecx, edi
call fcn.1004618f
push dword [ebp + 0x38]
mov ecx, edi
call fcn.1004618f
cmp byte [0x100e2c84], bl
ja 0x1001880c
call fcn.10004b7a
movzx eax, byte [0x100e2c84]
push eax
lea eax, [ebp - 0x34c]
push str._t_d_t
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x34c]
push eax
mov ecx, edi
call fcn.1004618f
push dword [0x100e2d44]
lea eax, [ebp - 0x34c]
push dword [0x100e2d40]
push eax
call fcn.100a0e43
add esp, 0xc
lea eax, [ebp - 0x34c]
push eax
mov ecx, edi
call fcn.1004618f
fild qword [0x100e2d40]
lea ecx, [ebp + 0x58]
fdivr qword [0x100ca330]
fstp qword [ebp + 0x20]
call fcn.10046123
fld qword [ebp + 0x20]
push str._t_lf
push ecx
push ecx
lea eax, [ebp + 0x58]
fstp qword [esp]
push eax
call fcn.100a0d93
add esp, 0x10
push dword [ebp + 0x58]
mov ecx, edi
call fcn.1004618f
lea ecx, [ebp + 0x58]
call fcn.1003f96c
push dword [ebp + 0x6c]
call esi
push dword [ebp + 0x7c]
mov dword [ebp + 0x44], eax
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
mov dword [ebp + 0x28], eax
jne 0x100188c1
xor eax, eax
mov dword [ebp + 0x28], eax
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x10018da2
mov eax, dword [ebp + 0x4c]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x290]
push eax
push dword [ebp + 0x28]
mov dword [ebp - 0x290], 0x22c
call sub.KERNEL32.dll_Process32FirstW
jmp 0x10018d7a
cmp byte [ebp + 0x63], 2
jne 0x1001893d
mov ecx, dword [ebp + 0x4c]
xor eax, eax
cmp ecx, ebx
jbe 0x10018917
mov edx, dword [ebp + 0x3c]
mov edx, dword [edx + eax*4]
cmp edx, dword [ebp - 0x288]
je 0x10018d6b
inc eax
cmp eax, ecx
jb 0x10018900
xor eax, eax
cmp ecx, ebx
jbe 0x10018d6b
mov edx, dword [ebp + 0x3c]
mov edx, dword [edx + eax*4]
cmp edx, dword [ebp - 0x278]
je 0x10018a97
inc eax
cmp eax, ecx
jb 0x10018921
jmp 0x10018d6b
mov eax, dword [ebp + 0x78]
cmp eax, ebx
je 0x10018950
cmp eax, dword [ebp - 0x278]
jne 0x10018d6b
mov eax, dword [ebp + 0x7c]
cmp eax, ebx
je 0x10018963
cmp eax, dword [ebp - 0x288]
jne 0x10018d6b
cmp dword [ebp + 0x1c], ebx
jne 0x100189d5
cmp dword [ebp - 0x18], ebx
je 0x10018987
push dword [ebp + 0x6c]
lea eax, [ebp - 0x26c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
jne 0x10018a97
jmp 0x100189d5
cmp dword [ebp - 0x1c], ebx
je 0x10018a2b
cmp dword [ebp + 0x70], ebx
je 0x100189c3
cmp dword [ebp + 0x44], ebx
je 0x10018a97
push dword [ebp + 0x50]
lea eax, [ebp - 0x26c]
push dword [ebp + 0x44]
push dword [ebp + 0x6c]
push eax
call fcn.10011ee0
add esp, 0x10
test al, al
je 0x10018d6b
jmp 0x10018a97
cmp dword [ebp + 0x44], ebx
jne 0x100189ff
cmp word [ebp - 0x26c], bx
jne 0x10018d6b
cmp dword [ebp + 0x54], ebx
je 0x10018add
push dword [ebp + 0x50]
push dword [ebp - 0x288]
push dword [ebp + 0x54]
call fcn.10012058
add esp, 0xc
test eax, eax
jne 0x10018add
jmp 0x10018d6b
cmp dword [ebp + 0x50], ebx
push dword [ebp + 0x6c]
lea eax, [ebp - 0x26c]
push eax
jne 0x10018a16
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
jmp 0x10018a1c
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
neg eax
sbb al, al
inc al
cmp al, bl
jne 0x10018a97
jmp 0x10018d6b
cmp dword [ebp + 0x70], ebx
mov esi, dword [ebp + 0x44]
je 0x10018a51
cmp esi, ebx
je 0x10018a97
push dword [ebp + 0x50]
lea eax, [ebp - 0x26c]
push esi
push dword [ebp + 0x6c]
push eax
call fcn.10011ee0
add esp, 0x10
test al, al
jne 0x10018a97
cmp esi, ebx
je 0x10018d6b
push dword [ebp + 0x50]
lea eax, [ebp - 0x26c]
push esi
push dword [ebp + 0x6c]
push eax
call fcn.10011ee0
add esp, 0x10
test al, al
je 0x10018d6b
cmp dword [ebp + 0x70], ebx
jne 0x10018d6b
mov ax, word [ebp + esi*2 - 0x26c]
cmp ax, bx
je 0x10018a97
cmp ax, 0x2e
jne 0x10018d6b
cmp dword [ebp + 0x74], ebx
jne 0x10018ab0
cmp dword [ebp - 4], ebx
je 0x10018ab0
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 0x288]
je 0x10018d6b
cmp dword [ebp + 0x54], ebx
je 0x10018ad1
push dword [ebp + 0x50]
push dword [ebp - 0x288]
push dword [ebp + 0x54]
call fcn.10012058
add esp, 0xc
test eax, eax
je 0x10018d6b
cmp dword [ebp + 0x74], ebx
je 0x10018d13
inc dword [ebp + 0x5c]
cmp dword [ebp + 0x74], ebx
jne 0x10018aeb
cmp dword [ebp + 0x1c], ebx
je 0x10018d6b
xor edi, edi
cmp dword [ebp + 0x74], ebx
mov dword [ebp + 0x20], ebx
mov dword [ebp + 0x24], ebx
je 0x10018b8c
push dword [ebp - 0x288]
push ebx
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x10018b8c
push ebx
push 0x100e2ebc
push str.PSAPI.DLL
push str.GetProcessMemoryInfo
call fcn.10040e9d
add esp, 0x10
push 8
xor eax, eax
pop ecx
lea edi, [ebp - 0x4c]
mov dword [ebp - 0x54], 0x28
mov dword [ebp - 0x50], ebx
rep stosd dword es:[edi], eax
mov eax, dword [0x100e2ebc]
cmp eax, ebx
je 0x10018b52
push 0x28
lea ecx, [ebp - 0x54]
push ecx
push esi
call eax
mov edi, dword [ebp - 0x48]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x5c]
push eax
push esi
shr edi, 0xa
call dword [sym.imp.KERNEL32.dll_GetProcessTimes]
test eax, eax
je 0x10018b85
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x2c]
mov dword [ebp + 0x20], eax
mov eax, dword [ebp - 0x20]
adc eax, dword [ebp - 0x28]
mov dword [ebp + 0x24], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp]
push esi
push dword [ebp - 0x288]
mov dword [ebp + 0x58], esi
call fcn.10004beb
cmp word [esi], 0x5c
pop ecx
pop ecx
jne 0x10018bca
cmp word [esi + 2], 0x3f
jne 0x10018bca
cmp word [esi + 4], 0x3f
jne 0x10018bca
cmp word [esi + 6], 0x5c
jne 0x10018bca
lea eax, [esi + 8]
cmp word [eax], bx
je 0x10018bca
cmp word [esi + 0xa], 0x3a
je 0x10018bf1
push 0xc
push esi
push str.SystemRoot_
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x10018bf4
add esi, 0x16
push esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [ebp + 0x2c]
add eax, 0xa16
mov dword [ebp + 0x58], eax
cmp dword [ebp + 0x1c], ebx
je 0x10018c47
cmp dword [ebp + 0x50], ebx
jne 0x10018c0e
push dword [ebp + 0x6c]
push dword [ebp + 0x58]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x10018c22
push dword [ebp + 0x6c]
push dword [ebp + 0x58]
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x10018d6b
cmp dword [ebp + 0x74], ebx
jne 0x10018c44
cmp dword [ebp - 4], ebx
mov eax, dword [ebp - 0x288]
je 0x10018d8a
cmp dword [ebp + 0x10], eax
jne 0x10018d8a
jmp 0x10018d6b
inc dword [ebp + 0x5c]
cmp dword [ebp + 0x18], ebx
je 0x10018c5c
push dword [ebp - 8]
push dword [ebp - 0x288]
call fcn.10011f09
pop ecx
pop ecx
mov esi, dword [ebp + 8]
push 0x8000
push esi
push dword [ebp - 0x288]
call fcn.100085b3
push dword [ebp + 0x24]
mov word [esi + 0x8000], bx
mov esi, dword [ebp + 0x38]
push dword [ebp + 0x20]
add esi, 0x64
push esi
call fcn.100a0e43
add esp, 0x18
cmp dword [ebp + 0x18], ebx
je 0x10018c9c
mov ecx, dword [ebp]
add ecx, 0x20a
jmp 0x10018ca1
mov ecx, 0x100c6a64
cmp dword [ebp - 0x288], ebx
mov eax, esi
jne 0x10018cae
mov eax, dword [ebp + 0x30]
push ecx
push dword [ebp + 0x38]
push eax
push edi
push dword [ebp - 0x278]
push dword [ebp - 0x288]
push 0x100ca2c4
push dword [ebp + 0x2c]
call dword [sym.imp.USER32.dll_wsprintfW]
mov esi, dword [ebp + 0x74]
mov eax, dword [esi]
add esp, 0x20
cmp word [eax], bx
je 0x10018ce7
push 0x100c7100
mov ecx, esi
call fcn.1004618f
push dword [ebp + 0x2c]
mov ecx, esi
call fcn.1004618f
push dword [ebp + 0x58]
mov ecx, esi
call fcn.1004618f
push 0x100ca344
mov ecx, esi
call fcn.1004618f
push dword [ebp + 8]
mov ecx, esi
call fcn.1004618f
jmp 0x10018d6b
mov eax, dword [ebp + 0x40]
or eax, dword [ebp + 0xc]
je 0x10018d84
cmp dword [ebp + 0x3c], ebx
je 0x10018d51
mov esi, dword [ebp + 0x4c]
cmp dword [ebp + 0x34], esi
ja 0x10018d3e
add dword [ebp + 0x34], 0x400
mov eax, dword [ebp + 0x34]
shl eax, 2
push eax
lea ecx, [ebp + 0x48]
call fcn.10045ff1
mov eax, dword [ebp + 0x48]
mov ecx, dword [ebp - 0x288]
mov dword [eax + esi*4], ecx
inc esi
mov dword [ebp + 0x3c], eax
mov dword [ebp + 0x4c], esi
cmp dword [ebp + 0x40], ebx
je 0x10018d68
push ebx
push dword [ebp + 0x14]
push dword [ebp - 0x288]
call fcn.100120bc
add esp, 0xc
inc dword [ebp + 0x5c]
lea eax, [ebp - 0x290]
push eax
push dword [ebp + 0x28]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x100188f1
jmp 0x10018d8d
mov eax, dword [ebp - 0x288]
mov dword [ebp + 0x5c], eax
cmp dword [ebp + 0xc], ebx
mov byte [ebp + 0x63], 2
je 0x10018da2
mov eax, dword [ebp - 0xc]
cmp dword [ebp + 0x4c], eax
ja 0x100188cd
lea ecx, [ebp - 0x14]
call fcn.10002d56
lea ecx, [ebp + 4]
call fcn.1003f96c
lea ecx, [ebp + 0x48]
call fcn.1003f96c
mov eax, dword [ebp + 0x5c]
pop edi
pop esi
pop ebx
add ebp, 0x64
leave
ret