Function at 0x140251a40
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
mov esi, edx
test ecx, ecx
je 0x140251a80
test esi, esi
je 0x140251b37
mov edx, dword [0x140518e6c]
lea ecx, [rdx + 0x1cc2f3a5]
add edx, 0xbda1fd2d
call fcn.1402535f0
test al, 1
jne 0x140251f05
jmp 0x140251f18
lea rdi, [rsp + 0x3c]
lea rbx, [rsp + 0x30]
nop word [rax + rax]
mov eax, dword [0x140560400]
lea ecx, [rax - 1]
imul ecx, eax
test cl, 1
jne 0x140251ab2
mov eax, dword [0x140560400]
lea ecx, [rax + 1]
imul ecx, eax
test cl, 1
je 0x140251adc
mov dword [rsp + 0x20], 0xa69bba7c
mov ecx, esi
mov rdx, rdi
mov r8, rbx
mov r9d, 0xd2c486ba
call fcn.1402537e0
mov eax, dword [rsp + 0x3c]
imul eax, dword [rsp + 0x30]
test al, 1
jne 0x140251a90
jmp 0x140251aa1
test esi, esi
je 0x140251bfb
movzx eax, byte [0x140518ac6]
movzx ecx, byte [0x140518e68]
add cl, 0x37
cmp al, cl
je 0x140251d8c
lea rsi, [rsp + 0x30]
nop word cs:[rax + rax]
mov rcx, rsi
mov edx, 0xbde63a25
mov r8d, 0xa106a4ca
call fcn.140253bb0
test al, 1
jne 0x140251cad
cmp byte [rsp + 0x30], 0x95
jne 0x140251b10
jmp 0x140251d8c
movzx eax, byte [0x140518bed]
cmp al, 0x1b
je 0x140251e1f
mov cl, 0x4f
nop dword [rax + rax]
cmp byte [0x14055f268], 0
jne 0x140251ba0
nop dword [rax]
movzx edx, byte [0x140518e68]
lea eax, [rdx + 0x44]
mov r8d, edx
xor r8b, 0xf1
and dl, 0x71
add dl, dl
add dl, r8b
lock cmpxchg byte [0x140518bed], dl
sete dl
mov r8d, dword [0x140560400]
lea r9d, [r8 - 1]
imul r9d, r8d
test r9b, 1
je 0x140251bc0
nop dword [rax]
mov al, 0xa2
lock cmpxchg byte [0x140518bed], cl
mov eax, dword [0x140560404]
cmp eax, 0x40
jge 0x140251ba0
jmp 0x140251b60
test dl, dl
jne 0x140251d25
mov edx, dword [0x140560400]
lea r8d, [rdx + 1]
imul r8d, edx
test r8b, 1
mov edx, dword [0x140560400]
lea r8d, [rdx - 1]
imul r8d, edx
test r8b, 1
jne 0x140251bda
cmp al, 0x1b
jne 0x140251b50
jmp 0x140251e1f
mov edx, dword [0x140518e6c]
lea ecx, [rdx + 0x61074d50]
add edx, 0xee86c39e
call fcn.140253650
test al, 1
jne 0x140251e83
xor edi, edi
mov bpl, 0x73
lea rsi, [rsp + 0x30]
nop word cs:[rax + rax]
test dil, dil
jne 0x140251ca0
nop word cs:[rax + rax]
mov al, 0xc8
lock cmpxchg byte [0x140518a20], bpl
mov ebx, eax
sete dl
mov dword [rsp + 0x20], 0x4107a4bc
mov ecx, eax
mov r8, rsi
mov r9d, 0x49730165
call fcn.140253420
test al, 1
je 0x140251ca0
test byte [rsp + 0x30], 1
jne 0x140251e2b
mov ecx, ebx
mov edx, 0x12d4da6d
mov r8d, 0xb0bd2b40
call fcn.140253c40
test al, 1
je 0x140251c30
jmp 0x140251e83
mov al, 0xc8
lock cmpxchg byte [0x140518a20], bpl
jmp 0x140251c40
xor esi, esi
lea r14, [0x140518ab0]
lea r15, [0x14042e830]
lea rdi, [rsp + 0x30]
mov ebp, 0xe0bbf804
nop word [rax + rax]
movzx ebx, byte [rsi + r14]
add bl, byte [rsi + r15]
mov rcx, rsi
mov rdx, rdi
mov r8d, 0x2cb3cfa8
mov r9d, 0x12b0413a
call fcn.1402535d0
mov rdx, qword [rsp + 0x30]
mov r9d, dword [0x140518e6c]
lea r8d, [r9 + 0x693062dc]
add r9d, 0x2e76ef8c
mov ecx, ebx
call fcn.14012dec0
lea eax, [rsi + 1]
mov ecx, dword [0x140518e6c]
add ecx, ebp
cmp eax, ecx
jge 0x140251d7d
inc rsi
jmp 0x140251cd0
xor esi, esi
lea rdi, [rsp + 0x3c]
lea rbx, [rsp + 0x30]
lea r14, [0x140518be0]
nop dword [rax + rax]
mov eax, dword [0x140518e6c]
lea r9d, [rax + 0x18e782af]
add eax, 0x9ba543ff
mov dword [rsp + 0x20], eax
mov ecx, esi
mov rdx, rdi
mov r8, rbx
call fcn.140253780
movzx eax, byte [rsp + 0x3c]
xor al, byte [rsp + 0x30]
mov byte [rsi + r14], al
lea eax, [rsi + 1]
cmp eax, 0xc
jg 0x140251d98
inc rsi
jmp 0x140251d40
mov ecx, 0x8032f6b7
mov edx, 0x7a6a19fd
call fcn.140253640
lea rax, [0x140518ab0]
jmp 0x140251ef6
mov eax, dword [0x140560404]
nop
mov eax, dword [0x140560404]
cmp eax, 0xd
jge 0x140251da0
lea rsi, [rsp + 0x30]
mov rcx, rsi
mov edx, 0x37508202
mov r8d, 0x3cedba49
call fcn.140253480
mov eax, dword [rsp + 0x30]
lea ecx, [rax - 1]
imul ecx, eax
test cl, 1
je 0x140251dfd
mov rcx, rsi
mov edx, 0x55c7cf3b
mov r8d, 0x23fad474
call fcn.140253ce0
mov ecx, dword [rsp + 0x30]
mov edx, 0x2280ebcb
mov r8d, 0x811cccea
call fcn.140253580
test al, 1
je 0x140251db0
mov al, 0x1b
xchg byte [0x140518bed], al
mov ecx, dword [0x140560404]
mov edx, 0x16b5781e
mov r8d, 0xe31856a3
call fcn.1402534c0
test al, 1
je 0x140251dd2
lea rax, [0x140518be0]
jmp 0x140251ef6
xor esi, esi
lea rdi, [rsp + 0x30]
lea rbx, [0x140518a10]
lea r14, [0x14042e7a0]
mov ecx, esi
mov rdx, rdi
mov r8d, 0xf614eeff
mov r9d, 0xf8947f3f
call fcn.1400aeef0
mov rax, qword [rsp + 0x30]
movzx ecx, byte [rsi + r14]
mov edx, ecx
xor dl, cl
not dl
and dl, byte [rax + rbx]
xor dl, cl
mov byte [rsi + rbx], dl
lea eax, [rsi + 1]
cmp eax, 0xf
jg 0x140251e7b
inc rsi
jmp 0x140251e40
mov al, 0x3d
xchg byte [0x140518a20], al
mov esi, 0xe0bbf7ef
lea rax, [fcn.140251a40]
lea edi, [rax + rax]
add edi, 0x3b80
mov ebx, edi
not ebx
xor ebp, ebp
nop
mov eax, dword [0x140518e6c]
add eax, esi
mov ecx, edi
xor ecx, eax
not eax
and eax, ebx
or eax, ecx
cmp eax, 0xffffffff
jne 0x140251ed3
mov edx, dword [0x140518e6c]
lea ecx, [rdx - 0x35eb74ca]
add edx, 0x50011d99
call fcn.1402536b0
test bpl, bpl
je 0x140251eef
mov ecx, 0x41c3cdc0
mov edx, 0x41c3cdc0
call fcn.14008c870
mov eax, dword [0x140560404]
cmp eax, 0x40
jge 0x140251ea0
jmp 0x140251eb7
lea rax, [0x140518a10]
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
movzx eax, byte [0x140518b9d]
cmp dword [0x140518e6c], 0x1f440812
je 0x140251f21
movzx eax, byte [0x140518b9d]
jmp 0x140251f05
movzx ecx, byte [0x140518e68]
add cl, 0xbc
cmp al, cl
je 0x14025213c
lea rsi, [rsp + 0x30]
mov bl, 1
jmp 0x140251f48
cmp al, 0x1a
je 0x14025213c
mov rcx, rsi
mov edx, 0x1d5e0fd8
mov r8d, 0xd2c486ba
call fcn.1402536f0
test al, 1
jne 0x140251f9b
movzx eax, byte [rsp + 0x30]
nop word cs:[rax + rax]
mov ecx, dword [0x140560404]
cmp ecx, 0x10
jg 0x140251f95
mov ecx, dword [0x140560400]
mov edx, dword [0x140518e6c]
neg edx
add edx, ecx
inc edx
imul edx, ecx
test dl, 1
je 0x140251f40
test bl, bl
je 0x140251f70
jmp 0x140251f7b
xor esi, esi
lea rdi, [rsp + 0x30]
lea rbx, [rsp + 0x3c]
lea r15, [0x14042e910]
lea r12, [0x140518b90]
jmp 0x140251fcb
inc esi
cmp esi, 0xd
jge 0x1402520fb
mov eax, dword [0x140560404]
movsxd r14, esi
cmp eax, 0x38
jg 0x140252040
nop dword [rax]
mov ecx, r14d
mov rdx, rdi
mov r8d, 0xaa74a99c
mov r9d, 0xa53360ba
call fcn.140253400
mov rcx, qword [rsp + 0x30]
mov dword [rsp + 0x28], 0xbf30354e
mov dword [rsp + 0x20], 0x9719e9aa
mov edx, r14d
mov r8, rbx
mov r9, rdi
call fcn.14012e100
movzx eax, byte [rsp + 0x3c]
mov rcx, qword [rsp + 0x30]
xor al, byte [rcx + r15]
mov byte [r14 + r12], al
mov eax, dword [0x140560404]
cmp eax, 0x53
jl 0x140251fc0
nop word [rax + rax]
mov r9d, dword [0x140518e6c]
lea r8d, [r9 + 0x6e5168c9]
add r9d, 0x2517c88c
mov ecx, esi
mov rdx, rdi
call fcn.140253c10
movzx edx, byte [rsp + 0x30]
mov dword [rsp + 0x28], 0x65af3baa
mov dword [rsp + 0x20], 0xce55a1ac
mov ecx, esi
mov r8, rbx
mov r9, rdi
call fcn.140253be0
movzx eax, byte [rsp + 0x3c]
xor al, byte [rsp + 0x30]
mov byte [r14 + r12], al
mov ebp, esi
neg ebp
shl ebp, 2
xor ebp, 0xfffffffe
movzx ecx, byte [0x140518e6c]
add cl, 0xef
shl ebp, cl
mov ecx, ebp
mov rdx, rdi
mov r8d, 0x5468799f
mov r9d, 0x51524ff9
call fcn.1401383c0
mov ecx, dword [rsp + 0x30]
sub ebp, ecx
imul ebp, ecx
sub ecx, ebp
mov eax, dword [0x140518e6c]
mov edx, eax
sub edx, ebp
add edx, ecx
sub eax, edx
add ecx, ecx
add ecx, eax
mov rdx, rdi
mov r8d, 0x2204e77c
mov r9d, 0x9c506349
call fcn.1402537f0
cmp dword [rsp + 0x30], 0
jne 0x140252040
jmp 0x140251fe0
mov eax, dword [0x140518e6c]
lea edx, [rax - 0x65d33698]
mov ecx, eax
xor ecx, 0x6e6cfa4a
and eax, 0x6e6cfa4a
lea r8d, [rcx + rax*2]
lea rcx, [rsp + 0x30]
call fcn.140071320
xor eax, eax
nop word cs:[rax + rax]
test al, al
jne 0x140252130
mov al, 0x1a
xchg byte [0x140518b9d], al
lea rax, [0x140518b90]
jmp 0x140251ef6