Function at 0x203d44e0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov esi, r9d
test ecx, ecx
je 0x203d459f
test edx, edx
je 0x203d463d
movzx ecx, byte [0x2059e02d]
mov edx, esi
xor edx, 0xb6f67bef
mov eax, dword [0x2059eb14]
add eax, esi
add eax, 0xffff2951
cdqe
add rax, qword [0x2059eb48]
call qword [case.0x2010e313.0]
test al, 1
jne 0x203d47b3
mov bl, 0x54
mov edi, 0xd9a99bdf
nop dword [rax]
mov al, 0x5a
lock cmpxchg byte [0x2059e02d], bl
je 0x203d474e
mov edx, dword [0x2059f3b8]
add edx, edi
xor edx, esi
mov ecx, dword [0x2059eb04]
add ecx, esi
mov r8d, 0xc9a4a3fb
sub r8d, ecx
mov ecx, r8d
xor ecx, 0x365c32b4
and r8d, 0x365c32b4
lea ecx, [rcx + r8*2]
neg ecx
movsxd r8, ecx
add r8, qword [0x2059eb60]
mov ecx, eax
mov rax, r8
call qword [case.0x2010e313.0]
test al, 1
je 0x203d4540
jmp 0x203d47b3
mov eax, 0xac65a43e
add eax, dword [0x2059f3b8]
cmp edx, eax
jne 0x203d46ee
movzx eax, byte [0x2059df07]
cmp al, 0x44
je 0x203d4916
mov ebx, esi
xor ebx, 0xd5bd1cf
lea rdi, [rsp + 0x40]
mov ebp, esi
xor ebp, 0x2fc9d562
nop word cs:[rax + rax]
mov eax, dword [0x2059eb00]
add eax, esi
add eax, 0xffff2951
cdqe
add rax, qword [0x2059eb40]
mov rcx, rdi
mov edx, ebx
call qword [case.0x2010e313.0]
test al, 1
jne 0x203d4857
movzx ecx, byte [rsp + 0x40]
mov eax, dword [0x2059eb20]
add eax, esi
mov edx, dword [0x2059f3b8]
add eax, edx
add eax, 0xac64cd8f
cdqe
add rax, qword [0x2059eb30]
mov edx, ebp
call qword [case.0x2010e313.0]
test al, 1
je 0x203d45e0
jmp 0x203d4916
mov eax, 0xc6c7cf76
add eax, dword [0x2059f3b8]
mov ecx, eax
xor ecx, eax
not ecx
and ecx, esi
xor ecx, eax
mov eax, dword [0x2059eb10]
add eax, esi
add eax, 0xffff2951
cdqe
add rax, qword [0x2059eb68]
call qword [case.0x2010e313.0]
test al, 1
jne 0x203d484b
mov bl, 0xdd
mov ebp, 0xea6976e0
lea rdi, [rsp + 0x40]
nop word cs:[rax + rax]
mov al, 0x5c
lock cmpxchg byte [0x2059df69], bl
sete dl
mov ecx, dword [0x2059f3b8]
add ecx, ebp
mov r9d, ecx
xor r9d, ecx
not r9d
and r9d, esi
xor r9d, ecx
mov ecx, dword [0x2059eb28]
add ecx, esi
add ecx, 0xffff2951
movsxd r10, ecx
add r10, qword [0x2059eb50]
mov ecx, eax
mov r8, rdi
mov rax, r10
call qword [case.0x2010e313.0]
test al, 1
jne 0x203d47bf
cmp byte [rsp + 0x40], 0xb6
jne 0x203d4690
jmp 0x203d484b
movzx eax, byte [0x2059e7bd]
cmp al, 0x2c
je 0x203d497f
mov bl, 0xdd
mov edi, esi
xor edi, 0x1638096a
nop word [rax + rax]
mov al, 0x89
lock cmpxchg byte [0x2059e7bd], bl
je 0x203d491f
mov ecx, dword [0x2059eb1c]
add ecx, esi
add ecx, 0xffff2951
movsxd r8, ecx
add r8, qword [0x2059eb58]
mov ecx, eax
mov edx, edi
mov rax, r8
call qword [case.0x2010e313.0]
test al, 1
je 0x203d4710
jmp 0x203d497f
xor ecx, ecx
lea rbx, [0x2059e020]
lea r14, [0x20493cc0]
mov ebp, esi
xor ebp, 0x4a2e0403
lea rdi, [rsp + 0x40]
nop dword [rax + rax]
movsxd r8, ecx
lea rdx, [rbx + r8]
movzx ecx, byte [r8 + rbx]
add cl, byte [r8 + r14]
mov eax, dword [0x2059eb08]
add eax, esi
add eax, 0xffff2951
cdqe
add rax, qword [0x2059eb38]
mov dword [rsp + 0x20], ebp
mov r9, rdi
call qword [case.0x2010e313.0]
mov ecx, dword [rsp + 0x40]
test al, 1
je 0x203d4770
mov al, 0x6b
xchg byte [0x2059e02d], al
lea rax, [0x2059e020]
jmp 0x203d4986
xor edi, edi
lea r15, [0x2059df50]
mov ebp, esi
xor ebp, 0xa9e077bc
lea rbx, [rsp + 0x3f]
lea r14, [rsp + 0x40]
lea r12, [0x20493bf0]
nop word cs:[rax + rax]
lea rcx, [r15 + rdi]
mov eax, dword [0x2059eb0c]
mov edx, esi
sub edx, dword [0x2059f3b8]
add eax, edx
add eax, 0x53998513
cdqe
add rax, qword [0x2059eb80]
mov dword [rsp + 0x20], ebp
mov edx, edi
mov r8, rbx
mov r9, r14
call qword [case.0x2010e313.0]
movzx eax, byte [rsp + 0x3f]
mov rcx, qword [rsp + 0x40]
add al, byte [rcx + r12]
mov byte [rdi + r15], al
lea eax, [rdi + 1]
cmp eax, 0x18
jg 0x203d4843
inc rdi
jmp 0x203d47f0
mov al, 0xb6
xchg byte [0x2059df69], al
lea rax, [0x2059df50]
jmp 0x203d4986
xor ebp, ebp
mov ebx, esi
xor ebx, 0xd9737a6a
lea r12, [0x2059df00]
mov r13d, esi
xor r13d, 0x3d470438
lea r14, [rsp + 0x3f]
nop word [rax + rax]
mov eax, dword [0x2059eb18]
add eax, esi
add eax, 0xffff2951
cdqe
add rax, qword [0x2059eb70]
mov ecx, ebp
mov rdx, rdi
mov r8d, ebx
call qword [case.0x2010e313.0]
mov rax, qword [rsp + 0x40]
movzx ecx, byte [rax + r12]
movsxd r15, ebp
lea rax, [0x20493ba0]
movzx edx, byte [r15 + rax]
mov eax, dword [0x2059eb24]
add eax, esi
add eax, 0xffff2951
cdqe
add rax, qword [0x2059eb78]
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], rdi
mov r8d, r15d
mov r9, r14
call qword [case.0x2010e313.0]
movzx eax, byte [rsp + 0x3f]
mov rcx, qword [rsp + 0x40]
mov byte [rcx + r12], al
mov eax, r15d
xor eax, 1
and r15d, 1
lea ebp, [rax + r15*2]
cmp ebp, 7
jl 0x203d4880
mov al, 0x44
xchg byte [0x2059df07], al
lea rax, [0x2059df00]
jmp 0x203d4986
xor eax, eax
lea rcx, [0x2059e7b0]
lea rdx, [0x204943d0]
nop
movzx r8d, byte [rax + rcx]
movzx r9d, byte [rax + rdx]
mov r10d, r8d
not r10b
mov r11d, r10d
xor r11b, r9b
not r9b
mov ebx, r8d
and bl, r9b
or bl, r11b
not bl
xor r9b, r10b
and r9b, r8b
or r9b, bl
mov byte [rax + rcx], r9b
lea r8d, [rax + 1]
cmp r8d, 0xc
jg 0x203d4970
inc rax
jmp 0x203d4930
movzx eax, byte [0x2059f3bc]
add al, 0xd8
xchg byte [0x2059e7bd], al
lea rax, [0x2059e7b0]
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret