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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
push r14
push r15
sub rsp, 0x40
movsxd r14, ecx
xor r15d, r15d
mov rcx, r8
mov ebx, r15d
mov rdi, r8
mov ebp, edx
call fcn.1400416c0
cmp word [rax], bx
je 0x140004de9
mov rcx, rdi
call fcn.1400416c0
mov rbx, rax
mov qword [rsp + 0x68], rsi
mov rdi, r15
test rbx, rbx
je 0x140004e71
mov qword [rsp + 0x38], r15
mov r9d, 0xffffffff
mov qword [rsp + 0x30], r15
mov r8, rbx
mov dword [rsp + 0x28], r15d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rsi, eax
test eax, eax
jne 0x140004e40
mov rcx, r14
mov dword [rsp + 0x60], r15d
lea r9, [rsp + 0x60]
xor r8d, r8d
mov edx, ebp
call fcn.140042400
mov rbx, rax
jmp 0x140004e98
mov rcx, rsi
call fcn.14004703c
mov qword [rsp + 0x38], r15
mov r9d, 0xffffffff
mov qword [rsp + 0x30], r15
mov r8, rbx
mov dword [rsp + 0x28], esi
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rcx, r14
mov dword [rsp + 0x60], r15d
lea r9, [rsp + 0x60]
mov r8, rdi
mov edx, ebp
call fcn.140042400
mov rbx, rax
test rdi, rdi
je 0x140004e98
mov rcx, rdi
call fcn.140046ca8
cmp dword [rsp + 0x60], r15d
mov rsi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x78]
cmove rbx, r15
mov rax, rbx
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
sub rsp, 0x28
xor r9d, r9d
test ecx, ecx
jle 0x140007144
mov r8d, dword [0x1400a6200]
test r8d, r8d
je 0x14000713c
sub r8d, 1
je 0x14000713c
sub r8d, 1
je 0x140007133
sub r8d, 1
je 0x140007119
cmp r8d, 1
jne 0x140007144
mov eax, dword [0x1400a6210]
test eax, eax
jle 0x140007144
mov r8, rdx
mov edx, ecx
mov ecx, eax
add rsp, 0x28
jmp 0x140004db0
mov eax, dword [0x1400a6210]
test eax, eax
jle 0x140007144
mov r8, rdx
mov edx, ecx
mov ecx, eax
add rsp, 0x28
jmp 0x14003a0c0
add rsp, 0x28
jmp 0x14003a690
call fcn.140039a80
mov r9, rax
mov rax, r9
add rsp, 0x28
ret
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
push r14
push r15
sub rsp, 0x40
movsxd r14, ecx
xor r15d, r15d
mov rcx, r8
mov ebx, r15d
mov rdi, r8
mov ebp, edx
call fcn.1400416c0
cmp word [rax], bx
je 0x14003a0f9
mov rcx, rdi
call fcn.1400416c0
mov rbx, rax
mov qword [rsp + 0x68], rsi
mov rdi, r15
test rbx, rbx
je 0x14003a181
mov qword [rsp + 0x38], r15
mov r9d, 0xffffffff
mov qword [rsp + 0x30], r15
mov r8, rbx
mov dword [rsp + 0x28], r15d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rsi, eax
test eax, eax
jne 0x14003a150
mov rcx, r14
mov dword [rsp + 0x60], r15d
lea r9, [rsp + 0x60]
xor r8d, r8d
mov edx, ebp
call fcn.140044700
mov rbx, rax
jmp 0x14003a1a8
mov rcx, rsi
call fcn.14004703c
mov qword [rsp + 0x38], r15
mov r9d, 0xffffffff
mov qword [rsp + 0x30], r15
mov r8, rbx
mov dword [rsp + 0x28], esi
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rcx, r14
mov dword [rsp + 0x60], r15d
lea r9, [rsp + 0x60]
mov r8, rdi
mov edx, ebp
call fcn.140044700
mov rbx, rax
test rdi, rdi
je 0x14003a1a8
mov rcx, rdi
call fcn.140046ca8
cmp dword [rsp + 0x60], r15d
mov rsi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x78]
cmove rbx, r15
mov rax, rbx
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
jmp 0x140045270
mov dword [rsp + 8], ecx
push rsi
push rdi
sub rsp, 0x118
mov qword [rsp + 0x78], 0
lea rax, [rsp + 0x90]
lea rcx, [0x1400a4480]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x75
rep movsb byte [rdi], byte [rsi]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x1000
mov r8d, 0x200
xor edx, edx
mov rcx, qword [0x1400a8758]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x1400452d9
xor eax, eax
jmp 0x14004544a
mov rax, qword [rsp + 0x60]
add rax, 8
mov qword [rsp + 0x70], rax
mov eax, dword [rsp + 0x130]
mov dword [rsp + 0xa1], eax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0xfc], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 0x75
lea r8, [rsp + 0x90]
mov rdx, qword [rsp + 0x70]
mov rcx, qword [0x1400a8758]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 4
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9, qword [0x1400a8758]
xor r8d, r8d
mov edx, 0x1fffff
lea rcx, [rsp + 0x68]
call qword [0x1400a8760]
test eax, eax
je 0x1400453b7
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, qword [0x1400a8758]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor eax, eax
jmp 0x14004544a
cmp qword [rsp + 0x68], 0
jne 0x1400453de
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, qword [0x1400a8758]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor eax, eax
jmp 0x14004544a
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x70]
sub rax, 8
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x20], rcx
mov r9d, 8
lea r8, [rsp + 0x78]
mov rdx, rax
mov rcx, qword [0x1400a8758]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, qword [0x1400a8758]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rax, qword [rsp + 0x78]
add rsp, 0x118
pop rdi
pop rsi
ret