Function at 0x140204ab0
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 - 0x2b8]
mov eax, 0x3b8
call fcn.1403122f0
sub rsp, rax
mov rax, qword [0x140495598]
xor rax, rsp
mov qword [rbp + 0x290], rax
mov rax, qword [rbp + 0x320]
mov edi, 0x40
mov rbx, qword [rbp + 0x330]
mov r14d, 0x28
mov qword [rsp + 0x70], rax
mov rsi, r8
mov rax, qword [rbp + 0x338]
mov qword [rbp - 0x70], rax
lea r13d, [rdi - 0x38]
mov qword [rsp + 0x50], r9
mov qword [rbp - 0x30], r8
mov qword [rbp - 0x38], rdx
mov qword [rbp - 0x40], rcx
mov qword [rbp - 0x78], r14
mov byte [rsp + 0x20], 1
cmp rbx, 0x100000
jae 0x1402053e6
call fcn.140211e90
mov rcx, rax
call fcn.1401c7390
mov ecx, eax
cmp eax, 0x2a1
jg 0x140204c48
je 0x140204c0a
cmp eax, 4
je 0x140204bcc
cmp eax, edi
je 0x140204b9d
cmp eax, 0x2a0
jne 0x140204c55
lea rcx, [rbp - 0x20]
call fcn.14023e270
test eax, eax
jle 0x1402053e6
mov r12d, 0x20
lea rcx, [0x140205660]
mov qword [rsp + 0x30], r12
lea rax, [0x14023e2e0]
jmp 0x140204cc6
lea rcx, [rbp - 0x20]
call fcn.14023c8e0
test eax, eax
jle 0x1402053e6
mov r12d, shutdown
lea rcx, [0x1402055d0]
mov qword [rsp + 0x30], r12
lea rax, [0x14023c940]
jmp 0x140204cc6
lea rcx, [rbp - 0x20]
call fcn.140241fd0
test eax, eax
jle 0x1402053e6
mov r12d, reloc.WS2_32.dll_recv
mov byte [rsp + 0x20], 0
mov r14d, 0x30
mov qword [rsp + 0x30], r12
mov qword [rbp - 0x78], r14
lea rcx, [0x140205550]
lea rax, [0x140242020]
jmp 0x140204cc6
lea rcx, [rbp - 0x20]
call fcn.14023f580
test eax, eax
jle 0x1402053e6
mov r12d, 0x30
lea rax, [0x140205740]
mov qword [rsp + 0x40], rax
lea rax, [0x14023ffd0]
mov qword [rsp + 0x30], r12
lea edi, [r12 + 0x50]
lea r13d, [r12 - 0x20]
jmp 0x140204ccb
sub ecx, 0x2a2
je 0x140204c96
cmp ecx, 1
je 0x140204c6a
test rsi, rsi
je 0x1402053e6
mov qword [rsi], 0
jmp 0x1402053e6
lea rcx, [rbp - 0x20]
call fcn.14023dec0
test eax, eax
jle 0x1402053e6
mov r12d, 0x1c
lea rcx, [0x140205660]
mov qword [rsp + 0x30], r12
lea rax, [0x14023e2e0]
jmp 0x140204cc6
lea rcx, [rbp - 0x20]
call fcn.14023ff40
test eax, eax
jle 0x1402053e6
mov r12, rdi
mov qword [rsp + 0x30], rdi
mov edi, 0x80
lea rcx, [0x140205740]
lea rax, [0x14023ffd0]
lea r13d, [rdi - 0x70]
mov qword [rsp + 0x40], rcx
movzx r11d, byte [rbp + 0x348]
mov esi, reloc.WS2_32.dll_listen
mov qword [rsp + 0x28], rax
test r11b, r11b
je 0x140204cf8
mov rsi, qword [rbp + 0x340]
mov r9d, 2
add rsi, 0xb
add rsi, r14
jmp 0x140204d0b
lea rax, [rdi + 0xff]
xor edx, edx
add rax, r12
div rdi
lea r9, [rax + 1]
mov r14, qword [rbp + 0x328]
lea rax, [rbx - 1]
xor edx, edx
mov qword [rsp + 0x48], r9
mov r8, rsi
xor r15d, r15d
sub r8, r12
mov ebx, r15d
add r14, r8
lea rcx, [r8 + r13]
add rcx, rdi
add rax, rcx
mov ecx, r15d
div rdi
xor edx, edx
mov r10, rax
mov rax, r14
div rdi
mov rax, r14
mov qword [rbp - 0x80], rdx
xor edx, edx
div rdi
xor edx, edx
mov qword [rbp - 0x68], rax
lea rax, [r14 + r13]
div rdi
test r11b, r11b
mov qword [rbp - 0x60], rax
setne cl
lea rdx, [rcx + r9]
mov rcx, r10
sub rcx, r9
cmp r10, rdx
jbe 0x140204d83
mov rbx, rcx
imul rbx, rdi
cmp r10, rdx
cmovbe rcx, r15
lea r14, [r14*8]
mov qword [rsp + 0x78], rcx
test r11b, r11b
jne 0x140204e5f
mov r8, rdi
lea rcx, [rbp + 0x110]
xor edx, edx
lea r14, [r14 + rdi*8]
call fcn.140330340
mov rax, qword [rbp + 0x340]
cmp rax, 0x80
ja 0x1402053e6
mov rdx, qword [rbp - 0x70]
lea rcx, [rbp + 0x110]
mov r8, rax
call fcn.14032fed0
movdqa xmm2, xmmword [str.6666666666666666jjjjjjjjjjjjjjjjSRTP_AES128_CM_SHA1_80]
mov rax, r15
movdqu xmm0, xmmword [rbp + rax + 0x110]
movdqa xmm1, xmm2
pxor xmm1, xmm0
movdqu xmmword [rbp + rax + 0x110], xmm1
movdqu xmm0, xmmword [rbp + rax + 0x120]
movdqa xmm1, xmm2
pxor xmm1, xmm0
movdqu xmmword [rbp + rax + 0x120], xmm1
movdqu xmm0, xmmword [rbp + rax + 0x130]
movdqa xmm1, xmm2
pxor xmm0, xmm2
movdqu xmmword [rbp + rax + 0x130], xmm0
movdqu xmm0, xmmword [rbp + rax + 0x140]
pxor xmm1, xmm0
movdqu xmmword [rbp + rax + 0x140], xmm1
add rax, 0x40
cmp rax, rdi
jb 0x140204de3
lea rdx, [rbp + 0x110]
lea rcx, [rbp - 0x20]
call qword [rsp + 0x28]
mov rax, r14
lea rcx, [rbp + 0xc0]
shr rax, 0x18
xor edx, edx
mov qword [rsp + 0x58], rax
mov rax, r14
shr rax, 0x10
mov qword [rsp + 0x60], rax
mov rax, r14
shr rax, 8
mov qword [rsp + 0x38], rax
cmp byte [rsp + 0x20], r15b
je 0x140204ecd
lea r8, [r13 - 4]
call fcn.140330340
mov rax, qword [rsp + 0x58]
mov byte [rbp + r13 + 0xbc], al
mov rax, qword [rsp + 0x60]
mov byte [rbp + r13 + 0xbd], al
mov rax, qword [rsp + 0x38]
mov byte [rbp + r13 + 0xbe], al
mov byte [rbp + r13 + 0xbf], r14b
jmp 0x140204f04
mov r8, r13
call fcn.140330340
mov rax, qword [rsp + 0x58]
mov byte [rbp + r13 + 0xbb], al
mov rax, qword [rsp + 0x60]
mov byte [rbp + r13 + 0xba], al
mov rax, qword [rsp + 0x38]
mov byte [rbp + r13 + 0xb9], al
mov byte [rbp + r13 + 0xb8], r14b
test rbx, rbx
je 0x14020503d
cmp byte [rbp + 0x348], r15b
je 0x140204fb9
cmp rsi, rdi
jbe 0x1402053e6
mov rdx, qword [rsp + 0x50]
lea rcx, [rbp - 0x20]
mov r14, rsi
sub r14, rdi
mov qword [rsp + 0x38], r14
call qword [rsp + 0x28]
mov rdx, qword [rsp + 0x50]
lea rcx, [rbp + 0x190]
add rdx, rdi
mov r8, r14
call fcn.14032fed0
mov r8, rdi
lea rcx, [rbp + 0x190]
sub r8, r14
add rcx, r14
mov r14, qword [rsp + 0x70]
mov rdx, r14
call fcn.14032fed0
lea rdx, [rbp + 0x190]
lea rcx, [rbp - 0x20]
call qword [rsp + 0x28]
xor edx, edx
mov rax, rbx
div rdi
dec rax
cmp rax, 1
jbe 0x14020503d
sub r14, qword [rsp + 0x38]
lea r15, [rax - 1]
mov r12, qword [rsp + 0x28]
add r14, rdi
mov rdx, r14
lea rcx, [rbp - 0x20]
call r12
add r14, rdi
sub r15, 1
jne 0x140204fa4
jmp 0x140205035
mov rcx, qword [rsp + 0x50]
lea r8, [rdi - 0xd]
mov r14, qword [rsp + 0x70]
mov rdx, r14
mov eax, dword [rcx + 8]
movsd xmm0, qword [rcx]
mov dword [rbp + 0x198], eax
movzx eax, byte [rcx + 0xc]
lea rcx, [rbp + 0x19d]
mov byte [rbp + 0x19c], al
movsd qword [rbp + 0x190], xmm0
call fcn.14032fed0
lea rdx, [rbp + 0x190]
lea rcx, [rbp - 0x20]
call qword [rsp + 0x28]
xor edx, edx
mov rax, rbx
div rdi
cmp rax, 1
jbe 0x14020503d
mov r12, qword [rsp + 0x28]
lea r15, [rax - 1]
add r14, 0xfffffffffffffff3
add r14, rdi
mov rdx, r14
lea rcx, [rbp - 0x20]
call r12
add r14, rdi
sub r15, 1
jne 0x140205022
mov r12, qword [rsp + 0x30]
xor r15d, r15d
mov r8, qword [rsp + 0x78]
xor eax, eax
mov qword [rbp + 0xd0], rax
mov qword [rbp + 0xd8], rax
mov qword [rbp + 0xe0], rax
mov qword [rbp + 0xe8], rax
mov qword [rbp + 0xf0], rax
mov qword [rbp + 0xf8], rax
mov qword [rbp + 0x100], rax
mov qword [rbp + 0x108], rax
mov rax, qword [rsp + 0x48]
add rax, r8
mov qword [rbp - 0x50], rax
cmp r8, rax
ja 0x140205346
mov rcx, qword [rbp - 0x80]
mov rax, rcx
movaps xmmword [rsp + 0x3a0], xmm6
shr rax, 0x3f
mov r9, rcx
mov qword [rbp - 0x80], rax
not r9
lea rdx, [rcx + 1]
mov qword [rbp - 0x48], r9
mov rax, rdx
mov qword [rsp + 0x38], rdx
shr rax, 0x3f
mov qword [rsp + 0x48], rax
mov rax, rdi
sub rax, r13
mov qword [rsp + 0x60], rax
mov rax, rcx
sub rax, rdi
lea rax, [rbp + rax + 0xc1]
add rax, r13
mov qword [rsp + 0x58], rax
lea rax, [rbp + 0x211]
add rax, rcx
mov qword [rbp - 0x58], rax
nop word [rax + rax]
mov rax, r8
mov r10, r9
xor rax, qword [rbp - 0x68]
lea r13, [rax - 1]
not rax
shr rax, 0x3f
shr r13, 0x3f
and r13b, al
mov rax, r8
xor rax, qword [rbp - 0x60]
neg r13b
lea r14, [rax - 1]
not rax
shr rax, 0x3f
shr r14, 0x3f
and r14b, al
neg r14b
movsx eax, r14b
movd xmm6, eax
movzx eax, r14b
not al
punpcklbw xmm6, xmm6
mov byte [rsp + 0x20], al
or al, r13b
movzx r12d, byte [rsp + 0x20]
punpcklwd xmm6, xmm6
mov byte [rsp + 0x21], al
pshufd xmm6, xmm6, 0
xor r11b, r11b
cmp rbx, rsi
jae 0x140205176
mov rax, qword [rsp + 0x50]
jmp 0x14020518d
mov rax, qword [rbp + 0x330]
add rax, rsi
cmp rbx, rax
jae 0x140205192
mov rax, qword [rsp + 0x70]
sub rax, rsi
movzx r11d, byte [rax + rbx]
mov rcx, qword [rbp - 0x80]
lea r9, [rdx + r10]
mov rdx, r9
lea r15, [r10 + 1]
shr rdx, 0x3f
mov r8, r15
shr r8, 0x3f
movzx eax, dl
xor al, cl
xor r8b, cl
or r8b, al
movzx ecx, dl
xor cl, byte [rsp + 0x48]
xor r8b, dl
dec r8b
mov rax, r10
shr rax, 0x3f
and r8b, r13b
xor al, byte [rsp + 0x48]
inc rbx
or al, cl
movzx ecx, r8b
xor al, dl
not cl
dec al
and cl, r11b
and al, r13b
and r8b, 0x80
not al
or cl, r8b
and al, cl
and al, byte [rsp + 0x21]
cmp r9, qword [rsp + 0x60]
jb 0x14020520f
mov rcx, qword [rsp + 0x58]
and al, r12b
movzx edx, byte [rcx + r10]
and dl, r14b
or al, dl
mov rcx, qword [rbp - 0x58]
mov rdx, qword [rsp + 0x38]
mov byte [rcx + r10], al
mov r10, r15
lea rax, [rdx + r15]
cmp rax, rdi
jb 0x140205167
lea rdx, [rbp + 0x210]
lea rcx, [rbp - 0x20]
call qword [rsp + 0x28]
lea rdx, [rbp + 0x210]
lea rcx, [rbp - 0x20]
call qword [rsp + 0x40]
mov r12, qword [rsp + 0x30]
xor r15d, r15d
mov ecx, r15d
cmp r12, 0x40
jb 0x1402052ff
mov rax, r12
and rax, 0xffffffffffffffc0
movdqu xmm0, xmmword [rbp + rcx + 0xd0]
movdqu xmm1, xmmword [rbp + rcx + 0x210]
pand xmm1, xmm6
por xmm1, xmm0
movdqu xmmword [rbp + rcx + 0xd0], xmm1
movdqu xmm0, xmmword [rbp + rcx + 0xe0]
movdqu xmm1, xmmword [rbp + rcx + 0x220]
pand xmm1, xmm6
por xmm1, xmm0
movdqu xmmword [rbp + rcx + 0xe0], xmm1
movdqu xmm0, xmmword [rbp + rcx + 0xf0]
movdqu xmm1, xmmword [rbp + rcx + 0x230]
pand xmm1, xmm6
por xmm1, xmm0
movdqu xmmword [rbp + rcx + 0xf0], xmm1
movdqu xmm0, xmmword [rbp + rcx + 0x100]
movdqu xmm1, xmmword [rbp + rcx + 0x240]
pand xmm1, xmm6
por xmm1, xmm0
movdqu xmmword [rbp + rcx + 0x100], xmm1
add rcx, 0x40
cmp rcx, rax
jb 0x140205266
cmp rcx, r12
jae 0x14020531e
movzx eax, byte [rbp + rcx + 0x210]
and al, r14b
or byte [rbp + rcx + 0xd0], al
inc rcx
cmp rcx, r12
jb 0x140205304
mov r8, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x38]
inc r8
mov r9, qword [rbp - 0x48]
mov qword [rsp + 0x78], r8
cmp r8, qword [rbp - 0x50]
jbe 0x140205100
movaps xmm6, xmmword [rsp + 0x3a0]
call fcn.140223500
mov rbx, rax
test rax, rax
je 0x1402053de
mov rcx, qword [rbp - 0x40]
call fcn.140211e90
mov rdx, rax
xor r8d, r8d
mov rcx, rbx
call fcn.140222fd0
test eax, eax
jle 0x1402053de
cmp byte [rbp + 0x348], 0
je 0x14020540b
mov rdi, qword [rbp - 0x78]
lea rcx, [rbp + 0x110]
mov r8, rdi
mov edx, 0x5c
call fcn.140330340
mov r8, qword [rbp + 0x340]
mov rcx, rbx
mov rdx, qword [rbp - 0x70]
call fcn.140223220
test eax, eax
jle 0x1402053de
mov r8, rdi
lea rdx, [rbp + 0x110]
mov rcx, rbx
call fcn.140223220
test eax, eax
jle 0x1402053de
mov r8, r12
lea rdx, [rbp + 0xd0]
mov rcx, rbx
call fcn.140223220
test eax, eax
jg 0x1402054cd
mov rcx, rbx
call fcn.1402234c0
xor eax, eax
mov rcx, qword [rbp + 0x290]
xor rcx, rsp
call fcn.1403115a0
add rsp, 0x3b8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
movdqa xmm2, xmmword [0x1403744a0]
nop dword [rax]
nop word [rax + rax]
movdqu xmm0, xmmword [rbp + r15 + 0x110]
movdqa xmm1, xmm2
pxor xmm1, xmm0
movdqu xmmword [rbp + r15 + 0x110], xmm1
movdqu xmm0, xmmword [rbp + r15 + 0x120]
movdqa xmm1, xmm2
pxor xmm1, xmm0
movdqu xmmword [rbp + r15 + 0x120], xmm1
movdqu xmm0, xmmword [rbp + r15 + 0x130]
movdqa xmm1, xmm2
pxor xmm1, xmm0
movdqu xmmword [rbp + r15 + 0x130], xmm1
movdqu xmm0, xmmword [rbp + r15 + 0x140]
movdqa xmm1, xmm2
pxor xmm1, xmm0
movdqu xmmword [rbp + r15 + 0x140], xmm1
add r15, 0x40
cmp r15, rdi
jb 0x140205420
mov r8, rdi
lea rdx, [rbp + 0x110]
mov rcx, rbx
call fcn.140223220
test eax, eax
jle 0x1402053de
mov r8, r12
lea rdx, [rbp + 0xd0]
mov rcx, rbx
call fcn.140223220
test eax, eax
jle 0x1402053de
mov rdx, qword [rbp - 0x38]
lea r8, [rsp + 0x68]
mov rcx, rbx
call fcn.140222df0
test eax, eax
je 0x1402054f2
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x1402054f2
mov eax, dword [rsp + 0x68]
mov qword [rcx], rax
mov rcx, rbx
call fcn.1402234c0
mov eax, 1
jmp 0x1402053e8