Function at 0x740300
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x78
mov rsi, qword [0x007add88]
lea r8, str.CryptonightR_update_ASM_code
mov edx, 0xa
mov rbx, rcx
test rsi, rsi
je 0x740820
mov rcx, qword [rsi]
lea rdi, [rbx + 0x148]
test rcx, rcx
je 0x740847
call fcn.00430740
lea r9, [rsp + 0x6c]
mov edx, 0x10000
mov rcx, qword [rbx + 0x110]
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8d, 0x40
test rcx, rcx
je 0x7408a0
mov qword [rsp + 0x48], r9
mov qword [rsp + 0x50], rax
call rax
mov r15, qword [rbx + 0x110]
lea rcx, [0x0077c680]
lea r8, [0x0077c7f2]
test r15, r15
je 0x740a30
mov qword [rsp + 0x40], r8
sub r8, rcx
mov qword [rsp + 0x38], rcx
test r8, r8
jg 0x7407e6
mov edx, dword [rbx + 0x118]
movzx r8d, byte [rbx + 0x148]
mov qword [rsp + 0x30], rdi
mov rax, r15
cmp r8b, 6
je 0x740b10
movzx r10d, byte [rbx + 0x149]
movzx ecx, byte [rbx + 0x14a]
cmp edx, 2
mov r13d, dword [rbx + 0x14c]
sete byte [rsp + 0x2f]
mov qword [rsp + 0x58], r15
mov r12d, 0xffffffff
xor r14d, r14d
mov r15, rbx
lea r11, [0x00797120]
jmp 0x7404ab
mov esi, r9d
movzx edi, r8b
shl esi, 5
sub edi, 3
or edx, esi
movzx ecx, dl
lea rdx, [rcx*8 + 8]
lea rbx, [rdx - 8]
cmp edi, 1
ja 0x74043c
cmp r9d, r12d
jne 0x740550
cmp r10d, r12d
je 0x740573
mov rsi, qword [r11 + rbx]
add rdx, r11
test r8b, r8b
jne 0x74045c
cmp byte [rsp + 0x2f], 0
jne 0x740603
mov r10, qword [rdx]
sub r10, rsi
test r10, r10
jg 0x74059a
cmp r8b, 1
je 0x740700
nop
nop word cs:[rax + rax]
add r14d, 1
mov r8, qword [rsp + 0x30]
movsxd r13, r14d
lea rsi, [r8 + r13*8]
movzx r8d, byte [rsi]
movzx r10d, byte [rsi + 1]
cmp r8b, 6
je 0x740660
movzx ecx, byte [rsi + 2]
mov r13d, dword [rsi + 4]
test r8b, r8b
lea edx, [r8 + 2]
mov ebx, 0
movzx r9d, cl
cmove edx, ebx
lea ebp, [r10*8]
or edx, ebp
cmp cl, 8
jne 0x740410
mov ebp, r10d
movzx ecx, r8b
shl ebp, 5
sub ecx, 3
or edx, ebp
movzx esi, dl
lea rdx, [rsi*8 + 8]
lea rbx, [rdx - 8]
cmp ecx, 1
ja 0x7404fa
cmp r12d, 8
jne 0x740550
cmp r10d, r12d
je 0x740573
mov rsi, qword [r11 + rbx]
add rdx, r11
test r8b, r8b
jne 0x740516
cmp byte [rsp + 0x2f], 0
jne 0x740603
mov r10, qword [rdx]
sub r10, rsi
test r10, r10
jg 0x74059a
nop dword [rax + rax]
nop word cs:[rax + rax]
mov r9d, r12d
mov r12d, r9d
cmp r8b, 1
jne 0x740480
mov dword [rax - 4], r13d
mov r12d, r9d
jmp 0x740480
lea r12, [0x00796900]
mov rcx, qword [r12 + rdx]
mov rsi, qword [r12 + rbx]
mov rbp, rcx
sub rbp, rsi
test rbp, rbp
jg 0x740630
cmp r10d, r9d
jne 0x740579
mov r9d, 0xffffffff
mov rsi, qword [r11 + rbx]
add rdx, r11
test r8b, r8b
jne 0x74058c
cmp byte [rsp + 0x2f], 0
jne 0x740600
mov r10, qword [rdx]
sub r10, rsi
test r10, r10
jle 0x740533
mov r12d, r9d
cmp r10, 8
jae 0x7405d0
test r10b, 4
jne 0x740a60
test r10, r10
je 0x7405c0
movzx r9d, byte [rsi]
mov byte [rax], r9b
test r10b, 2
jne 0x740a80
add rax, r10
jmp 0x740530
mov rcx, qword [rsi]
mov qword [rax], rcx
mov rcx, rax
mov rdi, qword [rsi + r10 - 8]
mov qword [rax + r10 - 8], rdi
lea rdi, [rax + 8]
and rdi, 0xfffffffffffffff8
sub rcx, rdi
sub rsi, rcx
add rcx, r10
shr rcx, 3
rep movsq qword [rdi], qword [rsi]
jmp 0x7405c0
mov r12d, r9d
cmp byte [rsi], 0x49
jne 0x74060f
mov byte [rax], 0x41
add rax, 1
mov r10, qword [rdx]
add rsi, 1
sub r10, rsi
test r10, r10
jle 0x740480
jmp 0x74059a
cmp rbp, 8
jae 0x740710
test bpl, 4
jne 0x740af0
test rbp, rbp
jne 0x740a10
add rax, rbp
jmp 0x74056e
mov rbx, r15
mov r15, qword [rsp + 0x58]
lea r14, [0x0077c899]
mov r11, r14
sub r11, qword [rsp + 0x40]
test r11, r11
jg 0x740790
mov r12, rax
lea r8, [0x0077c740]
lea r10, [0x0077c8df]
sub r8, qword [rsp + 0x38]
sub r12, r15
sub r10, r14
sub r8d, r12d
mov dword [rax - 4], r8d
test r10, r10
jg 0x740750
mov r9, qword [rsp + 0x48]
mov r8d, 0x20
mov edx, 0x10000
mov rcx, qword [rbx + 0x110]
mov rax, qword [rsp + 0x50]
mov qword [rbx + 0x100], rcx
call rax
mov rbx, qword [rbx + 0x110]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, r12
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
nop
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov r9d, r12d
jmp 0x740540
mov rdi, qword [rsi]
mov qword [rax], rdi
lea rdi, [rax + 8]
and rdi, 0xfffffffffffffff8
mov r12, qword [rcx - 8]
mov rcx, rax
sub rcx, rdi
mov qword [rax + rbp - 8], r12
sub rsi, rcx
add rcx, rbp
add rax, rbp
shr rcx, 3
rep movsq qword [rdi], qword [rsi]
jmp 0x74056e
cmp r10, 8
jae 0x7409d0
test r10b, 4
jne 0x740b20
test r10, r10
je 0x74077e
movzx r11d, byte [0x0077c899]
mov byte [rax], r11b
test r10b, 2
jne 0x740b94
add rax, r10
sub rax, r15
mov r12, rax
jmp 0x7406ac
cmp r11, 8
jae 0x740990
test r11b, 4
jne 0x740b40
test r11, r11
je 0x7407bd
movzx ebp, byte [0x0077c7f2]
mov byte [rax], bpl
test r11b, 2
jne 0x740ba6
add rax, r11
jmp 0x740680
mov rsi, qword [sym.imp.KERNEL32.dll_VirtualProtect]
lea r14, [rsp + 0x6c]
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], rsi
cmp r8, 8
jae 0x740950
test r8b, 4
jne 0x740b60
test r8, r8
je 0x740813
movzx edx, byte [0x0077c680]
mov byte [r15], dl
test r8b, 2
jne 0x740b7e
lea rax, [r15 + r8]
jmp 0x740906
mov ecx, 0x28
call sub.libstdc_6.dll_operator_new_unsigned_long_long_
pxor xmm0, xmm0
mov rsi, rax
movups xmmword [rax], xmm0
mov qword [rax + 0x20], 0
mov qword [0x007add88], rax
movups xmmword [rax + 0x10], xmm0
mov ecx, 0x18
call sub.libstdc_6.dll_operator_new_unsigned_long_long_
mov rcx, rax
mov rdi, rax
call fcn.00430940
lea r8, str.CryptonightR_update_ASM_code
mov edx, 0xa
mov qword [rsi], rdi
mov rcx, rdi
call fcn.00430740
lea r9, [rsp + 0x6c]
mov r8d, 0x40
mov rcx, qword [rbx + 0x110]
mov edx, 0x10000
test rcx, rcx
je 0x7408a0
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rax, qword [rbx + 0x110]
jmp 0x7408c0
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbx + 0x110], rax
lea r8, [0x0077c7f2]
lea r10, [0x0077c680]
test rax, rax
je 0x740a30
mov r13, qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov qword [rsp + 0x40], r8
sub r8, r10
lea r11, [rsp + 0x6c]
mov qword [rsp + 0x38], r10
mov r15, rax
test r8, r8
jg 0x7407d0
mov qword [rsp + 0x48], r11
mov qword [rsp + 0x50], r13
lea r8, [rbx + 0x148]
mov r11d, dword [rbx + 0x118]
movzx r10d, byte [rbx + 0x149]
mov qword [rsp + 0x30], r8
movzx r8d, byte [rbx + 0x148]
movzx ecx, byte [rbx + 0x14a]
cmp r8b, 6
je 0x740668
cmp r11d, 2
mov r13d, dword [rbx + 0x14c]
sete byte [rsp + 0x2f]
jmp 0x7403ec
mov r12, qword [0x0077c680]
lea rdi, [r15 + 8]
mov rcx, r15
mov qword [r15], r12
mov rsi, qword [rsp + 0x38]
and rdi, 0xfffffffffffffff8
mov r10, qword [rsi + r8 - 8]
sub rcx, rdi
sub rsi, rcx
add rcx, r8
mov qword [r15 + r8 - 8], r10
shr rcx, 3
rep movsq qword [rdi], qword [rsi]
jmp 0x740813
mov r12, qword [0x0077c7f2]
lea rdi, [rax + 8]
mov rcx, rax
mov qword [rax], r12
mov rsi, qword [0x0077c891]
and rdi, 0xfffffffffffffff8
mov qword [rax + r11 - 8], rsi
sub rcx, rdi
mov rsi, qword [rsp + 0x40]
sub rsi, rcx
add rcx, r11
shr rcx, 3
rep movsq qword [rdi], qword [rsi]
jmp 0x7407bd
mov r9, qword [0x0077c899]
lea rdi, [rax + 8]
mov rcx, rax
mov rsi, r14
and rdi, 0xfffffffffffffff8
mov qword [rax], r9
sub rcx, rdi
mov rbp, qword [0x0077c8d7]
sub rsi, rcx
add rcx, r10
mov qword [rax + r10 - 8], rbp
shr rcx, 3
rep movsq qword [rdi], qword [rsi]
jmp 0x74077e
movzx esi, byte [rsi]
mov byte [rax], sil
test bpl, 2
je 0x74064d
movzx ecx, word [rcx - 2]
mov word [rax + rbp - 2], cx
jmp 0x74064d
mov rbp, qword [0x007add88]
test rbp, rbp
je 0x740aa0
mov rsi, qword [rbp]
test rsi, rsi
je 0x740ac7
lea r8, str.Error:_CPU_CryptonightR_update_ASM_code_ctx__fun_data_is_a_nullptr
xor edx, edx
mov rcx, rsi
call fcn.00430850
jmp 0x7406ee
mov edx, dword [rsi]
mov dword [rax], edx
mov ebx, dword [rsi + r10 - 4]
mov dword [rax + r10 - 4], ebx
jmp 0x7405c0
movzx ebp, word [rsi + r10 - 2]
mov word [rax + r10 - 2], bp
jmp 0x7405c0
mov ecx, 0x28
call sub.libstdc_6.dll_operator_new_unsigned_long_long_
pxor xmm1, xmm1
mov rbp, rax
movups xmmword [rax], xmm1
mov qword [rax + 0x20], 0
mov qword [0x007add88], rax
movups xmmword [rax + 0x10], xmm1
mov ecx, 0x18
call sub.libstdc_6.dll_operator_new_unsigned_long_long_
mov rcx, rax
mov rsi, rax
call fcn.00430940
mov qword [rbp], rsi
jmp 0x740a49
mov edi, dword [rsi]
mov dword [rax], edi
mov r12d, dword [rcx - 4]
mov dword [rax + rbp - 4], r12d
jmp 0x74064d
mov rax, r15
jmp 0x740668
mov r13d, dword [0x0077c899]
mov dword [rax], r13d
mov r14d, dword [0x0077c8db]
mov dword [rax + r10 - 4], r14d
jmp 0x74077e
mov edx, dword [0x0077c7f2]
mov dword [rax], edx
mov r9d, dword [0x0077c895]
mov dword [rax + r11 - 4], r9d
jmp 0x7407bd
mov r9d, dword [0x0077c680]
mov dword [r15], r9d
mov rax, qword [rsp + 0x38]
mov ecx, dword [rax + r8 - 4]
mov dword [r15 + r8 - 4], ecx
jmp 0x740813
mov rdi, qword [rsp + 0x38]
movzx ebp, word [rdi + r8 - 2]
mov word [r15 + r8 - 2], bp
jmp 0x740813
movzx edx, word [0x0077c8dd]
mov word [rax + r10 - 2], dx
jmp 0x74077e
movzx edi, word [0x0077c897]
mov word [rax + r11 - 2], di
jmp 0x7407bd