Function at 0x41230a
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 - 0x78], edx
lea edi, [ebp - 0x6c]
mov edx, dword [ebp + 0xc]
mov ebx, ecx
mov dword [ebp - 0x74], eax
xor esi, esi
mov dword [ebp - 0x70], 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 0x412358
call fcn.0044cc8a
jmp 0x41267c
lea eax, [ebp + 0x18]
mov dword [ebp - 0x5c], 0x49529c
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.0043ba54
lea ecx, [ebp - 0x5c]
call fcn.0043ba36
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 0x4123aa
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov esi, eax
jmp 0x41266f
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 8], eax
test eax, eax
je 0x412660
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
je 0x412660
push dword [ebp - 0x10]
push dword [ebp - 0xc]
push 0x8123
push ebx
call dword [sym.imp.USER32.dll_PostThreadMessageW]
test eax, eax
jne 0x412405
call fcn.0044cc8a
mov esi, eax
jmp 0x41263b
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 0x412466
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x34]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x412636
cmp eax, 1
je 0x41263b
cmp eax, 0x102
je 0x41245c
cmp eax, 0xffffffff
je 0x4123f9
mov esi, 0x80004005
push 0x80004001
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x41263b
mov esi, 0x800705b4
jmp 0x41263b
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 0x412466
test eax, eax
je 0x412636
cmp eax, 1
je 0x41263b
cmp eax, 2
je 0x41261a
mov esi, 0x80004001
push esi
jmp 0x41244e
cmp dword [ebp - 0x4c], 0x8001
jne 0x41260c
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 0x412602
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 0x4125bc
sub eax, 0x3f0
je 0x41258b
sub eax, 0x15
je 0x412556
sub eax, 0x3cb
jne 0x4125f9
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 0x4125f9
push dword [ebp + 0x20]
push edi
push edi
push 0x948e
call ebx
test eax, eax
je 0x4125eb
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 0x4125eb
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 0x4125eb
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.00439864
jmp 0x41261a
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 0x4124a6
jmp 0x412466
mov esi, 0xa0020009
lea ecx, [ebp - 8]
call fcn.00439864
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]
jmp 0x412667
call fcn.0044cc8a
mov esi, eax
lea ecx, [ebp - 8]
call fcn.00439864
lea ecx, [ebp - 0xa4]
call fcn.0043ba19
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret