Function at 0x140040eac
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0xf8
mov rax, qword [0x1400a0280]
xor rax, rsp
mov qword [rbp + 7], rax
mov r15, r9
mov rsi, r8
mov rdi, rdx
mov r14, rcx
mov rax, qword [rcx]
call qword [rax + 0xf8]
mov rbx, rax
mov r9, qword [rax]
mov r10, qword [r9 + 0x30]
mov r9, r15
mov r8, rsi
mov rdx, rdi
mov rcx, rax
call r10
lea rsi, [rbx + 8]
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x28]
mov ebx, eax
mov rdx, qword [rsi]
mov rcx, rsi
call qword [rdx + 0x28]
cmp eax, 0x10
jne 0x140041594
xor r13d, r13d
cmp byte [0x1400a4428], r13b
jne 0x140040f33
call fcn.1400432e0
mov rax, qword [r15]
mov r10, qword [rax + 8]
mov edi, 0x10000
lea r9, [rsp + 0x30]
lea r8, vtable.type_info.0
lea rdx, str.TableSize
mov rcx, r15
cmp byte [0x1400a442f], r13b
je 0x140040f6a
call r10
lea ecx, [rbx*8]
jmp 0x140040f96
call r10
test al, al
je 0x140040f7f
mov ecx, 0x800
cmp dword [rsp + 0x30], edi
cmovge ecx, edi
jmp 0x140040f96
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x100]
mov ecx, 0x800
cmp eax, 1
cmove ecx, edi
mov dword [rsp + 0x30], ecx
lea eax, [rcx + rbx*2]
add ebx, eax
mov byte [rsp + 0x20], 1
mov r9d, ebx
mov r8, qword [r14 + 0x28]
mov rdx, qword [r14 + 0x30]
lea rcx, [r14 + 0x18]
call fcn.14003fa1c
mov qword [r14 + 0x30], rax
mov qword [r14 + 0x28], rbx
or qword [r14 + 0x20], 0xffffffffffffffff
lea r12, [rax + 0x30]
mov qword [rsp + 0x48], r12
lea rbx, [rax + 0x20]
xor edx, edx
lea r8d, [rdx + 0x10]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rsi]
mov r9, rbx
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call qword [rax + 0x20]
cmp byte [0x1400a4428], r13b
jne 0x140041000
call fcn.1400432e0
cmp byte [0x1400a442f], r13b
je 0x14004101e
mov r8d, dword [rsp + 0x30]
mov rdx, r12
mov rcx, rbx
call fcn.140045f6c
jmp 0x140041574
mov rcx, r13
mov qword [rsp + 0x40], rcx
mov edi, 8
test rbx, rbx
je 0x140041045
mov r8d, edi
mov rdx, rbx
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rsp + 0x40]
call sub.api_ms_win_crt_utility_l1_1_0.dll__byteswap_uint64
mov r14, rax
lea rdx, [rbx + 8]
mov rcx, r13
mov qword [rsp + 0x38], rcx
test rdx, rdx
je 0x140041070
mov r8, rdi
lea rcx, [rsp + 0x38]
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rsp + 0x38]
call sub.api_ms_win_crt_utility_l1_1_0.dll__byteswap_uint64
mov rsi, rax
cmp dword [rsp + 0x30], 0x10000
jne 0x140041244
mov ebx, r13d
movabs r15, 0xe100000000000000
mov qword [rsp + 0x58], r13
mov edx, ebx
and edx, 7
mov ecx, ntohs
sub ecx, edx
mov edx, 1
shl rdx, cl
mov eax, ebx
shr eax, 3
shl eax, 0xc
movsxd rcx, eax
lea rax, [r12 + rdx]
add rcx, rax
mov qword [rbp - 0x79], rcx
mov rdx, r14
lea rcx, [rsp + 0x58]
call fcn.1400402d0
mov rdx, rsi
mov rcx, rax
call fcn.1400402d0
mov edx, esi
mov rcx, r14
shl rcx, 0x3f
mov rax, rsi
shr rax, 1
mov rsi, rcx
or rsi, rax
and dl, 1
neg dl
sbb rcx, rcx
and rcx, r15
mov rax, r14
shr rax, 1
mov r14, rcx
xor r14, rax
inc ebx
cmp ebx, 0x80
jl 0x140041093
mov rbx, r13
mov qword [rsp + 0x40], rbx
mov r15, r12
mov qword [rsp + 0x38], reloc.WS2_32.dll_recv
mov edi, 2
xor edx, edx
lea r8d, [rdx + 0x10]
mov rcx, r15
call sub.VCRUNTIME140.dll_memset
xor esi, esi
cmp byte [0x1400a4428], sil
jne 0x140041147
call fcn.1400432e0
cmp byte [0x1400a4429], sil
je 0x1400411ad
mov ebx, edi
cmp ebx, 1
jle 0x140041197
mov eax, ebx
shl eax, 4
movsxd rsi, eax
sub rsi, r12
add rsi, r15
add rsi, r12
lea r14, [r15 + 0x10]
add eax, 0x10
movsxd rdi, eax
lea r12d, [rbx - 1]
lea rcx, [r14 - 0x10]
add rcx, rdi
mov r8, r14
mov rdx, rsi
call fcn.14004605c
add r14, 0x10
sub r12, 1
jne 0x140041176
mov r12, qword [rsp + 0x48]
add ebx, ebx
cmp ebx, 0x80
jle 0x140041152
mov edi, 2
mov rbx, qword [rsp + 0x40]
jmp 0x14004121b
mov r11d, edi
mov rcx, rdi
cmp rcx, 1
jle 0x14004120c
mov rdx, rcx
shl rdx, 4
add rdx, r13
add rdx, r12
lea r10, [r13 + 0x10]
add r10, r12
lea r9, [rbx + rcx]
shl r9, 4
sub r9, r13
lea rsi, [rcx - 1]
mov r8, r10
mov rbx, rdx
sub rbx, r10
mov r14, rdi
mov rax, qword [rbx + r8]
xor rax, qword [r8]
mov qword [r9 + r8], rax
lea r8, [r8 + 8]
sub r14, 1
jne 0x1400411e8
add r10, 0x10
sub rsi, 1
jne 0x1400411dc
mov rbx, qword [rsp + 0x40]
add r11d, r11d
add rcx, rcx
cmp r11d, 0x80
jle 0x1400411b3
mov r14d, 0x1000
add r15, r14
add r13, r14
add rbx, 0x100
mov qword [rsp + 0x40], rbx
sub qword [rsp + 0x38], 1
jne 0x140041129
jmp 0x140041574
mov al, byte [0x1400a4420]
mov edi, 2
test al, al
jne 0x1400412d1
mov word [0x1400a4220], r13w
mov r15d, 0x1c2
mov ecx, r15d
call sub.api_ms_win_crt_utility_l1_1_0.dll__byteswap_ushort
mov word [0x1400a4222], ax
mov ebx, edi
add r15w, r15w
mov r13d, ebx
movzx ecx, r15w
call sub.api_ms_win_crt_utility_l1_1_0.dll__byteswap_ushort
lea r10, [0x1400a4220]
mov word [r10 + r13*2], ax
mov r8d, 1
cmp ebx, r8d
jbe 0x1400412bd
lea r9, [0x1400a4222]
movzx edx, word [r9]
xor dx, word [r10 + r13*2]
lea eax, [r8 + rbx]
mov word [r10 + rax*2], dx
inc r8d
add r9, rdi
cmp r8d, ebx
jb 0x1400412a0
add ebx, ebx
cmp ebx, 0x80
jbe 0x140041272
mov byte [0x1400a4420], 1
xor r13d, r13d
mov ebx, r13d
movabs r15, 0xe100000000000000
mov r13d, 4
mov qword [rsp + 0x50], r13
mov eax, ebx
and eax, 0x1f
cmp eax, r13d
jae 0x14004132c
and qword [rsp + 0x58], 0
mov ecx, 7
sub ecx, eax
mov edx, 1
shl rdx, cl
mov eax, ebx
shr eax, 5
shl eax, 8
movsxd rcx, eax
lea rax, [r12 + 0x400]
add rax, rdx
add rcx, rax
mov qword [rbp - 0x79], rcx
lea rcx, [rsp + 0x58]
jmp 0x14004135f
cmp eax, 8
jae 0x140041372
and qword [rbp - 0x61], 0
mov ecx, ntohs
sub ecx, eax
mov edx, 1
shl rdx, cl
mov eax, ebx
shr eax, 5
shl eax, 8
movsxd rcx, eax
lea rax, [r12 + rdx]
add rcx, rax
mov qword [rbp - 0x59], rcx
lea rcx, [rbp - 0x61]
mov rdx, r14
call fcn.1400402d0
mov rdx, rsi
mov rcx, rax
call fcn.1400402d0
mov edx, esi
mov rcx, r14
shl rcx, 0x3f
mov rax, rsi
shr rax, 1
mov rsi, rcx
or rsi, rax
and dl, 1
neg dl
sbb rcx, rcx
and rcx, r15
mov rax, r14
shr rax, 1
mov r14, rcx
xor r14, rax
inc ebx
cmp ebx, 0x68
jl 0x1400412e9
xor esi, esi
mov r15d, esi
mov qword [rsp + 0x38], rsi
mov r14d, esi
mov qword [rsp + 0x40], rsi
lea rbx, [r14 + r12]
mov r13d, reloc.WS2_32.dll_recv
mov r8d, r13d
xor edx, edx
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbx + 0x400]
mov r8d, r13d
xor edx, edx
call sub.VCRUNTIME140.dll_memset
cmp byte [0x1400a4428], sil
jne 0x1400413f1
call fcn.1400432e0
cmp byte [0x1400a4429], sil
je 0x14004149c
mov ebx, edi
cmp ebx, 1
jle 0x140041482
mov ecx, ebx
shl ecx, 4
movsxd rax, ecx
add rax, r14
lea rdx, [rax + r12]
add rax, 0x400
add rax, r12
mov qword [rsp + 0x58], rax
lea eax, [rcx + 0x10]
movsxd rcx, eax
lea rsi, [r14 + rcx]
add rsi, r12
mov r13d, 0x410
sub r13, rcx
mov edi, reloc.WS2_32.dll_recv
sub rdi, rcx
lea r12d, [rbx - 1]
mov r14, rdx
mov r15, qword [rsp + 0x58]
lea r8, [rdi + rsi]
mov rdx, r14
mov rcx, rsi
call fcn.14004605c
lea r8, [rsi + r13]
lea rcx, [rsi + 0x400]
mov rdx, r15
call fcn.14004605c
add rsi, 0x10
sub r12, 1
jne 0x14004144c
mov r12, qword [rsp + 0x48]
mov r14, qword [rsp + 0x40]
add ebx, ebx
cmp ebx, 8
jle 0x140041400
mov edi, 2
mov r15, qword [rsp + 0x38]
jmp 0x14004154e
mov r10d, edi
mov rcx, rdi
cmp rcx, 1
jle 0x140041539
mov r11, rcx
add r11, r11
lea r14, [r15 + r11*8]
add r14, r12
lea r8, [r12 + 0x410]
add r8, r15
lea rsi, [rcx - 0x40]
shl rsi, 4
lea rax, [rcx - 1]
mov qword [rsp + 0x38], rax
lea rdx, [r8 - 0x400]
mov rbx, r14
sub rbx, rdx
mov r9, rsi
sub r9, rdx
add r9, r8
mov r13, rdi
mov rax, qword [rdx + rbx]
xor rax, qword [rdx]
mov qword [r9 + rdx], rax
lea rdx, [rdx + 8]
sub r13, 1
jne 0x1400414ee
mov rdx, r8
lea r9, [r14 + 0x400]
sub r9, r8
mov rbx, rdi
mov rax, qword [rdx + r9]
xor rax, qword [rdx]
mov qword [rdx + r11*8], rax
lea rdx, [rdx + 8]
sub rbx, 1
jne 0x140041513
add r8, 0x10
sub qword [rsp + 0x38], 1
jne 0x1400414d5
mov r12, qword [rsp + 0x48]
add r10d, r10d
add rcx, rcx
cmp r10d, 8
jle 0x1400414a2
mov r14, qword [rsp + 0x40]
mov esi, 0x100
add r14, rsi
mov qword [rsp + 0x40], r14
add r15, rsi
mov qword [rsp + 0x38], r15
sub qword [rsp + 0x50], 1
mov esi, 0
jne 0x1400413bb
mov rcx, qword [rbp + 7]
xor rcx, rsp
call fcn.14007ae30
add rsp, 0xf8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rcx, [r14 + 8]
mov rax, qword [rcx]
lea rdx, [rsp + 0x58]
call qword [rax + reloc.WS2_32.dll_recv]
nop
lea r8, str.:_block_size_of_underlying_block_cipher_is_not_16
mov rdx, rax
lea rcx, [rbp - 0x61]
call fcn.1400020e8
nop
mov rdx, rax
lea rcx, [rbp - 0x39]
call fcn.14000eeb0
lea rdx, [0x14009bff8]
lea rcx, [rbp - 0x39]
call sub.VCRUNTIME140.dll__CxxThrowException
int3