Function at 0x140022490
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xc0
mov rax, qword [0x140046ef8]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov dword [rbp + 0xf], 0x38
mov byte [rbp + 0x13], 0x7b
mov byte [rbp + 0x14], 2
mov byte [rbp + 0x15], 0x64
mov byte [rbp + 0x16], 0x5b
mov byte [rbp + 0x17], 0x4b
xor eax, eax
mov byte [rbp + 0x18], al
movzx eax, byte [rbp + 0x13]
xor esi, esi
mov edx, esi
movzx eax, byte [rbp + rdx + 0x13]
mov ecx, dword [rbp + 0xf]
xor cl, al
mov byte [rbp + rdx + 0x13], cl
inc rdx
cmp rdx, 5
jb 0x1400224e2
mov byte [rbp + 0x18], sil
mov qword [rbp + 0x27], rsi
mov qword [rbp + 0x37], rsi
mov qword [rbp + 0x3f], 0xf
mov byte [rbp + 0x27], sil
lea rax, [rbp + 0x13]
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop
inc r8
cmp byte [rax + r8], sil
jne 0x140022520
lea rdx, [rbp + 0x13]
lea rcx, [rbp + 0x27]
call fcn.140008140
nop
lea rcx, [rbp + 0x27]
cmp qword [rbp + 0x3f], 0x10
cmovae rcx, qword [rbp + 0x27]
call qword [0x140048528]
cmp eax, 0xffffffff
je 0x140022559
test al, 0x10
je 0x140022559
mov dil, 1
jmp 0x14002255c
xor dil, dil
mov rdx, qword [rbp + 0x3f]
cmp rdx, 0x10
jb 0x14002259a
inc rdx
mov rcx, qword [rbp + 0x27]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140022595
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140022595
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400277fc
mov qword [rbp + 0x37], rsi
mov qword [rbp + 0x3f], 0xf
mov byte [rbp + 0x27], 0
test dil, dil
je 0x140022782
mov dword [0x14004848c], 1
call qword [sym.imp.KERNEL32.dll_AllocConsole]
mov qword [rbp - 0x49], rsi
mov dword [rbp + 7], 0xd
mov eax, dword [rbp + 7]
xor al, 0x77
mov byte [rbp + 0xb], al
xor eax, eax
mov byte [rbp + 0xc], al
movzx eax, byte [rbp + 0xb]
movzx eax, byte [rbp + 0xb]
mov ecx, dword [rbp + 7]
xor cl, al
mov byte [rbp + 0xb], cl
mov byte [rbp + 0xc], 0
mov dword [rbp - 0x11], 0x51
mov eax, dword [rbp - 0x11]
xor al, 0x43
mov byte [rbp - 0xd], al
mov eax, dword [rbp - 0x11]
inc al
xor al, 0x4f
mov byte [rbp - 0xc], al
mov eax, dword [rbp - 0x11]
add al, 2
xor al, 0x4e
mov byte [rbp - 0xb], al
mov eax, dword [rbp - 0x11]
add al, 3
xor al, 0x4f
mov byte [rbp - 0xa], al
mov eax, dword [rbp - 0x11]
add al, 4
xor al, 0x55
mov byte [rbp - 9], al
mov eax, dword [rbp - 0x11]
add al, 5
xor al, 0x54
mov byte [rbp - 8], al
mov eax, dword [rbp - 0x11]
add al, 6
xor al, 0x24
mov byte [rbp - 7], al
xor eax, eax
mov byte [rbp - 6], al
movzx eax, byte [rbp - 0xd]
mov rdx, rsi
nop word [rax + rax]
movzx eax, byte [rbp + rdx - 0xd]
mov ecx, dword [rbp - 0x11]
add cl, dl
xor cl, al
mov byte [rbp + rdx - 0xd], cl
inc rdx
cmp rdx, 7
jb 0x140022650
mov byte [rbp - 6], 0
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rax
lea r8, [rbp + 0xb]
lea rdx, [rbp - 0xd]
lea rcx, [rbp - 0x49]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen_s]
mov dword [rbp + 0x1f], 1
mov byte [rbp + 0x23], 0x73
xor eax, eax
mov byte [rbp + 0x24], al
movzx eax, byte [rbp + 0x23]
movzx eax, byte [rbp + 0x23]
mov ecx, dword [rbp + 0x1f]
xor cl, al
mov byte [rbp + 0x23], cl
mov byte [rbp + 0x24], 0
mov byte [rbp - 1], 0x4a
mov byte [rbp], 0x56
mov byte [rbp + 1], 0x55
mov byte [rbp + 2], 0x50
mov byte [rbp + 3], 0x55
mov byte [rbp + 4], 0x2b
mov byte [rbp + 5], 0
movzx eax, byte [rbp - 1]
mov rcx, rsi
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rbp + rcx - 1]
sub al, 7
mov byte [rbp + rcx - 1], al
inc rcx
cmp rcx, 6
jb 0x1400226e0
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rax
lea r8, [rbp + 0x23]
lea rdx, [rbp - 1]
lea rcx, [rbp - 0x49]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen_s]
mov byte [rbp - 0x19], 0x45
mov byte [rbp - 0x18], 0x46
mov byte [rbp - 0x17], 0x43
mov byte [rbp - 0x16], 0x56
mov byte [rbp - 0x15], 0x48
mov byte [rbp - 0x14], 0
movzx eax, byte [rbp - 0x19]
mov rcx, rsi
movzx eax, byte [rbp + rcx - 0x19]
dec al
mov byte [rbp + rcx - 0x19], al
inc rcx
cmp rcx, 5
jb 0x140022730
mov qword [rbp - 0x41], rsi
mov qword [rbp - 0x31], rsi
mov qword [rbp - 0x29], 0xf
lea rax, [rbp - 0x19]
nop dword [rax + rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x140022760
mov r8, rbx
lea rdx, [rbp - 0x19]
lea rcx, [rbp - 0x41]
call fcn.140008140
lea rcx, [rbp - 0x41]
call fcn.14001bff0
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140027550
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret