Function at 0x140044540
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov qword [rsp + 0x38], rdx
mov edx, dword [rsp + 0x108]
mov rax, qword [0x1400fe980]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov eax, 0xffffff53
cmp edx, 0xc
jb 0x140044dd4
mov rsi, rcx
mov ecx, dword [rsp + 0xf8]
test ecx, ecx
je 0x140044dd4
test rsi, rsi
je 0x140044dd4
cmp edx, 0x10
ja 0x140044dd4
mov ebx, r9d
mov r9, qword [rsp + 0xf0]
cmp ecx, 0xc
jne 0x1400445cd
mov eax, dword [r9 + 8]
mov dword [rsp + 0x78], eax
mov rax, qword [r9]
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x7c], 0x1000000
jmp 0x14004460c
mov edi, dword [rsi + 0x144]
mov dword [rsi + 0x144], 0
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ecx
mov dword [rsp + 0x30], reloc.WS2_32.dll_recv
mov rcx, rsi
xor edx, edx
mov r14, r8
xor r8d, r8d
call fcn.140043d70
mov r8, r14
mov dword [rsi + 0x144], edi
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x68], eax
mov eax, dword [rsp + 0x7c]
mov dword [rsp + 0x6c], eax
mov qword [rsp + 0x48], r8
mov rbp, r8
mov r14, qword [rsp + 0x38]
mov dword [rsp + 0x44], ebx
cmp ebx, 0x10
jae 0x14004478d
mov ebx, dword [rsp + 0x44]
mov r12d, ebx
and r12d, 0xf
je 0x140044c0f
inc byte [rsp + 0x7f]
jne 0x140044667
inc byte [rsp + 0x7e]
jne 0x140044667
inc byte [rsp + 0x7d]
jne 0x140044667
inc byte [rsp + 0x7c]
lea rdx, [rsp + 0x70]
lea r15, [rsp + 0x50]
mov rcx, rsi
mov r8, r15
call fcn.140041b40
test eax, eax
jne 0x140044dd4
mov eax, r14d
or eax, ebp
test al, 7
jne 0x140044b3f
test r14b, 7
je 0x140044974
dec r12d
cmp r12d, 7
mov eax, 7
cmovb eax, r12d
lea r8, [rsp + 0x51]
movzx ecx, byte [rbp]
xor cl, byte [rsp + 0x50]
mov byte [r14], cl
test r12d, r12d
je 0x14004497b
lea rcx, [rsp + 0x50]
or rcx, rax
lea rdx, [rsp + 0x52]
movzx r9d, byte [rbp + 1]
xor r9b, byte [rsp + 0x51]
mov byte [r14 + 1], r9b
cmp r8, rcx
je 0x140044983
lea r8, [rsp + 0x53]
movzx r9d, byte [rbp + 2]
xor r9b, byte [rsp + 0x52]
mov byte [r14 + 2], r9b
cmp rdx, rcx
je 0x140044990
lea rdx, [rsp + 0x54]
movzx r9d, byte [rbp + 3]
xor r9b, byte [rsp + 0x53]
mov byte [r14 + 3], r9b
cmp r8, rcx
je 0x14004499a
lea r8, [rsp + 0x55]
movzx r9d, byte [rbp + 4]
xor r9b, byte [rsp + 0x54]
mov byte [r14 + 4], r9b
cmp rdx, rcx
je 0x1400449a7
lea rdx, [rsp + 0x56]
movzx r9d, byte [rbp + 5]
xor r9b, byte [rsp + 0x55]
mov byte [r14 + 5], r9b
cmp r8, rcx
je 0x1400449b1
movzx r8d, byte [rbp + 6]
xor r8b, byte [rsp + 0x56]
mov byte [r14 + 6], r8b
cmp rdx, rcx
je 0x1400449be
lea r8, [rsp + 0x58]
movzx ecx, byte [rbp + 7]
add rbp, 8
xor cl, byte [rsp + 0x57]
mov byte [r14 + 7], cl
add r14, 8
jmp 0x1400449cb
mov edi, dword [rsp + 0x44]
shr edi, 4
lea r15, [rsp + 0x70]
lea r12, [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
mov r13, rbp
mov r14, qword [rsp + 0x38]
mov rbx, r14
jmp 0x140044899
movzx eax, byte [rbp]
xor al, byte [rsp + 0x50]
mov byte [r14], al
movzx eax, byte [rbp + 1]
xor al, byte [rsp + 0x51]
mov byte [r14 + 1], al
movzx eax, byte [rbp + 2]
xor al, byte [rsp + 0x52]
mov byte [r14 + 2], al
movzx eax, byte [rbp + 3]
xor al, byte [rsp + 0x53]
mov byte [r14 + 3], al
movzx eax, byte [rbp + 4]
xor al, byte [rsp + 0x54]
mov byte [r14 + 4], al
movzx eax, byte [rbp + 5]
xor al, byte [rsp + 0x55]
mov byte [r14 + 5], al
movzx eax, byte [rbp + 6]
xor al, byte [rsp + 0x56]
mov byte [r14 + 6], al
movzx eax, byte [rbp + 7]
xor al, byte [rsp + 0x57]
mov byte [r14 + 7], al
movzx eax, byte [rbp + 8]
xor al, byte [rsp + 0x58]
mov byte [r14 + 8], al
movzx eax, byte [rbp + 9]
xor al, byte [rsp + 0x59]
mov byte [r14 + 9], al
movzx eax, byte [rbp + 0xa]
xor al, byte [rsp + 0x5a]
mov byte [r14 + 0xa], al
movzx eax, byte [rbp + 0xb]
xor al, byte [rsp + 0x5b]
mov byte [r14 + 0xb], al
movzx eax, byte [rbp + 0xc]
xor al, byte [rsp + 0x5c]
mov byte [r14 + 0xc], al
movzx eax, byte [rbp + 0xd]
xor al, byte [rsp + 0x5d]
mov byte [r14 + 0xd], al
movzx eax, byte [rbp + 0xe]
xor al, byte [rsp + 0x5e]
mov byte [r14 + 0xe], al
movzx eax, byte [rbp + 0xf]
xor al, byte [rsp + 0x5f]
mov byte [r14 + 0xf], al
dec edi
add rbp, 0x10
add r14, 0x10
add rbx, 0x10
add r13, 0x10
test edi, edi
je 0x140044640
inc byte [rsp + 0x7f]
jne 0x1400448b0
inc byte [rsp + 0x7e]
jne 0x1400448b0
inc byte [rsp + 0x7d]
jne 0x1400448b0
inc byte [rsp + 0x7c]
nop
mov rcx, rsi
mov rdx, r15
mov r8, r12
call fcn.140041b40
test eax, eax
jne 0x140044dd4
mov eax, r13d
or eax, ebx
test al, 7
jne 0x1400447c0
mov rax, r14
mov rdx, r12
mov rcx, rbp
test byte [rsp + 0x38], 7
je 0x14004494f
movzx eax, byte [rbp]
xor al, byte [rsp + 0x50]
mov byte [r14], al
movzx eax, byte [rbp + 1]
xor al, byte [rsp + 0x51]
mov byte [r14 + 1], al
movzx eax, byte [rbp + 2]
xor al, byte [rsp + 0x52]
mov byte [r14 + 2], al
movzx eax, byte [rbp + 3]
xor al, byte [rsp + 0x53]
mov byte [r14 + 3], al
movzx eax, byte [rbp + 4]
xor al, byte [rsp + 0x54]
mov byte [r14 + 4], al
movzx eax, byte [rbp + 5]
xor al, byte [rsp + 0x55]
mov byte [r14 + 5], al
movzx eax, byte [rbp + 6]
xor al, byte [rsp + 0x56]
mov byte [r14 + 6], al
movzx edx, byte [rbp + 7]
xor dl, byte [rsp + 0x57]
lea rcx, [rbp + 8]
lea rax, [r14 + 8]
mov byte [r14 + 7], dl
lea rdx, [rsp + 0x58]
mov r8, qword [rcx]
xor r8, qword [rdx]
mov qword [rax], r8
test byte [rsp + 0x38], 7
jne 0x14004487f
mov rcx, qword [rcx + 8]
xor rcx, qword [rdx + 8]
mov qword [rax + 8], rcx
jmp 0x14004487f
lea r8, [rsp + 0x50]
jmp 0x1400449ce
inc rbp
inc r14
jmp 0x1400449cb
add rbp, 2
add r14, 2
mov r8, rdx
jmp 0x1400449cb
add rbp, 3
add r14, 3
jmp 0x1400449cb
add rbp, 4
add r14, 4
mov r8, rdx
jmp 0x1400449cb
add rbp, 5
add r14, 5
jmp 0x1400449cb
add rbp, 6
add r14, 6
mov r8, rdx
jmp 0x1400449cb
lea r8, [rsp + 0x57]
add rbp, 7
add r14, 7
sub r12d, eax
cmp r12d, 8
jae 0x1400449e2
mov rcx, r14
mov r15, r8
mov rdx, rbp
jmp 0x140044b2f
mov eax, r12d
shr eax, 3
lea r10d, [rax - 1]
xor r9d, r9d
cmp r10d, 9
jae 0x140044a56
mov rcx, r14
mov r15, r8
mov rdx, rbp
mov r8d, eax
sub r8d, r9d
test r8b, 3
je 0x140044aca
mov r8d, eax
sub r8b, r9b
movzx r11d, r8b
and r11d, 3
xor r10d, r10d
xor r8d, r8d
nop word cs:[rax + rax]
mov rdi, qword [rdx + r8*8]
xor rdi, qword [r15 + r8*8]
mov qword [rcx + r8*8], rdi
inc r8
add r10, 0xfffffffffffffff8
cmp r11d, r8d
jne 0x140044a30
sub rcx, r10
sub r15, r10
sub rdx, r10
add r8d, r9d
jmp 0x140044acd
mov rcx, r14
sub rcx, r8
cmp rcx, 0x20
jb 0x1400449f5
mov rcx, r14
sub rcx, rbp
cmp rcx, 0x20
jb 0x1400449f5
inc r10
mov r9, r10
and r9, 0xfffffffffffffffc
lea rcx, [r14 + r9*8]
lea r15, [r8 + r9*8]
lea rdx, [r9*8]
add rdx, rbp
xor r11d, r11d
movups xmm0, xmmword [r8 + r11*8]
movups xmm1, xmmword [r8 + r11*8 + 0x10]
movups xmm2, xmmword [rbp + r11*8]
xorps xmm2, xmm0
movups xmm0, xmmword [rbp + r11*8 + 0x10]
xorps xmm0, xmm1
movups xmmword [r14 + r11*8], xmm2
movups xmmword [r14 + r11*8 + 0x10], xmm0
add r11, 4
cmp r9, r11
jne 0x140044a8e
cmp r10, r9
jne 0x1400449fe
jmp 0x140044b2f
mov r8d, r9d
sub r9d, eax
cmp r9d, 0xfffffffc
ja 0x140044b2f
sub eax, r8d
xor r9d, r9d
xor r8d, r8d
nop
mov r10, qword [rdx + r9*8]
xor r10, qword [r15 + r9*8]
mov qword [rcx + r9*8], r10
mov r10, qword [rdx + r9*8 + 8]
xor r10, qword [r15 + r9*8 + 8]
mov qword [rcx + r9*8 + 8], r10
mov r10, qword [rdx + r9*8 + 0x10]
xor r10, qword [r15 + r9*8 + 0x10]
mov qword [rcx + r9*8 + 0x10], r10
mov r10, qword [rdx + r9*8 + 0x18]
xor r10, qword [r15 + r9*8 + 0x18]
mov qword [rcx + r9*8 + 0x18], r10
add r8, 0xffffffffffffffe0
add r9, 4
cmp eax, r9d
jne 0x140044ae0
sub rcx, r8
sub r15, r8
sub rdx, r8
mov rbp, rdx
mov r14, rcx
and r12d, 7
je 0x140044c0f
mov eax, r12d
cmp r12d, 8
jae 0x140044bd5
xor ecx, ecx
mov r8, rax
mov rdx, rcx
and r8, 3
je 0x140044b76
mov rdx, rcx
nop dword [rax]
movzx r9d, byte [rbp + rdx]
xor r9b, byte [r15 + rdx]
mov byte [r14 + rdx], r9b
inc rdx
dec r8
jne 0x140044b60
sub rcx, rax
cmp rcx, 0xfffffffffffffffc
ja 0x140044c0f
nop word cs:[rax + rax]
movzx ecx, byte [rbp + rdx]
xor cl, byte [r15 + rdx]
mov byte [r14 + rdx], cl
movzx ecx, byte [rbp + rdx + 1]
xor cl, byte [r15 + rdx + 1]
mov byte [r14 + rdx + 1], cl
movzx ecx, byte [rbp + rdx + 2]
xor cl, byte [r15 + rdx + 2]
mov byte [r14 + rdx + 2], cl
movzx ecx, byte [rbp + rdx + 3]
xor cl, byte [r15 + rdx + 3]
mov byte [r14 + rdx + 3], cl
add rdx, 4
cmp rax, rdx
jne 0x140044b90
jmp 0x140044c0f
mov rdx, r14
sub rdx, r15
xor ecx, ecx
cmp rdx, 0x20
jb 0x140044b4e
mov rdx, r14
sub rdx, rbp
cmp rdx, 0x20
jb 0x140044b4e
mov ecx, eax
and ecx, 0xfffffff8
mov rdx, qword [rbp]
xor rdx, qword [r15]
mov qword [r14], rdx
cmp rcx, rax
jne 0x140044b4e
mov rdi, qword [rsp + 0x100]
test rdi, rdi
je 0x140044dd2
mov ebp, dword [rsp + 0x118]
mov rdx, qword [rsp + 0x110]
mov eax, dword [rsp + 0x108]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], ebx
mov rcx, rsi
mov r8d, ebp
mov r9, qword [rsp + 0x38]
call fcn.140043d70
lea rdx, [rsp + 0x60]
lea r14, [rsp + 0x50]
mov rcx, rsi
mov r8, r14
call fcn.140041b40
test eax, eax
jne 0x140044dd4
mov r10d, dword [rsp + 0x108]
test dil, 7
jne 0x140044d21
mov eax, r10d
shr eax, 3
lea r8d, [rax - 1]
cmp r8d, 3
jae 0x140044c9e
xor edx, edx
lea r14, [rsp + 0x50]
mov rcx, rdi
jmp 0x140044cf0
inc r8
mov rdx, r8
and rdx, 0xfffffffffffffffc
lea rcx, [rdi + rdx*8]
lea r14, [rsp + rdx*8]
add r14, 0x50
xor r9d, r9d
nop word [rax + rax]
movups xmm0, xmmword [rdi + r9*8]
movups xmm1, xmmword [rdi + r9*8 + 0x10]
xorps xmm0, xmmword [rsp + r9*8 + 0x50]
xorps xmm1, xmmword [rsp + r9*8 + 0x60]
movups xmmword [rdi + r9*8], xmm0
movups xmmword [rdi + r9*8 + 0x10], xmm1
add r9, 4
cmp rdx, r9
jne 0x140044cc0
cmp r8, rdx
je 0x140044d1a
sub eax, edx
xor edx, edx
xor r8d, r8d
nop word [rax + rax]
mov r9, qword [r14 + r8*8]
xor qword [rcx + r8*8], r9
inc r8
add rdx, 0xfffffffffffffff8
cmp eax, r8d
jne 0x140044d00
sub rcx, rdx
sub r14, rdx
and r10d, 7
mov rdi, rcx
test r10d, r10d
je 0x140044dc0
mov eax, r10d
cmp r10d, 8
jae 0x140044d37
xor ecx, ecx
jmp 0x140044db0
cmp r10d, 0x20
jae 0x140044d41
xor ecx, ecx
jmp 0x140044d85
mov ecx, eax
and ecx, 0xffffffe0
xor edx, edx
nop dword [rax + rax]
movups xmm0, xmmword [r14 + rdx]
movups xmm1, xmmword [r14 + rdx + 0x10]
movups xmm2, xmmword [rdi + rdx]
xorps xmm2, xmm0
movups xmm0, xmmword [rdi + rdx + 0x10]
xorps xmm0, xmm1
movups xmmword [rdi + rdx], xmm2
movups xmmword [rdi + rdx + 0x10], xmm0
add rdx, 0x20
cmp rcx, rdx
jne 0x140044d50
cmp rcx, rax
je 0x140044dc0
test al, 0x18
je 0x140044db0
mov rdx, rcx
mov ecx, eax
and ecx, 0xfffffff8
nop dword [rax]
mov r8, qword [r14 + rdx]
xor qword [rdi + rdx], r8
add rdx, 8
cmp rcx, rdx
jne 0x140044d90
cmp rcx, rax
je 0x140044dc0
nop word cs:[rax + rax]
movzx edx, byte [r14 + rcx]
xor byte [rdi + rcx], dl
inc rcx
cmp rax, rcx
jne 0x140044db0
cmp qword [rsp + 0x48], 0
jne 0x140044dd2
test ebx, ebx
jne 0x140044dd2
mov dword [rsi + 0x144], ebp
xor eax, eax
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
mov esi, eax
call fcn.1400a11a0
mov eax, esi
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret