Function at 0x140039c30
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 - 0x498]
sub rsp, 0x570
movaps xmmword [rax - 0x38], xmm6
mov rax, qword [0x1400db100]
xor rax, rsp
mov qword [rbp + 0x450], rax
mov rdi, rdx
mov r15, rcx
mov qword [rsp + 0x48], rcx
xor ebx, ebx
mov dword [rbp - 0x80], ebx
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.JJ_Reselling_1.0
call qword [0x1400b6918]
mov r13, rax
xorps xmm0, xmm0
movups xmmword [r15], xmm0
mov qword [r15 + 0x10], rbx
mov qword [r15 + 0x18], reloc.WS2_32.dll_ntohs
mov byte [r15], bl
mov dword [rbp - 0x80], 1
test rax, rax
je 0x14003a763
xor eax, eax
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
mov qword [rbp + 0x10], rax
mov dword [rbp - 0x50], 0x68
lea rax, [rbp + 0x50]
mov qword [rbp - 0x38], rax
mov dword [rbp - 0x30], 0x100
lea rax, [rbp + 0x250]
mov qword [rbp - 8], rax
mov dword [rbp], 0x100
lea rax, [rdi + 0x10]
cmp qword [rdi + 0x18], 0xf
jbe 0x140039d19
mov r14, qword [rdi]
mov rdi, r14
add r14, qword [rax]
jmp 0x140039d1f
mov r14, qword [rax]
add r14, rdi
movups xmmword [rbp + 0x28], xmm0
mov qword [rbp + 0x38], rbx
mov esi, 7
mov qword [rbp + 0x40], rsi
cmp rdi, r14
jne 0x140039d3e
mov word [rbp + 0x28], bx
jmp 0x140039e43
mov rax, r14
sub rax, rdi
mov rdx, rbx
movabs rcx, 0x7ffffffffffffffe
cmp rax, rcx
ja 0x14003a7a1
cmp rax, rsi
jbe 0x140039e00
mov rsi, rax
or rsi, 7
cmp rsi, rcx
jbe 0x140039d82
mov rsi, rcx
movabs rax, 0x7fffffffffffffff
lea rcx, [rax + rax]
jmp 0x140039db1
mov eax, 0xa
cmp rsi, rax
cmovb rsi, rax
lea rcx, [rsi + 1]
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x14003a79b
add rcx, rcx
cmp rcx, 0x1000
jb 0x140039de4
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14003a79b
mov rcx, rax
call fcn.1400b04bc
mov rcx, rax
test rax, rax
je 0x14003a757
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
mov rdx, qword [rbp + 0x38]
jmp 0x140039df7
test rcx, rcx
je 0x140039df4
call fcn.1400b04bc
mov rdx, qword [rbp + 0x38]
jmp 0x140039df7
mov rax, rbx
mov qword [rbp + 0x28], rax
mov qword [rbp + 0x40], rsi
nop
lea rcx, [rbp + 0x28]
cmp rsi, 7
cmova rcx, qword [rbp + 0x28]
movsx eax, byte [rdi]
mov word [rcx + rdx*2], ax
mov rdx, qword [rbp + 0x38]
inc rdx
mov qword [rbp + 0x38], rdx
inc rdi
cmp rdi, r14
je 0x140039e2d
mov rsi, qword [rbp + 0x40]
jmp 0x140039e00
lea rax, [rbp + 0x28]
cmp qword [rbp + 0x40], 7
cmova rax, qword [rbp + 0x28]
mov word [rax + rdx*2], bx
mov rsi, qword [rbp + 0x40]
lea rcx, [rbp + 0x28]
cmp rsi, 7
cmova rcx, qword [rbp + 0x28]
lea r9, [rbp - 0x50]
xor r8d, r8d
mov edx, dword [rbp + 0x38]
call qword [0x1400b68e0]
test eax, eax
je 0x14003a716
xor r9d, r9d
movzx r8d, word [rbp - 0x2c]
mov rdx, qword [rbp - 0x38]
mov rcx, r13
call qword [0x1400b6900]
mov r12, rax
test rax, rax
je 0x14003a716
mov eax, ebx
mov ecx, 0x800000
cmp dword [rbp - 0x3c], 2
cmove eax, ecx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
mov r8, qword [rbp - 8]
lea rdx, [0x1400b84c8]
mov rcx, r12
call qword [0x1400b68e8]
mov rsi, rax
test rax, rax
je 0x14003a70d
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [0x1400b68f0]
test eax, eax
je 0x14003a516
xor edx, edx
mov rcx, rsi
call qword [0x1400b68f8]
test eax, eax
je 0x14003a516
mov dword [rbp + 0x20], ebx
mov r14d, dword [reloc.WS2_32.dll_accept]
nop dword [rax + rax]
mov dword [rbp - 0x60], ebx
lea rdx, [rbp - 0x60]
mov rcx, rsi
call qword [0x1400b68d8]
test eax, eax
je 0x14003a336
mov ecx, dword [rbp - 0x60]
inc ecx
call fcn.1400b0710
mov rdi, rax
test rax, rax
je 0x14003a17c
mov r8d, dword [rbp - 0x60]
inc r8d
xor edx, edx
mov rcx, rax
call fcn.1400b1f10
lea r9, [rbp + 0x20]
mov r8d, dword [rbp - 0x60]
mov rdx, rdi
mov rcx, rsi
call qword [0x1400b6910]
test eax, eax
jne 0x14003a156
mov eax, dword [0x1400bb374]
mov dword [rsp + 0x40], eax
movzx eax, word [0x1400bb378]
mov word [rsp + 0x44], ax
mov byte [rsp + 0x40], 0x45
xor byte [rsp + 0x41], 0x37
xor byte [rsp + 0x42], 0x38
xor byte [rsp + 0x43], 0x39
xor al, 0x3a
mov byte [rsp + 0x44], al
xor byte [rsp + 0x45], 0x3b
movups xmm0, xmmword [0x1400bb358]
movups xmmword [rsp + 0x58], xmm0
movsd xmm0, qword [0x1400bb368]
movsd qword [rsp + 0x68], xmm0
movzx eax, byte [0x1400bb370]
mov byte [rsp + 0x70], al
mov ecx, ebx
cmp r14d, 2
jl 0x14003a102
movdqa xmm5, xmmword [0x1400bd840]
movdqa xmm4, xmmword [0x1400bd8f0]
movdqa xmm6, xmmword [0x1400bd860]
movdqa xmm0, xmmword [str.6666666666666666O]
movdqa xmmword [rbp - 0x70], xmm0
lea rdx, [rsp + 0x5c]
mov r8d, dword [rbp - 0x70]
nop
movd xmm2, ecx
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400bd8d0]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx - 4]
xorps xmm2, xmm0
movd dword [rdx - 4], xmm2
lea eax, [rcx + 4]
movd xmm3, eax
pshufd xmm3, xmm3, 0
paddd xmm3, xmm5
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400bd8d0]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx]
xorps xmm2, xmm0
movd dword [rdx], xmm2
add ecx, 8
lea rdx, [rdx + 8]
cmp ecx, 0x18
jl 0x14003a000
cmp ecx, 0x19
jge 0x14003a13c
movsxd rax, ecx
lea r8, [rsp + 0x58]
add r8, rax
nop dword [rax]
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x34
movzx eax, cl
sub al, dl
add al, 0x36
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0x19
jl 0x14003a110
mov r9d, reloc.WS2_32.dll_recv
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x58]
xor ecx, ecx
call qword [0x1400b67d0]
jmp 0x14003a165
mov r8d, dword [rbp + 0x20]
mov rdx, rdi
mov rcx, r15
call fcn.140043110
mov rcx, rdi
call fcn.1400b04f8
cmp dword [rbp - 0x60], 0
ja 0x140039f10
jmp 0x14003a704
mov eax, dword [0x1400bb350]
mov dword [rsp + 0x40], eax
movzx eax, word [0x1400bb354]
mov word [rsp + 0x44], ax
mov byte [rsp + 0x40], 0x45
xor byte [rsp + 0x41], 0x37
xor byte [rsp + 0x42], 0x38
xor byte [rsp + 0x43], 0x39
xor al, 0x3a
mov byte [rsp + 0x44], al
xor byte [rsp + 0x45], 0x3b
movsd xmm0, qword [0x1400bb340]
movsd qword [rsp + 0x48], xmm0
mov eax, dword [0x1400bb348]
mov dword [rsp + 0x50], eax
movzx eax, word [0x1400bb34c]
mov word [rsp + 0x54], ax
cmp byte [0x1400bb34d], 0
je 0x14003a32c
cmp r14d, 2
jl 0x14003a2ed
movdqa xmm4, xmmword [0x1400bd8f0]
movdqa xmm2, xmmword [0x1400bd840]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1400bd860]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400bd8d0]
packuswb xmm2, xmm2
mov eax, dword [str.6666666666666666O]
movd xmm0, eax
paddb xmm2, xmm0
movd xmm0, dword [0x1400bb340]
xorps xmm2, xmm0
movd dword [rsp + 0x48], xmm2
movdqa xmm3, xmmword [0x1400bd850]
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1400bd860]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400bd8d0]
packuswb xmm2, xmm2
movd xmm0, eax
paddb xmm2, xmm0
movd xmm1, dword [rsp + 0x4c]
xorps xmm2, xmm1
movd dword [rsp + 0x4c], xmm2
mov ebx, 8
movsxd rax, ebx
lea r8, [rsp + 0x48]
add r8, rax
nop dword [rax + rax]
mov eax, 0x4ec4ec4f
imul ebx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x34
movzx eax, bl
sub al, cl
add al, 0x36
xor byte [r8], al
inc ebx
lea r8, [r8 + 1]
cmp ebx, 0xe
jl 0x14003a300
lea rdx, [rsp + 0x48]
jmp 0x14003a6f1
mov eax, dword [0x1400bb334]
mov dword [rsp + 0x40], eax
movzx eax, word [0x1400bb338]
mov word [rsp + 0x44], ax
mov byte [rsp + 0x40], 0x45
xor byte [rsp + 0x41], 0x37
xor byte [rsp + 0x42], 0x38
xor byte [rsp + 0x43], 0x39
xor al, 0x3a
mov byte [rsp + 0x44], al
xor byte [rsp + 0x45], 0x3b
movups xmm0, xmmword [0x1400bb310]
movups xmmword [rsp + 0x58], xmm0
movups xmm1, xmmword [0x1400bb320]
movups xmmword [rsp + 0x68], xmm1
movzx eax, word [0x1400bb330]
mov word [rsp + 0x78], ax
movzx eax, byte [0x1400bb332]
mov byte [rsp + 0x7a], al
cmp r14d, 2
jl 0x14003a4d3
movdqa xmm5, xmmword [0x1400bd840]
movdqa xmm4, xmmword [0x1400bd8f0]
movdqa xmm6, xmmword [0x1400bd860]
movdqa xmm0, xmmword [str.6666666666666666O]
movdqa xmmword [rbp - 0x70], xmm0
lea rcx, [rsp + 0x5c]
mov edx, dword [rbp - 0x70]
movd xmm2, ebx
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400bd8d0]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
xorps xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [rbx + 4]
movd xmm3, eax
pshufd xmm3, xmm3, 0
paddd xmm3, xmm5
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400bd8d0]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx]
xorps xmm2, xmm0
movd dword [rcx], xmm2
add ebx, 8
mov eax, ebx
lea rcx, [rcx + 8]
cmp ebx, 0x20
jl 0x14003a3d1
cmp eax, 0x23
jge 0x14003a50c
movsxd rax, ebx
lea r8, [rsp + 0x58]
add r8, rax
nop
mov eax, 0x4ec4ec4f
imul ebx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x34
movzx eax, bl
sub al, cl
add al, 0x36
xor byte [r8], al
inc ebx
lea r8, [r8 + 1]
cmp ebx, 0x23
jl 0x14003a4e0
lea rdx, [rsp + 0x58]
jmp 0x14003a6f1
mov eax, dword [0x1400bb3a0]
mov dword [rsp + 0x40], eax
movzx eax, word [0x1400bb3a4]
mov word [rsp + 0x44], ax
mov byte [rsp + 0x40], 0x45
xor byte [rsp + 0x41], 0x37
xor byte [rsp + 0x42], 0x38
xor byte [rsp + 0x43], 0x39
xor al, 0x3a
mov byte [rsp + 0x44], al
xor byte [rsp + 0x45], 0x3b
movups xmm0, xmmword [str.sEJVHeUS]
movups xmmword [rsp + 0x58], xmm0
movups xmm1, xmmword [0x1400bb390]
movups xmmword [rsp + 0x68], xmm1
psrldq xmm1, 0xf
movd eax, xmm1
test al, al
je 0x14003a6ec
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x14003a6ad
movdqa xmm5, xmmword [0x1400bd840]
movdqa xmm4, xmmword [0x1400bd8f0]
movdqa xmm6, xmmword [0x1400bd860]
movdqa xmm0, xmmword [str.6666666666666666O]
movdqa xmmword [rbp - 0x70], xmm0
lea rcx, [rsp + 0x5c]
mov edx, dword [rbp - 0x70]
nop
movd xmm2, ebx
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400bd8d0]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
xorps xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [rbx + 4]
movd xmm3, eax
pshufd xmm3, xmm3, 0
paddd xmm3, xmm5
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400bd8d0]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx]
xorps xmm2, xmm0
movd dword [rcx], xmm2
add ebx, 8
lea rcx, [rcx + 8]
cmp ebx, 0x20
jl 0x14003a5b0
jmp 0x14003a6ec
lea r8, [rsp + 0x58]
nop dword [rax]
nop word [rax + rax]
mov eax, 0x4ec4ec4f
imul ebx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x34
movzx eax, bl
sub al, cl
add al, 0x36
xor byte [r8], al
inc ebx
lea r8, [r8 + 1]
cmp ebx, 0x20
jl 0x14003a6c0
lea rdx, [rsp + 0x58]
mov r9d, reloc.WS2_32.dll_recv
lea r8, [rsp + 0x40]
xor ecx, ecx
call qword [0x1400b67d0]
mov rcx, rsi
call qword [0x1400b6908]
mov rcx, r12
call qword [0x1400b6908]
mov rcx, r13
call qword [0x1400b6908]
nop
mov rdx, qword [rbp + 0x40]
cmp rdx, 7
jbe 0x14003a763
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003a75e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003a75e
call qword [0x1400b6c60]
int3
call fcn.1400b04f8
mov rax, r15
mov rcx, qword [rbp + 0x450]
xor rcx, rsp
call fcn.1400b0620
lea r11, [rsp + 0x570]
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
call fcn.140042c70
int3
call fcn.1400430b0
int3