Function at 0x140018574
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
movaps xmmword [rax - 0x38], xmm6
mov rax, qword [0x14013d0c0]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov rdi, qword [0x1402ce378]
xor r10d, r10d
mov r15b, 0xfb
mov rbx, rcx
mov r13, rdi
mov eax, dword [rdi + 0x1b18]
and byte [rcx + 0xb5], r15b
mov dword [rcx + 0x98], eax
mov qword [rcx + 0x90], r10
mov qword [rcx + 0x88], r10
cmp qword [rcx + 0x10], r10
jne 0x1400185f2
call fcn.14001846c
mov rdi, qword [0x1402ce378]
xor r10d, r10d
mov rcx, qword [rbx + 0x38]
mov r14d, 1
test rcx, rcx
je 0x14001861f
mov eax, dword [rbx + 8]
shr eax, 0xc
test r14b, al
je 0x14001861f
call fcn.14001e1b4
mov rdi, qword [0x1402ce378]
xor r10d, r10d
mov qword [rbx + 0x38], r10
mov edx, dword [rbx + 0x28]
mov r11d, 0x400
cmp edx, r14d
jg 0x140018760
cmp qword [rbx + 0x10], r10
jne 0x140018760
test dword [rbx + 8], r11d
jne 0x140018760
cmp qword [rbx + 0x18], r10
jne 0x140018760
cmp byte [r13 + 0xca], r10b
jne 0x140018760
test edx, edx
je 0x140018709
mov rax, qword [rbx + 0x30]
mov rcx, qword [rax]
cmp byte [rcx + 0x2c], r10b
jne 0x140018760
cmp edx, r14d
jne 0x140018709
mov rdi, qword [rax]
mov eax, dword [rbx + 0xb0]
and eax, 0xfffffebf
bts eax, 7
movsd xmm0, qword [rdi + 0x48]
and eax, 0xffffffd7
or eax, 0x10
movsd qword [rbx + 0x40], xmm0
movsd xmm1, qword [rdi + 0x58]
and eax, 0xfffffffa
or eax, 2
movsd qword [rbx + 0x48], xmm1
mov dword [rbx + 0xb0], eax
mov rax, qword [rbx + 0x78]
test rax, rax
je 0x1400186d3
cmp qword [r13 + 0x1d70], rax
jne 0x1400186d3
mov rcx, rdi
call fcn.14000f340
xor r10d, r10d
mov rax, qword [rbx + 0x78]
test rax, rax
je 0x140018709
mov rdx, qword [rax + 0x30]
mov qword [rdi + 0x30], rdx
mov rax, qword [rbx + 0x78]
mov ecx, dword [rax + 0x38]
mov dword [rdi + 0x38], ecx
mov rax, qword [rbx + 0x78]
cmp byte [rax + 0xbe], r10b
je 0x140018709
mov qword [rdx + 0x98], rdi
mov byte [rdi + 0xbe], r14b
mov rcx, rbx
call fcn.1400180cc
mov al, byte [rbx + 0xb4]
and dword [rbx + 0xac], 0
and al, 0xdf
and al, 0xe7
mov dword [rbx + 0xc], r14d
and al, r15b
mov byte [rbx + 0xb4], al
mov eax, dword [r13 + 0x1b18]
mov dword [rbx + 0x9c], eax
jge 0x140018fba
cmp dword [rbx + 0x28], r14d
jne 0x140018fba
mov rdx, qword [rbx + 0x30]
mov rcx, rbx
mov rdx, qword [rdx]
call fcn.140018400
jmp 0x140018fba
test byte [rbx + 0xb4], r14b
je 0x1400187e6
cmp qword [rbx + 0x78], r10
jne 0x1400187e6
cmp qword [rbx + 0x10], r10
jne 0x1400187e6
test dword [rbx + 8], r11d
jne 0x1400187e6
cmp qword [rbx + 0x18], r10
jne 0x1400187e6
mov r8d, dword [rbx + 0xa8]
test r8d, r8d
je 0x1400187c1
mov ecx, r10d
cmp dword [rbx + 0x28], r10d
jle 0x1400187c1
mov rdx, qword [rbx + 0x30]
mov rax, qword [rdx]
cmp dword [rax + 8], r8d
je 0x1400187b1
add ecx, r14d
add rdx, 8
cmp ecx, dword [rbx + 0x28]
jl 0x14001879a
jmp 0x1400187c1
mov rax, qword [rbx + 0x30]
movsxd rcx, ecx
mov rdx, qword [rax + rcx*8]
test rdx, rdx
jne 0x1400187c8
mov rax, qword [rbx + 0x30]
mov rdx, qword [rax]
cmp byte [rdx + 0xd4], r10b
jg 0x1400187da
cmp byte [rdx + 0xd5], r10b
jle 0x1400187e6
mov dword [rbx + 0xc], 2
jmp 0x140018fba
mov eax, dword [rbx + 8]
mov rsi, r10
mov dl, byte [rbx + 0xb4]
mov r12d, eax
or r12d, dword [rbx + 4]
and dl, 0xef
shr eax, 0xa
xorps xmm6, xmm6
mov byte [rbp - 0x37], r10b
test r14b, al
je 0x14001883d
mov rsi, qword [rbx + 0x78]
mov ecx, r12d
shr ecx, 0xf
mov eax, r12d
shl cl, 2
shr eax, 0xe
not cl
shl al, 3
xor cl, dl
not al
and cl, 4
xor cl, dl
xor al, cl
and al, 8
xor al, cl
mov byte [rbx + 0xb4], al
jmp 0x140018adc
mov ecx, dword [rbx + 0x28]
test ecx, ecx
jle 0x14001884d
mov al, 4
bt r12d, 0xf
jae 0x140018850
mov al, r10b
and dl, r15b
or dl, al
test ecx, ecx
jle 0x140018862
mov al, 8
bt r12d, 0xe
jae 0x140018865
mov al, r10b
and dl, 0xf7
mov r9d, r10d
or dl, al
mov byte [rbx + 0xb4], dl
test ecx, ecx
jle 0x1400188c5
mov r8, r10
mov rax, qword [rbx + 0x30]
cmp ecx, r14d
setg cl
add r9d, r14d
mov rdx, qword [r8 + rax]
lea r8, [r8 + 8]
mov al, byte [rdx + 0x472]
and al, 0xfe
or cl, al
mov byte [rdx + 0x472], cl
mov dl, byte [rdx + 0xc8]
mov al, byte [rbx + 0xb4]
shl dl, 4
or dl, al
and al, 0xef
and dl, 0x10
xor dl, al
mov byte [rbx + 0xb4], dl
mov ecx, dword [rbx + 0x28]
cmp r9d, ecx
jl 0x14001887a
mov rax, qword [rbx + 0x10]
test rax, rax
jne 0x140018aa6
test r14b, dl
je 0x140018ab8
test ecx, ecx
jle 0x1400188e8
mov rax, qword [rbx + 0x30]
mov rcx, qword [rax]
jmp 0x1400188eb
mov rcx, r10
mov eax, dword [rbx + 0xb0]
shl eax, 0x1d
sar eax, 0x1d
cmp eax, 2
jne 0x14001890f
test rcx, rcx
je 0x14001893e
or dword [rdi + 0x1c40], r14d
movsd xmm0, qword [rcx + 0x48]
jmp 0x140018920
cmp eax, r14d
jne 0x14001893e
or dword [rdi + 0x1c40], r14d
movsd xmm0, qword [rbx + 0x40]
and qword [rdi + 0x1c5c], 0
mov byte [rdi + 0x1c7c], r14b
mov dword [rdi + 0x1c44], r14d
movsd qword [rdi + 0x1c54], xmm0
mov eax, dword [rbx + 0xb0]
shl eax, 0x1a
sar eax, 0x1d
cmp eax, 2
jne 0x140018961
test rcx, rcx
je 0x140018981
or dword [rdi + 0x1c40], eax
movsd xmm0, qword [rcx + 0x58]
jmp 0x140018972
cmp eax, r14d
jne 0x140018981
or dword [rdi + 0x1c40], 2
movsd xmm0, qword [rbx + 0x48]
mov dword [rdi + 0x1c48], r14d
movsd qword [rdi + 0x1c64], xmm0
mov eax, dword [rbx + 0xb0]
and al, 0x38
cmp al, 0x10
jne 0x1400189ac
test rcx, rcx
je 0x1400189ac
mov al, byte [rcx + 0xc2]
or dword [rdi + 0x1c40], 8
mov byte [rdi + 0x1c7d], al
mov dword [rdi + 0x1c4c], r14d
mov eax, dword [rbx + 0xb0]
and eax, 0x1c0
cmp eax, 0x80
jne 0x1400189d4
test rcx, rcx
je 0x1400189d4
mov eax, dword [rcx + 0x38]
bts dword [rdi + 0x1c40], 8
mov dword [rdi + 0x1ca4], eax
or dword [rdi + 0x1c40], r11d
lea r8, str.DockNode__02X
movups xmm0, xmmword [rbx + 0x5c]
mov edx, reloc.WS2_32.dll_sendto
lea rcx, [rbp + 7]
movups xmmword [rdi + 0x1cac], xmm0
movsd xmm1, qword [rbx + 0x6c]
movsd qword [rdi + 0x1cbc], xmm1
mov eax, dword [rbx + 0x74]
mov dword [rdi + 0x1cc4], eax
mov r9d, dword [rbx]
call fcn.140003ad8
and dword [rbp - 0x29], 0
lea rdx, [rbp - 0x29]
and dword [rbp - 0x25], 0
mov ecx, r14d
call fcn.140004774
xor edx, edx
lea rcx, [rbp + 7]
mov r8d, 0x20081139
call fcn.14000cd50
mov ecx, r14d
call fcn.140004800
mov rsi, qword [r13 + 0x1b90]
xor r10d, r10d
mov qword [rbx + 0x78], rsi
mov byte [rbp - 0x37], r14b
movss xmm0, dword [rsi + 0x48]
movss xmm1, dword [rsi + 0x4c]
movss dword [rsi + 0x118], xmm0
movss dword [rsi + 0x11c], xmm1
mov qword [rsi + 0x450], rbx
mov rcx, qword [rbx + 0x78]
movss dword [rbx + 0x40], xmm0
movss dword [rbx + 0x44], xmm1
movsd xmm0, qword [rsi + 0x50]
movsd qword [rbx + 0x48], xmm0
cmp byte [rcx + 0xc5], r10b
je 0x140018a9d
call fcn.14000f2a0
xor r10d, r10d
mov rdi, qword [0x1402ce378]
jmp 0x140018aae
mov rsi, qword [rax + 0x78]
mov qword [rbx + 0x78], rsi
and dword [rbx + 0xb0], 0xfffffe00
cmp byte [rbx + 0xb4], r10b
jge 0x140018adc
mov rdx, qword [rbx + 0x78]
test rdx, rdx
je 0x140018adc
mov rcx, rbx
call fcn.140018400
mov rdi, qword [0x1402ce378]
xor r10d, r10d
cmp qword [rbx + 0x10], r10
jne 0x140018b56
mov rax, qword [r13 + 0x1d70]
test rax, rax
je 0x140018b12
mov rcx, qword [rax + 0x3f0]
mov rax, qword [rcx + 0x448]
test rax, rax
je 0x140018b12
cmp qword [rcx + 0x3e0], rsi
jne 0x140018b12
mov eax, dword [rax]
mov dword [rbx + 0xa4], eax
test rsi, rsi
je 0x140018b56
test r12b, 8
je 0x140018b56
mov rdx, qword [rsi + 0x318]
mov byte [rbp - 0x38], r14b
lea rcx, [rdx + 0xa8]
call fcn.140026ea0
mov rdx, qword [rsi + 0x318]
mov r8d, r14d
lea rcx, [rdx + 0xa8]
call fcn.140027344
mov rdi, qword [0x1402ce378]
xor r10d, r10d
jmp 0x140018b5a
mov byte [rbp - 0x38], r10b
mov r15, qword [rbx + 0x88]
cmp qword [rbx + 0x10], r10
jne 0x140018e70
test rsi, rsi
je 0x140018e70
test r12b, 8
je 0x140018e70
test r15, r15
je 0x140018e70
cmp qword [r15 + 0x18], r10
jne 0x140018e70
cmp dword [r15 + 0x28], r10d
jne 0x140018e70
mov al, byte [rdi + 0x1ef4]
lea rcx, [rdi + 0x1f08]
neg al
mov byte [rbp - 0x39], r14b
sbb r14, r14
and r14, rcx
je 0x140018bed
cmp dword [r14 + 0x14], 0xffffffff
je 0x140018bed
lea rdx, [r14 + 0x18]
lea rcx, str._IMWINDOW
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
xor r10d, r10d
test eax, eax
jne 0x140018bed
mov rdx, qword [r14]
mov rcx, rsi
mov rdx, qword [rdx]
call fcn.140019ae4
xor r10d, r10d
test al, al
jne 0x140018cc5
movss xmm3, dword [r15 + 0x40]
movss xmm2, dword [r15 + 0x44]
movaps xmm4, xmm3
addss xmm4, dword [r15 + 0x48]
subss xmm3, dword [0x14012de9c]
movaps xmm1, xmm2
addss xmm1, dword [r15 + 0x4c]
subss xmm2, dword [0x14012de9c]
subss xmm4, dword [0x14012ddc0]
subss xmm1, dword [0x14012ddc0]
comiss xmm3, xmm4
ja 0x140018cc5
comiss xmm2, xmm1
ja 0x140018cc5
mov rcx, qword [rsi + 0x3e0]
subss xmm1, xmm2
subss xmm4, xmm3
movaps xmm0, xmm3
cvttss2si edx, xmm1
cvttss2si r8d, xmm4
mov word [rbp - 0x27], dx
movaps xmm1, xmm2
mov word [rbp - 0x29], r8w
mov eax, dword [rbp - 0x29]
mov dword [rsi + 0x2d0], eax
subss xmm0, dword [rsi + 0x48]
subss xmm1, dword [rsi + 0x4c]
cvttss2si eax, xmm0
mov word [rbp - 0x29], ax
cvttss2si eax, xmm1
mov word [rbp - 0x27], ax
mov eax, dword [rbp - 0x29]
mov dword [rsi + 0x2d4], eax
mov word [rbp - 0x29], r8w
mov word [rbp - 0x27], dx
mov eax, dword [rbp - 0x29]
mov dword [rcx + 0x2d0], eax
subss xmm3, dword [rcx + 0x48]
subss xmm2, dword [rcx + 0x4c]
cvttss2si eax, xmm3
mov word [rbp - 0x29], ax
cvttss2si eax, xmm2
mov word [rbp - 0x27], ax
mov eax, dword [rbp - 0x29]
mov dword [rcx + 0x2d4], eax
mov r14b, byte [rbp - 0x39]
test rsi, rsi
je 0x140018d88
cmp qword [rbx + 0x10], r10
jne 0x140018cfd
mov r8, qword [rsi + 0x50]
xor r9d, r9d
mov rdx, qword [rsi + 0x48]
mov rcx, rbx
call fcn.14001ae90
mov rcx, rbx
call fcn.14001b254
mov rdi, qword [0x1402ce378]
xor r10d, r10d
cmp qword [rbx + 0x18], r10
jne 0x140018d88
cmp dword [rbx + 0x28], r10d
jne 0x140018d88
test byte [rbx + 0xb4], 1
je 0x140018d88
test r12b, 8
jne 0x140018d88
movdqu xmm0, xmmword [rdi + 0x196c]
lea rcx, [rbp - 0x19]
movss xmm1, dword [rbx + 0x4c]
addss xmm1, dword [rbx + 0x44]
movups xmmword [rbp - 0x19], xmm0
shufps xmm0, xmm0, 0xff
mulss xmm0, dword [rdi + 0x1640]
movss dword [rbp - 0x25], xmm1
movss dword [rbp - 0xd], xmm0
movss xmm0, dword [rbx + 0x48]
addss xmm0, dword [rbx + 0x40]
movss dword [rbp - 0x29], xmm0
call fcn.140004284
mov rcx, qword [rsi + 0x318]
lea rdx, [rbx + 0x40]
mov r9d, eax
mov dword [rsp + 0x28], reloc.WS2_32.dll_ntohs
lea r8, [rbp - 0x29]
movss dword [rsp + 0x20], xmm6
call fcn.140026700
xor r10d, r10d
cmp byte [rbp - 0x38], r10b
je 0x140018ed6
test byte [rbx + 0xb4], 1
je 0x140018ed6
mov rdx, qword [rsi + 0x318]
xor r8d, r8d
lea rcx, [rdx + 0xa8]
call fcn.140027344
mov rax, qword [0x1402ce378]
lea rcx, [rbp - 9]
movdqu xmm0, xmmword [rax + 0x171c]
movups xmmword [rbp - 9], xmm0
shufps xmm0, xmm0, 0xff
mulss xmm0, dword [rax + 0x1640]
movss dword [rbp + 3], xmm0
test r14b, r14b
je 0x140018e78
movss xmm1, dword [r15 + 0x40]
movss xmm0, dword [r15 + 0x44]
movss dword [rbp - 0x29], xmm1
addss xmm1, dword [r15 + 0x48]
movss dword [rbp - 0x25], xmm0
addss xmm0, dword [r15 + 0x4c]
movss dword [rbp - 0x21], xmm1
movss xmm1, dword [rbx + 0x44]
movss dword [rbp - 0x1d], xmm0
movss xmm0, dword [rbx + 0x40]
movss dword [rbp - 0x19], xmm0
addss xmm0, dword [rbx + 0x48]
movss dword [rbp - 0x15], xmm1
addss xmm1, dword [rbx + 0x4c]
movss dword [rbp - 0x11], xmm0
movups xmm0, xmmword [rbp - 0x29]
movss dword [rbp - 0xd], xmm1
movups xmm1, xmmword [rbp - 0x19]
movdqa xmmword [rbp - 0x29], xmm0
movdqa xmmword [rbp - 0x19], xmm1
call fcn.140004284
mov rcx, qword [rsi + 0x318]
lea rdx, [rbp - 0x19]
mov r9d, eax
movss dword [rsp + 0x20], xmm6
lea r8, [rbp - 0x29]
call fcn.14002b330
jmp 0x140018ec0
mov r14b, r10b
jmp 0x140018cc9
movss xmm0, dword [rbx + 0x40]
movss xmm1, dword [rbx + 0x44]
addss xmm0, dword [rbx + 0x48]
addss xmm1, dword [rbx + 0x4c]
movss dword [rbp - 0x29], xmm0
movss dword [rbp - 0x25], xmm1
call fcn.140004284
mov rcx, qword [rsi + 0x318]
lea rdx, [rbx + 0x40]
mov r9d, eax
mov dword [rsp + 0x28], reloc.WS2_32.dll_ntohs
lea r8, [rbp - 0x29]
movss dword [rsp + 0x20], xmm6
call fcn.140026700
mov rdx, qword [rsi + 0x318]
lea rcx, [rdx + 0xa8]
call fcn.140027034
xor r10d, r10d
test rsi, rsi
je 0x140018ef1
cmp dword [rbx + 0x28], r10d
jle 0x140018ef1
mov rdx, rsi
mov rcx, rbx
call fcn.1400191a0
xor r10d, r10d
jmp 0x140018f08
mov al, byte [rbx + 0xb4]
and al, 0xdf
mov dword [rbx + 0xac], r10d
and al, 0xfd
mov byte [rbx + 0xb4], al
mov rax, qword [rbx + 0x38]
test rax, rax
je 0x140018f20
mov ecx, dword [rax + 0x18]
test ecx, ecx
je 0x140018f20
mov dword [rbx + 0xa8], ecx
jmp 0x140018f36
cmp dword [rbx + 0x28], r10d
jle 0x140018f36
mov rax, qword [rbx + 0x30]
mov rcx, qword [rax]
mov eax, dword [rcx + 8]
mov dword [rbx + 0xa8], eax
test rsi, rsi
je 0x140018f6a
test byte [rbx + 0xb4], 1
je 0x140018f6a
cmp qword [rbx + 0x10], r10
jne 0x140018f6a
mov rax, qword [r13 + 0x1bb8]
test rax, rax
je 0x140018f5f
cmp qword [rax + 0x3e8], rsi
je 0x140018f6a
mov rcx, rsi
call fcn.14001c048
xor r10d, r10d
mov eax, dword [r13 + 0x1b18]
mov dword [rbx + 0x9c], eax
test rsi, rsi
je 0x140018faf
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140018f8d
call fcn.140018574
xor r10d, r10d
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x140018f9e
call fcn.140018574
xor r10d, r10d
cmp qword [rbx + 0x10], r10
jne 0x140018faf
mov rcx, rsi
call fcn.14000bf50
xor r10d, r10d
cmp byte [rbp - 0x37], r10b
je 0x140018fba
call fcn.14000f19c
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.1400b0380
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret