Function at 0x140076470
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
push r13
push r14
mov eax, 0x120
call fcn.140103e70
sub rsp, rax
mov rax, qword [0x140172b58]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov rsi, qword [rcx + 0x70]
mov r14, r9
mov r13, r8
mov rbx, qword [rsi + 0xc8]
mov rdi, rdx
mov qword [rsp + 0x38], rcx
lea rax, [rbx + 0x10]
cmp r9, rax
je 0x1400764c1
or eax, 0xffffffff
jmp 0x1400767a9
mov qword [rsp + 0x118], rbp
mov qword [rsp + 0x110], r12
lea rax, [rsp + 0x50]
neg rax
mov qword [rsp + 0x108], r15
and eax, 0xf
lea rcx, [rsp + rax + 0x50]
mov qword [rsp + 0x30], rcx
lea r12, [rcx + 0x40]
lea r15, [rcx + 0x30]
cmp rbx, 0x40
ja 0x140076622
mov edx, 0x80
lea rax, [rsi + 0x20]
xor ebp, ebp
mov qword [rsp + 0x40], rdx
mov r8, rdx
lea rdx, [0x14012da20]
mov r9, rsi
mov dword [rax], ebp
mov qword [rsp + 0x20], rax
call fcn.1400a98b0
mov rdx, qword [rsp + 0x30]
lea rcx, [rsi + 0xd0]
call fcn.1400a9fb0
mov rax, qword [rsi + 0x94]
mov dword [rsi + 0x70], ebp
mov qword [r15], rax
mov rax, qword [rsi + 0x9c]
mov qword [r15 + 8], rax
mov rax, qword [rsp + 0x38]
mov qword [rsi + 0xa8], recv
mov qword [rsi + 0xb0], rbx
cmp dword [rax + 0x10], ebp
je 0x1400765ab
test rbx, rbx
je 0x1400765ee
mov rdx, r13
mov r8, rdi
mov rcx, r12
sub rdx, r12
sub r8, r12
mov rbp, rbx
nop word [rax + rax]
movzx eax, byte [rdx + rcx]
inc rcx
xor byte [rcx - 1], al
sub rbx, 1
movzx eax, byte [rcx - 1]
mov byte [r8 + rcx - 1], al
jne 0x140076590
jmp 0x1400765ee
test rbx, rbx
je 0x1400765ee
mov r9, r13
mov r10, rdi
mov r8, r12
sub r9, rdi
sub r10, r12
mov rbp, rbx
nop word [rax + rax]
movzx eax, byte [r8]
lea rcx, [r8 + r10]
inc r8
movzx edx, byte [rcx + r9]
xor al, dl
sub rbx, 1
mov byte [r8 - 1], dl
mov byte [rcx], al
jne 0x1400765d0
mov rbx, rbp
lea rcx, [r12 + rbp]
xor edx, edx
neg rbx
add r13, rbp
add rdi, rbp
and ebx, 0xf
mov r8, rbx
call sub.MSVCR90.dll_memset
lea r11, [rbx + rbp]
lea rbx, [rsi + 0xd0]
lea rbp, [r11 + 0x10]
add r12, r11
jmp 0x140076714
mov eax, 0x40
lea r15, [rsi + 0x20]
lea rdx, [0x14012da20]
xor ebp, ebp
mov r9, rsi
mov r8, rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x20], r15
mov dword [r15], ebp
call fcn.1400a98b0
mov rdx, qword [rsp + 0x30]
lea rcx, [rsi + 0xd0]
call fcn.1400a9fb0
lea rdx, [rsi + 0x94]
lea r8d, [rbp + 0x10]
lea rcx, [rsi + 0xd0]
mov dword [r15], 1
mov dword [rsi + 0x70], ebp
call fcn.1400aa080
mov rax, qword [rsp + 0x38]
mov qword [rsi + 0xa8], recv
mov qword [rsi + 0xb0], rbx
cmp dword [rax + 0x10], ebp
je 0x1400766c4
mov r9, rsi
mov r8, rbx
mov rdx, r13
mov rcx, rdi
mov qword [rsp + 0x20], r15
call fcn.1400a98b0
lea rcx, [rsi + 0xd0]
mov r8, rbx
mov rdx, rdi
call fcn.1400aa080
jmp 0x1400766ec
lea rcx, [rsi + 0xd0]
mov r8, rbx
mov rdx, r13
call fcn.1400aa080
mov r9, rsi
mov r8, rbx
mov rdx, r13
mov rcx, rdi
mov qword [rsp + 0x20], r15
call fcn.1400a98b0
add r13, rbx
add rdi, rbx
neg rbx
and ebx, 0xf
lea rdx, [0x14012da20]
mov r8, rbx
lea rbx, [rsi + 0xd0]
mov rcx, rbx
call fcn.1400aa080
mov r15, r12
mov rax, qword [rsi + 0xa8]
lea r8, [rbp + 0x10]
mov rdx, r15
mov qword [r12], rax
mov rax, qword [rsi + 0xb0]
mov rcx, rbx
mov qword [r12 + 8], rax
call fcn.1400aa080
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
call fcn.140055e30
mov rbp, qword [rsp + 0x38]
mov r12, qword [rsp + 0x110]
cmp dword [rbp + 0x10], 0
je 0x140076765
lea rdx, [rsi + 0x84]
jmp 0x140076768
mov rdx, r15
mov rcx, rbx
call fcn.1400aa170
mov qword [rsi + 0xc8], 0xffffffffffffffff
cmp dword [rbp + 0x10], 0
mov rbp, qword [rsp + 0x118]
je 0x1400767c8
mov rax, qword [rsi + 0x84]
mov qword [rdi], rax
mov rax, qword [rsi + 0x8c]
mov qword [rdi + 8], rax
mov eax, r14d
mov r15, qword [rsp + 0x108]
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.140103060
add rsp, 0x120
pop r14
pop r13
pop rdi
pop rsi
pop rbx
ret
mov r8d, reloc.WS2_32.dll_recv
mov rdx, r13
mov rcx, r15
call fcn.140050e10
test eax, eax
je 0x14007679e
sub rdi, r14
lea r8, [r14 - 0x10]
xor edx, edx
lea rcx, [rdi + 0x10]
call sub.MSVCR90.dll_memset
or eax, 0xffffffff
jmp 0x1400767a1