Function at 0x4060e0
Capabilities:
Terminate process

Disassembly:
mov eax, 0x1110
call fcn.00408e30
cmp dword [0x41d23c], 0x7fffffff
push ebx
mov ebx, dword [esp + 0x1118]
jne 0x406108
xor al, al
pop ebx
add esp, 0x1110
ret
mov eax, ebx
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406110
sub eax, ebx
sar eax, 1
sub eax, 1
cmp eax, 4
push esi
push edi
jb 0x40618c
mov ecx, dword [0x41d278]
mov esi, ebx
mov edi, 4
sub esi, ecx
jmp 0x406140
movzx eax, word [esi + ecx]
cmp ax, 0x41
jb 0x406153
cmp ax, 0x5a
ja 0x406153
add eax, 0x20
movzx edx, ax
movzx eax, word [ecx]
cmp ax, 0x41
jb 0x406168
cmp ax, 0x5a
ja 0x406168
add eax, 0x20
add ecx, 2
sub edi, 1
movzx eax, ax
je 0x406178
cmp dx, ax
je 0x406140
movzx eax, ax
movzx ecx, dx
sub ecx, eax
jne 0x40618c
add ebx, 8
mov dword [esp + 0x1120], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push ebp
mov esi, 0x100000
push esi
push 0
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call edi
push 0
mov ebp, eax
push esi
push ebp
push 0x10
mov dword [esp + 0x24], ebp
call dword [0x41d298]
cmp eax, 0xc0000004
jne 0x40620b
nop
push ebp
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
add esi, 0x100000
cmp esi, 0x10000000
jg 0x4064e6
test esi, esi
je 0x4061f2
push esi
push 0
call ebx
push eax
call edi
mov ebp, eax
mov dword [esp + 0x14], eax
jmp 0x4061f8
xor ebp, ebp
mov dword [esp + 0x14], ebp
push 0
push esi
push ebp
push 0x10
call dword [0x41d298]
cmp eax, 0xc0000004
je 0x4061c0
test eax, eax
jge 0x406228
push ebp
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop ebp
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x1110
ret
push esi
call fcn.00407a30
add esp, 4
cmp dword [0x41d2a8], 0
mov dword [esp + 0x18], 0
jne 0x40624d
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [0x41d2a8], eax
mov edx, dword [0x41d23c]
mov eax, dword [ebp]
push edx
push eax
call fcn.00407a30
xor ebx, ebx
add esp, 8
cmp dword [ebp], ebx
jbe 0x4063f0
mov ebp, dword [esp + 0x14]
add ebp, 4
jmp 0x406280
movzx ecx, byte [ebp + 4]
cmp ecx, dword [0x41d23c]
jne 0x4063dc
movzx edx, word [ebp]
cmp edx, dword [0x41d2a8]
je 0x4063dc
mov esi, dword [0x41d274]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esi + 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
movzx eax, word [ebp]
cmp eax, edi
je 0x4063dc
push eax
push 0
push 0x40
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4063dc
push 0
push 0
push 0
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
movzx ecx, word [ebp + 6]
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x4063dc
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call edi
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x4063d5
mov eax, dword [0x41d2a0]
test eax, eax
je 0x4063d5
mov edx, dword [esp + 0x10]
push 0
push 0x400
lea ecx, [esp + 0x928]
push ecx
push edx
call eax
test eax, eax
je 0x4063c6
cmp eax, 4
lea esi, [esp + 0x920]
jb 0x406373
mov ecx, dword [0x41d278]
mov eax, 4
mov edx, esi
call fcn.00404940
test eax, eax
jne 0x406373
lea esi, [esp + 0x928]
mov edx, dword [esp + 0x1124]
mov eax, esi
call fcn.004048f0
test eax, eax
jne 0x4063d5
movzx edx, word [ebp]
movzx eax, dx
cmp eax, dword [0x41d27c]
je 0x4064d6
mov esi, dword [esp + 0x18]
xor cl, cl
xor eax, eax
test esi, esi
jbe 0x4063b8
cmp word [esp + eax*2 + 0x20], dx
jne 0x4063ad
mov cl, 1
add eax, 1
cmp eax, esi
jb 0x4063a4
test cl, cl
jne 0x4063d5
mov word [esp + esi*2 + 0x20], dx
add esi, 1
mov dword [esp + 0x18], esi
jmp 0x4063d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00407a30
add esp, 4
mov ecx, dword [esp + 0x10]
push ecx
call edi
mov edx, dword [esp + 0x14]
add ebx, 1
add ebp, 0x10
cmp ebx, dword [edx]
jb 0x406280
mov ebp, edx
xor edi, edi
cmp dword [esp + 0x18], edi
mov dword [esp + 0x1c], 0x400
mov dword [esp + 0x10], edi
jbe 0x4065c3
jmp 0x406410
movzx ebx, word [esp + edi*2 + 0x20]
push ebx
call fcn.00407a30
add esp, 4
cmp dword [0x41d2a4], 0
je 0x40657b
push ebx
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40656c
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x124]
push edx
push 0
push esi
mov dword [esp + 0x2c], 0x400
call dword [0x41d2a4]
test eax, eax
jne 0x406474
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00407a30
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x120]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406482
mov eax, 0x41b030
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x406492
sub eax, 0x41b030
lea edx, [esp + 0x120]
sub ecx, edx
sar eax, 1
sar ecx, 1
sub eax, 1
sub ecx, 1
cmp ecx, eax
jae 0x4064f3
mov eax, edx
jmp 0x4064c0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4064c0
lea edx, [esp + 0x120]
sub eax, edx
jmp 0x406510
mov eax, dword [esp + 0x10]
push eax
call edi
mov eax, dword [esp + 0x14]
call fcn.00404c70
pop ebp
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x1110
ret
mov eax, 0x41b030
jmp 0x406500
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406500
sub eax, 0x41b030
sar eax, 1
sub eax, 1
test eax, eax
je 0x4065b6
xor edx, edx
nop
movzx ecx, word [esp + edx + 0x120]
cmp cx, 0x41
jb 0x406537
cmp cx, 0x5a
ja 0x406537
add ecx, 0x20
movzx esi, cx
movzx ecx, word [edx + 0x41b030]
cmp cx, 0x41
jb 0x406550
cmp cx, 0x5a
ja 0x406550
add ecx, 0x20
add edx, 2
sub eax, 1
movzx ecx, cx
je 0x406560
cmp si, cx
je 0x406520
movzx edx, cx
movzx eax, si
sub eax, edx
je 0x4065b6
jmp 0x40657b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00407a30
add esp, 4
lea ecx, [esp + 0x120]
push ecx
push ebx
call fcn.00407a30
add esp, 8
push ebx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4065b6
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x4065af
add dword [esp + 0x10], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add edi, 1
cmp edi, dword [esp + 0x18]
jb 0x406410
push ebp
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, dword [esp + 0x18]
pop ebp
xor eax, eax
cmp dword [esp + 0xc], edx
pop edi
pop esi
sete al
pop ebx
add esp, 0x1110
ret