Function at 0x979400
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00f1b3e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x979588
mov rax, qword [0x00f1b3e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x97944c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x9794d5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x979430
mov rcx, rbx
call fcn.0097a0a0
test rax, rax
mov r12, rax
je 0x9795bd
mov rax, qword [0x00f1b3e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.0097a1d0
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00f1b3e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x9795a0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x9794ce
sub eax, 0x40
and eax, 0xffffffbf
jne 0x979530
add dword [0x00f1b3e4], 1
cmp edi, 8
jae 0x979503
test dil, 4
jne 0x979574
test edi, edi
je 0x9794f8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x97958f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x9794f8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x97951c
jmp 0x9794f8
add rsi, qword [0x00f1b3e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x9794ce
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.0097aa20
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x9794f8
xor esi, esi
jmp 0x979457
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x9794f8
mov rax, qword [0x00f1b3e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.0097aa20
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.0097aa20
nop
nop dword [rax]
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x80]
mov ebx, dword [0x00f1b3e0]
test ebx, ebx
je 0x979603
lea rsp, [rbp - 0x48]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov dword [0x00f1b3e0], 1
call fcn.0097a120
cdqe
lea rax, [rax + rax*4]
lea rax, [rax*8 + 0x1e]
and rax, 0xfffffffffffffff0
call fcn.0097a6f0
mov r12, qword [0x00ea5570]
mov dword [0x00f1b3e4], 0
mov rsi, qword [0x00ea5580]
sub rsp, rax
lea rax, [rsp + 0x20]
mov qword [0x00f1b3e8], rax
mov rax, r12
sub rax, rsi
cmp rax, 7
jle 0x9795f2
cmp rax, 0xb
mov edx, dword [rsi]
jle 0x979730
test edx, edx
je 0x979714
cmp rsi, r12
jae 0x9795f2
lea r14, [rsi + 8]
add r12, 7
mov r13, qword [0x00ea55a0]
lea rdi, [rbp - 0x58]
sub r12, r14
shr r12, 3
lea r12, [rsi + r12*8 + 8]
jmp 0x9796a4
add r14, 8
mov ecx, dword [rsi + 4]
mov r8d, 4
mov rdx, rdi
mov eax, dword [rsi]
mov rsi, r14
add rcx, r13
add eax, dword [rcx]
mov dword [rbp - 0x58], eax
call fcn.00979400
cmp r14, r12
jne 0x9796a0
mov eax, dword [0x00f1b3e4]
xor esi, esi
mov r12, qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jle 0x9795f2
nop
mov rax, qword [0x00f1b3e8]
add rax, rsi
mov r8d, dword [rax]
test r8d, r8d
je 0x979700
mov rdx, qword [rax + 0x10]
mov r9, rdi
mov rcx, qword [rax + 8]
call r12
add ebx, 1
add rsi, 0x28
cmp ebx, dword [0x00f1b3e4]
jl 0x9796e0
jmp 0x9795f2
mov ecx, dword [rsi + 4]
test ecx, ecx
jne 0x979670
mov edx, dword [rsi + 8]
test edx, edx
jne 0x979743
mov edx, dword [rsi + 0xc]
add rsi, 0xc
nop dword [rax]
test edx, edx
jne 0x979670
mov eax, dword [rsi + 4]
test eax, eax
jne 0x979670
mov edx, dword [rsi + 8]
cmp edx, 1
jne 0x97987e
mov r13, qword [0x00ea55a0]
add rsi, 0xc
movabs r15, 0xffffffff00000000
lea r14, [rbp - 0x58]
cmp rsi, r12
jb 0x9797b5
jmp 0x9795f2
jbe 0x979830
cmp edx, 0x20
je 0x979800
cmp edx, 0x40
jne 0x97986a
mov rdx, qword [rcx]
mov r8d, 8
mov rdi, r14
sub rdx, rax
add rdx, r9
mov qword [rbp - 0x58], rdx
mov rdx, r14
call fcn.00979400
add rsi, 0xc
cmp rsi, r12
jae 0x9796c7
mov ecx, dword [rsi + 4]
mov eax, dword [rsi]
movzx edx, byte [rsi + 8]
add rcx, r13
add rax, r13
cmp edx, 0x10
mov r9, qword [rax]
jne 0x979772
movzx r8d, word [rcx]
mov rdx, r14
mov rdi, r14
mov r10, r8
or r10, 0xffffffffffff0000
test r8w, r8w
cmovs r8, r10
sub r8, rax
add r8, r9
mov qword [rbp - 0x58], r8
mov r8d, 2
call fcn.00979400
jmp 0x9797a8
mov edx, dword [rcx]
mov rdi, r14
mov r8, rdx
or rdx, r15
test r8d, r8d
cmovns rdx, r8
mov r8d, 4
sub rdx, rax
add rdx, r9
mov qword [rbp - 0x58], rdx
mov rdx, r14
call fcn.00979400
jmp 0x9797a8
cmp edx, 8
jne 0x97986a
movzx r8d, byte [rcx]
mov rdx, r14
mov rdi, r14
mov r10, r8
or r10, 0xffffffffffffff00
test r8b, r8b
cmovs r8, r10
sub r8, rax
add r8, r9
mov qword [rbp - 0x58], r8
mov r8d, 1
call fcn.00979400
jmp 0x9797a8
lea rcx, str.__Unknown_pseudo_relocation_bit_size__d._n
mov qword [rbp - 0x58], 0
call fcn.0097aa20
lea rcx, str.__Unknown_pseudo_relocation_protocol_version__d._n
call fcn.0097aa20
nop
nop
nop
nop
nop
nop
sub rsp, 0x28
mov eax, dword [rcx]
cmp eax, 0xc0000091
ja 0x979900
cmp eax, 0xc000008d
jae 0x97991f
cmp eax, 0xc0000008
je 0x9799b4
ja 0x979980
cmp eax, 0x80000002
je 0x9799b4
cmp eax, 0xc0000005
jne 0x97998e
xor edx, edx
mov ecx, 0xb
call sub.msvcrt.dll_signal
cmp rax, 1
je 0x979a10
test rax, rax
je 0x979a26
mov ecx, 0xb
call rax
xor eax, eax
add rsp, 0x28
ret
cmp eax, 0xc0000094
je 0x9799c0
ja 0x979944
cmp eax, 0xc0000092
je 0x9799b4
cmp eax, 0xc0000093
jne 0x97998e
xor edx, edx
mov ecx, 8
call sub.msvcrt.dll_signal
cmp rax, 1
je 0x9799a0
test rax, rax
je 0x97998e
mov ecx, 8
call rax
xor eax, eax
add rsp, 0x28
ret
cmp eax, 0xc0000095
je 0x9799b4
cmp eax, 0xc0000096
jne 0x97998e
xor edx, edx
mov ecx, 4
call sub.msvcrt.dll_signal
cmp rax, 1
je 0x9799f0
test rax, rax
je 0x979a26
mov ecx, 4
call rax
xor eax, eax
add rsp, 0x28
ret
cmp eax, 0xc000001d
je 0x979952
cmp eax, 0xc000008c
je 0x9799b4
mov eax, 1
add rsp, 0x28
ret
mov edx, 1
mov ecx, 8
call sub.msvcrt.dll_signal
call fcn.009793d0
xor eax, eax
add rsp, 0x28
ret
xor edx, edx
mov ecx, 8
call sub.msvcrt.dll_signal
cmp rax, 1
jne 0x979931
mov edx, 1
mov ecx, 8
call sub.msvcrt.dll_signal
xor eax, eax
jmp 0x9798f3
mov edx, 1
mov ecx, 4
call sub.msvcrt.dll_signal
xor eax, eax
jmp 0x9798f3
mov edx, 1
mov ecx, 0xb
call sub.msvcrt.dll_signal
xor eax, eax
jmp 0x9798f3
mov eax, 4
jmp 0x9798f3