Function at 0x140007e20
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov rax, qword [0x140017008]
xor rax, rsp
mov qword [rbp + 0x60], rax
xor eax, eax
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], eax
xor edi, edi
mov rsi, rcx
test edi, edi
jne 0x140007eb6
mov eax, dword [str.ABG]
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], eax
xor r8d, r8d
movzx eax, word [0x1400131d8]
mov word [rsp + 0x44], ax
mov eax, 0x2f684bdb
mul r8d
mov eax, r8d
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
movsx eax, al
imul ecx, eax, 0x36
mov al, r8b
inc r8d
sub al, cl
add al, 0x34
xor byte [r9], al
inc r9
cmp r8d, 6
jl 0x140007e7c
lea rdx, [rsp + 0x40]
jmp 0x140007f7c
cmp edi, 1
jne 0x140007f1a
mov eax, dword [str.ABGK]
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], eax
xor r8d, r8d
movzx eax, word [0x1400131d0]
mov word [rsp + 0x34], ax
mov al, byte [0x1400131d2]
mov byte [rsp + 0x36], al
mov eax, 0x2f684bdb
mul r8d
mov eax, r8d
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
movsx eax, al
imul ecx, eax, 0x36
mov al, r8b
inc r8d
sub al, cl
add al, 0x34
xor byte [r9], al
inc r9
cmp r8d, 7
jl 0x140007ee3
lea rdx, [rsp + 0x30]
jmp 0x140007f7c
cmp edi, 2
jne 0x140007f87
mov eax, dword [str.GZUK]
lea r9, [rsp + 0x38]
mov dword [rsp + 0x38], eax
xor r8d, r8d
movzx eax, word [0x1400131fc]
mov word [rsp + 0x3c], ax
mov al, byte [0x1400131fe]
mov byte [rsp + 0x3e], al
mov eax, 0x2f684bdb
mul r8d
mov eax, r8d
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
movsx eax, al
imul ecx, eax, 0x36
mov al, r8b
inc r8d
sub al, cl
add al, 0x34
xor byte [r9], al
inc r9
cmp r8d, 7
jl 0x140007f47
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea rdx, [rsp + 0x48]
mov rcx, rsi
movsxd rbx, eax
call qword [sym.imp.VCRUNTIME140.dll_strstr]
mov r15, rax
test rax, rax
je 0x1400080ab
lea rdx, [0x1400131c4]
mov rcx, rax
call qword [sym.imp.VCRUNTIME140.dll_strstr]
mov r14, rax
test rax, rax
jne 0x140007fdc
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
movsxd r14, eax
add r14, rsi
je 0x1400080ab
lea rdx, [0x1400131c8]
mov rcx, r15
call qword [sym.imp.VCRUNTIME140.dll_strstr]
mov r13, rax
test rax, rax
je 0x1400080ab
mov ecx, 0x304
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r12, rax
test rax, rax
je 0x1400080ab
lea rcx, [rax + 1]
xor edx, edx
mov r8d, 0x303
call sub.VCRUNTIME140.dll_memset
mov r8, r13
mov byte [r12], dil
sub r8, rbx
lea rdx, [rbx + r15]
sub r8, r15
lea rcx, [r12 + 1]
call sub.VCRUNTIME140.dll_memcpy
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, pe_nt_image_headers64
call sub.VCRUNTIME140.dll_memset
sub r14, r13
lea rdx, [r13 + 1]
lea rcx, [rsp + 0x60]
lea r8, [r14 - 1]
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
lea r8, [r12 + 0x204]
mov word [r12 + 0x102], ax
lea rdx, [r12 + 0x104]
lea rcx, [r12 + 1]
call fcn.140007b30
mov r15, qword [rsp + 0x28]
mov rdx, r12
mov rcx, r15
call fcn.140001318
mov eax, 1
mov dword [rsp + 0x20], eax
jmp 0x1400080b4
mov r15, qword [rsp + 0x28]
mov eax, dword [rsp + 0x20]
inc edi
cmp edi, 3
jl 0x140007e5a
test eax, eax
jne 0x140008189
lea rdx, [0x1400131c8]
mov rcx, rsi
call qword [sym.imp.VCRUNTIME140.dll_strstr]
mov r14, rax
test rax, rax
je 0x140008189
mov ecx, 0x304
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x140008189
lea rcx, [rax + 1]
xor edx, edx
mov r8d, 0x303
call sub.VCRUNTIME140.dll_memset
mov r8, r14
mov byte [rdi], 0
sub r8, rsi
lea rcx, [rdi + 1]
mov rdx, rsi
call sub.VCRUNTIME140.dll_memcpy
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, pe_nt_image_headers64
call sub.VCRUNTIME140.dll_memset
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
movsxd r8, eax
sub rsi, r14
dec r8
lea rdx, [r14 + 1]
add r8, rsi
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
lea r8, [rdi + 0x204]
mov word [rdi + 0x102], ax
lea rdx, [rdi + 0x104]
lea rcx, [rdi + 1]
call fcn.140007b30
mov rdx, rdi
mov rcx, r15
call fcn.140001318
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.14000c390
mov rbx, qword [rsp + 0x1c0]
add rsp, 0x170
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret