Function at 0x18004caf0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 7]
sub rsp, 0xf8
mov r14d, dword [rbp + 0x6f]
xor ecx, ecx
mov ebx, dword [rbp + 0x6f]
mov r10, r9
mov esi, dword [rbp + 0x6f]
mov r9, r8
mov r13, qword [rbp - 0x79]
lea r8, [0x180000000]
lea eax, [r14 + 0x27c]
mov dword [rsp + 0x70], r14d
mov r11, rdx
mov r15d, r14d
cmp r14d, eax
jae 0x18004d0fa
mov rax, qword [rbp - 0x79]
mov r8d, dword [rbp + 0x6f]
mov edi, dword [rbp + 0x6f]
mov qword [rbp - 0x79], rax
mov rax, qword [rbp - 0x79]
mov r12, qword [rbp - 0x79]
mov qword [rbp - 0x41], rax
mov qword [rbp - 0x51], r12
mov qword [rbp - 0x61], r8
lea rdx, [0x1800a9369]
cmp r15d, 0xff
ja 0x18004ce3d
je 0x18004ce0a
lea eax, [r15 - 5]
cmp eax, 0xcb
ja case.0x18004cbbb.6
lea r9, [0x180000000]
movzx eax, byte [r9 + rax + 0x4d45c]
mov ecx, dword [r9 + rax*4 + 0x4d440]
add rcx, r9
jmp rcx
mov rax, qword [rbp + 0x8f]
mov eax, dword [rax]
inc eax
cmp dword [r10 + 4], eax
jge 0x18004cbf8
lea r8, [rsp + 0x70]
mov dword [rsp + 0x70], eax
mov rdx, r10
mov ecx, 0xdf
call fcn.180016740
test eax, eax
jne 0x18004d30d
mov r8, qword [rbp - 0x61]
mov r10, qword [rbp + 0x67]
mov r11, qword [rbp + 0x57]
mov eax, dword [r10]
mov dword [rbp - 0x69], eax
jmp case.0x18004cbbb.6
mov rax, qword [rbp + 0x8f]
xor ecx, ecx
mov r12, rax
mov esi, ecx
mov rax, qword [rax]
test rax, rax
je 0x18004cc9d
nop dword [rax]
mov rcx, qword [rax]
mov rax, qword [rbp + 0x87]
mov rdx, qword [r10]
call qword [rax]
test eax, eax
je 0x18004cc77
mov r14d, 0x66
nop dword [rax]
cmp r14d, 0x66
je 0x18004cc53
cmp r14d, 0xf1
jne 0x18004cc65
inc esi
jmp 0x18004cc65
mov rcx, qword [r12]
mov r15, qword [rcx + 8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [r12], r15
add r14d, 0x8b
cmp r14d, 0x17c
jb 0x18004cc40
jmp 0x18004cc7f
mov r12, qword [r12]
add r12, 8
mov rax, qword [r12]
mov r10, qword [rbp + 0x67]
test rax, rax
jne 0x18004cc20
mov r15d, dword [rsp + 0x70]
mov r8, qword [rbp - 0x61]
mov r14d, dword [rbp + 0x6f]
mov r11, qword [rbp + 0x57]
mov r12, qword [rbp - 0x51]
jmp case.0x18004cbbb.6
mov rax, qword [rbp + 0x8f]
mov rax, qword [rax + 0x10]
mov qword [rbp - 0x49], rax
jmp case.0x18004cbbb.6
cmp qword [rbp + 0x8f], 0
jne 0x18004cd0c
xor ecx, ecx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rcx
lea r8, str.TLS_header
mov qword [rsp + 0x40], rcx
xor r9d, r9d
mov qword [rsp + 0x38], rdx
mov edx, 0xcd
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rcx
mov dword [rsp + 0x70], ecx
call fcn.180026490
mov r10, qword [rbp + 0x67]
lea rdx, [0x1800a9369]
test r10, r10
jne 0x18004cd4e
xor ecx, ecx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rcx
lea r8, str.VC1Dec_work
mov qword [rsp + 0x40], rcx
xor r9d, r9d
mov qword [rsp + 0x38], rdx
mov edx, 0xcd
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rcx
mov dword [rsp + 0x70], ecx
call fcn.180026490
cmp qword [rbp + 0x4f], 0
jne 0x18004cd99
xor ecx, ecx
lea rax, [0x1800a9369]
mov qword [rsp + 0x48], rcx
lea r8, str.___Replay_Data
mov qword [rsp + 0x40], rcx
xor r9d, r9d
mov qword [rsp + 0x38], rax
mov edx, 0xcd
lea rax, [rsp + 0x70]
mov dword [rsp + 0x70], ecx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rcx
call fcn.180026490
mov r11, qword [rbp + 0x57]
test r11, r11
jne 0x18004d0e5
xor ecx, ecx
lea rax, [0x1800a9369]
mov qword [rsp + 0x48], rcx
lea r8, str.RegInstallA
mov qword [rsp + 0x40], rcx
xor r9d, r9d
mov qword [rsp + 0x38], rax
mov edx, 0xcd
lea rax, [rsp + 0x70]
mov dword [rsp + 0x70], ecx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rcx
call fcn.180026490
mov r8, qword [rbp - 0x61]
mov r11, qword [rbp + 0x57]
jmp case.0x18004cbbb.6
mov rax, qword [rbp + 0x8f]
mov eax, dword [rax + 8]
mov dword [r10 + 8], eax
jmp case.0x18004cbbb.6
mov rax, qword [rbp + 0x77]
lea rcx, [rsp + 0x70]
xor edx, edx
mov r8d, 0xfe
mov eax, dword [rax]
mov dword [rsp + 0x70], eax
call fcn.18005d8a0
mov ebx, eax
test eax, eax
jne 0x18004d30d
mov r8, qword [rbp - 0x61]
mov r11, qword [rbp + 0x57]
jmp case.0x18004cbbb.6
mov eax, r15d
sub eax, 0x105
je 0x18004d0d5
sub eax, 0x2f
je 0x18004d02d
sub eax, 6
je 0x18004ced3
sub eax, 0x2f
je 0x18004cea4
cmp eax, 0x35
jne case.0x18004cbbb.6
mov ecx, 0x100
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ecx, 0x100
mov qword [rbp - 0x79], rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ecx, 0x80
mov qword [rbp - 0x41], rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8, qword [rbp - 0x61]
mov r12, rax
mov r11, qword [rbp + 0x57]
mov qword [rbp - 0x51], rax
jmp case.0x18004cbbb.6
mov rax, qword [rbp + 0x77]
lea r9, [rbp - 0x39]
mov rdx, qword [r11 + 8]
lea r8, [rsp + 0x70]
mov ecx, 0x10
mov eax, dword [rax]
mov dword [rsp + 0x70], eax
mov rax, qword [rbp + 0x7f]
mov qword [rsp + 0x20], rax
call fcn.180050f40
jmp 0x18004ce26
mov r14, qword [rbp + 0x8f]
mov edx, ecx
cmp dword [r14], 0
jle 0x18004cf2f
mov r9, qword [rbp - 0x49]
nop word [rax + rax]
mov ecx, dword [r9]
inc edx
mov rax, qword [rbp + 0x87]
add r9, 4
mov eax, dword [rax]
imul rcx, rax
mov eax, r8d
add rcx, rax
mov eax, ecx
mov r8, rcx
and eax, 0xfffffff
shr r8, 0x1c
mov dword [r13], eax
add r13, 4
cmp edx, dword [r14]
jl 0x18004cef0
mov qword [rbp - 0x49], r9
mov qword [rbp - 0x61], r8
mov eax, dword [rbp - 0x69]
mov dword [r13], r8d
add r13, 4
inc edx
cmp edx, eax
jge 0x18004cf65
sub eax, edx
mov rcx, r13
movsxd r14, eax
xor edx, edx
shl r14, 2
mov r8, r14
and r8, 0xfffffffffffffffc
call sub.VCRUNTIME140.dll_memset
mov r8, qword [rbp - 0x61]
add r13, r14
mov r11, qword [rbp + 0x57]
mov r14d, dword [rbp + 0x6f]
mov r10, qword [rbp + 0x67]
lea eax, [r14 + 0x27c]
mov r9, qword [rbp + 0x5f]
add r15d, 0x35
xor ecx, ecx
mov dword [rsp + 0x70], r15d
cmp r15d, eax
jb 0x18004cb77
mov r15, qword [rbp - 0x41]
lea r8, [0x180000000]
mov r13, qword [rbp - 0x79]
mov edi, r14d
imul r14d, r14d, 0x174
cmp dword [rbp + 0x6f], r14d
ja case.0x18004cbbb.58
nop
cmp edi, 0x4a2c
ja 0x18004d2df
je 0x18004d260
cmp edi, 0x191a
ja 0x18004d1e1
je 0x18004d437
mov eax, edi
sub eax, 0x66
je 0x18004d1ce
sub eax, 0x64
je 0x18004d107
cmp eax, 0xbf6
jne 0x18004d410
mov qword [rsp + 0x50], rcx
xor r9d, r9d
mov qword [rsp + 0x48], rcx
mov r8, r10
mov qword [rsp + 0x40], rcx
xor edx, edx
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rcx
mov ecx, 0xe9
call fcn.180032550
jmp 0x18004d40e
mov eax, dword [r9]
mov ebx, 0xd4
mov dword [rsp + 0x70], eax
nop dword [rax]
mov eax, ebx
sub eax, 0x28
je 0x18004d07b
sub eax, 0x3a
je 0x18004d09d
cmp eax, 0x72
jne 0x18004d092
movsxd rax, dword [rsp + 0x70]
cmp eax, 0x1f
ja 0x18004d0ee
shl rax, 7
lea rcx, [0x180000000]
cmp qword [rax + rcx + 0xed600], 0
je 0x18004d0ee
xor edi, edi
xor ebx, ebx
jmp 0x18004d0aa
mov r8d, dword [SHChangeNotifyDeregister]
lea rcx, [rsp + 0x70]
xor edx, edx
call qword [0x1800ee6a0]
mov edi, eax
add ebx, 0x3a
cmp ebx, 0x182
jb 0x18004d040
mov ebx, edi
test edi, edi
jne 0x18004d0f3
lea rcx, [0x180000000]
mov rax, qword [rbp + 0x5f]
movsxd rax, dword [rax]
shl rax, 7
mov eax, dword [rax + rcx + 0xed60c]
mov rcx, qword [rbp + 0x87]
cmp dword [rcx], eax
jbe 0x18004ce30
mov eax, 0xb
jmp 0x18004d30d
mov r13, qword [r10 + 0x10]
mov r8d, ecx
mov qword [rbp - 0x61], r8
jmp case.0x18004cbbb.6
mov r8, qword [rbp - 0x61]
jmp case.0x18004cbbb.6
mov edi, 0xb
mov eax, edi
jmp 0x18004d30d
mov r15, qword [rbp - 0x79]
mov r12, qword [rbp - 0x79]
jmp 0x18004cf9b
test r13, r13
je 0x18004d116
test r15, r15
je 0x18004d116
test r12, r12
jne 0x18004d180
mov ebx, 0xcb
nop dword [rax + rax]
mov eax, ebx
sub eax, 0xcb
je 0x18004d138
cmp eax, 0x7b
jne 0x18004d175
mov eax, 0xd
jmp 0x18004d30d
test r13, r13
je 0x18004d146
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test r15, r15
je 0x18004d154
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test r12, r12
je 0x18004d162
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea r9, [rbp - 0x39]
xor edx, edx
xor ecx, ecx
mov r8d, 0xfe
call fcn.1800288c0
add ebx, 0x7b
cmp ebx, 0x1c1
jb 0x18004d120
xor ecx, ecx
mov dword [rbp - 0x59], 0x100
mov dword [rbp - 0x69], ecx
lea rax, [rbp - 0x69]
lea rcx, [rbp - 0x59]
mov qword [rsp + 0x20], rax
mov r9d, 0x11d
lea r8, [rbp - 0x39]
mov rdx, r13
call fcn.180028420
xor ecx, ecx
mov rbx, rax
test eax, eax
je 0x18004d410
lea r9, [rbp - 0x39]
xor edx, edx
mov r8d, 0xfe
call fcn.1800288c0
jmp 0x18004d3d7
mov rax, qword [rbp + 0x8f]
mov eax, dword [rax]
inc eax
mov dword [r10], eax
jmp 0x18004d410
cmp edi, 0x1940
je 0x18004d254
cmp edi, 0x31b6
jne 0x18004d410
mov qword [rsp + 0x48], rcx
lea rax, [rbp - 0x39]
mov qword [rsp + 0x40], rcx
lea r9, [rbp - 0x71]
mov qword [rsp + 0x38], rcx
mov r8d, 0xdb
mov qword [rsp + 0x30], rcx
mov rdx, r15
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
mov rcx, r11
call fcn.180018250
xor edx, edx
lea r9, [rbp - 0x39]
xor ecx, ecx
mov ebx, eax
mov r8d, 0xfe
test eax, eax
je 0x18004d24a
call fcn.1800288c0
jmp 0x18004d3d7
call fcn.1800288c0
jmp 0x18004d40e
mov dword [rbp - 0x71], 0x100
jmp 0x18004d410
mov eax, dword [rbp - 0x71]
lea r8, [rsp + 0x70]
mov dword [rbp - 0x69], eax
lea rcx, [rbp - 0x55]
mov eax, dword [r9]
mov rdx, r12
mov dword [rsp + 0x70], eax
mov r9d, 0x76
lea rax, [rbp - 0x69]
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rax
mov dword [rbp - 0x55], 0x80
call fcn.180044c80
mov ebx, eax
test eax, eax
jne 0x18004d3d7
mov rdx, qword [rbp + 0x87]
xor ecx, ecx
mov dword [rbp - 0x71], ecx
cmp dword [rdx], ecx
jbe 0x18004d410
mov r8, qword [rbp + 0x8f]
nop
mov eax, dword [rbp - 0x71]
lea rcx, [rax + r12]
movzx eax, byte [rax + r8]
xor byte [rcx], al
mov eax, dword [rbp - 0x71]
inc eax
mov dword [rbp - 0x71], eax
cmp eax, dword [rdx]
jb 0x18004d2c0
jmp 0x18004d40e
cmp edi, 0x62a2
je 0x18004d366
cmp edi, 0x7b18
je 0x18004d33f
cmp edi, 0x938e
je 0x18004d328
cmp edi, 0xac04
je 0x18004d321
cmp edi, 0xc47a
jne 0x18004d410
mov eax, esi
add rsp, 0xf8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov esi, ebx
jmp 0x18004d410
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x18004d40e
lea r8, [rbp - 0x79]
mov qword [rbp - 0x79], 0x80
mov rdx, r12
mov ecx, 0x127
call fcn.18005f5d0
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x18004d40e
movsxd rdx, dword [r9]
lea rcx, [r8 + 0xed614]
xor eax, eax
shl rdx, 7
mov qword [rsp + 0x68], rax
add rcx, rdx
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x58], rax
mov r9d, dword [rdx + r8 + 0xed654]
mov r8d, 7
mov rax, qword [rbp + 0x87]
mov rdx, qword [rbp + 0x4f]
mov qword [rsp + 0x50], r12
mov eax, dword [rax]
mov dword [rsp + 0x48], eax
mov eax, dword [rbp - 0x59]
mov dword [rsp + 0x40], 5
mov qword [rsp + 0x38], r13
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], 5
mov qword [rsp + 0x20], rcx
mov rcx, r10
call fcn.180026240
mov ebx, eax
lea r8, [rbp - 0x79]
mov qword [rbp - 0x79], 0x100
mov rdx, r13
mov ecx, 0x127
mov edi, 0x62a2
call fcn.18005f5d0
lea r8, [rbp - 0x79]
mov qword [rbp - 0x79], 0x100
mov rdx, r15
mov ecx, 0x127
call fcn.18005f5d0
xor ecx, ecx
imul eax, dword [rbp + 0x6f], 0x1f
add edi, eax
cmp edi, r14d
ja case.0x18004cbbb.58
mov r10, qword [rbp + 0x67]
lea r8, [0x180000000]
mov r9, qword [rbp + 0x5f]
mov r11, qword [rbp + 0x57]
jmp 0x18004cfb0
mov eax, ecx
jmp 0x18004d30d