Function at 0x140056470
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
lea rbp, [rax - 0x128]
sub rsp, 0x220
movaps xmmword [rax - 0x18], xmm6
movaps xmmword [rax - 0x28], xmm7
movaps xmmword [rax - 0x38], xmm8
mov rax, qword [0x1401e9060]
xor rax, rsp
mov qword [rbp + 0xe0], rax
mov rbx, rcx
mov qword [rsp + 0x78], rcx
xor esi, esi
mov dword [rsp + 0x24], esi
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx], rsi
mov qword [rcx + 8], rsi
mov qword [rcx + 0x10], rsi
mov dword [rsp + 0x24], 1
mov dword [rsp + 0x28], 0x42477900
mov dword [rsp + 0x2c], 0x21d55
mov byte [rsp + 0x30], 1
mov r8d, 0x104
lea rdx, [rbp - 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov qword [rsp + 0x58], rsi
movdqa xmm0, xmmword [0x1401cb6b0]
movdqu xmmword [rsp + 0x68], xmm0
mov byte [rsp + 0x58], sil
lea rax, [rbp - 0x30]
mov rdi, 0xffffffffffffffff
mov r8, rdi
inc r8
cmp byte [rax + r8], 0
jne 0x140056520
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x58]
call fcn.140092f40
mov dword [rsp + 0x24], 3
movups xmm0, xmmword [str.e_rwp]
movups xmmword [rbp - 0x60], xmm0
movups xmm1, xmmword [0x1401c9a10]
movups xmmword [rbp - 0x50], xmm1
movsd xmm0, qword [0x1401c9a20]
movsd qword [rbp - 0x40], xmm0
movzx eax, word [0x1401c9a28]
mov word [rbp - 0x38], ax
mov ecx, esi
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x1400566cc
movdqa xmm5, xmmword [0x1401cb700]
movdqa xmm4, xmmword [0x1401cd5c0]
mov eax, 5
movd xmm6, eax
movdqa xmm7, xmmword [0x1401cb720]
mov eax, Ordinal_32
movd xmm8, eax
movdqa xmm0, xmmword [0x1401cc150]
movdqa xmmword [rbp - 0x80], xmm0
lea rdx, [rbp - 0x5c]
mov r8d, dword [rbp - 0x80]
nop dword [rax]
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
paddd xmm1, xmm2
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x1401cb840]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx - 4]
pxor 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
paddd xmm1, xmm3
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x1401cb840]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx]
pxor xmm2, xmm0
movd dword [rdx], xmm2
add ecx, 8
lea rdx, [rdx + 8]
cmp ecx, 0x28
jl 0x1400565c0
cmp ecx, 0x2a
jge 0x14005670e
movsxd rax, ecx
lea r8, [rbp - 0x60]
add r8, rax
nop word [rax + rax]
mov eax, 0xa0a0a0a1
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x33
movzx eax, cl
sub al, dl
add al, 0x31
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0x2a
jl 0x1400566e0
lea rax, [rbp - 0x60]
inc rdi
cmp byte [rax + rdi], 0
jne 0x140056712
mov r9, rdi
lea r8, [rbp - 0x60]
lea rcx, [rsp + 0x58]
call fcn.140096b20
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x80], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x70], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov dword [rsp + 0x24], 7
cmp byte [rsp + 0x30], 0
je 0x140056775
mov rcx, rsi
nop dword [rax]
lea eax, [rcx + 0x2c]
xor byte [rsp + rcx + 0x28], al
inc rcx
cmp rcx, 7
jb 0x140056760
mov byte [rsp + 0x30], 0
mov qword [rsp + 0x38], rsi
movdqa xmm0, xmmword [0x1401cb6b0]
movdqu xmmword [rsp + 0x48], xmm0
mov byte [rsp + 0x38], 0
mov r8d, 7
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x38]
call fcn.140092f40
mov dword [rsp + 0x24], reloc.WS2_32.dll_socket
lea r8, [rbp - 0x80]
cmp qword [rbp - 0x68], 0x10
cmovae r8, qword [rbp - 0x80]
mov r9, qword [rbp - 0x70]
lea rcx, [rsp + 0x38]
call fcn.140096b20
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x60], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x50], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov dword [rsp + 0x24], 0x3f
lea rcx, [rsp + 0x38]
call fcn.140092cd0
nop
lea rcx, [rbp - 0x80]
call fcn.140092cd0
nop
lea rcx, [rsp + 0x58]
call fcn.140092cd0
mov dword [rsp + 0x20], 0x1004370
mov rcx, rsi
nop word [rax + rax]
lea eax, [rcx + 0x2c]
xor byte [rsp + rcx + 0x20], al
inc rcx
cmp rcx, 2
jb 0x140056820
mov byte [rsp + 0x23], 0
mov qword [rbp - 0x80], rsi
movdqa xmm0, xmmword [0x1401cb6b0]
movdqu xmmword [rbp - 0x70], xmm0
mov byte [rbp - 0x80], 0
mov r8d, 2
lea rdx, [rsp + 0x20]
lea rcx, [rbp - 0x80]
call fcn.140092f40
mov dword [rsp + 0x24], 0xff
mov rax, qword [rbx + 8]
cmp rax, qword [rbx + 0x10]
je 0x140056883
lea rdx, [rbp - 0x60]
mov rcx, rax
call fcn.140090c90
add qword [rbx + 8], 0x20
jmp 0x140056892
lea r8, [rbp - 0x60]
mov rdx, rax
mov rcx, rbx
call fcn.1400941d0
mov rax, qword [rbx + 8]
cmp rax, qword [rbx + 0x10]
je 0x1400568af
lea rdx, [rbp - 0x80]
mov rcx, rax
call fcn.140090c90
add qword [rbx + 8], 0x20
jmp 0x1400568bf
lea r8, [rbp - 0x80]
mov rdx, rax
mov rcx, rbx
call fcn.1400941d0
nop
lea rcx, [rbp - 0x80]
call fcn.140092cd0
nop
lea rcx, [rbp - 0x60]
call fcn.140092cd0
mov rax, rbx
mov rcx, qword [rbp + 0xe0]
xor rcx, rsp
call fcn.1400fcc80
lea r11, [rsp + 0x220]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
mov rsp, r11
pop rbp
ret