Function at 0x42be10
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49de0d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c8
cmp dword [ebp + 8], 0
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
je 0x42c38b
mov eax, dword [esi]
test eax, eax
jne 0x42be95
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], str.Invalid_handle
push eax
push 0x67
push str.C:ProjectsRA2YurisRevengeTrainer_srcwin32utils.cpp
mov dword [ebp - 0x10], 0xe
call fcn.00402620
add esp, 4
lea ecx, [ebp - 0x104]
push eax
push 2
call fcn.00419ee0
lea ecx, [ebp - 0x104]
call fcn.00419120
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
push 0x40
push 0x1000
push dword [ebp + 0xc]
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebx, eax
test ebx, ebx
jne 0x42bf00
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], str.VirtualAllocEx_failed
push eax
push 0x6b
push str.C:ProjectsRA2YurisRevengeTrainer_srcwin32utils.cpp
mov dword [ebp - 0x10], 0x15
call fcn.00402620
add esp, 4
lea ecx, [ebp - 0x104]
push eax
push 2
push 1
call fcn.0042aee0
lea ecx, [ebp - 0x104]
call fcn.00419120
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi]
mov dword [ebp - 0x30], ebx
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0xc]
xor esi, esi
xor edi, edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], edi
test eax, eax
je 0x42bf87
cmp eax, 0x7fffffff
ja 0x42c7c6
cmp eax, 0x1000
jb 0x42bf61
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x42c7cb
push ecx
call fcn.0049b32d
add esp, 4
test eax, eax
je 0x42c71f
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [esi - 4], eax
jmp 0x42bf6c
push eax
call fcn.0049b32d
add esp, 4
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
push 0
push esi
lea edi, [esi + eax]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x24], edi
mov eax, dword [ebp - 0x10]
push 0
push dword [ebp + 0xc]
mov byte [ebp - 4], 1
mov eax, dword [eax]
push esi
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x42c0b6
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], ebx
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], str.WriteProcessMemory_failed_on_addr:p
push eax
push 0x72
push str.C:ProjectsRA2YurisRevengeTrainer_srcwin32utils.cpp
mov dword [ebp - 0x10], 0x26
call fcn.00402620
add esp, 4
lea ecx, [ebp - 0x104]
push eax
push 2
push 1
call fcn.0042b590
lea ecx, [ebp - 0x104]
call fcn.00419120
mov byte [ebp - 4], 0
test esi, esi
je 0x42c01c
sub edi, esi
mov eax, esi
cmp edi, 0x1000
jb 0x42c012
mov esi, dword [eax - 4]
add edi, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42c71f
push edi
push esi
call fcn.0049b35d
add esp, 8
push 0x8000
push 0
push ebx
push dword [ebp - 0x18]
mov dword [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
test eax, eax
jne 0x42c7a9
mov dword [ebp - 0x14], str.VirtualFreeEx_failed
xor ecx, ecx
mov dword [ebp - 0x10], 0x14
nop dword [eax]
mov eax, ecx
inc ecx
cmp byte [eax + str.C:ProjectsRA2YurisRevengeTrainer_srcwin32utils.h], 0
jne 0x42c050
test ecx, ecx
je 0x42c073
mov al, byte [ecx + str.C:ProjectsRA2YurisRevengeTrainer_srcwin32utils.h]
cmp al, 0x5c
je 0x42c0ae
cmp al, 0x2f
je 0x42c0ae
sub ecx, 1
jne 0x42c060
mov eax, str.C:ProjectsRA2YurisRevengeTrainer_srcwin32utils.h
lea ecx, [ebp - 0x14]
push ecx
push 0x26
push eax
push 2
push 1
lea ecx, [ebp - 0x104]
call fcn.0042aee0
lea ecx, [ebp - 0x104]
call fcn.00419120
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
lea eax, [ecx + 0x4a8199]
jmp 0x42c078
mov eax, dword [ebp - 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
mov eax, dword [eax]
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x42c1c0
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], ebx
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], str.WriteProcessMemory_failed_on_addr:p
push eax
push 0x77
push str.C:ProjectsRA2YurisRevengeTrainer_srcwin32utils.cpp
mov dword [ebp - 0x10], 0x26
call fcn.00402620
add esp, 4
lea ecx, [ebp - 0x104]
push eax
push 2
push 1
call fcn.0042b590
lea ecx, [ebp - 0x104]
call fcn.00419120
mov byte [ebp - 4], 0
test esi, esi
je 0x42c149
sub edi, esi
mov eax, esi
cmp edi, 0x1000
jb 0x42c13f
mov esi, dword [eax - 4]
add edi, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42c71f
push edi
push esi
call fcn.0049b35d
add esp, 8
push 0x8000
push 0
push ebx
push dword [ebp - 0x18]
mov dword [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
test eax, eax
jne 0x42c7a9
mov dword [ebp - 0x14], str.VirtualFreeEx_failed
xor ecx, ecx
mov dword [ebp - 0x10], 0x14
nop dword [eax]
mov eax, ecx
inc ecx
cmp byte [eax + str.C:ProjectsRA2YurisRevengeTrainer_srcwin32utils.h], 0
jne 0x42c180
test ecx, ecx
je 0x42c073
nop dword [eax]
nop dword [eax + eax]
mov al, byte [ecx + str.C:ProjectsRA2YurisRevengeTrainer_srcwin32utils.h]
cmp al, 0x5c
je 0x42c0ae
cmp al, 0x2f
je 0x42c0ae
sub ecx, 1
jne 0x42c1a0
jmp 0x42c073
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x2c]
push ecx
push 0
push 0
mov eax, dword [eax]
push ebx
push 0
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x42c2c0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], str.CreateRemoteThread_failed
push eax
push 0x7f
push str.C:ProjectsRA2YurisRevengeTrainer_srcwin32utils.cpp
mov dword [ebp - 0x10], 0x19
call fcn.00402620
add esp, 4
lea ecx, [ebp - 0x104]
push eax
push 2
push 1
call fcn.0042aee0
lea ecx, [ebp - 0x104]
call fcn.00419120
mov byte [ebp - 4], 0
test esi, esi
je 0x42c253
sub edi, esi
mov eax, esi
cmp edi, 0x1000
jb 0x42c249
mov esi, dword [eax - 4]
add edi, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42c71f
push edi
push esi
call fcn.0049b35d
add esp, 8
push 0x8000
push 0
push ebx
push dword [ebp - 0x18]
mov dword [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
test eax, eax
jne 0x42c7a9
mov dword [ebp - 0x14], str.VirtualFreeEx_failed
xor ecx, ecx
mov dword [ebp - 0x10], 0x14
mov eax, ecx
inc ecx
cmp byte [eax + str.C:ProjectsRA2YurisRevengeTrainer_srcwin32utils.h], 0
jne 0x42c283
test ecx, ecx
je 0x42c073
nop word [eax + eax]
mov al, byte [ecx + str.C:ProjectsRA2YurisRevengeTrainer_srcwin32utils.h]
cmp al, 0x5c
je 0x42c0ae
cmp al, 0x2f
je 0x42c0ae
sub ecx, 1
jne 0x42c2a0
jmp 0x42c073
mov dword [ebp + 8], eax
push 0x3e8
push eax
mov byte [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x42c3a8
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0
test esi, esi
je 0x42c316
sub edi, esi
mov eax, esi
cmp edi, 0x1000
jb 0x42c30c
mov esi, dword [eax - 4]
add edi, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42c71f
push edi
push esi
call fcn.0049b35d
add esp, 8
push 0x8000
push 0
push ebx
push dword [ebp - 0x18]
mov dword [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
test eax, eax
jne 0x42c38b
mov dword [ebp - 0x14], str.VirtualFreeEx_failed
xor ecx, ecx
mov dword [ebp - 0x10], 0x14
mov eax, ecx
inc ecx
cmp byte [eax + str.C:ProjectsRA2YurisRevengeTrainer_srcwin32utils.h], 0
jne 0x42c342
test ecx, ecx
je 0x42c365
mov al, byte [ecx + str.C:ProjectsRA2YurisRevengeTrainer_srcwin32utils.h]
cmp al, 0x5c
je 0x42c3a0
cmp al, 0x2f
je 0x42c3a0
sub ecx, 1
jne 0x42c352
mov eax, str.C:ProjectsRA2YurisRevengeTrainer_srcwin32utils.h
lea ecx, [ebp - 0x14]
push ecx
push 0x26
push eax
push 2
push 1
lea ecx, [ebp - 0x104]
call fcn.0042aee0
lea ecx, [ebp - 0x104]
call fcn.00419120
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
lea eax, [ecx + 0x4a8199]
jmp 0x42c36a
cmp eax, 0x102
jne 0x42c6b3
push 1
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
jne 0x42c4b0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], str.TerminateThread_failed
push eax
push 0x89
push str.C:ProjectsRA2YurisRevengeTrainer_srcwin32utils.cpp
mov dword [ebp - 0x10], 0x16
call fcn.00402620
add esp, 4
lea ecx, [ebp - 0x104]
push eax
push 2
push 1
call fcn.0042aee0
lea ecx, [ebp - 0x104]
call fcn.00419120
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0
test esi, esi
je 0x42c440
sub edi, esi
mov eax, esi
cmp edi, 0x1000
jb 0x42c436
mov esi, dword [eax - 4]
add edi, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42c71f
push edi
push esi
call fcn.0049b35d
add esp, 8
push 0x8000
push 0
push ebx
push dword [ebp - 0x18]
mov dword [ebp - 4], 7
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
test eax, eax
jne 0x42c7a9
mov dword [ebp - 0x14], str.VirtualFreeEx_failed
xor ecx, ecx
mov dword [ebp - 0x10], 0x14
mov eax, ecx
inc ecx
cmp byte [eax + str.C:ProjectsRA2YurisRevengeTrainer_srcwin32utils.h], 0
jne 0x42c470
test ecx, ecx
je 0x42c073
nop dword [eax]
nop dword [eax + eax]
mov al, byte [ecx + str.C:ProjectsRA2YurisRevengeTrainer_srcwin32utils.h]
cmp al, 0x5c
je 0x42c0ae
cmp al, 0x2f
je 0x42c0ae
sub ecx, 1
jne 0x42c490
jmp 0x42c073
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
jne 0x42c5b0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], str.GetExitCodeThread_failed
push eax
push 0x94
push str.C:ProjectsRA2YurisRevengeTrainer_srcwin32utils.cpp
mov dword [ebp - 0x10], 0x18
call fcn.00402620
add esp, 4
lea ecx, [ebp - 0x104]
push eax
push 2
push 1
call fcn.0042aee0
lea ecx, [ebp - 0x104]
call fcn.00419120
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0
test esi, esi
je 0x42c53f
sub edi, esi
mov eax, esi
cmp edi, 0x1000
jb 0x42c535
mov esi, dword [eax - 4]
add edi, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42c71f
push edi
push esi
call fcn.0049b35d
add esp, 8
push 0x8000
push 0
push ebx
push dword [ebp - 0x18]
mov dword [ebp - 4], 9
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
test eax, eax
jne 0x42c7a9
mov dword [ebp - 0x14], str.VirtualFreeEx_failed
xor ecx, ecx
mov dword [ebp - 0x10], 0x14
nop
mov eax, ecx
inc ecx
cmp byte [eax + str.C:ProjectsRA2YurisRevengeTrainer_srcwin32utils.h], 0
jne 0x42c570
test ecx, ecx
je 0x42c073
nop dword [eax]
nop dword [eax + eax]
mov al, byte [ecx + str.C:ProjectsRA2YurisRevengeTrainer_srcwin32utils.h]
cmp al, 0x5c
je 0x42c0ae
cmp al, 0x2f
je 0x42c0ae
sub ecx, 1
jne 0x42c590
jmp 0x42c073
cmp dword [ebp - 0x1c], 0
je 0x42c5f7
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x14], str.Remote_thread_exit_with
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], 0x1a
push eax
push 0x98
push str.C:ProjectsRA2YurisRevengeTrainer_srcwin32utils.cpp
call fcn.00402620
add esp, 4
lea ecx, [ebp - 0x104]
push eax
push 2
call fcn.0042b130
lea ecx, [ebp - 0x104]
call fcn.00419120
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0
test esi, esi
je 0x42c632
sub edi, esi
mov eax, esi
cmp edi, 0x1000
jb 0x42c628
mov esi, dword [eax - 4]
add edi, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42c71f
push edi
push esi
call fcn.0049b35d
add esp, 8
push 0x8000
push 0
push ebx
push dword [ebp - 0x18]
mov dword [ebp - 4], 0xa
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
test eax, eax
jne 0x42c38b
mov dword [ebp - 0x14], str.VirtualFreeEx_failed
xor ecx, ecx
mov dword [ebp - 0x10], 0x14
mov eax, ecx
inc ecx
cmp byte [eax + str.C:ProjectsRA2YurisRevengeTrainer_srcwin32utils.h], 0
jne 0x42c662
test ecx, ecx
je 0x42c685
mov al, byte [ecx + str.C:ProjectsRA2YurisRevengeTrainer_srcwin32utils.h]
cmp al, 0x5c
je 0x42c6ab
cmp al, 0x2f
je 0x42c6ab
sub ecx, 1
jne 0x42c672
mov eax, str.C:ProjectsRA2YurisRevengeTrainer_srcwin32utils.h
lea ecx, [ebp - 0x14]
push ecx
push 0x26
push eax
push 2
push 1
lea ecx, [ebp - 0x1d4]
call fcn.0042aee0
lea ecx, [ebp - 0x1d4]
jmp 0x42c386
lea eax, [ecx + 0x4a8199]
jmp 0x42c68a
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], str.WaitForSingleObject_failed
push eax
push 0x8d
push str.C:ProjectsRA2YurisRevengeTrainer_srcwin32utils.cpp
mov dword [ebp - 0x10], 0x1a
call fcn.00402620
add esp, 4
lea ecx, [ebp - 0x1d4]
push eax
push 2
push 1
call fcn.0042aee0
lea ecx, [ebp - 0x1d4]
call fcn.00419120
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0
test esi, esi
je 0x42c72f
sub edi, esi
mov eax, esi
cmp edi, 0x1000
jb 0x42c725
mov esi, dword [eax - 4]
add edi, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x42c725
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edi
push esi
call fcn.0049b35d
add esp, 8
push 0x8000
push 0
push ebx
push dword [ebp - 0x18]
mov dword [ebp - 4], 8
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
test eax, eax
jne 0x42c7a9
mov dword [ebp - 0x14], str.VirtualFreeEx_failed
xor ecx, ecx
mov dword [ebp - 0x10], 0x14
nop dword [eax + eax]
mov eax, ecx
inc ecx
cmp byte [eax + str.C:ProjectsRA2YurisRevengeTrainer_srcwin32utils.h], 0
jne 0x42c760
test ecx, ecx
je 0x42c783
mov al, byte [ecx + str.C:ProjectsRA2YurisRevengeTrainer_srcwin32utils.h]
cmp al, 0x5c
je 0x42c7be
cmp al, 0x2f
je 0x42c7be
sub ecx, 1
jne 0x42c770
mov eax, str.C:ProjectsRA2YurisRevengeTrainer_srcwin32utils.h
lea ecx, [ebp - 0x14]
push ecx
push 0x26
push eax
push 2
push 1
lea ecx, [ebp - 0x1d4]
call fcn.0042aee0
lea ecx, [ebp - 0x1d4]
call fcn.00419120
mov ecx, dword [ebp - 0xc]
xor al, al
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
lea eax, [ecx + 0x4a8199]
jmp 0x42c788
call fcn.0040e5e0
call fcn.004031f0
int3