Function at 0x18009c331
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov ebp, esp
cmp dword [0x180508767], 0
je 0x18009c34c
call fcn.18009c121
mov dword [0x180508778], 0
mov eax, dword [rbp + 8]
mov ecx, dword [rbp + 0xc]
push rbx
push rsi
xor edx, edx
mov dword [rax + 0x200], send
add ecx, 2
push rdi
movzx esi, byte [rcx - 2]
movzx edi, byte [rcx - 1]
shl esi, 8
or esi, edi
movzx edi, byte [rcx]
shl esi, 8
or esi, edi
movzx edi, byte [rcx + 1]
shl esi, 8
or esi, edi
mov dword [rax + rdx*4], esi
add ecx, 4
cmp edx, 8
jl 0x18009c364
mov ebx, 0x46f380
mov esi, dword [rax + 0x1c]
mov ecx, esi
shr ecx, 0x10
movzx edx, cl
mov ecx, dword [rdx*4 + 0x46e780]
shl ecx, 8
mov edi, dword [rax + 0xc]
mov edx, esi
shr edx, 8
movzx edx, dl
xor ecx, dword [rdx*4 + 0x46e780]
movzx edx, byte [rax + 0x1c]
shl ecx, 8
xor ecx, dword [rdx*4 + 0x46e780]
mov edx, esi
shl ecx, 8
shr edx, 0x18
xor ecx, dword [rdx*4 + 0x46e780]
mov edx, dword [rax + 4]
xor ecx, dword [rax]
add ebx, 4
xor ecx, dword [rbx - 4]
add eax, 0x20
xor edx, ecx
mov dword [rax], ecx
mov ecx, dword [rax - 0x18]
xor ecx, edx
xor edi, ecx
mov dword [rax + 4], edx
mov dword [rax + 8], ecx
mov dword [rax + 0xc], edi
mov ecx, edi
shr ecx, 0x18
mov ecx, dword [rcx*4 + 0x46e780]
shl ecx, 8
mov edx, edi
shr edx, 0x10
movzx edx, dl
xor ecx, dword [rdx*4 + 0x46e780]
mov edx, edi
shr edx, 8
shl ecx, 8
movzx edx, dl
xor ecx, dword [rdx*4 + 0x46e780]
movzx edx, byte [rax + 0xc]
shl ecx, 8
xor ecx, dword [rdx*4 + 0x46e780]
mov edx, dword [rax - 0xc]
xor ecx, dword [rax - 0x10]
xor edx, ecx
mov dword [rax + 0x10], ecx
mov ecx, dword [rax - 8]
xor ecx, edx
xor esi, ecx
mov dword [rax + 0x14], edx
mov dword [rax + 0x18], ecx
mov dword [rax + 0x1c], esi
cmp ebx, 0x46f39c
jl 0x18009c393
cmp dword [0x1805088f1], 0
je 0x18009c573
xor ecx, ecx
lea esp, [rsp]
mov edx, dword [rcx + 0x46e780]
add edx, edx
mov esi, dword [rdx + rdx + 0x4703c0]
add edx, edx
mov dword [rcx + 0x46fbc0], esi
mov esi, dword [rdx + 0x46ffc0]
mov dword [rcx + 0x46f7c0], esi
mov esi, dword [rdx + 0x46ef80]
mov edx, dword [rdx + 0x46eb80]
mov dword [rcx + 0x471bc0], edx
mov edx, dword [rcx + 0x46e784]
add edx, edx
add edx, edx
mov dword [rcx + 0x46f3c0], esi
mov esi, dword [rdx + 0x4703c0]
mov dword [rcx + 0x46fbc4], esi
mov esi, dword [rdx + 0x46ffc0]
mov dword [rcx + 0x46f7c4], esi
mov esi, dword [rdx + 0x46ef80]
mov edx, dword [rdx + 0x46eb80]
mov dword [rcx + 0x471bc4], edx
mov edx, dword [rcx + 0x46e788]
add edx, edx
add edx, edx
mov dword [rcx + 0x46f3c4], esi
mov esi, dword [rdx + 0x4703c0]
mov dword [rcx + 0x46fbc8], esi
mov esi, dword [rdx + 0x46ffc0]
mov dword [rcx + 0x46f7c8], esi
mov esi, dword [rdx + 0x46ef80]
mov edx, dword [rdx + 0x46eb80]
mov dword [rcx + 0x471bc8], edx
mov edx, dword [rcx + 0x46e78c]
add edx, edx
add edx, edx
mov dword [rcx + 0x46f3c8], esi
mov esi, dword [rdx + 0x4703c0]
mov dword [rcx + 0x46fbcc], esi
mov esi, dword [rdx + 0x46ffc0]
mov dword [rcx + 0x46f7cc], esi
mov esi, dword [rdx + 0x46ef80]
mov edx, dword [rdx + 0x46eb80]
mov dword [rcx + 0x46f3cc], esi
mov dword [rcx + 0x471bcc], edx
add ecx, 0x10
cmp ecx, 0x400
jl 0x18009c471
mov dword [0x1805089ff], 0
mov esi, dword [rax]
mov edx, dword [rbp + 8]
mov dword [rdx + 0x100], esi
mov esi, dword [rax + 4]
lea ecx, [rdx + 0x100]
mov dword [rcx + 4], esi
mov esi, dword [rax + 8]
mov dword [rcx + 8], esi
mov esi, dword [rax + 0xc]
mov dword [rcx + 0xc], esi
mov edi, 1
add ecx, 0x10
add eax, 0x10
cmp dword [rdx + 0x200], edi
jle 0x18009c6b2
lea esp, [rsp]
mov esi, dword [rax - 0x20]
mov ebx, esi
shr ebx, 0x10
movzx ebx, bl
mov edx, esi
shr edx, 0x18
mov edx, dword [rdx*4 + 0x46fbc0]
xor edx, dword [rbx*4 + 0x46f7c0]
mov ebx, esi
shr ebx, 8
movzx esi, bl
xor edx, dword [rsi*4 + 0x46f3c0]
movzx esi, byte [rax - 0x20]
xor edx, dword [rsi*4 + 0x471bc0]
mov dword [r9], r10d
mov esi, dword [rax - 0x1c]
mov ebx, esi
shr ebx, 0x10
movzx ebx, bl
mov edx, esi
shr edx, 0x18
mov edx, dword [rdx*4 + 0x46fbc0]
xor edx, dword [rbx*4 + 0x46f7c0]
mov ebx, esi
shr ebx, 8
movzx esi, bl
xor edx, dword [rsi*4 + 0x46f3c0]
movzx esi, byte [rax - 0x1c]
xor edx, dword [rsi*4 + 0x471bc0]
add ecx, 0x10
mov dword [rcx - 0xc], edx
mov esi, dword [rax - 0x18]
mov ebx, esi
shr ebx, 0x10
mov edx, esi
shr edx, 0x18
mov edx, dword [rdx*4 + 0x46fbc0]
movzx ebx, bl
xor edx, dword [rbx*4 + 0x46f7c0]
mov ebx, esi
shr ebx, 8
movzx esi, bl
xor edx, dword [rsi*4 + 0x46f3c0]
movzx esi, byte [rax - 0x18]
xor edx, dword [rsi*4 + 0x471bc0]
add eax, 0xfffffff0
mov dword [rcx - 8], edx
mov esi, dword [rax - 4]
mov ebx, esi
shr ebx, 0x10
mov edx, esi
shr edx, 0x18
mov edx, dword [rdx*4 + 0x46fbc0]
movzx ebx, bl
xor edx, dword [rbx*4 + 0x46f7c0]
mov ebx, esi
shr ebx, 8
movzx esi, bl
xor edx, dword [rsi*4 + 0x46f3c0]
movzx esi, byte [rax - 4]
xor edx, dword [rsi*4 + 0x471bc0]
mov dword [rcx - 4], edx
mov edx, dword [rbp + 8]
cmp edi, dword [rdx + 0x200]
jl 0x18009c5b1
mov edx, dword [rax - 0x20]
mov dword [rcx], edx
mov edx, dword [rax - 0x1c]
mov dword [rcx + 4], edx
mov edx, dword [rax - 0x18]
mov dword [rcx + 8], edx
mov eax, dword [rax - 0x14]
pop rdi
pop rsi
mov dword [rcx + 0xc], eax
xor eax, eax
pop rbx
pop rbp
ret