Function at 0x140066960
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x3b8]
sub rsp, 0x490
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
movaps xmmword [rax - 0x58], xmm8
movaps xmmword [rax - 0x68], xmm9
mov rax, qword [0x140cf0080]
xor rax, rsp
mov qword [rbp + 0x340], rax
mov rdi, qword [0x1411df5e0]
or dword [rdi + 0x1ce8], 2
mov dword [rdi + 0x1d08], 0x43480000
mov dword [rdi + 0x1d0c], 0x43160000
mov dword [rdi + 0x1cf0], 1
movdqa xmm6, xmmword [0x140cd43e0]
mov dword [rbp + 0x200], 2
movups xmm0, xmmword [rdi + 0x1644]
movups xmmword [rbp + 0x204], xmm0
lea rcx, [rdi + 0x1d70]
lea rdx, [rbp + 0x200]
call fcn.1400954d0
movups xmmword [rdi + 0x1644], xmm6
mov rbx, qword [0x1411df5e0]
mov dword [rbp + 0x200], 5
movups xmm0, xmmword [rbx + 0x1674]
movups xmmword [rbp + 0x204], xmm0
lea rcx, [rbx + 0x1d70]
lea rdx, [rbp + 0x200]
call fcn.1400954d0
movups xmmword [rbx + 0x1674], xmm6
movss xmm1, dword [rdi + 0x14]
mulss xmm1, dword [0x140cd1f64]
movss xmm0, dword [rdi + 0x10]
mulss xmm0, dword [0x140cd1f8c]
mov rax, qword [0x1411df5e0]
or dword [rax + 0x1ce8], 1
movss dword [rax + 0x1cf8], xmm0
movss dword [rax + 0x1cfc], xmm1
mov dword [rax + 0x1d00], 0x3f000000
mov dword [rax + 0x1d04], 0x3dcccccd
mov dword [rax + 0x1cec], 4
mov rcx, qword [0x1411de568]
call fcn.14008d640
xor edx, edx
mov r8d, reloc.WLDAP32.dll_Ordinal_41
lea rcx, [0x140ccf9b8]
call fcn.14008ade0
xor edi, edi
mov r12d, edi
mov r13d, edi
mov esi, edi
mov dword [rsp + 0x20], edi
xorps xmm0, xmm0
movups xmmword [rbp + 0x280], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x290], xmm1
xor r8d, r8d
lea rdx, [0x140ccdc7a]
lea rcx, [rbp + 0x280]
call fcn.14002f420
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x260], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x270], xmm1
xor r8d, r8d
lea rdx, [0x140ccdc7a]
lea rcx, [rbp + 0x260]
call fcn.14002f420
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x240], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x250], xmm1
xor r8d, r8d
lea rdx, [0x140ccdc7a]
lea rcx, [rbp + 0x240]
call fcn.14002f420
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x220], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x230], xmm1
xor r8d, r8d
lea rdx, [0x140ccdc7a]
lea rcx, [rbp + 0x220]
call fcn.14002f420
nop
mov rcx, qword [0x1411de538]
call fcn.14008d640
movdqa xmm6, xmmword [0x140cd43f0]
mov rbx, qword [0x1411df5e0]
mov dword [rbp + 0x200], edi
movups xmm0, xmmword [rbx + 0x1624]
movups xmmword [rbp + 0x204], xmm0
lea rcx, [rbx + 0x1d70]
lea rdx, [rbp + 0x200]
call fcn.1400954d0
movups xmmword [rbx + 0x1624], xmm6
movdqa xmm0, xmmword [0x140cd2cb0]
movdqu xmmword [rbp + 0x200], xmm0
mov dword [rbp + 0x210], 0x1004805
lea rcx, [rbp + 0x200]
call fcn.14002ea00
lea r11, [rbp + 0x200]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [r11 + r8], 0
jne 0x140066c00
lea rdx, [rbp + 0x200]
lea rcx, [rbp + 0x280]
call fcn.14002f2c0
lea rcx, [rbp + 0x280]
cmp qword [rbp + 0x298], 0xf
cmova rcx, qword [rbp + 0x280]
call fcn.1400aa510
mov r8, qword [0x1411df5e0]
movsxd rax, dword [r8 + 0x1d70]
lea rdx, [rax + rax*4]
mov rcx, qword [r8 + 0x1d78]
movsxd rax, dword [rcx + rdx*4 - 0x14]
add rax, rax
movups xmm0, xmmword [rcx + rdx*4 - 0x10]
movups xmmword [r8 + rax*8 + 0x1624], xmm0
dec dword [r8 + 0x1d70]
call fcn.14008d6e0
mov r15, qword [0x1411dfda8]
mov rbx, qword [0x1411dfdb0]
mov qword [rsp + 0x28], rbx
cmp r15, rbx
je 0x140066fd6
mov rdx, r15
lea rcx, [rsp + 0x60]
call fcn.14003cee0
nop
cmp byte [rsp + 0x69], 0
je 0x140066f16
lea rdx, [rbp - 0x68]
lea rcx, [rbp + 0x320]
call fcn.140036c50
nop
lea rdx, [rbp - 0x68]
lea rcx, [rbp + 0x2c0]
call fcn.14007f340
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x200], xmm0
mov qword [rbp + 0x210], rdi
mov qword [rbp + 0x218], rdi
lea r14, [rbp + 0x2c0]
cmp qword [rbp + 0x2d8], 0xf
cmova r14, qword [rbp + 0x2c0]
mov rsi, qword [rbp + 0x2d0]
movabs rax, 0x7fffffffffffffff
cmp rsi, rax
ja 0x1400674f0
cmp rsi, 0xf
ja 0x140066d3c
mov qword [rbp + 0x210], rsi
mov qword [rbp + 0x218], reloc.WS2_32.dll_ntohs
movups xmm0, xmmword [r14]
movups xmmword [rbp + 0x200], xmm0
jmp 0x140066ddc
mov rbx, rsi
or rbx, 0xf
cmp rbx, rax
jbe 0x140066d5b
mov rbx, rax
movabs rax, 0x8000000000000000
add rax, 0x27
jmp 0x140066d8c
cmp rbx, 0x16
mov eax, reloc.WLDAP32.dll_Ordinal_22
cmovb rbx, rax
lea rcx, [rbx + 1]
test rcx, rcx
jne 0x140066d76
mov rax, rdi
jmp 0x140066db3
cmp rcx, 0x1000
jb 0x140066dae
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x1400674ea
mov rcx, rax
call fcn.14013f498
mov rcx, rax
test rax, rax
je 0x1400674e3
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140066db3
call fcn.14013f498
mov qword [rbp + 0x200], rax
mov qword [rbp + 0x210], rsi
mov qword [rbp + 0x218], rbx
lea r8, [rsi + 1]
mov rdx, r14
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rbx, qword [rsp + 0x28]
lea rdx, [rbp + 0x200]
lea rcx, [rbp + 0x2a0]
call fcn.14002f140
nop
lea rdx, [rbp + 0x38]
lea rcx, [rsp + 0x38]
call fcn.14002f140
mov rdx, rax
lea rcx, [rbp + 0x300]
call fcn.140052ac0
nop
cvttss2si edx, dword [rbp - 0x74]
lea rcx, [rbp + 0x2e0]
call fcn.140054f00
nop
cmp qword [rbp + 0x2b0], 0
je 0x140066ec4
lea rdx, [rbp + 0x2a0]
lea rcx, [rbp + 0x260]
call fcn.140036e70
mov r8d, 1
lea rdx, reloc.WS2_32.dll_ioctlsocket
lea rcx, [rbp + 0x260]
call fcn.14002f2c0
inc r12d
lea rdx, [rbp + 0x300]
lea rcx, [rbp + 0x240]
call fcn.140036e70
mov r8d, 1
lea rdx, reloc.WS2_32.dll_ioctlsocket
lea rcx, [rbp + 0x240]
call fcn.14002f2c0
inc r13d
lea rdx, [rbp + 0x2e0]
lea rcx, [rbp + 0x220]
call fcn.140036e70
mov r8d, 1
lea rdx, reloc.WS2_32.dll_ioctlsocket
lea rcx, [rbp + 0x220]
call fcn.14002f2c0
mov esi, dword [rsp + 0x20]
inc esi
mov dword [rsp + 0x20], esi
jmp 0x140066ec8
mov esi, dword [rsp + 0x20]
lea rcx, [rbp + 0x2e0]
call fcn.14002f260
nop
lea rcx, [rbp + 0x300]
call fcn.14002f260
nop
lea rcx, [rbp + 0x2a0]
call fcn.14002f260
nop
lea rcx, [rbp + 0x200]
call fcn.14002f260
nop
lea rcx, [rbp + 0x2c0]
call fcn.14002f260
nop
lea rcx, [rbp + 0x320]
call fcn.140037710
nop
lea rcx, [rbp + 0xe0]
call fcn.14002f260
lea rcx, [rbp + 0x80]
call fcn.14002f260
lea rcx, [rbp + 0x58]
call fcn.14002f260
lea rcx, [rbp + 0x38]
call fcn.14002f260
lea rcx, [rbp + 0x18]
call fcn.14002f260
lea rcx, [rbp - 8]
call fcn.14002f260
lea rcx, [rbp - 0x28]
call fcn.14002f260
lea rcx, [rbp - 0x48]
call fcn.14002f260
lea rcx, [rbp - 0x68]
call fcn.140037710
add r15, 0x298
cmp r15, rbx
jne 0x140066c90
test r12d, r12d
jle 0x140066f9b
mov r8d, 1
lea rdx, reloc.WS2_32.dll_ioctlsocket
lea rcx, [rbp + 0x260]
call fcn.14002f2c0
test r13d, r13d
jle 0x140066fb9
mov r8d, 1
lea rdx, reloc.WS2_32.dll_ioctlsocket
lea rcx, [rbp + 0x240]
call fcn.14002f2c0
test esi, esi
jle 0x140066fd6
mov r8d, 1
lea rdx, reloc.WS2_32.dll_ioctlsocket
lea rcx, [rbp + 0x220]
call fcn.14002f2c0
mov rcx, qword [0x1411df5e0]
mov rax, qword [rcx + 0x1c10]
mov byte [rax + 0xa0], 1
mov rax, qword [rcx + 0x1c10]
mov rdx, qword [rax + 0x1c0]
test rdx, rdx
je 0x14006700f
cmp dword [rdx + 0x10], 3
jne 0x14006700a
cmp dword [rdx + 4], 0
je 0x140067023
call fcn.1400a97e0
xor r8d, r8d
mov edx, 3
call fcn.1400a8ef0
mov rcx, qword [0x1411df5e0]
mov rax, qword [rcx + 0x1c10]
cmp byte [rax + 0xa3], 0
jne 0x140067045
mov eax, dword [rax + 0x1cc]
neg eax
sbb ecx, ecx
add ecx, 6
call fcn.1400ad700
mov dword [rsp + 0x20], 0x1d020e31
mov dword [rsp + 0x24], 0x1001400
movdqa xmm7, xmmword [0x140cd2380]
mov rcx, rdi
movdqa xmm8, xmmword [0x140cd24f0]
movdqa xmm9, xmmword [0x140cd2530]
movq xmm0, rcx
punpcklqdq xmm0, xmm0
paddq xmm0, xmm7
pshufd xmm1, xmm0, 0xd8
movq xmm0, xmm8
paddd xmm1, xmm0
movzx eax, word [rsp + rcx + 0x20]
movd xmm0, eax
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
psrad xmm0, 0x18
xorps xmm1, xmm0
andps xmm1, xmm9
packuswb xmm1, xmm1
packuswb xmm1, xmm1
movd eax, xmm1
mov word [rsp + rcx + 0x20], ax
add rcx, 2
cmp rcx, 6
jb 0x140067072
mov byte [rsp + 0x27], 0
lea rcx, [rsp + 0x20]
call fcn.1400aa510
call fcn.1400a94e0
mov rcx, qword [0x1411df5e0]
mov rax, qword [rcx + 0x1c10]
mov byte [rax + 0xa0], 1
mov rax, qword [rcx + 0x1c10]
movss xmm6, dword [0x140cd22c0]
cmp byte [rax + 0xa3], 0
jne 0x14006711c
mov qword [rsp + 0x20], 0
movaps xmm1, xmm6
lea rcx, [rsp + 0x20]
call fcn.14008dfb0
mov dword [rsp + 0x20], 0x14020736
mov dword [rsp + 0x24], 0x100080a
nop dword [rax]
movq xmm0, rdi
punpcklqdq xmm0, xmm0
paddq xmm0, xmm7
pshufd xmm1, xmm0, 0xd8
movq xmm0, xmm8
paddd xmm1, xmm0
movzx eax, word [rsp + rdi + 0x20]
movd xmm0, eax
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
psrad xmm0, 0x18
xorps xmm1, xmm0
andps xmm1, xmm9
packuswb xmm1, xmm1
packuswb xmm1, xmm1
movd eax, xmm1
mov word [rsp + rdi + 0x20], ax
add rdi, 2
cmp rdi, 6
jb 0x140067130
mov byte [rsp + 0x27], 0
lea rcx, [rsp + 0x20]
call fcn.1400aa510
call fcn.1400a94e0
mov rcx, qword [0x1411df5e0]
mov rax, qword [rcx + 0x1c10]
mov byte [rax + 0xa0], 1
mov rax, qword [rcx + 0x1c10]
cmp byte [rax + 0xa3], 0
jne 0x1400671d2
mov qword [rsp + 0x20], 0
movaps xmm1, xmm6
lea rcx, [rsp + 0x20]
call fcn.14008dfb0
mov dword [rsp + 0x22], 0x65706f
mov word [rsp + 0x20], 0x6353
mov byte [rsp + 0x26], 0
lea rcx, [rsp + 0x20]
call fcn.1400aa510
call fcn.1400a94e0
mov rcx, qword [0x1411df5e0]
mov rax, qword [rcx + 0x1c10]
mov byte [rax + 0xa0], 1
mov rax, qword [rcx + 0x1c10]
cmp byte [rax + 0xa3], 0
jne 0x140067237
mov qword [rsp + 0x20], 0
movaps xmm1, xmm6
lea rcx, [rsp + 0x20]
call fcn.14008dfb0
mov rcx, qword [0x1411df5e0]
mov rax, qword [rcx + 0x1c10]
cmp byte [rax + 0xa3], 0
jne 0x140067259
mov eax, dword [rax + 0x1cc]
neg eax
sbb ecx, ecx
add ecx, 6
call fcn.1400ad700
mov r8d, 1
lea rdx, [0x140ccde24]
lea rcx, [rbp + 0x260]
call fcn.14002f2c0
cmp qword [rax + 0x18], 0xf
jbe 0x14006727c
mov rax, qword [rax]
mov rcx, rax
call fcn.1400aa510
call fcn.1400a94e0
mov rcx, qword [0x1411df5e0]
mov rax, qword [rcx + 0x1c10]
mov byte [rax + 0xa0], 1
mov rax, qword [rcx + 0x1c10]
cmp byte [rax + 0xa3], 0
jne 0x1400672c4
mov qword [rsp + 0x20], 0
movaps xmm1, xmm6
lea rcx, [rsp + 0x20]
call fcn.14008dfb0
mov r8d, 1
lea rdx, [0x140ccde24]
lea rcx, [rbp + 0x240]
call fcn.14002f2c0
cmp qword [rax + 0x18], 0xf
jbe 0x1400672e7
mov rax, qword [rax]
mov rcx, rax
call fcn.1400aa510
call fcn.1400a94e0
mov rcx, qword [0x1411df5e0]
mov rax, qword [rcx + 0x1c10]
mov byte [rax + 0xa0], 1
mov rax, qword [rcx + 0x1c10]
cmp byte [rax + 0xa3], 0
jne 0x14006732f
mov qword [rsp + 0x20], 0
movaps xmm1, xmm6
lea rcx, [rsp + 0x20]
call fcn.14008dfb0
mov r8d, 1
lea rdx, [0x140ccde24]
lea rcx, [rbp + 0x220]
call fcn.14002f2c0
cmp qword [rax + 0x18], 0xf
jbe 0x140067352
mov rax, qword [rax]
mov rcx, rax
call fcn.1400aa510
mov rcx, qword [0x1411df5e0]
mov rax, qword [rcx + 0x1c10]
mov byte [rax + 0xa0], 1
mov rax, qword [rcx + 0x1c10]
mov rdx, qword [rax + 0x1c0]
test rdx, rdx
je 0x14006739a
cmp dword [rdx + 0x10], 1
jne 0x14006738e
cmp dword [rdx + 4], 0
je 0x14006739a
call fcn.1400a97e0
mov rcx, qword [0x1411df5e0]
mov rax, qword [rcx + 0x1c10]
mov byte [rax + 0xa0], 1
mov rax, qword [rcx + 0x1c10]
cmp byte [rax + 0xa3], 0
jne 0x1400673d5
mov qword [rsp + 0x20], 0
movaps xmm1, xmm6
lea rcx, [rsp + 0x20]
call fcn.14008dfb0
mov rcx, qword [0x1411df5e0]
mov rax, qword [rcx + 0x1c10]
cmp byte [rax + 0xa3], 0
jne 0x1400673f7
mov eax, dword [rax + 0x1cc]
neg eax
sbb ecx, ecx
add ecx, 6
call fcn.1400ad700
call fcn.14008d150
call fcn.14008d6e0
mov r8, qword [0x1411df5e0]
movsxd rax, dword [r8 + 0x1d70]
lea rdx, [rax + rax*4]
mov rcx, qword [r8 + 0x1d78]
movsxd rax, dword [rcx + rdx*4 - 0x14]
add rax, rax
movups xmm0, xmmword [rcx + rdx*4 - 0x10]
movups xmmword [r8 + rax*8 + 0x1624], xmm0
movsxd rcx, dword [r8 + 0x1d70]
lea eax, [rcx - 1]
mov dword [r8 + 0x1d70], eax
lea rax, [rcx - 2]
lea rdx, [rax + rax*4]
mov rcx, qword [r8 + 0x1d78]
movsxd rax, dword [rcx + rdx*4]
add rax, rax
movups xmm0, xmmword [rcx + rdx*4 + 4]
movups xmmword [r8 + rax*8 + 0x1624], xmm0
dec dword [r8 + 0x1d70]
lea rcx, [rbp + 0x220]
call fcn.14002f260
nop
lea rcx, [rbp + 0x240]
call fcn.14002f260
nop
lea rcx, [rbp + 0x260]
call fcn.14002f260
nop
lea rcx, [rbp + 0x280]
call fcn.14002f260
mov rcx, qword [rbp + 0x340]
xor rcx, rsp
call fcn.14013f230
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.14000fac0
int3
call fcn.14000fb60
int3