Function at 0x14004ff10
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov rax, qword [0x14016e040]
xor rax, rsp
mov qword [rbp + 0x50], rax
mov r13, rdx
mov rsi, rcx
lea rcx, [rbp + 0x10]
call fcn.14004ac48
nop
mov dword [rbp - 0x40], 0x7c0e2c8d
mov dword [rbp - 0x3c], 0x1ba16a2e
mov word [rbp - 0x38], 0x2c3a
xor ecx, ecx
lea edx, [rcx + 0xa]
lea r8, [0x140000000]
lea r14d, [rcx + 1]
mov al, byte [rbp + rcx - 0x40]
xor al, byte [rcx + r8 + 0x14fd30]
mov byte [rbp + rcx - 0x40], al
add rcx, r14
sub rdx, r14
jne 0x14004ff70
lea rcx, [rbp - 0x40]
or r15, 0xffffffffffffffff
mov rax, r15
inc rax
cmp byte [rcx + rax], 0
jne 0x14004ff93
lea rcx, [rbp + 0x10]
mov rbx, qword [rbp + 0x10]
mov rdi, qword [rbp + 0x28]
cmp rdi, 0xf
cmova rcx, rbx
cmp qword [rbp + 0x20], rax
jne 0x14004ffce
mov r8, qword [rbp + 0x20]
lea rdx, [rbp - 0x40]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14005003d
lea r8, [0x140000000]
mov dword [rbp - 0x40], 0xcf654cfa
mov dword [rbp - 0x3c], 0xde0495f
mov dword [rbp - 0x38], 0x4e33b71c
mov word [rbp - 0x34], 0x8d40
mov byte [rbp - 0x32], reloc.WS2_32.dll___WSAFDIsSet
xor ecx, ecx
lea edx, [rcx + 0xf]
mov al, byte [rbp + rcx - 0x40]
xor al, byte [rcx + r8 + 0x14fd00]
mov byte [rbp + rcx - 0x40], al
add rcx, r14
sub rdx, r14
jne 0x14004fff2
lea rcx, [rbp - 0x40]
mov rax, r15
inc rax
cmp byte [rcx + rax], 0
jne 0x140050011
lea rcx, [rbp + 0x10]
cmp rdi, 0xf
cmova rcx, rbx
cmp qword [rbp + 0x20], rax
jne 0x140050045
mov r8, qword [rbp + 0x20]
lea rdx, [rbp - 0x40]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140050045
xor r14b, r14b
jmp 0x140050586
lea rdx, [rsi + 0x40]
lea rcx, [rsp + 0x48]
call fcn.14004a3fc
nop
lea rcx, [rbp - 0x80]
call fcn.140050b80
nop
mov word [rsp + 0x30], 0x9904
movzx eax, word [rsp + 0x30]
mov word [rsp + 0x30], ax
xor ecx, ecx
lea ebx, [rcx + 2]
mov edx, ebx
lea r8, [0x140000000]
mov al, byte [rsp + rcx + 0x30]
xor al, byte [rcx + r8 + 0x14fcb0]
mov byte [rsp + rcx + 0x30], al
add rcx, r14
sub rdx, r14
jne 0x14005007d
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x20], xmm1
lea rax, [rsp + 0x30]
mov r8, r15
inc r8
cmp byte [rax + r8], 0
jne 0x1400500ac
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x30]
call fcn.140002c2c
nop
lea r8, [rbp - 0x30]
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x80]
call fcn.1400548f0
mov rcx, qword [rax]
add rcx, 0x30
cmp rcx, rsi
je 0x1400500f9
mov r8, qword [rsi + 0x10]
cmp qword [rsi + 0x18], 0xf
jbe 0x1400500f0
mov rsi, qword [rsi]
mov rdx, rsi
call fcn.1400207a0
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 0xf
jbe 0x140050137
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140050132
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140050132
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140118f64
mov word [rsp + 0x30], 0x494
movzx eax, word [rsp + 0x30]
mov word [rsp + 0x30], ax
xor ecx, ecx
mov rdx, rbx
lea rsi, [0x140000000]
mov al, byte [rsp + rcx + 0x30]
xor al, byte [rcx + rsi + 0x14fc4c]
mov byte [rsp + rcx + 0x30], al
add rcx, r14
sub rdx, r14
jne 0x140050154
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x20], xmm1
lea rax, [rsp + 0x30]
mov r8, r15
inc r8
cmp byte [rax + r8], 0
jne 0x140050182
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x30]
call fcn.140002c2c
nop
lea r8, [rbp - 0x30]
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x80]
call fcn.1400548f0
mov rcx, qword [rax]
add rcx, 0x30
lea rax, [rbp + 0x10]
cmp rcx, rax
je 0x1400501d4
lea rdx, [rbp + 0x10]
cmp qword [rbp + 0x28], 0xf
cmova rdx, qword [rbp + 0x10]
mov r8, qword [rbp + 0x20]
call fcn.1400207a0
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 0xf
jbe 0x140050212
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005020d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005020d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140118f64
mov word [rsp + 0x30], 0x3192
movzx eax, word [rsp + 0x30]
mov word [rsp + 0x30], ax
xor ecx, ecx
mov al, byte [rsp + rcx + 0x30]
xor al, byte [rcx + rsi + 0x14fc08]
mov byte [rsp + rcx + 0x30], al
add rcx, r14
sub rbx, r14
jne 0x140050225
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x20], xmm1
lea rax, [rsp + 0x30]
mov r8, r15
inc r8
cmp byte [rax + r8], 0
jne 0x140050253
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x30]
call fcn.140002c2c
nop
lea r8, [rbp - 0x30]
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x80]
call fcn.1400548f0
mov rcx, qword [rax]
add rcx, 0x30
mov r8, r15
inc r8
cmp byte [r8 + r13], 0
jne 0x140050287
mov rdx, r13
call fcn.1400207a0
nop
mov rdx, qword [rbp - 0x18]
mov r13d, 0x1000
cmp rdx, 0xf
jbe 0x1400502db
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, r13
jb 0x1400502d5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400502d5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140118f64
nop
mov byte [rsp + 0x38], 0
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.140030214
nop
mov rbx, qword [rbp - 0x78]
mov rdi, qword [rbx]
cmp rdi, rbx
je 0x14005035d
lea rax, [rbp - 0x10]
mov qword [rbp - 0x40], rax
mov byte [rbp - 0x10], 0
xor eax, eax
mov qword [rbp - 8], rax
lea rdx, [rdi + 0x30]
lea rcx, [rbp - 0x10]
call fcn.14003bdbc
nop
lea rdx, [rdi + 0x10]
lea rcx, [rsp + 0x38]
call fcn.1400506a0
nop
mov dl, byte [rax]
mov cl, byte [rbp - 0x10]
mov byte [rax], cl
mov byte [rbp - 0x10], dl
mov rcx, qword [rax + 8]
mov rdx, qword [rbp - 8]
mov qword [rax + 8], rdx
mov qword [rbp - 8], rcx
mov dl, byte [rbp - 0x10]
lea rcx, [rbp - 8]
call fcn.14002fda4
mov rdi, qword [rdi]
cmp rdi, rbx
jne 0x1400502f9
lea rsi, [0x140000000]
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x38]
call fcn.14002ed9c
mov rdx, rax
lea rcx, [rbp + 0x30]
call fcn.14005d630
nop
mov dword [rbp - 0x40], 0xcbcd2928
mov dword [rbp - 0x3c], 0xfca25a6
mov word [rbp - 0x38], 0x905d
mov byte [rbp - 0x36], 0xf4
xor ecx, ecx
lea edx, [rcx + 0xb]
mov al, byte [rbp + rcx - 0x40]
xor al, byte [rcx + rsi + 0x14fb80]
mov byte [rbp + rcx - 0x40], al
add rcx, r14
sub rdx, r14
jne 0x140050395
xorps xmm0, xmm0
movups xmmword [rbp - 0x10], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp], xmm1
lea rax, [rbp - 0x40]
mov r8, r15
inc r8
cmp byte [rax + r8], 0
jne 0x1400503c2
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x10]
call fcn.140002c2c
nop
mov dword [rbp - 0x40], 0xe651da82
mov dword [rbp - 0x3c], 0x49a3bc54
mov dword [rbp - 0x38], 0xeee7bc41
xor ecx, ecx
lea edx, [rcx + 0xc]
mov al, byte [rbp + rcx - 0x40]
xor al, byte [rcx + rsi + 0x14ffc8]
mov byte [rbp + rcx - 0x40], al
add rcx, r14
sub rdx, r14
jne 0x1400503f4
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x20], xmm1
lea rax, [rbp - 0x40]
inc r15
cmp byte [rax + r15], 0
jne 0x14005041e
mov r8, r15
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x30]
call fcn.140002c2c
nop
lea rax, [rbp - 0x10]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x30]
lea r8, [rbp - 0x30]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x48]
call fcn.14004abb0
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 0xf
jbe 0x140050495
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, r13
jb 0x14005048f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005048f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140118f64
nop
mov rdx, qword [rbp + 8]
cmp rdx, 0xf
jbe 0x1400504cf
inc rdx
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, r13
jb 0x1400504ca
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400504ca
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140118f64
lea rcx, [rbp - 0x80]
call fcn.140050bf0
nop
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x68]
call fcn.1400546c0
mov rbx, qword [rsp + 0x58]
test rbx, rbx
je 0x140050508
mov rcx, rbx
call fcn.14003c56c
mov edx, 0x128
mov rcx, rbx
call fcn.140118f64
nop
mov rdx, qword [rbp + 0x48]
cmp rdx, 0xf
jbe 0x140050542
inc rdx
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, r13
jb 0x14005053d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005053d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140118f64
movdqa xmm0, xmmword [0x1401544b0]
movdqu xmmword [rbp + 0x40], xmm0
mov byte [rbp + 0x30], 0
mov dl, byte [rsp + 0x38]
lea rcx, [rsp + 0x40]
call fcn.14002fda4
nop
lea rcx, [rbp - 0x80]
call fcn.140042160
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14005057e
mov rax, qword [rcx]
mov edx, r14d
call qword [rax]
mov rbx, qword [rbp + 0x10]
mov rdi, qword [rbp + 0x28]
cmp rdi, 0xf
jbe 0x1400505c0
lea rdx, [rdi + 1]
mov rax, rbx
cmp rdx, 0x1000
jb 0x1400505b8
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400505b8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.140118f64
mov al, r14b
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.140118ad0
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret