Function at 0x452490
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x38
test rdx, rdx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbp
mov rbp, rdx
mov rbx, rcx
je 0x452b25
test rcx, rcx
je 0x4524bc
cmp qword [rcx + 0x320], 0
jne 0x4524c8
add word [rdx + 0x44], 0xffff
jne 0x452b25
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], rdi
mov rdi, qword [rdx + 0x10]
test rdi, rdi
je 0x452613
mov qword [rsp + 0x20], r14
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r13
lea r14, [0x0069aea0]
test rbx, rbx
mov r13, qword [rdi + 0x28]
je 0x45250c
cmp qword [rbx + 0x320], 0
jne 0x4525ed
mov r11, qword [rdi + 0x30]
mov rsi, qword [rdi]
mov r9, qword [r11 + 0x30]
test r9, r9
je 0x452568
movzx ecx, byte [rsi]
xor eax, eax
mov r8, rsi
test cl, cl
je 0x45254d
nop
nop
movzx ecx, cl
inc r8
movzx edx, byte [rcx + r14]
lea ecx, [rax*8]
xor edx, ecx
mov cl, byte [r8]
xor eax, edx
test cl, cl
jne 0x452530
xor edx, edx
div dword [r11 + 0x20]
mov eax, edx
mov r12d, edx
shl rax, 4
add rax, r9
mov r9, qword [rax + 8]
mov r10d, dword [rax]
jmp 0x452573
mov r9, qword [r11 + 0x28]
mov r10d, dword [r11 + 0x24]
xor r12d, r12d
test r10d, r10d
je 0x4525ed
nop
nop
mov rdx, qword [r9 + 0x18]
dec r10d
mov r8, rsi
movzx eax, byte [rdx]
test al, al
je 0x4525bf
nop
nop
nop
nop
movzx ecx, al
movzx eax, byte [r8]
movzx eax, byte [rax + r14]
cmp byte [rcx + r14], al
jne 0x4525bf
mov al, byte [rdx + 1]
inc rdx
inc r8
test al, al
jne 0x4525a0
movzx eax, byte [r8]
movzx ecx, byte [rax + r14]
movzx eax, byte [rdx]
movzx eax, byte [rax + r14]
sub eax, ecx
je 0x4525de
test r10d, r10d
mov r9, qword [r9]
jne 0x452580
jmp 0x4525ed
lea rcx, [r11 + 0x20]
mov r8d, r12d
mov rdx, r9
call fcn.004277f0
mov rdx, rdi
mov rcx, rbx
call fcn.00446c40
test r13, r13
mov rdi, r13
jne 0x4524f5
mov r14, qword [rsp + 0x20]
mov r13, qword [rsp + 0x28]
mov r12, qword [rsp + 0x30]
mov rdx, rbp
mov rcx, rbx
call fcn.00448d50
mov rdx, rbp
mov rcx, rbx
call fcn.00446f40
mov rdi, qword [rbp]
test rdi, rdi
je 0x45270d
test rbx, rbx
je 0x452683
cmp qword [rbx + 0x320], 0
je 0x452655
mov rdx, rdi
mov rcx, rbx
call fcn.00425e50
jmp 0x45270d
cmp rdi, qword [rbx + 0x168]
jb 0x452683
cmp rdi, qword [rbx + 0x170]
jae 0x452683
mov rax, qword [rbx + 0x160]
mov qword [rdi], rax
dec dword [rbx + 0x14c]
mov qword [rbx + 0x160], rdi
jmp 0x45270d
cmp dword [reloc.WS2_32.dll_accept], 0
je 0x452704
mov rcx, qword [0x00772b88]
test rcx, rcx
je 0x45269e
call qword [0x0072d0f8]
mov rcx, rdi
call qword [0x0072d0b0]
mov ecx, dword [0x00772960]
neg eax
add ecx, eax
mov eax, dword [0x00772988]
cmp ecx, eax
mov dword [0x00772960], ecx
cmovg eax, ecx
mov ecx, dword [0x00772984]
dec ecx
mov dword [0x00772988], eax
mov eax, dword [0x007729ac]
cmp ecx, eax
mov dword [0x00772984], ecx
cmovg eax, ecx
mov rcx, rdi
mov dword [0x007729ac], eax
call qword [0x0072d0a0]
mov rcx, qword [0x00772b88]
test rcx, rcx
je 0x45270d
call qword [0x0072d108]
jmp 0x45270d
mov rcx, rdi
call qword [0x0072d0a0]
mov rdi, qword [rbp + 0x28]
test rdi, rdi
je 0x4527f1
test rbx, rbx
je 0x452767
cmp qword [rbx + 0x320], 0
je 0x452739
mov rdx, rdi
mov rcx, rbx
call fcn.00425e50
jmp 0x4527f1
cmp rdi, qword [rbx + 0x168]
jb 0x452767
cmp rdi, qword [rbx + 0x170]
jae 0x452767
mov rax, qword [rbx + 0x160]
mov qword [rdi], rax
dec dword [rbx + 0x14c]
mov qword [rbx + 0x160], rdi
jmp 0x4527f1
cmp dword [reloc.WS2_32.dll_accept], 0
je 0x4527e8
mov rcx, qword [0x00772b88]
test rcx, rcx
je 0x452782
call qword [0x0072d0f8]
mov rcx, rdi
call qword [0x0072d0b0]
mov ecx, dword [0x00772960]
neg eax
add ecx, eax
mov eax, dword [0x00772988]
cmp ecx, eax
mov dword [0x00772960], ecx
cmovg eax, ecx
mov ecx, dword [0x00772984]
dec ecx
mov dword [0x00772988], eax
mov eax, dword [0x007729ac]
cmp ecx, eax
mov dword [0x00772984], ecx
cmovg eax, ecx
mov rcx, rdi
mov dword [0x007729ac], eax
call qword [0x0072d0a0]
mov rcx, qword [0x00772b88]
test rcx, rcx
je 0x4527f1
call qword [0x0072d108]
jmp 0x4527f1
mov rcx, rdi
call qword [0x0072d0a0]
mov rsi, qword [rbp + 0x18]
test rsi, rsi
je 0x452a08
mov rdx, qword [rsi]
mov rcx, rbx
call fcn.00445760
mov rdx, qword [rsi + 0x28]
mov rcx, rbx
call fcn.004334e0
mov rdi, qword [rsi + 0x30]
test rdi, rdi
je 0x452883
bt dword [rdi + 4], 0xe
jb 0x452871
mov rdx, qword [rdi + 0x10]
mov rcx, rbx
call fcn.00445010
mov rdx, qword [rdi + 0x18]
mov rcx, rbx
call fcn.00445010
bt dword [rdi + 4], 0x10
jae 0x452850
mov rdx, qword [rdi + 8]
mov rcx, rbx
call fcn.00425ea0
bt dword [rdi + 4], 0xb
jae 0x452865
mov rdx, qword [rdi + 0x20]
mov rcx, rbx
call fcn.004353b0
jmp 0x452871
mov rdx, qword [rdi + 0x20]
mov rcx, rbx
call fcn.00445760
bt dword [rdi + 4], 0xf
jb 0x452883
mov rdx, rdi
mov rcx, rbx
call fcn.00425ea0
mov rdx, qword [rsi + 0x38]
mov rcx, rbx
call fcn.00445760
mov rdi, qword [rsi + 0x40]
test rdi, rdi
je 0x4528fd
bt dword [rdi + 4], 0xe
jb 0x4528eb
mov rdx, qword [rdi + 0x10]
mov rcx, rbx
call fcn.00445010
mov rdx, qword [rdi + 0x18]
mov rcx, rbx
call fcn.00445010
bt dword [rdi + 4], 0x10
jae 0x4528ca
mov rdx, qword [rdi + 8]
mov rcx, rbx
call fcn.00425ea0
bt dword [rdi + 4], 0xb
jae 0x4528df
mov rdx, qword [rdi + 0x20]
mov rcx, rbx
call fcn.004353b0
jmp 0x4528eb
mov rdx, qword [rdi + 0x20]
mov rcx, rbx
call fcn.00445760
bt dword [rdi + 4], 0xf
jb 0x4528fd
mov rdx, rdi
mov rcx, rbx
call fcn.00425ea0
mov rdx, qword [rsi + 0x48]
mov rcx, rbx
call fcn.00445760
mov rdx, qword [rsi + 0x50]
mov rcx, rbx
call fcn.004353b0
mov rdi, qword [rsi + 0x60]
test rdi, rdi
je 0x452983
bt dword [rdi + 4], 0xe
jb 0x452971
mov rdx, qword [rdi + 0x10]
mov rcx, rbx
call fcn.00445010
mov rdx, qword [rdi + 0x18]
mov rcx, rbx
call fcn.00445010
bt dword [rdi + 4], 0x10
jae 0x452950
mov rdx, qword [rdi + 8]
mov rcx, rbx
call fcn.00425ea0
bt dword [rdi + 4], 0xb
jae 0x452965
mov rdx, qword [rdi + 0x20]
mov rcx, rbx
call fcn.004353b0
jmp 0x452971
mov rdx, qword [rdi + 0x20]
mov rcx, rbx
call fcn.00445760
bt dword [rdi + 4], 0xf
jb 0x452983
mov rdx, rdi
mov rcx, rbx
call fcn.00425ea0
mov rdi, qword [rsi + 0x68]
test rdi, rdi
je 0x4529f1
bt dword [rdi + 4], 0xe
jb 0x4529df
mov rdx, qword [rdi + 0x10]
mov rcx, rbx
call fcn.00445010
mov rdx, qword [rdi + 0x18]
mov rcx, rbx
call fcn.00445010
bt dword [rdi + 4], 0x10
jae 0x4529be
mov rdx, qword [rdi + 8]
mov rcx, rbx
call fcn.00425ea0
bt dword [rdi + 4], 0xb
jae 0x4529d3
mov rdx, qword [rdi + 0x20]
mov rcx, rbx
call fcn.004353b0
jmp 0x4529df
mov rdx, qword [rdi + 0x20]
mov rcx, rbx
call fcn.00445760
bt dword [rdi + 4], 0xf
jb 0x4529f1
mov rdx, rdi
mov rcx, rbx
call fcn.00425ea0
mov rdx, qword [rsi + 0x70]
mov rcx, rbx
call fcn.00433b40
mov rdx, rsi
mov rcx, rbx
call fcn.00425ea0
mov rdx, qword [rbp + 0x30]
mov rcx, rbx
call fcn.00445760
mov rdx, rbp
mov rcx, rbx
call fcn.00436870
test rbx, rbx
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
je 0x452a8a
cmp qword [rbx + 0x320], 0
je 0x452a51
mov rdx, rbp
mov rcx, rbx
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
add rsp, 0x38
jmp fcn.00425e50
cmp rbp, qword [rbx + 0x168]
jb 0x452a8a
cmp rbp, qword [rbx + 0x170]
jae 0x452a8a
mov rax, qword [rbx + 0x160]
mov qword [rbp], rax
dec dword [rbx + 0x14c]
mov qword [rbx + 0x160], rbp
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
add rsp, 0x38
ret
cmp dword [reloc.WS2_32.dll_accept], 0
je 0x452b1c
mov rcx, qword [0x00772b88]
test rcx, rcx
je 0x452aa9
call qword [0x0072d0f8]
mov rcx, rbp
call qword [0x0072d0b0]
mov ecx, dword [0x00772960]
neg eax
add ecx, eax
mov eax, dword [0x00772988]
cmp ecx, eax
mov dword [0x00772960], ecx
cmovg eax, ecx
mov ecx, dword [0x00772984]
dec ecx
mov dword [0x00772988], eax
mov eax, dword [0x007729ac]
cmp ecx, eax
mov dword [0x00772984], ecx
cmovg eax, ecx
mov rcx, rbp
mov dword [0x007729ac], eax
call qword [0x0072d0a0]
mov rcx, qword [0x00772b88]
test rcx, rcx
je 0x452b25
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
add rsp, 0x38
jmp qword [0x0072d108]
mov rcx, rbp
call qword [0x0072d0a0]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
add rsp, 0x38
ret