Function at 0x1400d7980
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rsi, rdx
mov edx, 0x18
mov rax, rsi
mul rdx
mov r14, rax
mov rdi, rcx
seto cl
movabs rax, 0x7ffffffffffffffc
cmp r14, rax
seta al
or al, cl
nop dword [rax]
mov ecx, dword [0x141dd8a18]
add ecx, dword [0x141dd8a1c]
and ecx, 0x2810004
cmp ecx, 0xe6a929b2
je 0x1400d79c0
test al, al
jne 0x1400d7e08
test r14, r14
je 0x1400d7a27
movzx eax, byte [0x141ddb9b8]
xor ecx, ecx
mov rdx, r14
call fcn.1400bf820
mov rbx, rax
nop dword [rax + rax]
mov eax, dword [0x141dd8a30]
xor edx, edx
div dword [0x141dd8a34]
and eax, 0xdde85eaa
cmp eax, 0x16ed5af3
je 0x1400d7a00
mov r12, rsi
test rbx, rbx
jne 0x1400d7a2f
jmp 0x1400d7e64
mov ebx, 4
xor r12d, r12d
lea eax, [rsi*8]
lea eax, [rax + rax*2]
mov dword [rsp + 0x20], eax
mov ecx, 0xb
xor edx, edx
xor r8d, r8d
mov r9, rbx
call qword [sym.imp.powrprof.dll_CallNtPowerInformation]
test eax, eax
js 0x1400d7bf9
nop dword [rax + rax]
mov eax, dword [0x141dd8a80]
sub eax, dword [0x141dd8a84]
add eax, 0x51ea6c17
xor eax, 0x6cf0e42c
add eax, 0x44c8e7aa
cmp eax, 0xaf15c246
ja 0x1400d7a60
mov eax, 0xa51f88cb
nop word [rax + rax]
mov ecx, dword [0x141dd8a88]
and ecx, dword [0x141dd8a8c]
xor ecx, 0xf97cacdd
imul rcx, rax
shr rcx, 0x3a
add ecx, 0x66b8135c
cmp ecx, 0x7bd1e5fa
ja 0x1400d7a90
test rsi, rsi
je 0x1400d7c77
mov eax, dword [0x141dd8a90]
xor edx, edx
div dword [0x141dd8a94]
or eax, 0xb486f464
imul rax, rax, 0x69445fa5
shr rax, 0x3b
or eax, 0x3ca79e4d
cmp eax, 0x9780ff0
jae 0x1400d7af2
movzx eax, byte [0x141ddb9b8]
lea r8, [rsi*8]
nop word [rax + rax]
mov eax, dword [str.X4]
xor edx, edx
div dword [0x141dd8a9c]
imul eax, eax, 0x98a48e30
or eax, 0xf6101b36
movzx ecx, byte [0x141ddb9b8]
cmp eax, 0xa8b78b58
jb 0x1400d7b00
xor ecx, ecx
mov rdx, r8
call fcn.1400bf820
test rax, rax
je 0x1400d7e64
mov r15, rax
add r14, 0xffffffffffffffe8
movabs r8, 0xaaaaaaaaaaaaaaab
nop dword [rax + rax]
mov r9d, dword [0x141dd8aa0]
xor r9d, dword [0x141dd8aa4]
xor r9d, 0x2bb7c5d6
add r9d, 0xf7b10def
and r9d, 0x84f4f585
mov rax, r14
mul r8
cmp r9d, 0x2cbea37a
ja 0x1400d7b50
mov rcx, rdx
shr rcx, 4
inc rcx
nop dword [rax]
mov eax, dword [0x141dd8aa8]
or eax, dword [0x141dd8aac]
imul rdx, rax, 0x1a976efb
shr rdx, 0x20
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 0x1d
or eax, 0x5fd76fb8
cmp eax, 0xa766b974
ja 0x1400d7b90
nop dword [rax]
mov eax, dword [0x141dd8ab0]
xor edx, edx
div dword [0x141dd8ab4]
or eax, 0x3ecddff3
and eax, 0xfeeddfff
cmp eax, 0xb32d5ed8
je 0x1400d7bc0
mov qword [rsp + 0x30], r12
cmp r14, 0x48
jae 0x1400d7c8e
xor r13d, r13d
mov r9, rbx
jmp 0x1400d7d6f
mov eax, dword [0x141dd8a38]
xor edx, edx
div dword [0x141dd8a3c]
nop word [rax + rax]
mov eax, dword [0x141dd8a40]
xor eax, dword [0x141dd8a44]
imul rax, rax, 0x48ce7fa1
shr rax, 0x3e
imul eax, eax, 0xd53e241a
xor eax, 0x9de09fd4
cmp eax, 0x2363a14b
jb 0x1400d7c10
test rsi, rsi
je 0x1400d7dfb
lea r14, [rsi*8]
xor eax, eax
nop dword [rax]
test al, al
jne 0x1400d7c50
mov eax, dword [0x141dd8a48]
imul eax, dword [0x141dd8a4c]
imul eax, eax, 0xa70f456f
cmp eax, 0xacf60131
jne 0x1400d7e66
jmp 0x1400d7e98
mov r15d, 8
xor r13d, r13d
test r12, r12
jne 0x1400d7dbe
jmp 0x1400d8032
mov rax, rcx
and rax, 0xfffffffffffffffc
xor edx, edx
mov r10d, 0xf592c01d
xor r13d, r13d
mov r9, rbx
nop word cs:[rax + rax]
mov r11d, dword [0x141dd8ab8]
xor r11d, dword [0x141dd8abc]
xor r11d, 0x30001800
or r11d, 0x44d063fe
imul r11, r10
shr r11, 0x3f
cmp r11d, 0x20c31bca
jbe 0x1400d7d20
mov r11d, dword [r9 + 8]
lea r12, [r13*8]
mov qword [r15 + r13*8], r11
mov r11d, dword [r9 + 0x20]
mov rbp, r12
or rbp, 8
mov qword [r15 + rbp], r11
mov r11d, dword [r9 + 0x38]
mov rbp, r12
or rbp, 0x10
mov qword [r15 + rbp], r11
mov r11d, dword [r9 + 0x50]
or r12, 0x18
mov qword [r15 + r12], r11
nop word [rax + rax]
mov r11d, dword [r9 + 8]
lea r12, [r13*8]
mov qword [r15 + r13*8], r11
mov r11d, dword [r9 + 0x20]
mov rbp, r12
or rbp, 8
mov qword [r15 + rbp], r11
mov r11d, dword [r9 + 0x38]
mov rbp, r12
or rbp, 0x10
mov qword [r15 + rbp], r11
mov r11d, dword [r9 + 0x50]
or r12, 0x18
mov qword [r15 + r12], r11
test dl, dl
jne 0x1400d7d20
add r9, 0x60
add r13, 4
cmp r13, rax
jne 0x1400d7cb0
test cl, 3
je 0x1400d7dec
mov rax, r14
mul r8
shr dl, 4
inc dl
movzx eax, dl
and eax, 3
shl rax, 3
lea rax, [rax + rax*2]
xor ecx, ecx
mov r12, qword [rsp + 0x30]
nop word cs:[rax + rax]
mov edx, dword [r9 + rcx + 8]
mov qword [r15 + r13*8], rdx
inc r13
add rcx, 0x18
cmp rax, rcx
jne 0x1400d7da0
test r12, r12
je 0x1400d8032
mov eax, dword [0x141dd8ac0]
xor edx, edx
div dword [0x141dd8ac4]
add eax, 0x69e2dae9
imul rax, rax, 0x8729f45
shr rax, 0x3b
cmp eax, 0x112d7301
jbe 0x1400d7fc4
jmp 0x1400d7ff3
mov r12, qword [rsp + 0x30]
test r12, r12
jne 0x1400d7dbe
jmp 0x1400d8032
mov ecx, 8
xor r8d, r8d
jmp 0x1400d7eb2
mov eax, dword [0x141dd8a20]
xor edx, edx
div dword [0x141dd8a24]
imul eax, eax, 0x35e29aed
or eax, 0x1ec7d44a
cmp eax, 0x68942f60
je 0x1400d7e4d
mov eax, dword [0x141dd8a28]
sub eax, dword [0x141dd8a2c]
imul eax, eax, 0x6d7ae1d2
xor eax, 0x2408009a
and eax, 0x3688109a
ud2
ud2
ud2
mov eax, dword [0x141dd8a50]
or eax, dword [0x141dd8a54]
and eax, 0xe9471a96
imul ebp, eax, 0xa35cbcf9
and ebp, 0xa654c536
mov ecx, 8
mov rdx, r14
call fcn.1400bf820
cmp ebp, 0xd0b1bd48
jbe 0x1400d7ea7
mov ecx, 8
mov rdx, r14
call fcn.1400bf820
jmp 0x1400d7e66
mov rcx, rax
test rax, rax
je 0x1400d7f1b
mov r8, rsi
mov eax, dword [0x141dd8a60]
add eax, dword [0x141dd8a64]
imul eax, eax, 0xb167ee73
add eax, 0x9c8b53eb
and eax, 0x9ea5d6c6
cmp eax, 0x3533040d
jbe 0x1400d7ee0
mov qword [rdi], r8
mov qword [rdi + 8], rcx
mov qword [rdi + 0x10], rsi
mov eax, dword [0x141dd8a68]
xor edx, edx
div dword [0x141dd8a6c]
add eax, 0x1032420c
xor eax, 0xd6d4c1ff
mov qword [rdi], r8
mov qword [rdi + 8], rcx
mov qword [rdi + 0x10], rsi
cmp eax, 0xb11785b6
jb 0x1400d7ee0
test r12, r12
je 0x1400d8040
xor eax, eax
test al, al
je 0x1400d7f4c
jmp 0x1400d7f7b
xor eax, eax
test al, al
je 0x1400d7f30
ud2
mov eax, dword [0x141dd8a58]
xor edx, edx
div dword [0x141dd8a5c]
ud2
mov eax, dword [0x141dd8a70]
mov ecx, dword [0x141dd8a74]
lea esi, [rax + rcx]
add esi, 0x183f453
mov rcx, qword [0x141ddb9a0]
xor edx, edx
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp esi, 0x919739fb
jbe 0x1400d7f8f
mov rcx, qword [0x141ddb9a0]
xor edx, edx
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1400d7f4c
mov eax, 0xb19850a3
nop word cs:[rax + rax]
mov ecx, dword [0x141dd8a78]
and ecx, dword [0x141dd8a7c]
xor ecx, 0xf76f03b3
imul rcx, rax
shr rcx, 0x3f
cmp ecx, 0xf139246e
je 0x1400d7fa0
jmp 0x1400d8040
mov eax, dword [0x141dd8ac8]
sub eax, dword [str.dZ_]
and eax, 0xb1721233
add eax, 0xdd246360
imul rax, rax, 0x4123a52b
shr rax, 0x3e
mov rcx, qword [0x141ddb9a0]
cmp eax, 0xebf56af9
jbe 0x1400d7ffc
mov rax, qword [0x141ddb9a0]
jmp 0x1400d7fc4
xor edx, edx
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop word [rax + rax]
mov eax, dword [0x141dd8ad0]
add eax, dword [0x141dd8ad4]
xor eax, 0x1e4dc301
add eax, 0x81926b63
and eax, 0x166c11e9
cmp eax, 0x1c836eef
ja 0x1400d8010
mov qword [rdi], rsi
mov qword [rdi + 8], r15
mov qword [rdi + 0x10], r13
nop dword [rax]
mov eax, dword [0x141dd8ad8]
imul eax, dword [0x141dd8adc]
xor eax, 0xb853017
imul eax, eax, 0xd55c3173
or eax, 0xf136efdf
cmp eax, 0x7feede97
jb 0x1400d8040
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret