Function at 0x1800790c0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r15
lea rbp, [rsp - 0x80]
mov eax, 0x180
call fcn.1801c83e0
sub rsp, rax
mov rax, qword [0x1802d1460]
xor rax, rsp
mov qword [rbp + 0x50], rax
mov rax, qword [rbp + 0xe0]
mov rsi, qword [rbp + 0xf8]
mov rbx, rdx
mov rdx, qword [rbp + 0xe8]
mov r15, r8
mov qword [rbp - 0x50], rcx
mov rcx, qword [rbp + 0xd0]
mov qword [rbp - 0x38], rax
mov rax, qword [rbp + 0xf0]
mov qword [rbp - 0x40], rdx
xor edx, edx
shr r15, 3
mov qword [rbp - 0x48], rax
mov rdi, r9
mov qword [rbp - 0x80], r9
mov qword [rbp - 0x70], rcx
mov qword [rsp + 0x68], rsi
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x40], edx
mov qword [rbp - 0x68], 2
cmp r15d, 0x14
je 0x18007915f
cmp r15d, 0x1c
je 0x18007915f
cmp r15d, 0x20
je 0x18007915f
xor eax, eax
jmp 0x18007986c
mov qword [rsp + 0x178], r12
mov qword [rsp + 0x170], r13
test r9, r9
jne 0x180079186
call fcn.180022100
mov rcx, qword [rbp - 0x70]
xor edx, edx
mov rdi, rax
mov qword [rbp - 0x80], rax
mov r12, qword [rbp + 0xd8]
mov eax, 0x200
cmp rbx, rax
cmovb rbx, rax
lea rax, [rbx + 0x3f]
and rax, 0xffffffffffffffc0
mov qword [rbp - 0x60], rax
test r12, r12
je 0x1800791b8
movsxd rax, r15d
cmp r12, rax
cmovb rcx, rdx
mov qword [rbp - 0x70], rcx
movsxd r13, r15d
cmp r12, r13
cmova r12, r13
mov qword [rbp + 0xd8], r12
test rcx, rcx
je 0x1800791dd
mov rdx, rcx
lea rcx, [rbp + 0x10]
mov r8, r12
call fcn.1801c9a10
call fcn.180030910
mov qword [rsp + 0x70], rax
test rax, rax
je 0x180079858
mov qword [rsp + 0x168], r14
call fcn.18000de60
mov r14, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x180079846
mov rcx, rax
call fcn.18000df20
mov rcx, r14
call fcn.18000e010
mov rbx, qword [rsp + 0x38]
mov rcx, rbx
mov r14, rax
call fcn.18000e010
mov rcx, rbx
mov qword [rsp + 0x60], rax
call fcn.18000e010
mov rcx, rbx
mov qword [rsp + 0x78], rax
call fcn.18000e010
mov rcx, rbx
mov qword [rsp + 0x48], rax
call fcn.18000e010
mov rcx, rbx
mov qword [rsp + 0x50], rax
call fcn.18000e010
mov rcx, rbx
mov qword [rbp - 0x58], rax
call fcn.18000e010
mov rcx, rbx
mov qword [rsp + 0x58], rax
call fcn.18000e010
mov rbx, rax
mov qword [rbp - 0x78], rax
test rax, rax
je 0x180079831
call fcn.18000c8b0
mov r8, qword [rbp - 0x60]
mov rcx, rbx
dec r8d
mov rdx, rax
call fcn.18002a910
test eax, eax
je 0x180079831
nop word [rax + rax]
mov ebx, dword [rsp + 0x40]
xor edx, edx
mov rcx, rsi
mov r8d, ebx
call fcn.18007c4a0
inc ebx
mov dword [rsp + 0x40], ebx
test eax, eax
je 0x180079831
test r12, r12
je 0x1800792eb
cmp qword [rbp - 0x70], 0
je 0x1800792eb
xor eax, eax
mov ebx, eax
mov r12d, eax
mov qword [rbp + 0xd8], rax
jmp 0x180079304
lea rcx, [rbp + 0x10]
mov edx, r15d
call fcn.1800103b0
test eax, eax
jle 0x180079831
mov ebx, 1
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x10]
mov r8, r13
call fcn.1801c9a10
lea rdx, [rbp + 0x10]
lea rcx, [rbp + 0x30]
mov r8, r13
call fcn.1801c9a10
lea r11, [r13 - 1]
test r11, r11
js 0x18007933c
nop dword [rax]
inc byte [rbp + r11 - 0x10]
jne 0x18007933c
dec r11
jns 0x180079330
lea r8, [rbp - 0x30]
lea rcx, [rbp + 0x10]
xor r9d, r9d
mov rdx, r13
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rdi
call fcn.180034a70
test eax, eax
je 0x180079831
lea r8, [rbp + 0x30]
lea rcx, [rbp - 0x10]
xor r9d, r9d
mov rdx, r13
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rdi
call fcn.180034a70
test eax, eax
je 0x180079831
xor ecx, ecx
test r15d, r15d
jle 0x1800793b1
nop word [rax + rax]
movzx eax, byte [rbp + rcx + 0x30]
inc rcx
xor byte [rbp + rcx - 0x31], al
cmp rcx, r13
jl 0x1800793a0
or byte [rbp - 0x30], 0x80
mov r8, qword [rsp + 0x48]
or byte [rbp + r13 - 0x31], 1
lea rcx, [rbp - 0x30]
mov edx, r15d
call fcn.18000ce90
test rax, rax
je 0x180079831
mov r8, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x48]
mov r9d, ebx
mov edx, reloc.WLDAP32.dll_Ordinal_50
mov qword [rsp + 0x20], rsi
call fcn.18007ca30
test eax, eax
jg 0x180079400
je 0x1800792b0
jmp 0x180079831
xor r8d, r8d
mov rcx, rsi
lea edx, [r8 + 2]
call fcn.18007c4a0
test eax, eax
je 0x180079831
xor r8d, r8d
mov rcx, rsi
lea edx, [r8 + 3]
call fcn.18007c4a0
test eax, eax
je 0x180079831
mov rcx, qword [rbp - 0x60]
mov rbx, qword [rsp + 0x78]
movabs rax, 0xcccccccccccccccd
dec rcx
xor esi, esi
lea r12, [r13 - 1]
mul rcx
mov rdi, rdx
shr rdi, 7
test esi, esi
je 0x18007946f
mov rcx, qword [rsp + 0x68]
mov r8d, esi
xor edx, edx
call fcn.18007c4a0
test eax, eax
je 0x180079831
xor edx, edx
mov rcx, rbx
call fcn.18000ce00
xor ecx, ecx
mov ebx, ecx
test edi, edi
js 0x180079525
mov rax, r12
test r12, r12
js 0x18007949b
nop dword [rax]
inc byte [rbp + rax - 0x10]
jne 0x18007949b
dec rax
jns 0x180079490
mov rax, qword [rbp - 0x80]
mov qword [rsp + 0x28], rcx
lea r8, [rbp - 0x30]
lea rcx, [rbp - 0x10]
xor r9d, r9d
mov rdx, r13
mov qword [rsp + 0x20], rax
call fcn.180034a70
test eax, eax
je 0x180079831
lea rcx, [rbp - 0x30]
mov r8, r14
mov edx, r15d
call fcn.18000ce90
test rax, rax
je 0x180079831
lea r8d, [r15*8]
mov rdx, r14
mov rcx, r14
imul r8d, ebx
call fcn.18002a910
test eax, eax
je 0x180079831
mov rax, qword [rsp + 0x78]
mov r8, r14
mov rdx, rax
mov rcx, rax
call fcn.180010200
test eax, eax
je 0x180079831
inc ebx
mov ecx, 0
cmp ebx, edi
jle 0x180079485
mov rdx, qword [rbp - 0x60]
mov rbx, qword [rsp + 0x78]
dec edx
mov rcx, rbx
call fcn.18000d270
test eax, eax
je 0x180079831
mov rcx, qword [rsp + 0x50]
mov rdx, rbx
call fcn.18000cd20
test rax, rax
je 0x180079831
mov rax, qword [rsp + 0x50]
mov r8, qword [rbp - 0x78]
mov rdx, rax
mov rcx, rax
call fcn.180010200
test eax, eax
je 0x180079831
mov rdx, qword [rsp + 0x48]
mov rcx, r14
call fcn.18002a720
test eax, eax
je 0x180079831
mov rax, qword [rsp + 0x38]
mov r8, qword [rsp + 0x50]
mov rdx, qword [rbp - 0x58]
mov r9, r14
xor ecx, ecx
mov qword [rsp + 0x20], rax
call fcn.18002ac70
test eax, eax
je 0x180079831
call fcn.18000c8b0
mov rdx, qword [rbp - 0x58]
mov rcx, r14
mov r8, rax
call fcn.180010130
test eax, eax
je 0x180079831
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
mov r8, r14
call fcn.180010130
test eax, eax
je 0x180079831
mov rdx, qword [rbp - 0x78]
mov rcx, qword [rsp + 0x58]
call fcn.18000d0c0
test eax, eax
js 0x180079621
mov rax, qword [rsp + 0x68]
mov r8, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x58]
mov r9d, 1
mov qword [rsp + 0x20], rax
lea edx, [r9 + 0x31]
call fcn.18007ca30
test eax, eax
jg 0x180079644
jne 0x180079831
inc esi
cmp esi, 0x1000
jl 0x180079454
mov rdi, qword [rbp - 0x80]
mov rsi, qword [rsp + 0x68]
mov r12, qword [rbp + 0xd8]
jmp 0x1800792b0
mov rbx, qword [rsp + 0x68]
mov edx, 2
lea r8d, [rdx - 1]
mov rcx, rbx
call fcn.18007c4a0
test eax, eax
je 0x180079831
call fcn.18000c8b0
mov r15, qword [rsp + 0x58]
mov r12, qword [rbp - 0x78]
mov rdx, r15
mov rcx, r12
mov r8, rax
call fcn.180010130
test eax, eax
je 0x180079831
mov rdi, qword [rsp + 0x38]
mov r9, qword [rsp + 0x48]
mov r8, r12
xor edx, edx
mov rcx, r14
mov qword [rsp + 0x20], rdi
call fcn.18002ac70
test eax, eax
je 0x180079831
mov edx, 2
mov rcx, r12
call fcn.18000ce00
test eax, eax
je 0x180079831
mov rcx, qword [rsp + 0x70]
mov r8, rdi
mov rdx, r15
call fcn.1800305b0
test eax, eax
je 0x180079831
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
mov r9, r15
mov qword [rsp + 0x28], rax
mov r8, r14
mov rdx, r12
mov qword [rsp + 0x20], rdi
call fcn.18002a0a0
test eax, eax
je 0x180079831
mov rcx, qword [rsp + 0x60]
cmp dword [rcx + 8], 1
jne 0x180079764
mov rax, qword [rcx]
cmp qword [rax], 1
jne 0x180079764
cmp dword [rcx + 0x10], 0
jne 0x180079764
call fcn.18000c8b0
mov rdx, r12
mov rcx, r12
mov r8, rax
call fcn.180010200
test eax, eax
je 0x180079831
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
inc dword [rbp - 0x68]
mov qword [rsp + 0x28], rax
mov r9, r15
mov r8, r14
mov rdx, r12
mov qword [rsp + 0x20], rdi
call fcn.18002a0a0
test eax, eax
jne 0x180079701
jmp 0x180079831
mov edx, 3
mov rcx, rbx
lea r8d, [rdx - 2]
call fcn.18007c4a0
test eax, eax
je 0x180079831
mov rbx, qword [rbp - 0x50]
mov dword [rsp + 0x30], 1
nop dword [rax]
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x18007979e
call fcn.18000ca80
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1800797ac
call fcn.18000ca80
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x1800797ba
call fcn.18000ca80
mov rcx, r15
call fcn.18000d6b0
mov rcx, qword [rsp + 0x48]
mov qword [rbx + 0x10], rax
call fcn.18000d6b0
mov rcx, qword [rsp + 0x60]
mov qword [rbx + 0x18], rax
call fcn.18000d6b0
cmp qword [rbx + 0x10], 0
mov qword [rbx + 0x20], rax
je 0x180079829
cmp qword [rbx + 0x18], 0
je 0x180079829
test rax, rax
je 0x180079829
mov rax, qword [rbp - 0x40]
test rax, rax
je 0x180079800
mov dword [rax], esi
mov rdx, qword [rbp - 0x48]
test rdx, rdx
je 0x18007980f
mov rax, qword [rbp - 0x68]
mov dword [rdx], eax
mov rax, qword [rbp - 0x38]
test rax, rax
je 0x180079831
lea rdx, [rbp + 0x10]
mov r8, r13
mov rcx, rax
call fcn.1801c9a10
jmp 0x180079831
mov dword [rsp + 0x30], 0
mov rsi, qword [rsp + 0x38]
mov rcx, rsi
call fcn.18000df90
mov rcx, rsi
call fcn.18000dee0
mov rcx, qword [rsp + 0x70]
call fcn.180030560
mov r14, qword [rsp + 0x168]
mov eax, dword [rsp + 0x30]
mov r13, qword [rsp + 0x170]
mov r12, qword [rsp + 0x178]
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.1801c74b0
add rsp, 0x180
pop r15
pop rdi
pop rsi
pop rbx
pop rbp
ret