Function at 0x14007f790
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
push rbp
push rsi
push r12
push r14
lea rbp, [r11 - 0x198]
sub rsp, 0x278
mov rax, qword [0x1401ce680]
xor rax, rsp
mov qword [rbp + 0x150], rax
mov rsi, qword [r9]
mov r12, r8
mov r10, qword [r9 + 8]
mov r14, rcx
sub r10, rsi
mov qword [rsp + 0x40], r9
sar r10, 2
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x30], rcx
lea rax, [r10 - 0x2c]
test rax, 0xffffffffffffffe7
jne 0x14008007d
cmp r10, 0x44
je 0x14008007d
mov qword [r11 + 0x20], rbx
lea rcx, [rbp - 0x50]
mov qword [r11 - 0x28], rdi
xor edx, edx
mov qword [r11 - 0x38], r15
mov r8d, 0x1a0
lea r15, [r10 - 4]
shr r15, 2
call fcn.140154200
lea rax, [r15 - 1]
mov qword [rsp + 0x58], rax
test rax, rax
je 0x14007f949
lea rdi, [rbp - 0x4c]
add rsi, 0x14
mov r14, rax
nop dword [rax]
mov r8d, dword [rsi + 4]
lea rdi, [rdi + 0x20]
mov r9d, dword [rsi]
mov ecx, dword [rsi + 8]
lea rsi, [rsi + 0x10]
shr ecx, 1
xor ecx, r8d
shr r9d, 1
xor r9d, dword [rsi - 0x14]
and ecx, 0x55555555
xor r8d, ecx
and r9d, 0x55555555
mov r10d, r8d
shr r10d, 2
lea edx, [rcx + rcx]
xor edx, dword [rsi - 8]
lea r11d, [r9 + r9]
xor r9d, dword [rsi - 0x14]
xor r11d, dword [rsi - 0x10]
xor r10d, r9d
and r10d, 0x33333333
lea ebx, [r10*4]
xor r10d, r9d
xor ebx, r8d
mov ecx, r10d
shr ecx, 4
mov r8d, edx
xor ecx, r10d
shr r8d, 2
and ecx, 0xf0f0f0f
xor r8d, r11d
mov eax, ecx
and r8d, 0x33333333
xor ecx, r10d
shl eax, 4
mov dword [rdi - 0x24], ecx
xor eax, r10d
mov dword [rdi - 0x14], eax
lea r9d, [r8*4]
xor r8d, r11d
xor r9d, edx
mov ecx, r8d
shr ecx, 4
xor ecx, r8d
and ecx, 0xf0f0f0f
mov eax, ecx
xor ecx, r8d
mov dword [rdi - 0x20], ecx
mov ecx, ebx
shr ecx, 4
shl eax, 4
xor ecx, ebx
xor eax, r8d
and ecx, 0xf0f0f0f
mov dword [rdi - 0x10], eax
mov eax, ecx
shl eax, 4
xor eax, ebx
xor ebx, ecx
mov dword [rdi - 0xc], eax
mov ecx, r9d
shr ecx, 4
xor ecx, r9d
mov dword [rdi - 0x1c], ebx
and ecx, 0xf0f0f0f
mov eax, ecx
xor ecx, r9d
shl eax, 4
xor eax, r9d
mov dword [rdi - 0x18], ecx
mov dword [rdi - 8], eax
sub r14, 1
jne 0x14007f840
mov r14, qword [rsp + 0x30]
test r12, r12
je 0x140080048
mov edi, dword [reloc.WS2_32.dll_accept]
lea rax, [r15*4]
lea rcx, [rax*4]
mov qword [rsp + 0x268], r13
mov qword [rsp + 0x60], rcx
lea rcx, [rax*4 + 4]
mov qword [rsp + 0x68], rcx
lea rcx, [rax*4 + 8]
lea rax, [rax*4 + 0xc]
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x78], rax
mov ecx, 2
cmp r12, 2
xorps xmm0, xmm0
mov r13, r12
cmova r13, rcx
mov qword [rbp - 0x80], r13
movups xmmword [rbp - 0x78], xmm0
lea rbx, [r13*4]
movups xmmword [rbp - 0x68], xmm0
test rbx, rbx
je 0x14007fa1e
mov r8, r13
lea rcx, [rbp - 0x78]
shl r8, 4
mov rdx, r14
call fcn.140153a80
xor r8d, r8d
lea rdx, [rbp - 0x78]
xor eax, eax
cmp edi, 2
jl 0x14007fa00
movdqu xmm0, xmmword [rdx]
pshufb xmm0, xmmword [0x14015c4d0]
movdqu xmmword [rdx], xmm0
jmp 0x14007fa11
mov ecx, dword [rdx + rax*4]
bswap ecx
mov dword [rdx + rax*4], ecx
inc rax
cmp rax, 4
jl 0x14007fa00
add r8, 4
add rdx, 0x10
cmp r8, rbx
jne 0x14007f9e2
mov rax, qword [rsp + 0x40]
mov edx, dword [rbp - 0x6c]
mov edi, dword [rbp - 0x70]
mov rax, qword [rax]
mov r9d, dword [rax + 4]
mov ecx, r9d
mov r14d, dword [rax]
mov r15d, r14d
mov ebx, dword [rax + 8]
xor edi, ebx
mov r10d, dword [rax + 0xc]
xor edx, r10d
xor ecx, dword [rbp - 0x74]
xor r9d, dword [rbp - 0x64]
mov eax, ecx
xor r10d, dword [rbp - 0x5c]
xor r15d, dword [rbp - 0x78]
xor ebx, dword [rbp - 0x60]
xor r14d, dword [rbp - 0x68]
shr eax, 1
xor eax, r15d
and eax, 0x55555555
xor r15d, eax
lea esi, [rax + rax]
mov eax, edx
shr eax, 1
xor esi, ecx
xor eax, edi
mov ecx, r10d
and eax, 0x55555555
shr ecx, 1
xor edi, eax
xor ecx, ebx
and ecx, 0x55555555
lea r8d, [rax + rax]
mov eax, r9d
shr eax, 1
xor r8d, edx
xor eax, r14d
and eax, 0x55555555
xor r14d, eax
lea r11d, [rax + rax]
mov eax, edi
shr eax, 2
xor r11d, r9d
xor eax, r15d
lea r9d, [rcx + rcx]
and eax, 0x33333333
xor ecx, ebx
xor r15d, eax
xor r9d, r10d
mov edx, r9d
shr edx, 2
lea ebx, [rax*4]
xor edx, r11d
mov eax, r8d
xor ebx, edi
shr eax, 2
and edx, 0x33333333
xor eax, esi
and eax, 0x33333333
xor esi, eax
lea r10d, [rdx*4]
xor edx, r11d
xor r10d, r9d
lea edi, [rax*4]
mov eax, ecx
shr eax, 2
xor edi, r8d
xor eax, r14d
and eax, 0x33333333
xor r14d, eax
lea r8d, [rax*4]
xor r8d, ecx
mov ecx, r14d
shr ecx, 4
xor ecx, r15d
and ecx, 0xf0f0f0f
mov eax, ecx
shl eax, 4
xor eax, r14d
xor ecx, r15d
mov dword [rbp - 0x68], eax
mov dword [rbp - 0x78], ecx
mov ecx, edx
shr ecx, 4
xor ecx, esi
and ecx, 0xf0f0f0f
mov eax, ecx
xor ecx, esi
mov dword [rbp - 0x74], ecx
mov ecx, r8d
shr ecx, 4
shl eax, 4
xor ecx, ebx
xor eax, edx
and ecx, 0xf0f0f0f
mov dword [rbp - 0x64], eax
mov eax, ecx
xor ecx, ebx
shl eax, 4
xor eax, r8d
mov dword [rbp - 0x70], ecx
mov dword [rbp - 0x60], eax
mov ecx, r10d
shr ecx, 4
xor ecx, edi
and ecx, 0xf0f0f0f
mov eax, ecx
xor ecx, edi
shl eax, 4
xor eax, r10d
mov dword [rbp - 0x6c], ecx
mov dword [rbp - 0x5c], eax
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x14007fd74
lea r15, [rbp - 0x50]
mov qword [rsp + 0x38], rax
lea rcx, [rbp - 0x78]
movabs r13, 0x22331100223311
sub r15, rcx
nop word [rax + rax]
lea rcx, [rbp - 0x78]
call fcn.14007e730
xor r8d, r8d
movabs r12, 0x55005500550055
nop word [rax + rax]
mov eax, dword [rbp + r8*4 - 0x74]
mov edx, dword [rbp + r8*4 - 0x78]
shl rdx, 0x20
or rdx, rax
mov rcx, rdx
shr rcx, 2
xor rcx, rdx
and rcx, r13
lea rax, [rcx*4]
xor rax, rcx
xor rdx, rax
mov rcx, rdx
shr rcx, 1
xor rcx, rdx
and rcx, r12
lea rax, [rcx + rcx]
xor rax, rcx
xor rdx, rax
mov rax, rdx
mov dword [rbp + r8*4 - 0x74], edx
shr rax, 0x20
mov dword [rbp + r8*4 - 0x78], eax
add r8, 2
cmp r8, 8
jne 0x14007fbe0
mov r14d, dword [rbp - 0x78]
mov r9d, r14d
mov edx, dword [rbp - 0x74]
mov ecx, r14d
xor ecx, edx
mov r8d, dword [rbp - 0x70]
rol ecx, 8
mov eax, r14d
mov r11d, dword [rbp - 0x68]
mov r10d, r14d
mov ebx, dword [rbp - 0x64]
xor r9d, r11d
mov esi, dword [rbp - 0x5c]
xor r10d, ebx
rol eax, 0x10
mov edi, r14d
xor ecx, eax
xor edi, esi
mov eax, r14d
ror eax, 8
xor ecx, eax
mov eax, edx
xor ecx, edx
rol eax, 0x10
mov dword [rbp - 0x78], ecx
mov ecx, r8d
xor ecx, edx
ror edx, 8
rol ecx, 8
xor ecx, eax
mov eax, r8d
xor ecx, edx
rol eax, 0x10
mov edx, dword [rbp - 0x6c]
xor ecx, r8d
mov dword [rbp - 0x74], ecx
mov ecx, r8d
xor ecx, edx
ror r8d, 8
rol ecx, 8
xor ecx, eax
mov eax, edx
xor ecx, r8d
rol eax, 0x10
xor ecx, edx
mov dword [rbp - 0x70], ecx
mov ecx, edx
xor ecx, r9d
ror edx, 8
rol ecx, 8
xor ecx, eax
mov eax, r11d
xor ecx, edx
rol eax, 0x10
mov edx, dword [rbp - 0x60]
xor ecx, r9d
mov dword [rbp - 0x6c], ecx
mov ecx, r10d
xor ecx, r11d
ror r11d, 8
rol ecx, 8
xor ecx, eax
mov eax, ebx
xor ecx, r11d
rol eax, 0x10
xor ecx, r10d
mov dword [rbp - 0x68], ecx
mov ecx, edx
xor ecx, ebx
ror ebx, 8
rol ecx, 8
xor ecx, eax
mov eax, edx
xor ecx, ebx
rol eax, 0x10
xor ecx, edx
mov dword [rbp - 0x64], ecx
mov ecx, edi
xor ecx, edx
rol ecx, 8
xor ecx, eax
ror edx, 8
mov eax, esi
xor ecx, edx
rol eax, 0x10
xor ecx, edi
mov dword [rbp - 0x60], ecx
mov ecx, r14d
xor ecx, esi
ror esi, 8
rol ecx, 8
xor ecx, eax
xor ecx, esi
xor ecx, r14d
mov dword [rbp - 0x5c], ecx
xor ecx, ecx
movdqu xmm0, xmmword [rbp + rcx*4 - 0x78]
lea rax, [r15 + rcx*4]
movdqu xmm1, xmmword [rbp + rax - 0x78]
pxor xmm1, xmm0
movdqu xmmword [rbp + rcx*4 - 0x78], xmm1
add rcx, 4
cmp rcx, 8
jne 0x14007fd40
add r15, 0x20
sub qword [rsp + 0x38], 1
jne 0x14007fbc0
lea rcx, [rbp - 0x78]
call fcn.14007e730
xor r8d, r8d
lea r9, [rbp - 0x78]
movabs r13, 0x22331100223311
nop
mov eax, dword [rbp + r8*4 - 0x74]
mov edx, dword [r9 + r8*4]
shl rdx, 0x20
or rdx, rax
mov rcx, rdx
shr rcx, 2
xor rcx, rdx
and rcx, r13
lea rax, [rcx*4]
xor rax, rcx
xor rdx, rax
movabs rax, 0x55005500550055
mov rcx, rdx
shr rcx, 1
xor rcx, rdx
and rcx, rax
lea rax, [rcx + rcx]
xor rax, rcx
xor rdx, rax
mov rax, rdx
mov dword [rbp + r8*4 - 0x74], edx
shr rax, 0x20
mov dword [r9 + r8*4], eax
add r8, 2
cmp r8, 8
jne 0x14007fd90
mov r8d, dword [rbp - 0x70]
mov r12d, dword [rbp - 0x74]
mov ecx, dword [rbp - 0x6c]
mov edx, dword [rbp - 0x5c]
mov r11d, dword [rbp - 0x64]
shr r11d, 1
xor r11d, dword [rbp - 0x68]
and r11d, 0x55555555
shr r12d, 1
xor r12d, dword [rbp - 0x78]
shr edx, 1
and r12d, 0x55555555
xor edx, dword [rbp - 0x60]
shr ecx, 1
lea edi, [r11 + r11]
xor r11d, dword [rbp - 0x68]
xor ecx, r8d
xor edi, dword [rbp - 0x64]
lea r15d, [r12 + r12]
xor r12d, dword [rbp - 0x78]
and ecx, 0x55555555
xor r15d, dword [rbp - 0x74]
xor r8d, ecx
and edx, 0x55555555
mov eax, r8d
shr eax, 2
xor eax, r12d
lea r10d, [rcx + rcx]
xor r10d, dword [rbp - 0x6c]
and eax, 0x33333333
xor r12d, eax
lea r9d, [rdx + rdx]
xor edx, dword [rbp - 0x60]
xor r9d, dword [rbp - 0x5c]
lea r14d, [rax*4]
mov eax, r10d
shr eax, 2
xor r14d, r8d
xor eax, r15d
and eax, 0x33333333
xor r15d, eax
lea esi, [rax*4]
mov eax, edx
shr eax, 2
xor esi, r10d
xor eax, r11d
and eax, 0x33333333
xor r11d, eax
lea ecx, [rax*4]
mov eax, r9d
shr eax, 2
xor ecx, edx
xor eax, edi
and eax, 0x33333333
xor edi, eax
lea edx, [rax*4]
mov eax, r11d
shr eax, 4
xor edx, r9d
xor eax, r12d
and eax, 0xf0f0f0f
mov ebx, eax
xor r12d, eax
shl ebx, 4
mov eax, edi
shr eax, 4
xor ebx, r11d
xor eax, r15d
and eax, 0xf0f0f0f
mov r11d, eax
xor r15d, eax
shl r11d, 4
mov eax, ecx
shr eax, 4
xor r11d, edi
xor eax, r14d
and eax, 0xf0f0f0f
mov r10d, eax
shl r10d, 4
xor r10d, ecx
xor r14d, eax
mov rcx, qword [rsp + 0x60]
mov eax, edx
mov r13, qword [rbp - 0x80]
shr eax, 4
xor eax, esi
and eax, 0xf0f0f0f
mov r9d, eax
xor esi, eax
mov rax, qword [rsp + 0x40]
shl r9d, 4
xor r9d, edx
mov rdi, qword [rax]
mov r8d, dword [rcx + rdi]
mov eax, r8d
xor eax, r12d
xor r8d, ebx
mov dword [rbp - 0x78], eax
mov rbx, r13
mov rax, qword [rsp + 0x68]
shl rbx, 4
mov dword [rbp - 0x68], r8d
mov edx, dword [rax + rdi]
mov eax, edx
xor eax, r15d
xor edx, r11d
mov dword [rbp - 0x74], eax
mov rax, qword [rsp + 0x70]
mov dword [rbp - 0x64], edx
mov ecx, dword [rax + rdi]
mov eax, ecx
xor ecx, r10d
xor eax, r14d
mov dword [rbp - 0x70], eax
mov r10, rbx
mov rax, qword [rsp + 0x78]
mov dword [rbp - 0x60], ecx
lea rcx, [rbp - 0x78]
xor r9d, dword [rax + rdi]
xor esi, dword [rax + rdi]
mov rdi, qword [rsp + 0x48]
mov dword [rbp - 0x5c], r9d
mov r9, rdi
mov dword [rbp - 0x6c], esi
cmp rbx, 4
jb 0x14007ffe5
mov rdx, rbx
shr rdx, 2
imul rax, rdx, 0xfffffffffffffffc
add r10, rax
nop dword [rax]
nop word [rax + rax]
mov eax, dword [rcx]
add rcx, 4
bswap eax
mov dword [r9], eax
add r9, 4
sub rdx, 1
jne 0x14007ffd0
xor r8d, r8d
test r10, r10
je 0x14008000d
mov r11d, dword [rcx]
movzx ecx, r8b
mov edx, r11d
not cl
and cl, 3
shl cl, 3
shr edx, cl
mov byte [r8 + r9], dl
inc r8
cmp r8, r10
jne 0x14007fff0
mov r14, qword [rsp + 0x30]
add rdi, rbx
mov r12, qword [rsp + 0x50]
add r14, rbx
sub r12, r13
mov qword [rsp + 0x48], rdi
mov edi, dword [reloc.WS2_32.dll_accept]
mov ecx, 2
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x30], r14
jne 0x14007f9a1
mov r13, qword [rsp + 0x268]
mov rdi, qword [rsp + 0x270]
mov rbx, qword [rsp + 0x2b8]
mov r15, qword [rsp + 0x260]
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.14010f1d0
add rsp, 0x278
pop r14
pop r12
pop rsi
pop rbp
ret
lea r9, str.src_lib_block_aes_aes.cpp
mov dword [rsp + 0x20], 0x208
lea r8, str.aes_encrypt_n
lea rdx, str.Key_was_set
lea rcx, str.EK.size____44__EK.size____52__EK.size____60
call fcn.14006e610
int3