Function at 0x14004c340
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xf0
mov rax, qword [0x14011c028]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rsi, r8
mov rdi, rdx
mov r14, rcx
mov qword [rbp + 0x1f], rdx
mov qword [rbp + 0x27], r8
xor r15d, r15d
movzx ecx, r9b
test r9b, r9b
je 0x14004c587
cmp ecx, 1
jne 0x14004c77c
mov dword [rbp - 0x71], 0xe1d9d8da
mov dword [rbp - 0x6d], 0xa1a4a8dc
mov dword [rbp - 0x69], 0xbeaaa6a8
mov word [rbp - 0x65], 0xbb
mov byte [rbp - 0x63], cl
mov ecx, r15d
nop dword [rax]
nop word [rax + rax]
lea eax, [rcx - 0x45]
xor byte [rbp + rcx - 0x71], al
inc rcx
cmp rcx, 0xd
jb 0x14004c3c0
mov byte [rbp - 0x63], 0
lea rcx, [rbp - 0x71]
mov rbx, 0xffffffffffffffff
mov rax, rbx
inc rax
cmp byte [rcx + rax], 0
jne 0x14004c3e2
mov rdx, qword [rdx + 0x10]
movabs rcx, 0x7fffffffffffffff
sub rcx, rdx
cmp rcx, rax
jb 0x14004c7b6
mov rcx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x14004c412
mov rcx, qword [rdi]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x71]
lea rcx, [rbp - 1]
call fcn.140029850
nop
mov word [rbp - 0x79], 0x7c
mov byte [rbp - 0x77], 0
lea rax, [rbp - 0x79]
mov r8, rbx
inc r8
cmp byte [rax + r8], 0
jne 0x14004c440
lea rdx, [rbp - 0x79]
lea rcx, [rbp - 1]
call fcn.1400273b0
xorps xmm0, xmm0
movups xmmword [rbp - 0x41], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x31], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x41], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x31], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdx, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x14004c491
mov rdx, qword [rsi]
mov r8, qword [rsi + 0x10]
lea rcx, [rbp - 0x41]
call fcn.1400273b0
xorps xmm0, xmm0
movups xmmword [rbp - 0x61], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x51], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x61], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x51], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov dword [rbp - 0x79], 0xb4c18dc7
mov word [rbp - 0x75], pe_nt_image_headers64
mov rcx, r15
nop dword [rax + rax]
lea eax, [rcx - 0x45]
xor byte [rbp + rcx - 0x79], al
inc rcx
cmp rcx, 4
jb 0x14004c4e0
mov byte [rbp - 0x74], 0
lea rax, [rbp - 0x79]
nop dword [rax + rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x14004c500
mov r8, rbx
lea rdx, [rbp - 0x79]
lea rcx, [rbp - 0x61]
call fcn.1400273b0
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x21], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x11], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
lea rdx, [rbp - 0x21]
movq r8, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 8
movq rax, xmm0
cmp rax, 0x10
cmovae rdx, r8
movq r8, xmm1
mov rcx, r14
call fcn.1400273b0
nop
lea rcx, [rbp - 0x21]
call fcn.140027180
nop
lea rcx, [rbp - 0x61]
call fcn.140027180
nop
lea rcx, [rbp - 0x41]
call fcn.140027180
nop
jmp 0x14004c772
mov dword [rbp - 0x71], 0xe1d9d8da
mov dword [rbp - 0x6d], 0xa1a4a8dc
mov dword [rbp - 0x69], 0xbeaaa6a8
mov word [rbp - 0x65], 0xbb
mov byte [rbp - 0x63], 1
mov rcx, r15
nop dword [rax]
lea eax, [rcx - 0x45]
xor byte [rbp + rcx - 0x71], al
inc rcx
cmp rcx, 0xd
jb 0x14004c5b0
mov byte [rbp - 0x63], 0
lea rcx, [rbp - 0x71]
mov rbx, 0xffffffffffffffff
mov rax, rbx
inc rax
cmp byte [rcx + rax], 0
jne 0x14004c5d2
mov rdx, qword [rdx + 0x10]
movabs rcx, 0x7fffffffffffffff
sub rcx, rdx
cmp rcx, rax
jb 0x14004c7b0
mov rcx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x14004c602
mov rcx, qword [rdi]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x71]
lea rcx, [rbp - 1]
call fcn.140029850
nop
mov word [rbp - 0x79], 0x7c
mov byte [rbp - 0x77], 0
lea rax, [rbp - 0x79]
mov r8, rbx
inc r8
cmp byte [rax + r8], 0
jne 0x14004c630
lea rdx, [rbp - 0x79]
lea rcx, [rbp - 1]
call fcn.1400273b0
xorps xmm0, xmm0
movups xmmword [rbp - 0x61], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x51], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x61], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x51], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdx, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x14004c681
mov rdx, qword [rsi]
mov r8, qword [rsi + 0x10]
lea rcx, [rbp - 0x61]
call fcn.1400273b0
xorps xmm0, xmm0
movups xmmword [rbp - 0x41], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x31], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x41], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x31], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov dword [rbp - 0x79], 0xb4c18cc7
mov word [rbp - 0x75], pe_nt_image_headers64
mov rcx, r15
nop dword [rax + rax]
lea eax, [rcx - 0x45]
xor byte [rbp + rcx - 0x79], al
inc rcx
cmp rcx, 4
jb 0x14004c6d0
mov byte [rbp - 0x74], 0
lea rax, [rbp - 0x79]
nop dword [rax + rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x14004c6f0
mov r8, rbx
lea rdx, [rbp - 0x79]
lea rcx, [rbp - 0x41]
call fcn.1400273b0
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x21], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x11], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
lea rdx, [rbp - 0x21]
movq rcx, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 8
movq rax, xmm0
cmp rax, 0x10
cmovae rdx, rcx
movq r8, xmm1
mov rcx, r14
call fcn.1400273b0
nop
lea rcx, [rbp - 0x21]
call fcn.140027180
nop
lea rcx, [rbp - 0x41]
call fcn.140027180
nop
lea rcx, [rbp - 0x61]
call fcn.140027180
nop
lea rcx, [rbp - 1]
call fcn.140027180
nop
mov rcx, rdi
call fcn.140027180
nop
mov rcx, rsi
call fcn.140027180
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1400d1560
mov rbx, qword [rsp + 0x138]
add rsp, 0xf0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.140003100
nop
call fcn.140003100
int3