Function at 0x14013cc50
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x60
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x14026be10]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbp, r9
mov rsi, r8
movzx r12d, dl
mov rdi, rcx
mov r14, qword [rsp + 0xc0]
xor eax, eax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
movzx r9d, byte [r14 + 0xaa]
lea r8, str.gcm_done
mov rdx, r14
lea rcx, [rsp + 0x28]
call fcn.1400712c0
nop
movsxd rax, dword [rsi + 0x548]
cmp eax, 0x10
ja 0x14013cf73
cmp dword [rsi + 0x544], 2
je 0x14013ccdf
lea rdx, str.invalid_GCM_mode
jmp 0x14013cf7a
test eax, eax
je 0x14013cd00
shl rax, 3
add qword [rsi + 0x558], rax
lea rdx, [rsi + 0x500]
mov r8, r14
mov rcx, rsi
call fcn.14013e210
movzx eax, byte [rsi + 0x557]
mov byte [rsi + 0x530], al
movzx eax, byte [rsi + 0x556]
mov byte [rsi + 0x531], al
movzx eax, byte [rsi + 0x555]
mov byte [rsi + 0x532], al
movzx eax, byte [rsi + 0x554]
mov byte [rsi + 0x533], al
movzx eax, byte [rsi + 0x553]
mov byte [rsi + 0x534], al
movzx eax, byte [rsi + 0x552]
mov byte [rsi + 0x535], al
movzx eax, byte [rsi + 0x551]
mov byte [rsi + 0x536], al
movzx eax, byte [rsi + 0x550]
mov byte [rsi + 0x537], al
movzx eax, byte [rsi + 0x55f]
mov byte [rsi + 0x538], al
movzx eax, byte [rsi + 0x55e]
mov byte [rsi + 0x539], al
movzx eax, byte [rsi + 0x55d]
mov byte [rsi + 0x53a], al
movzx eax, byte [rsi + 0x55c]
mov byte [rsi + 0x53b], al
movzx eax, byte [rsi + 0x55b]
mov byte [rsi + 0x53c], al
movzx eax, byte [rsi + 0x55a]
mov byte [rsi + 0x53d], al
movzx eax, byte [rsi + 0x559]
mov byte [rsi + 0x53e], al
movzx eax, byte [rsi + 0x558]
mov byte [rsi + 0x53f], al
lea rbx, [rsi + 0x500]
mov rax, rbx
mov r9d, 4
movzx ecx, byte [rax + 0x30]
xor byte [rax], cl
movzx ecx, byte [rax + 0x31]
xor byte [rax + 1], cl
movzx ecx, byte [rax + 0x32]
xor byte [rax + 2], cl
movzx edx, byte [rax + 0x33]
xor byte [rax + 3], dl
lea rax, [rax + 4]
sub r9, 1
jne 0x14013cde0
mov r8, r14
mov rdx, rbx
mov rcx, rsi
call fcn.14013e210
mov rax, qword [rdi]
lea rdx, [rsi + 0x520]
lea r8, [rsi + 0x530]
mov rcx, rdi
call qword [rax + 0x20]
add rbp, 0xb0
mov rcx, rbp
call fcn.1400372d0
mov edi, eax
test eax, eax
jne 0x14013ce44
lea edi, [rax + 0x10]
jmp 0x14013ce5a
cmp edi, 0x10
jbe 0x14013ce50
mov edi, reloc.WS2_32.dll_recv
jmp 0x14013ce5a
mov eax, reloc.WS2_32.dll_inet_ntoa
cmp edi, eax
cmovb edi, eax
mov edx, 2
lea r9, [rsp + 0x40]
sub r9, rsi
lea r10, [rsp + 0x41]
sub r10, rsi
lea r11, [rsp + 0x42]
sub r11, rsi
lea r15, [rsp + 0x43]
sub r15, rsi
mov r8, 0xfffffffffffffb00
sub r8, rsi
nop dword [rax]
lea eax, [rdx - 2]
cmp eax, edi
jae 0x14013cf03
movzx eax, byte [rbx + 0x30]
xor al, byte [rbx]
mov byte [rbx + r9 - 0x500], al
lea eax, [rdx - 1]
cmp eax, edi
jae 0x14013cf03
lea rcx, [rbx + r8]
movzx eax, byte [rcx + rsi + 0x501]
xor al, byte [rbx + 0x31]
mov byte [rbx + r10 - 0x500], al
cmp edx, edi
jae 0x14013cf03
movzx eax, byte [rcx + rsi + 0x502]
xor al, byte [rbx + 0x32]
mov byte [rbx + r11 - 0x500], al
lea eax, [rdx + 1]
cmp eax, edi
jae 0x14013cf03
movzx eax, byte [rcx + rsi + 0x503]
xor al, byte [rbx + 0x33]
mov byte [rbx + r15 - 0x500], al
add edx, 4
add rbx, 4
lea eax, [rdx - 2]
cmp eax, 0x10
jb 0x14013ce90
mov bl, 1
mov rcx, rbp
test r12b, r12b
je 0x14013cf24
call fcn.140035e00
mov r8d, edi
lea rdx, [rsp + 0x40]
mov rcx, rbp
call fcn.140034960
jmp 0x14013cf85
mov r8d, edi
lea rdx, [rsp + 0x40]
call fcn.140036b30
movzx ebx, al
test al, al
jne 0x14013cf85
mov rax, qword [r14]
lea rdx, str.GCM_decrypt_authentication_tag_not_equal_to_the_expected_value.
mov rcx, r14
call qword [rax + 0x28]
mov r9d, edi
lea r8, [rsp + 0x40]
lea rdx, str.decryptTag
mov rcx, r14
call fcn.140071630
mov r8, rbp
lea rdx, str.expectedTag
mov rcx, r14
call fcn.140071700
jmp 0x14013cf85
lea rdx, str.invalid_GCM_buflen
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x28]
xor bl, bl
lea rcx, [rsp + 0x28]
call fcn.140071380
movzx eax, bl
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140168e10
add rsp, 0x60
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret