Function at 0x180044700
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], r9
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x28
mov rax, qword [rsp + 0x70]
mov rbx, rdx
mov rbp, rcx
mov r11d, r8d
mov rsi, r9
movzx ecx, byte [rax]
lea rdx, [rax + 1]
movzx eax, byte [rax + 2]
shl eax, 0x10
cmp dword [rsp + 0x78], 0
je 0x180044956
movzx r10d, byte [rdx]
lea edi, [r11 - 8]
movzx r8d, byte [rdx + 3]
shl r10d, 8
or r10d, ecx
movzx ecx, byte [rdx + 6]
or r10d, eax
shl ecx, 8
movzx eax, byte [rdx + 2]
shl eax, 0x18
or r10d, eax
movzx eax, byte [rdx + 4]
shl eax, 8
or r8d, eax
movzx eax, byte [rdx + 5]
or ecx, eax
shl ecx, 0x10
or r8d, ecx
test edi, edi
js 0x180044861
mov esi, r11d
shr rsi, 3
mov eax, esi
neg eax
lea edi, [rdi + rax*8]
mov dword [rsp + 0x78], edi
mov rdi, qword [rsp + 0x68]
nop dword [rax]
nop dword [rax + rax]
movzx edx, byte [rbp]
movzx ecx, byte [rbp + 4]
movzx eax, byte [rbp + 1]
shl eax, 8
or edx, eax
movzx eax, byte [rbp + 2]
shl eax, 0x10
or edx, eax
movzx eax, byte [rbp + 3]
shl eax, 0x18
or edx, eax
movzx eax, byte [rbp + 5]
shl eax, 8
xor edx, r10d
or ecx, eax
mov dword [rsp + 0x70], edx
movzx eax, byte [rbp + 6]
mov rdx, rdi
shl eax, 0x10
or ecx, eax
movzx eax, byte [rbp + 7]
shl eax, 0x18
add rbp, 8
or ecx, eax
xor ecx, r8d
mov r8d, 1
mov dword [rsp + 0x74], ecx
lea rcx, [rsp + 0x70]
call sym.version.dll_DES_encrypt1
mov r10d, dword [rsp + 0x70]
mov eax, r10d
mov r8d, dword [rsp + 0x74]
shr eax, 8
mov byte [rbx], r10b
mov byte [rbx + 1], al
mov eax, r10d
shr eax, 0x10
mov byte [rbx + 2], al
mov eax, r10d
shr eax, 0x18
mov byte [rbx + 3], al
mov eax, r8d
shr eax, 8
mov byte [rbx + 5], al
mov eax, r8d
shr eax, 0x10
mov byte [rbx + 6], al
mov eax, r8d
shr eax, 0x18
mov byte [rbx + 7], al
mov byte [rbx + 4], r8b
add rbx, 8
sub rsi, 1
jne 0x1800447a0
mov edi, dword [rsp + 0x78]
mov rsi, qword [rsp + 0x68]
cmp edi, 0xfffffff8
je 0x180044b7e
lea eax, [rdi + 8]
add edi, 7
movsxd rcx, eax
add rbp, rcx
xor ecx, ecx
mov edx, ecx
cmp edi, 7
ja case.default.0x180044894
lea r9, [0x180000000]
movsxd rax, edi
mov eax, dword [r9 + rax*4 + 0x44b88]
add rax, r9
jmp rax
movzx ecx, byte [rbp - 1]
dec rbp
shl ecx, 0x18
movzx eax, byte [rbp - 1]
dec rbp
shl eax, 0x10
or ecx, eax
movzx eax, byte [rbp - 1]
dec rbp
shl eax, 8
or ecx, eax
movzx eax, byte [rbp - 1]
dec rbp
or ecx, eax
movzx edx, byte [rbp - 1]
dec rbp
shl edx, 0x18
movzx eax, byte [rbp - 1]
dec rbp
shl eax, 0x10
or edx, eax
movzx eax, byte [rbp - 1]
dec rbp
shl eax, 8
or edx, eax
movzx eax, byte [rbp - 1]
or edx, eax
xor ecx, r8d
xor edx, r10d
mov dword [rsp + 0x70], edx
mov r8d, 1
mov dword [rsp + 0x74], ecx
mov rdx, rsi
lea rcx, [rsp + 0x70]
call sym.version.dll_DES_encrypt1
mov ecx, dword [rsp + 0x70]
movzx eax, byte [rsp + 0x70]
mov byte [rbx], al
mov eax, ecx
shr eax, 8
mov byte [rbx + 1], al
mov eax, ecx
shr eax, 0x10
mov byte [rbx + 2], al
movzx eax, byte [rsp + 0x74]
mov byte [rbx + 4], al
shr ecx, 0x18
mov byte [rbx + 3], cl
mov ecx, dword [rsp + 0x74]
mov eax, ecx
shr eax, 8
mov byte [rbx + 5], al
mov eax, ecx
shr eax, 0x10
shr ecx, 0x18
mov byte [rbx + 7], cl
mov byte [rbx + 6], al
add rsp, 0x28
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov qword [rsp + 0x50], r12
lea r12d, [r11 - 8]
mov qword [rsp + 0x58], r13
movzx r13d, byte [rdx + 3]
mov qword [rsp + 0x60], r14
movzx r14d, byte [rdx]
shl r14d, 8
or r14d, ecx
movzx ecx, byte [rdx + 6]
or r14d, eax
shl ecx, 8
movzx eax, byte [rdx + 2]
shl eax, 0x18
or r14d, eax
movzx eax, byte [rdx + 4]
shl eax, 8
or r13d, eax
movzx eax, byte [rdx + 5]
or ecx, eax
shl ecx, 0x10
or r13d, ecx
test r12d, r12d
js 0x180044a8c
mov qword [rsp + 0x20], r15
mov r15, r11
shr r15, 3
mov eax, r15d
neg eax
lea r12d, [r12 + rax*8]
mov dword [rsp + 0x78], r12d
mov r12, qword [rsp + 0x68]
nop dword [rax + rax]
movzx eax, byte [rbp + 1]
lea rcx, [rsp + 0x70]
movzx esi, byte [rbp]
xor r8d, r8d
movzx edi, byte [rbp + 4]
mov rdx, r12
shl eax, 8
or esi, eax
movzx eax, byte [rbp + 2]
shl eax, 0x10
or esi, eax
movzx eax, byte [rbp + 3]
shl eax, 0x18
or esi, eax
movzx eax, byte [rbp + 5]
shl eax, 8
or edi, eax
mov dword [rsp + 0x70], esi
movzx eax, byte [rbp + 6]
shl eax, 0x10
or edi, eax
movzx eax, byte [rbp + 7]
shl eax, 0x18
add rbp, 8
or edi, eax
mov dword [rsp + 0x74], edi
call sym.version.dll_DES_encrypt1
mov ecx, dword [rsp + 0x70]
mov edx, dword [rsp + 0x74]
xor ecx, r14d
mov byte [rbx], cl
xor edx, r13d
mov eax, ecx
mov byte [rbx + 4], dl
shr eax, 8
mov r14d, esi
mov byte [rbx + 1], al
mov r13d, edi
mov eax, ecx
shr ecx, 0x18
shr eax, 0x10
mov byte [rbx + 2], al
mov eax, edx
shr eax, 8
mov byte [rbx + 5], al
mov eax, edx
shr eax, 0x10
shr edx, 0x18
mov byte [rbx + 6], al
mov byte [rbx + 3], cl
mov byte [rbx + 7], dl
add rbx, 8
sub r15, 1
jne 0x1800449d0
mov r12d, dword [rsp + 0x78]
mov rsi, qword [rsp + 0x68]
mov r15, qword [rsp + 0x20]
cmp r12d, 0xfffffff8
je case.default.0x180044b25
movzx ecx, byte [rbp]
xor r8d, r8d
movzx edx, byte [rbp + 4]
movzx eax, byte [rbp + 1]
shl eax, 8
or ecx, eax
movzx eax, byte [rbp + 2]
shl eax, 0x10
or ecx, eax
movzx eax, byte [rbp + 3]
shl eax, 0x18
or ecx, eax
movzx eax, byte [rbp + 5]
mov dword [rsp + 0x70], ecx
movzx ecx, byte [rbp + 7]
shl ecx, 8
shl eax, 8
or edx, eax
movzx eax, byte [rbp + 6]
or ecx, eax
shl ecx, 0x10
or ecx, edx
mov rdx, rsi
mov dword [rsp + 0x74], ecx
lea rcx, [rsp + 0x70]
call sym.version.dll_DES_encrypt1
mov edx, dword [rsp + 0x70]
lea eax, [r12 + 8]
mov r8d, dword [rsp + 0x74]
xor edx, r14d
movsxd rcx, eax
xor r8d, r13d
add rbx, rcx
add r12d, 7
cmp r12d, 7
ja case.default.0x180044b25
lea r9, [0x180000000]
movsxd rax, r12d
mov eax, dword [r9 + rax*4 + 0x44ba8]
add rax, r9
jmp rax
dec rbx
mov eax, r8d
shr eax, 0x18
mov byte [rbx], al
dec rbx
mov eax, r8d
shr eax, 0x10
mov byte [rbx], al
dec rbx
mov eax, r8d
shr eax, 8
mov byte [rbx], al
dec rbx
mov byte [rbx], r8b
dec rbx
mov eax, edx
shr eax, 0x18
mov byte [rbx], al
dec rbx
mov eax, edx
shr eax, 0x10
mov byte [rbx], al
dec rbx
mov eax, edx
shr eax, 8
mov byte [rbx], al
mov byte [rbx - 1], dl
mov r13, qword [rsp + 0x58]
mov r12, qword [rsp + 0x50]
mov r14, qword [rsp + 0x60]
add rsp, 0x28
pop rdi
pop rsi
pop rbp
pop rbx
ret