Function at 0x4ace70
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xd8
call fcn.0055e9c0
sub rsp, rax
mov rax, qword [0x005ca070]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x108]
mov qword [rsp + 0xd0], rbx
mov qword [rsp + 0xc8], rbp
mov qword [rsp + 0xc0], rsi
mov qword [rsp + 0xb8], rdi
mov qword [rsp + 0xb0], r12
mov qword [rsp + 0xa8], r13
xor r13d, r13d
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x100]
mov qword [rsp + 0xa0], r14
mov qword [rsp + 0x98], r15
dec eax
mov r14d, r9d
mov qword [rsp + 0x48], r8
cmp eax, 0x29
mov dword [rsp + 0x30], edx
mov qword [rsp + 0x40], rcx
mov rsi, r13
mov r15d, r13d
jl 0x4ad11d
mov ebx, eax
sub ebx, r9d
jns 0x4acf16
lea r15d, [r13 + 1]
mov ebx, r13d
mov r14d, eax
lea edi, [rax - 0x14]
lea rdx, [0x005d9178]
mov r8d, 0x7b
lea ecx, [rdi + rax]
call fcn.004844e0
test rax, rax
mov rsi, rax
jne 0x4acf59
lea r9, [0x005d9190]
lea edx, [rax + 0x7a]
lea ecx, [rax + 4]
lea r8d, [rax + 0x41]
mov dword [rsp + 0x20], 0x7e
call fcn.0047c130
jmp 0x4ad14a
movsxd r12, edi
movsxd rbx, ebx
xor edx, edx
lea rbp, [r12 + rax]
mov r8, rbx
mov rcx, rbp
call sub.msvcrt.dll_memset
mov rdx, qword [rsp + 0x48]
lea rcx, [rbx + rbp]
movsxd r8, r14d
call fcn.004435a0
lea r14, [rbp + 0x14]
call fcn.004812b0
mov ebx, reloc.WS2_32.dll_sendto
lea rcx, [rsp + 0x50]
mov r9d, edi
mov r8, r14
mov edx, ebx
mov qword [rsp + 0x20], rax
call fcn.004ac9d0
test eax, eax
jne 0x4ad14a
lea rax, [rsp + 0x50]
mov r8, rbp
mov rdx, r13
sub r8, rax
nop
lea rcx, [rsp + rdx + 0x50]
add rdx, 5
movzx eax, byte [r8 + rcx]
xor byte [rcx], al
movzx eax, byte [rdx + rbp - 4]
xor byte [rcx + 1], al
movzx eax, byte [rdx + rbp - 3]
xor byte [rcx + 2], al
movzx eax, byte [rdx + rbp - 2]
xor byte [rcx + 3], al
movzx eax, byte [rdx + rbp - 1]
xor byte [rcx + 4], al
cmp rdx, rbx
jl 0x4acfc0
call fcn.004812b0
lea r8, [rsp + 0x50]
mov r9d, ebx
mov edx, edi
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.004ac9d0
test eax, eax
jne 0x4ad14a
test edi, edi
jle 0x4ad040
mov rcx, rsi
sub r14, rsi
mov rdx, r12
nop
nop
nop
movzx eax, byte [r14 + rcx]
inc rcx
xor byte [rcx - 1], al
dec rdx
jne 0x4ad030
call fcn.004812b0
movsxd rdx, dword [rsp + 0x110]
mov rcx, qword [rsp + 0x38]
lea r8, [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rax
call fcn.0049dc30
mov rcx, qword [rsi]
lea rax, [rsp + 0x68]
cmp rcx, qword [rax]
jne 0x4ad088
mov rcx, qword [rsi + 8]
cmp rcx, qword [rax + 8]
jne 0x4ad088
mov ecx, dword [rsi + 0x10]
cmp ecx, dword [rax + 0x10]
je 0x4ad090
sbb eax, eax
sbb eax, 0xffffffff
mov r13d, eax
test r13d, r13d
jne 0x4ad11d
test r15d, r15d
jne 0x4ad11d
cmp rbx, r12
mov rax, rbx
jge 0x4ad0b6
cmp byte [rax + rsi], 0
jne 0x4ad0b6
inc rax
inc ebx
cmp rax, r12
jl 0x4ad0a6
cmp ebx, edi
je 0x4ad11d
movsxd rax, ebx
cmp byte [rax + rsi], 1
jne 0x4ad11d
inc ebx
sub edi, ebx
cmp dword [rsp + 0x30], edi
jge 0x4ad0fe
mov edx, 0x7a
lea r9, [0x005d91a8]
mov dword [rsp + 0x20], 0xa6
lea ecx, [rdx - 0x76]
lea r8d, [rdx - 0xd]
call fcn.0047c130
mov rcx, rsi
mov edi, 0xffffffff
call fcn.004849b0
mov eax, edi
jmp 0x4ad14f
mov rcx, qword [rsp + 0x40]
movsxd rdx, ebx
movsxd r8, edi
add rdx, rsi
call fcn.004435a0
mov rcx, rsi
call fcn.004849b0
mov eax, edi
jmp 0x4ad14f
mov edx, 0x7a
lea r9, str..crypto_rsa_rsa_oaep.c
mov dword [rsp + 0x20], 0xb3
lea ecx, [rdx - 0x76]
lea r8d, [rdx - 1]
call fcn.0047c130
test rsi, rsi
je 0x4ad14a
mov rcx, rsi
call fcn.004849b0
mov eax, 0xffffffff
mov r15, qword [rsp + 0x98]
mov r14, qword [rsp + 0xa0]
mov r13, qword [rsp + 0xa8]
mov r12, qword [rsp + 0xb0]
mov rdi, qword [rsp + 0xb8]
mov rsi, qword [rsp + 0xc0]
mov rbp, qword [rsp + 0xc8]
mov rbx, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0x80]
call fcn.0055e990
add rsp, 0xd8
ret