Function at 0x20221e00
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
test ecx, ecx
je 0x20221e45
test edx, edx
je 0x20221e63
movzx eax, byte [0x2055f049]
cmp al, 0x8d
je 0x20221f4c
mov cl, 0xbf
nop word cs:[rax + rax]
mov al, 0xb3
lock cmpxchg byte [0x2055f049], cl
je 0x20221eb9
cmp al, 0x8d
jne 0x20221e30
jmp 0x20221f4c
test edx, edx
je 0x20221e77
mov eax, dword [0x205b4760]
lea ecx, [rax - 1]
imul ecx, eax
test cl, 1
jne 0x20221ffb
jmp 0x20221fe9
mov eax, dword [0x205b4764]
cmp eax, 0x29
jle 0x20222160
jmp 0x20222172
movzx eax, byte [0x2055f09d]
movzx ecx, byte [0x20560dd0]
add cl, 0x92
cmp al, cl
je 0x20221fd5
mov cl, 0xd2
nop word cs:[rax + rax]
mov al, 0xb3
lock cmpxchg byte [0x2055f09d], cl
je 0x20221f58
cmp al, 0xe7
jne 0x20221ea0
jmp 0x20221fd5
mov edx, 1
mov r8d, 0xfffffffe
xor r9d, r9d
lea r10, [0x2055f040]
lea r11, [0x20477120]
nop word cs:[rax + rax]
mov eax, dword [0x205b4764]
cmp eax, 0x61
jg 0x20221f0a
nop dword [rax + rax]
movzx eax, byte [r9 + r11]
xor byte [r9 + r10], al
mov eax, dword [0x205b4760]
lea ecx, [rax - 1]
imul ecx, eax
test cl, 1
je 0x20221f30
movzx eax, byte [r9 + r10]
movzx ecx, byte [r9 + r11]
shl al, cl
sub al, cl
mul cl
xor al, cl
mov byte [r9 + r10], al
jmp 0x20221ef0
lea eax, [r9 + 1]
cmp eax, 8
jg 0x20221f44
inc r9
dec edx
add r8d, 2
jmp 0x20221ee0
mov al, 0x8d
xchg byte [0x2055f049], al
lea rax, [0x2055f040]
jmp 0x20221fdc
xor eax, eax
lea rcx, [0x2055f090]
lea rdx, [0x20477160]
nop dword [rax + rax]
movzx r8d, byte [rax + rdx]
xor byte [rax + rcx], r8b
lea r8d, [rax + 1]
cmp r8d, 0xc
jg 0x20221f88
inc rax
jmp 0x20221f70
mov eax, dword [0x205b4764]
cmp eax, 0x45
jge 0x20221fc0
mov al, 0xe7
xchg byte [0x2055f09d], al
mov ecx, dword [0x205b4760]
lea eax, [rcx - 1]
imul eax, ecx
mov ecx, 0x136d98e0
add ecx, dword [0x20560dd4]
xor edx, edx
div ecx
test edx, edx
je 0x20221fd5
nop word [rax + rax]
mov al, 0xe7
xchg byte [0x2055f09d], al
mov eax, dword [0x205b4764]
cmp eax, 0xb
jge 0x20221fc0
jmp 0x20221f93
lea rax, [0x2055f090]
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
movzx eax, byte [0x2055f394]
mov ecx, dword [0x205b4764]
cmp ecx, 0x5a
jle 0x20222004
movzx eax, byte [0x2055f394]
jmp 0x20221fe9
cmp al, 0x5b
je 0x20222154
mov bl, 0x89
mov edi, 0x136d98df
lea r14, [fcn.20221e00]
lea ebp, [r14 + r14]
add ebp, 0x3b80
mov r15d, 0x136d98e9
lea rsi, [0x20223660]
jmp 0x2022207d
mov al, 1
lock cmpxchg byte [0x2055f394], bl
mov ecx, dword [0x20560dd4]
add ecx, r15d
call fcn.20407ac4
mov qword [0x205b4700], rax
mov rcx, rsi
call fcn.20427ec0
mov eax, dword [0x20560dd4]
add eax, edi
lea ecx, [r14 + r14]
add ecx, 0x4140
test ecx, eax
je 0x202220a5
mov ecx, dword [0x205b4760]
lea eax, [rcx - 1]
imul eax, ecx
mov ecx, dword [0x20560dd4]
lea r8d, [rcx + 0x136d98e0]
xor edx, edx
div r8d
add ecx, 0x136d98de
cmp edx, ecx
jne 0x20222040
mov al, 1
lock cmpxchg byte [0x2055f394], bl
sete cl
mov edx, dword [0x20560dd4]
add edx, edi
test ebp, edx
jne 0x20222040
test cl, cl
jne 0x202220d5
movzx ecx, byte [0x20560dd0]
add cl, 6
cmp al, cl
jne 0x2022207d
jmp 0x20222154
xor edx, edx
lea rax, [0x2055f380]
lea rcx, [0x20477450]
nop word cs:[rax + rax]
movsxd rdx, edx
movzx r8d, byte [rdx + rcx]
add byte [rdx + rax], r8b
mov r8d, edx
xor r8d, 1
and edx, 1
lea edx, [r8 + rdx*2]
mov r8d, dword [0x20560dd4]
mov r9d, r8d
xor r9d, 0x136d98f2
and r8d, 0x136d98f2
lea r8d, [r9 + r8*2]
cmp edx, r8d
jl 0x202220f0
mov al, 1
nop dword [rax]
mov ecx, dword [0x205b4764]
cmp ecx, 0x15
jg 0x20222146
mov ecx, dword [0x205b4764]
cmp ecx, 0x2d
jle 0x2022214c
test al, al
je 0x20222130
jmp 0x2022213b
mov al, 0x5b
xchg byte [0x2055f394], al
lea rax, [0x2055f380]
jmp 0x20221fdc
movzx eax, byte [0x2055f1dd]
mov ecx, dword [0x205b4764]
cmp ecx, 0x10
jle 0x2022217b
movzx eax, byte [0x2055f1dd]
jmp 0x20222160
cmp al, 0xb
je 0x20222233
mov cl, 0xad
nop word cs:[rax + rax]
mov al, 0xe
lock cmpxchg byte [0x2055f1dd], cl
je 0x202221b0
cmp al, 0xb
jne 0x20222190
jmp 0x20222233
mov ecx, dword [0x205b4760]
mov edx, dword [0x20560dd4]
mov eax, ecx
sub eax, edx
add eax, 0xec926721
imul eax, ecx
mov ecx, edx
xor ecx, 0x136d98e0
and edx, 0x136d98e0
lea ecx, [rcx + rdx*2]
xor edx, edx
div ecx
test edx, edx
jne 0x202221b0
xor eax, eax
lea rcx, [0x2055f1d0]
lea rdx, [0x204772a0]
nop word cs:[rax + rax]
movzx r8d, byte [rax + rdx]
add byte [rax + rcx], r8b
lea r8d, [rax + 1]
cmp r8d, 0xc
jg 0x20222218
inc rax
jmp 0x20222200
mov eax, dword [0x205b4760]
nop
mov eax, dword [0x205b4764]
cmp eax, 0x48
jg 0x20222220
mov al, 0xb
xchg byte [0x2055f1dd], al
mov eax, 0x136d98de
nop dword [rax + rax]
mov ecx, dword [0x205b4760]
lea edx, [rcx - 1]
imul edx, ecx
test dl, 1
jne 0x20222262
mov ecx, dword [0x205b4760]
lea edx, [rcx - 1]
imul edx, ecx
test dl, 1
je 0x2022227f
mov ecx, dword [0x205b4760]
lea edx, [rcx - 1]
imul edx, ecx
and edx, 1
mov ecx, dword [0x20560dd4]
add ecx, eax
cmp edx, ecx
jne 0x20222240
jmp 0x20222251
lea rax, [0x2055f1d0]
jmp 0x20221fdc