Function at 0x140394fd0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov ebp, r9d
mov edi, dword [rsp + 0xc0]
test ecx, ecx
je 0x140395086
movzx eax, byte [0x14055e971]
nop dword [rax]
cmp al, 0xf
je 0x14039507a
movzx ecx, byte [0x14055f654]
mov edx, edi
not dl
mov r8d, edx
and r8b, 0x26
mov eax, edi
xor al, 0xd9
or al, r8b
not al
or al, r8b
add al, cl
and dl, 0x9b
mov r8d, edi
and r8b, 0x64
or r8b, dl
add r8b, cl
lock cmpxchg byte [0x14055e971], r8b
jne 0x140395000
mov ecx, ebp
xor ecx, 0x10c39cd1
mov edx, edi
xor edx, 0xc8ac9ae3
call fcn.140396030
mov eax, dword [0x14055f650]
mov ecx, edi
xor ecx, 0x96214ea9
mov edx, ecx
xor edx, eax
and ecx, eax
lea ecx, [rdx + rcx*2]
xor ecx, ebp
xor edi, 0x4595f555
mov edx, edi
call fcn.140395380
lea rax, [0x14055e960]
jmp 0x14039533d
mov eax, dword [0x14055f650]
mov ecx, edi
xor ecx, 0x41f384cf
mov r8d, ecx
xor r8d, eax
and ecx, eax
add ecx, ecx
mov eax, r8d
xor eax, ecx
and ecx, r8d
lea eax, [rax + rcx*2]
cmp edx, eax
jne 0x140395125
movzx ecx, byte [0x14055e93f]
mov eax, dword [0x14055f650]
mov edx, edi
xor edx, 0x3f2a5f2d
mov r8d, edi
xor r8d, edx
xor r8d, 0xc0d5a0d2
and r8d, eax
xor r8d, edx
and edx, eax
lea eax, [r8 + rdx*2]
mov edx, eax
xor edx, eax
not edx
and edx, ebp
xor edx, eax
mov eax, edi
xor eax, 0x692b8b3b
mov r12d, edi
not r12d
mov r8d, r12d
and r8d, edi
xor r8d, eax
call fcn.140395390
test al, 1
jne 0x1403952aa
mov cl, 0x14
nop word [rax + rax]
mov al, 0xb1
lock cmpxchg byte [0x14055e93f], cl
je 0x14039518f
cmp al, 0xea
jne 0x140395110
jmp 0x1403952aa
mov ecx, ebp
xor ecx, 0xc4a60565
mov edx, edi
xor edx, 0x93e0cd97
call fcn.140396080
test al, 1
jne 0x140395336
mov sil, 0xb5
mov r14d, edi
xor r14d, 0x14e2a6de
mov ebx, edi
xor ebx, 0x14cac712
nop word [rax + rax]
mov al, 0x32
lock cmpxchg byte [0x14055e949], sil
je 0x1403952b6
mov edx, dword [0x14055f650]
add edx, r14d
xor edx, ebp
mov ecx, eax
mov r8d, ebx
call fcn.140394f10
test al, 1
je 0x140395160
jmp 0x140395336
xor r15d, r15d
mov eax, r12d
and eax, 0xbb2e4726
mov ecx, edi
and ecx, 0x44d1b8d9
or ecx, eax
mov qword [rsp + 0x50], rcx
mov esi, ebp
not esi
mov eax, r12d
and eax, 0xf4f45e13
mov ecx, edi
and ecx, 0xb0ba1ec
or ecx, eax
mov dword [rsp + 0x4c], ecx
lea rbx, [rsp + 0x38]
mov eax, esi
and eax, 0xadd0ac19
mov ecx, ebp
and ecx, 0x522f53e6
or ecx, eax
mov dword [rsp + 0x48], ecx
mov eax, edi
xor eax, 0x14ef8784
mov dword [rsp + 0x44], eax
and r12d, 0x701517e8
mov r14d, edi
and r14d, 0x8feae817
or r14d, r12d
mov r13d, edi
xor r13d, 0xdf18ebf1
nop word cs:[rax + rax]
mov r9d, dword [0x14055f650]
mov rax, qword [rsp + 0x50]
lea r8d, [rax + r9]
not r8d
mov eax, esi
xor eax, r8d
and eax, esi
and r8d, ebp
or r8d, eax
add r9d, dword [rsp + 0x4c]
xor r9d, edi
mov ecx, r15d
mov rdx, rbx
call fcn.1403949b0
movzx r12d, byte [rsp + 0x38]
movsxd r15, r15d
lea rax, [0x14045fb00]
add r12b, byte [r15 + rax]
mov ecx, r15d
mov rdx, rbx
mov r8d, dword [rsp + 0x48]
mov r9d, dword [rsp + 0x44]
call fcn.140396000
mov rdx, qword [rsp + 0x38]
mov eax, dword [0x14055f650]
add eax, r14d
xor eax, ebp
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], eax
mov ecx, r12d
mov r8d, r15d
mov r9, rbx
call fcn.140394c20
mov r15d, dword [rsp + 0x38]
cmp r15d, 0xf
jl 0x140395210
mov al, 0xea
xchg byte [0x14055e93f], al
lea rax, [0x14055e930]
jmp 0x14039533d
xor ecx, ecx
lea rsi, [0x14055e940]
lea r14, [0x14045fb10]
mov r15d, ebp
xor r15d, 0x434b8767
mov r12d, edi
xor r12d, 0x2f8a4dc6
lea rbx, [rsp + 0x38]
nop
movsxd r8, ecx
lea rdx, [rsi + r8]
movzx ecx, byte [r8 + rsi]
add cl, byte [r8 + r14]
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r15d
mov r9, rbx
call fcn.140394e80
mov ecx, dword [rsp + 0x38]
test al, 1
je 0x1403952e0
xor ebp, 0x4d503308
mov edx, edi
not edx
mov eax, edi
xor eax, 0x8244da8a
and eax, edx
xor edi, 0x7dbb2575
and edx, 0x8244da8a
or edx, edi
not edx
or edx, eax
mov ecx, ebp
call fcn.140394f50
lea rax, [0x14055e940]
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret