Function at 0x180001f00
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
lea rbp, [rsp - 0x18]
sub rsp, 0x118
mov rax, qword [0x180007040]
xor rax, rsp
mov qword [rbp - 0x10], rax
cmp edx, 1
jne 0x180002498
mov rax, qword [0x1800077c0]
movsxd rbx, dword [rax + 0x3c]
add rbx, rax
call fcn.180001780
test eax, eax
je 0x180002498
mov rcx, qword [0x1800077d0]
lea rdx, [0x180001820]
call fcn.180001310
mov rcx, qword [0x180007798]
lea rdx, [0x180001e10]
call fcn.180001310
mov ebx, dword [rbx + 0x28]
lea r9, [rbp - 0x70]
add rbx, qword [0x1800077c0]
mov edx, 0x10
mov rcx, rbx
lea r8d, [rdx + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x180002498
mov qword [rsp + 0x130], rsi
movabs rax, 0x5d709a7225af8403
mov qword [rbp - 0x60], rax
movabs rdx, 0x280e9a7225ce3a7f
mov qword [rsp + 0x138], rdi
movabs rax, 0xe80e9a7225b1ba7e
mov qword [rbp - 0x48], rax
movabs rcx, 0x80e9a722814b693
mov qword [rsp + 0x140], r12
movabs rax, 0x80e9a722812b693
mov qword [rbp - 0x40], rax
movabs rsi, 0xc9ef649ec19b7662
movabs rax, 0x5d709a72281281f9
mov qword [rsp + 0x110], r13
mov qword [rbp - 0x38], rax
movabs r8, 0x3b20f17eb0ab4097
movabs rax, 0x5d709a7225bc03f9
mov qword [rsp + 0x108], r14
mov qword [rbp - 0x30], rax
movabs r9, 0x6af3ac201f069e6d
movabs rax, 0x3d6e9a7228148227
mov qword [rsp + 0x100], r15
mov qword [rbp - 0x18], rax
movabs r10, 0x1f72fce73f789894
xor eax, eax
mov qword [rbp - 0x58], rdx
mov qword [rsp + 0x38], rax
xor edi, edi
mov word [rsp + 0x40], ax
movabs r11, 0x51467838d4872d0c
movabs rax, 0x4a8ffd3d51d24ae1
mov qword [rbp - 0x50], rcx
mov qword [rsp + 0x48], rax
movabs r14, 0x1cccae8953202cb1
movabs rax, 0x485a647d60be041b
mov qword [rbp - 0x28], rcx
mov qword [rsp + 0x50], rax
mov ecx, edi
movabs rax, 0xb0e318593cc04e4b
mov qword [rbp - 0x20], rdx
mov qword [rsp + 0x58], rax
movabs rdx, 0x1fdfc3af41b37c27
movabs rax, 0x77fcf382e1cfea4d
mov qword [rbx], 0x25ff
mov qword [rsp + 0x60], rax
movabs r15, 0x4a8911b0836e4530
movabs rax, 0x3548577d01b5988a
movabs r12, 0x76425e2481cea930
mov qword [rsp + 0x68], rax
movabs r13, 0x630be007efb786a5
movabs rax, 0x70292f9dc5fd8389
mov qword [rsp + 0x70], rax
movabs rax, 0x40a9954e00a7655b
mov qword [rsp + 0x78], rax
movabs rax, 0x6c822953cc7e9490
mov qword [rbp - 0x80], rax
movabs rax, 0x6160134df82aae35
mov qword [rbp - 0x78], rax
movabs rax, 0xe5ce01d8ce6e9c
mov qword [rsp + 0x28], rax
nop word [rax + rax]
mov rax, qword [rbp + rcx*8 - 0x60]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
not rax
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
ror rax, 1
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
sub rax, rdx
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
sub rax, r8
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
not rax
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
bswap rax
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
add rax, r9
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
sub rax, r10
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
bswap rax
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
ror rax, 0x4e
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
add rax, r11
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
xor rax, rsi
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
add rax, r14
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
not rax
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
sub rax, r15
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
xor rax, r12
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
ror rax, 0xb4
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
add rax, r13
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
xor rax, qword [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
ror rax, 0x37
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
add rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
ror rax, 0x80
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
rol rax, 0xeb
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
xor rax, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
ror rax, 0x34
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
bswap rax
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
ror rax, 0x60
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
rol rax, 0xee
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
bswap rax
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
bswap rax
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
sub rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
ror rax, 0x56
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
rol rax, 0xa7
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
bswap rax
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
bswap rax
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
xor rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
sub rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
ror rax, 0x5c
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
add rax, qword [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
rol rax, 0x39
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
bswap rax
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
xor rax, qword [rbp - 0x80]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
ror rax, 0xd5
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
rol rax, 0xe3
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
rol rax, 0x16
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
sub rax, qword [rbp - 0x78]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
ror rax, 0xf2
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
not rax
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
bswap rax
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
sub rax, qword [rsp + 0x28]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov byte [rsp + rcx + 0x38], al
inc rcx
cmp rcx, 0xa
jl 0x180002150
movsd xmm0, qword [rsp + 0x38]
lea rdx, [rsp + 0x28]
movzx eax, word [rsp + 0x40]
mov rcx, qword [0x1800077a0]
mov r15, qword [rsp + 0x100]
mov r14, qword [rsp + 0x108]
mov r13, qword [rsp + 0x110]
mov r12, qword [rsp + 0x140]
mov rsi, qword [rsp + 0x130]
movsd qword [rsp + 0x28], xmm0
mov word [rsp + 0x30], ax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 6], rax
lea r9, [rbp - 0x70]
mov r8d, dword [rbp - 0x70]
mov edx, 0x10
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne dil
mov eax, edi
mov rdi, qword [rsp + 0x138]
jmp 0x18000249a
xor eax, eax
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.180003f60
add rsp, 0x118
pop rbx
pop rbp
ret