Function at 0x411f4e
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4a8
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x74], eax
lea edi, [ebp - 0x6c]
mov eax, dword [ebp + 0xc]
mov ebx, ecx
mov dword [ebp - 0x70], eax
xor esi, esi
mov dword [ebp - 0x78], edx
xor eax, eax
stosd dword es:[edi], eax
push 4
push 0x1000
push 0x1c
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor edi, edi
push edi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x411f9c
call fcn.0044bc4b
jmp 0x4122bb
lea eax, [ebp + 0x18]
mov dword [ebp - 0x5c], 0x49164c
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x54], ecx
push eax
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0x38], eax
call fcn.0043aa99
lea ecx, [ebp - 0x5c]
call fcn.0043aa7b
push edi
push 0x1c
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0xc]
push dword [ebp + 0x18]
call dword [sym.imp.ntdll.dll_NtWriteVirtualMemory]
test eax, eax
je 0x411fee
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov esi, eax
jmp 0x4122ae
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 8], eax
test eax, eax
je 0x41201f
push 2
push edi
push edi
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], edi
push ecx
push dword [ebp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x41202b
call fcn.0044bc4b
mov esi, eax
jmp 0x4122a6
push dword [ebp - 0x10]
push dword [ebp - 0xc]
push 0x8123
push ebx
call dword [sym.imp.USER32.dll_PostThreadMessageW]
test eax, eax
jne 0x41204d
call fcn.0044bc4b
mov esi, eax
jmp 0x412283
mov eax, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x1c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x30], eax
test ebx, ebx
jne 0x4120ae
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x34]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x41227e
cmp eax, 1
je 0x412283
cmp eax, 0x102
je 0x4120a4
cmp eax, 0xffffffff
je 0x412041
mov esi, 0x80004005
push 0x80004001
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x412283
mov esi, 0x800705b4
jmp 0x412283
push 0x1cff
push 0x1f4
push edi
lea eax, [ebp - 0x34]
push eax
push 2
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, 0x102
je 0x4120ae
test eax, eax
je 0x41227e
cmp eax, 1
je 0x412283
cmp eax, 2
je 0x412262
mov esi, 0x80004001
push esi
jmp 0x412096
cmp dword [ebp - 0x4c], 0x8001
jne 0x412254
push 2
push edi
push edi
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], edi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
push dword [ebp - 0x44]
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x41224a
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x2c]
rep stosd dword es:[edi], eax
xor edi, edi
lea eax, [ebp - 0x2c]
push edi
push 0x1c
push eax
push dword [ebp - 0x48]
push dword [ebp + 0x18]
call dword [sym.imp.ntdll.dll_NtReadVirtualMemory]
mov eax, dword [ebp - 0x2c]
sub eax, 0x9089
je 0x412204
sub eax, 0x3f0
je 0x4121d3
sub eax, 0x15
je 0x41219e
sub eax, 0x3cb
jne 0x412241
push dword [ebp + 0x20]
lea eax, [ebp - 0x4a4]
mov dword [ebp - 0x4a4], 1
push dword [ebp - 0x20]
push eax
push 0x9859
call ebx
push edi
push 4
lea eax, [ebp - 0x4a4]
push eax
push dword [ebp - 0x28]
push dword [ebp + 0x18]
call dword [sym.imp.ntdll.dll_NtWriteVirtualMemory]
jmp 0x412241
push dword [ebp + 0x20]
push edi
push edi
push 0x948e
call ebx
test eax, eax
je 0x412233
or dword [ebp - 0x18], 0xffffffff
lea eax, [ebp - 0x18]
or dword [ebp - 0x14], 0xffffffff
push edi
push 8
push eax
mov eax, dword [ebp - 0x48]
add eax, 0x14
push eax
push dword [ebp + 0x18]
call dword [sym.imp.ntdll.dll_NtWriteVirtualMemory]
jmp 0x412233
push edi
xor eax, eax
push 0x400
mov word [ebp - 0x4a4], ax
lea eax, [ebp - 0x4a4]
push eax
push dword [ebp - 0x28]
push dword [ebp + 0x18]
call dword [sym.imp.ntdll.dll_NtReadVirtualMemory]
lea eax, [ebp - 0x4a4]
cdq
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
jmp 0x412233
push edi
xor eax, eax
push 0x400
mov word [ebp - 0x4a4], ax
lea eax, [ebp - 0x4a4]
push eax
push dword [ebp - 0x20]
push dword [ebp + 0x18]
call dword [sym.imp.ntdll.dll_NtReadVirtualMemory]
lea eax, [ebp - 0x4a4]
cdq
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
push dword [ebp + 0x20]
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea ecx, [ebp + 0xc]
call fcn.004387e2
jmp 0x412262
push dword [ebp + 0x20]
push dword [ebp - 0x44]
push dword [ebp - 0x48]
push dword [ebp - 0x4c]
call ebx
push 1
push edi
push edi
push edi
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x4120ee
jmp 0x4120ae
mov esi, 0xa0020009
lea ecx, [ebp - 8]
call fcn.004387e2
push 3
push edi
push edi
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
push dword [ebp - 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
lea ecx, [ebp - 8]
call fcn.004387e2
lea ecx, [ebp - 0xa4]
call fcn.0043aa5e
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret