Function at 0x42df30
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2e4
mov eax, dword [0x5732cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
xor ebx, ebx
lea edx, [ebp - 0x19c]
push edx
mov dword [ebp - 0x2dc], eax
mov dword [ebp - 0x2cc], ecx
mov dword [ebp - 0x2d0], ebx
mov dword [ebp - 0x2d8], ebx
mov dword [ebp - 0x2d4], ebx
mov dword [ebp - 0x19c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x42df99
mov eax, 0x25c
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004db901
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x18c]
push esi
push edi
cmp eax, 2
je 0x42dfc5
cmp eax, 1
je 0x42e104
pop edi
pop esi
mov eax, 0x25d
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004db901
mov esp, ebp
pop ebp
ret
push str.NTDLL.DLL
mov edi, 0x4000
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x2c8], eax
cmp eax, ebx
je 0x42e07f
push str.NtQuerySystemInformation
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov dword [ebp - 0x2e0], esi
cmp esi, ebx
je 0x42e050
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x42e049
jmp 0x42e016
mov esi, dword [ebp - 0x2e0]
lea eax, [ebp - 0x2e4]
push eax
push edi
push ebx
push 5
call esi
mov esi, eax
test esi, esi
je 0x42e05b
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp esi, 0xc0000004
jne 0x42e049
add edi, edi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x42e010
mov esi, 0x260
jmp 0x42e05b
mov ebx, dword [ebp - 0x2e4]
mov esi, 0x25f
mov ecx, dword [ebp - 0x2c8]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test esi, esi
je 0x42e097
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004db901
mov esp, ebp
pop ebp
ret
mov esi, 0x25e
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004db901
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x2cc]
mov esi, ebx
nop
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x42e0ee
push 0
push 0
push 0x104
lea edx, [ebp - 0x108]
push edx
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebp - 0x2dc]
push eax
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x42e0ee
mov edx, dword [esi + 0x44]
mov dword [edi], edx
mov dword [ebp - 0x2d0], 1
add edi, 4
mov eax, dword [esi]
test eax, eax
je 0x42e0f8
add esi, eax
jmp 0x42e0a0
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x42e240
push 0x515f78
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
mov dword [ebp - 0x2c8], edi
cmp edi, ebx
je 0x42e249
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x515f4c
push edi
call esi
push 0x515f3c
push edi
mov ebx, eax
call esi
mov edi, eax
mov eax, dword [ebp - 0x2c8]
push 0x515f2c
push eax
call esi
mov dword [ebp - 0x2cc], eax
test ebx, ebx
je 0x42e233
test eax, eax
je 0x42e233
test edi, edi
je 0x42e233
push 0
push 2
call ebx
mov ebx, eax
cmp ebx, 0xffffffff
je 0x42e233
lea ecx, [ebp - 0x2c4]
push ecx
push ebx
mov dword [ebp - 0x2c4], 0x128
call edi
test eax, eax
je 0x42e22c
lea edx, [ebp - 0x2a0]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [ebp + eax - 0x2a1]
mov al, byte [ecx]
cmp al, 0x5c
je 0x42e1bc
lea esp, [esp]
test al, al
je 0x42e1bc
mov al, byte [ecx - 1]
dec ecx
cmp al, 0x5c
jne 0x42e1b0
mov eax, dword [ebp - 0x2dc]
push eax
inc ecx
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x42e216
mov edi, 1
mov dword [ebp - 0x2d0], edi
cmp dword [ebp + 0x10], edi
jne 0x42e22c
mov ecx, dword [ebp - 0x2bc]
push ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x42e216
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x42e209
mov dword [ebp - 0x2d8], edi
jmp 0x42e20f
mov dword [ebp - 0x2d4], edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x2c4]
push edx
push ebx
call dword [ebp - 0x2cc]
test eax, eax
jne 0x42e192
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x2c8]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x2d0], 0
jne 0x42e25f
pop edi
pop esi
mov eax, 0x25b
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004db901
mov esp, ebp
pop ebp
ret
mov eax, 1
cmp dword [ebp + 0x10], eax
jne 0x42e2a6
cmp dword [ebp - 0x2d8], 0
jne 0x42e288
pop edi
pop esi
mov eax, 0x259
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004db901
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x2d4], eax
jne 0x42e2a6
pop edi
pop esi
mov eax, 0x25a
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004db901
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.004db901
mov esp, ebp
pop ebp
ret