Function at 0x1400079a0
Capabilities:
Allocate or change rwx memory
Enumerate pe sections
Resume thread

Disassembly:
push rbp
push r12
push r13
push r15
lea rbp, [rsp - 0x268]
sub rsp, 0x368
mov rax, qword [0x140043100]
xor rax, rsp
mov qword [rbp + 0x248], rax
movsxd r13, dword [rdx + 0x3c]
mov r15, rdx
add r13, rdx
mov qword [rsp + 0x58], rcx
mov r12, rcx
mov qword [rsp + 0x60], r13
mov rcx, qword [rcx]
xor edx, edx
mov r9d, 0x3000
mov dword [rsp + 0x20], 0x40
mov r8d, dword [r13 + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x68], rax
test rax, rax
je 0x140007cef
mov r9d, dword [r13 + 0x54]
mov ecx, eax
sub ecx, dword [r13 + 0x34]
mov r8, r15
mov dword [r13 + 0x34], eax
xor eax, eax
mov rdx, qword [rsp + 0x68]
mov dword [rsp + 0x48], ecx
mov rcx, qword [r12]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140007d12
mov qword [rsp + 0x3a0], rbx
xor r11d, r11d
movsxd rbx, dword [r15 + 0x3c]
mov qword [rsp + 0x360], rsi
mov qword [rsp + 0x350], r14
cmp dword [rbx + r15 + 0xa0], r11d
je 0x140007a70
mov rbx, qword [rbx + r15 + 0xa0]
jmp 0x140007a73
mov rbx, r11
mov r14, r11
mov qword [rsp + 0x50], rbx
mov esi, r11d
mov qword [rsp + 0x358], rdi
cmp r11w, word [r13 + 6]
jae 0x140007ccc
mov rdi, r11
nop dword [rax]
nop dword [rax + rax]
movzx edx, word [r13 + 0x14]
add rdx, 0x18
add rdx, rdi
add rdx, r13
mov r10d, dword [rdx + 0xc]
cmp ebx, r10d
jb 0x140007ac4
mov ecx, dword [rdx + 8]
add ecx, r10d
cmp ebx, ecx
cmovb r14, rdx
mov r8d, dword [rdx + 0x14]
mov r9d, dword [rdx + 0x10]
add r8, r15
mov rcx, qword [r12]
mov rdx, r10
add rdx, qword [rsp + 0x68]
mov qword [rsp + 0x20], r11
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140007d9e
movzx eax, word [r13 + 6]
inc esi
add rdi, 0x28
mov r11d, 0
cmp esi, eax
jl 0x140007aa0
test r14, r14
je 0x140007ccc
xor r8d, r8d
mov ebx, r8d
cmp dword [rsp + 0x54], ebx
jbe 0x140007c03
mov r9d, 0x1000
mov r13, r12
nop word [rax + rax]
mov eax, dword [r14 + 0x14]
add rax, r15
mov r12d, ebx
add r12, rax
add ebx, 8
mov eax, dword [r12 + 4]
sub rax, 8
shr rax, 1
test eax, eax
je 0x140007bef
mov esi, eax
nop word [rax + rax]
mov eax, dword [r14 + 0x14]
add rax, r15
mov ecx, ebx
add ebx, 2
movzx edx, word [rcx + rax]
cmp dx, r9w
jb 0x140007be5
mov rcx, qword [rsp + 0x68]
and edx, 0xfff
mov edi, dword [r12]
add rcx, rdx
add rdi, rcx
mov dword [rbp + 0x240], r8d
mov rcx, qword [r13]
mov rdx, rdi
mov qword [rsp + 0x20], r8
mov r9d, 4
lea r8, [rbp + 0x240]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov eax, dword [rsp + 0x48]
lea r8, [rbp + 0x240]
add dword [rbp + 0x240], eax
mov r9d, 4
mov rcx, qword [r13]
xor eax, eax
mov rdx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor r8d, r8d
mov r9d, 0x1000
sub rsi, 1
jne 0x140007b60
cmp ebx, dword [rsp + 0x54]
jb 0x140007b30
mov r13, qword [rsp + 0x60]
mov r12, qword [rsp + 0x58]
xor edx, edx
lea rcx, [rsp + 0x74]
mov r8d, 0x2c8
call fcn.14002c930
mov rcx, qword [r12 + 8]
lea rdx, [rsp + 0x70]
mov dword [rsp + 0x70], 0x10000b
call qword [sym.imp.KERNEL32.dll_Wow64GetThreadContext]
test eax, eax
je 0x140007d35
mov edx, dword [rbp + 0x14]
lea r8, [rsp + 0x68]
mov rcx, qword [r12]
xor eax, eax
add rdx, 8
mov qword [rsp + 0x20], rax
mov r9d, 4
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140007d58
mov ecx, dword [r13 + 0x28]
lea rdx, [rsp + 0x70]
add ecx, dword [rsp + 0x68]
mov dword [rbp + 0x20], ecx
mov rcx, qword [r12 + 8]
call qword [sym.imp.KERNEL32.dll_Wow64SetThreadContext]
test eax, eax
je 0x140007d7b
mov rcx, qword [r12 + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rdi, qword [rsp + 0x358]
mov rsi, qword [rsp + 0x360]
mov rbx, qword [rsp + 0x3a0]
mov r14, qword [rsp + 0x350]
mov rcx, qword [rbp + 0x248]
xor rcx, rsp
call fcn.140010750
add rsp, 0x368
pop r15
pop r13
pop r12
pop rbp
ret
lea rdx, str.Error_when_trying_to_get_the_relocation_section_of_the_source_image
lea rcx, [rsp + 0x30]
call fcn.140006ff0
lea rdx, [0x140041298]
lea rcx, [rsp + 0x30]
call fcn.1400127b8
int3
lea rdx, str.Error_when_trying_to_allocate_memory_for_the_new_image
lea rcx, [rsp + 0x30]
call fcn.140006ff0
lea rdx, [0x140041298]
lea rcx, [rsp + 0x30]
call fcn.1400127b8
int3
lea rdx, str.Error_when_trying_to_write_the_headers_of_the_new_image
lea rcx, [rsp + 0x30]
call fcn.140006ff0
lea rdx, [0x140041298]
lea rcx, [rsp + 0x30]
call fcn.1400127b8
int3
lea rdx, str.Error_when_trying_to_get_the_thread_context
lea rcx, [rsp + 0x30]
call fcn.140006ff0
lea rdx, [0x140041298]
lea rcx, [rsp + 0x30]
call fcn.1400127b8
int3
lea rdx, str.Error_when_trying_to_write_the_image_base_in_the_PEB
lea rcx, [rsp + 0x30]
call fcn.140006ff0
lea rdx, [0x140041298]
lea rcx, [rsp + 0x30]
call fcn.1400127b8
int3
lea rdx, str.Error_when_trying_to_set_the_thread_context
lea rcx, [rsp + 0x30]
call fcn.140006ff0
lea rdx, [0x140041298]
lea rcx, [rsp + 0x30]
call fcn.1400127b8
int3
lea rdx, str.Error_when_trying_to_write_the_section
lea rcx, [rsp + 0x30]
call fcn.140006ff0
lea rdx, [0x140041298]
lea rcx, [rsp + 0x30]
call fcn.1400127b8
int3