Function at 0x7acae0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
test rdx, rdx
jne 0x7acb23
lea rax, [0x007c5170]
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x28]
mov qword [rsp + 0x78], rax
call fcn.00790184
lea rdx, [0x007cae18]
lea rcx, [rsp + 0x28]
call fcn.00790a20
int3
cmp r9d, 0x10
je 0x7acb62
cmp r9d, 0x18
je 0x7acb62
cmp r9d, 0x20
je 0x7acb62
lea rax, [0x007c5158]
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x28]
mov qword [rsp + 0x78], rax
call fcn.00790184
lea rdx, [0x007cae18]
lea rcx, [rsp + 0x28]
call fcn.00790a20
int3
movsxd rax, dword [rsp + 0x90]
cmp eax, 0x10
je 0x7acba6
cmp eax, 0x18
je 0x7acba6
cmp eax, 0x20
je 0x7acba6
lea rax, [0x007c5140]
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x28]
mov qword [rsp + 0x78], rax
call fcn.00790184
lea rdx, [0x007cae18]
lea rcx, [rsp + 0x28]
call fcn.00790a20
int3
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x80], r12
mov dword [rcx + 0x3cc], r9d
mov dword [rcx + 0x3d0], eax
mov qword [rsp + 0x88], r13
mov r8, rax
add rcx, 0x3d8
mov rdx, rsi
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r15
call fcn.007917e0
movsxd r8, dword [rbx + 0x3d0]
lea rcx, [rbx + 0x3f8]
mov rdx, rsi
call fcn.007917e0
mov r11d, dword [rbx + 0x3cc]
cmp r11d, 0x10
je 0x7acc36
cmp r11d, 0x18
je 0x7acc1a
mov eax, reloc.WS2_32.dll_ntohl
mov dword [rbx + 0x3d4], eax
jmp 0x7acc5c
cmp dword [rbx + 0x3d0], 0x20
mov eax, reloc.WS2_32.dll_ntohl
mov ecx, reloc.WS2_32.dll_inet_ntoa
cmovne eax, ecx
mov dword [rbx + 0x3d4], eax
jmp 0x7acc5c
mov edx, dword [rbx + 0x3d0]
cmp edx, 0x10
jne 0x7acc46
lea eax, [rdx - 6]
jmp 0x7acc56
mov eax, reloc.WS2_32.dll_ntohl
mov ecx, reloc.WS2_32.dll_inet_ntoa
cmp edx, 0x18
cmove eax, ecx
mov dword [rbx + 0x3d4], eax
mov eax, dword [rbx + 0x3d0]
xor esi, esi
cdq
and edx, 3
add eax, edx
sar eax, 2
cmp dword [rbx + 0x3d4], esi
movsxd r13, eax
mov r12, r13
jl 0x7acca4
lea rbp, [rbx + 0xc]
nop
test r13d, r13d
jle 0x7acc96
mov r8, r13
xor edx, edx
mov rcx, rbp
shl r8, 2
call fcn.00790ad0
inc esi
add rbp, 0x20
cmp esi, dword [rbx + 0x3d4]
jle 0x7acc80
xor esi, esi
cmp dword [rbx + 0x3d4], esi
jl 0x7accd9
lea rbp, [rbx + 0x1ec]
test r13d, r13d
jle 0x7acccb
mov r8, r13
xor edx, edx
mov rcx, rbp
shl r8, 2
call fcn.00790ad0
inc esi
add rbp, 0x20
cmp esi, dword [rbx + 0x3d4]
jle 0x7accb5
mov eax, dword [rbx + 0x3cc]
mov ebp, dword [rbx + 0x3d4]
cdq
inc ebp
and edx, 3
add eax, edx
lea rdx, [rbx + 0x418]
imul ebp, r13d
sar eax, 2
movsxd r15, eax
test eax, eax
jle 0x7acd42
mov r8d, r15d
nop word [rax + rax]
movzx ecx, byte [rdi]
add rdx, 4
add rdi, 4
shl ecx, 0x18
mov dword [rdx - 4], ecx
movzx eax, byte [rdi - 3]
shl eax, 0x10
or dword [rdx - 4], eax
movzx eax, byte [rdi - 2]
shl eax, 8
or dword [rdx - 4], eax
movzx eax, byte [rdi - 1]
or dword [rdx - 4], eax
sub r8, 1
jne 0x7acd10
xor r10d, r10d
xor edi, edi
test r15d, r15d
jle 0x7acd99
lea r11, [rbx + 0x418]
cmp r10d, ebp
jge 0x7acd99
mov eax, r10d
inc rdi
add r11, 4
cdq
inc r10d
idiv r13d
movsxd r8, eax
mov eax, dword [r11 - 4]
movsxd r9, edx
lea rcx, [r9 + r8*8]
mov dword [rbx + rcx*4 + 0xc], eax
movsxd rax, dword [rbx + 0x3d4]
sub rax, r8
cmp rdi, r15
lea rcx, [r9 + rax*8]
mov eax, dword [r11 - 4]
mov dword [rbx + rcx*4 + 0x1ec], eax
jl 0x7acd53
cmp r10d, ebp
jge 0x7acf87
lea r11, [0x007c50b0]
lea r12, [0x00780000]
mov r8d, dword [rbx + r15*4 + 0x414]
inc r11
movsxd rdx, r8d
mov qword [rsp + 0x78], r11
mov rax, rdx
sar rax, 0x10
movzx ecx, al
movsx eax, byte [r11 - 1]
movsx r9d, byte [rcx + r12 + 0x41eb0]
xor r9d, eax
mov rax, rdx
sar rax, 8
shl r9d, 8
movzx ecx, al
movzx eax, byte [rcx + r12 + 0x41eb0]
xor r9d, eax
movzx eax, dl
movzx eax, byte [rax + r12 + 0x41eb0]
shl r9d, 8
xor r9d, eax
mov rax, r8
shr rax, 0x18
shl r9d, 8
movzx eax, byte [rax + r12 + 0x41eb0]
xor r9d, eax
xor dword [rbx + 0x418], r9d
cmp r15d, 8
je 0x7ace65
cmp r15, 1
jle 0x7acf20
lea rcx, [rbx + 0x41c]
lea rdx, [r15 - 1]
nop word [rax + rax]
mov eax, dword [rcx - 4]
add rcx, 4
xor dword [rcx - 4], eax
sub rdx, 1
jne 0x7ace50
jmp 0x7acf20
lea rcx, [rbx + 0x41c]
mov edx, 3
nop word [rax + rax]
mov eax, dword [rcx - 4]
add rcx, 4
xor dword [rcx - 4], eax
sub rdx, 1
jne 0x7ace80
mov eax, dword [rbx + 0x424]
mov rcx, rax
movsxd rdx, eax
shr rcx, 0x18
mov rax, rdx
movsx r8d, byte [rcx + r12 + 0x41eb0]
sar rax, 0x10
movzx ecx, al
shl r8d, 8
movzx eax, byte [rcx + r12 + 0x41eb0]
xor r8d, eax
mov rax, rdx
sar rax, 8
shl r8d, 8
movzx ecx, al
movzx eax, byte [rcx + r12 + 0x41eb0]
xor r8d, eax
movzx eax, dl
movzx eax, byte [rax + r12 + 0x41eb0]
shl r8d, 8
xor r8d, eax
xor dword [rbx + 0x428], r8d
cmp r15, 5
jle 0x7acf20
lea rcx, [rbx + 0x42c]
lea rdx, [r15 - 5]
nop dword [rax + rax]
mov eax, dword [rcx - 4]
add rcx, 4
xor dword [rcx - 4], eax
sub rdx, 1
jne 0x7acf10
xor edi, edi
test r15d, r15d
jle 0x7acf7b
lea r11, [rbx + 0x418]
nop
cmp r10d, ebp
jge 0x7acf84
mov eax, r10d
inc rdi
add r11, 4
cdq
inc r10d
idiv r13d
movsxd r8, eax
mov eax, dword [r11 - 4]
movsxd r9, edx
lea rcx, [r9 + r8*8]
mov dword [rbx + rcx*4 + 0xc], eax
movsxd rax, dword [rbx + 0x3d4]
sub rax, r8
cmp rdi, r15
lea rcx, [r9 + rax*8]
mov eax, dword [r11 - 4]
mov dword [rbx + rcx*4 + 0x1ec], eax
jl 0x7acf30
mov r11, qword [rsp + 0x78]
cmp r10d, ebp
jl 0x7acdb0
mov r12, r13
mov r15, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
mov r13, qword [rsp + 0x88]
mov edi, 1
cmp dword [rbx + 0x3d4], edi
jle 0x7ad023
lea rsi, [rbx + 0x20c]
nop dword [rax]
test r12, r12
jle 0x7ad015
mov r10, rsi
mov r11, r12
lea rbp, [0x00780000]
mov eax, dword [r10]
add r10, 4
mov rdx, rax
movsxd r9, eax
shr rdx, 0x18
mov rax, r9
mov r8d, dword [rbp + rdx*4 + 0x440b0]
sar rax, 0x10
movzx ecx, al
mov rax, r9
xor r8d, dword [rbp + rcx*4 + 0x444b0]
sar rax, 8
movzx ecx, al
movzx eax, r9b
xor r8d, dword [rbp + rcx*4 + 0x448b0]
xor r8d, dword [rbp + rax*4 + 0x44cb0]
sub r11, 1
mov dword [r10 - 4], r8d
jne 0x7acfc2
inc edi
add rsi, 0x20
cmp edi, dword [rbx + 0x3d4]
jl 0x7acfb0
mov r12, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x70]
mov byte [rbx + 8], 1
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret