Function at 0x180030900
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x18], r8d
push rbp
push rdi
push r14
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov rdi, rdx
mov rsi, rcx
call fcn.180031320
xor eax, eax
mov dword [rsp + 0x30], 0x34361ee1
mov byte [rsp + 0x38], al
xor r14d, r14d
mov dword [rsp + 0x34], 0x3323c3e
mov qword [rbp + 0x78], r14
mov rax, qword [rbp + 0x78]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x78]
mov rax, qword [rbp + 0x78]
add cl, 0x59
xor cl, byte [rsp + rax + 0x31]
mov rax, qword [rbp + 0x78]
mov byte [rsp + rax + 0x31], cl
mov rax, qword [rbp + 0x78]
inc rax
mov qword [rbp + 0x78], rax
mov rax, qword [rbp + 0x78]
cmp rax, 7
jb 0x180030950
movdqa xmm0, xmmword [0x18038f440]
lea rax, [rsp + 0x31]
movdqu xmmword [rbp - 0x58], xmm0
mov byte [rsp + 0x38], r14b
mov r8, 0xffffffffffffffff
mov byte [rbp - 0x68], r14b
nop
inc r8
cmp byte [rax + r8], r14b
jne 0x1800309a0
lea rdx, [rsp + 0x31]
lea rcx, [rbp - 0x68]
call fcn.180353890
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rdi + r8], r14b
jne 0x1800309c0
mov rdx, rdi
lea rcx, [rbp - 0x68]
call fcn.1803539e0
movdqa xmm0, xmmword [0x18038fa30]
lea rax, [rsp + 0x78]
movdqa xmm1, xmmword [0x18038f910]
lea rdi, [rsp + 0x78]
mov qword [rbp + 0x28], rax
mov qword [rsp + 0x58], 0x12
mov qword [rbp + 0x78], 6
mov rcx, qword [rbp + 0x78]
mov rax, qword [rsp + 0x58]
add rcx, rax
xor eax, eax
mov qword [rbp + 0x78], rcx
mov rcx, qword [rbp + 0x78]
rep stosb byte [rdi], al
lea rax, [rsp + 0x78]
mov qword [rbp + 0x30], rax
mov qword [rsp + 0x58], 5
mov qword [rbp + 0x78], 0x13
mov rcx, qword [rbp + 0x78]
mov rax, qword [rsp + 0x58]
add rcx, rax
mov qword [rbp + 0x78], rcx
mov rax, qword [rbp + 0x78]
movdqu xmmword [rbp - 0x48], xmm0
mov dword [rsp + 0x78], eax
movdqa xmm0, xmmword [0x18038f8b0]
movdqu xmmword [rbp - 0x28], xmm0
mov dword [rbp - 0x18], 0x514d5550
movdqu xmmword [rbp - 0x38], xmm1
mov word [rbp - 0x14], 0x65
mov qword [rbp + 0x78], r14
mov rax, qword [rbp + 0x78]
nop word [rax + rax]
mov rcx, qword [rbp + 0x78]
mov rax, qword [rbp + 0x78]
sub cl, 0xf
xor cl, byte [rbp + rax - 0x47]
mov rax, qword [rbp + 0x78]
mov byte [rbp + rax - 0x47], cl
mov rax, qword [rbp + 0x78]
inc rax
mov qword [rbp + 0x78], rax
mov rax, qword [rbp + 0x78]
cmp rax, 0x34
jb 0x180030a80
mov byte [rbp - 0x13], r14b
call fcn.180001690
mov rcx, qword gs:[0x58]
mov rdi, rax
mov edx, dword [0x18039b468]
mov eax, 4
mov rbx, qword [rcx + rdx*8]
add rbx, rax
mov ecx, dword [rbx]
cmp dword [0x18039d510], ecx
jle 0x180030b0c
lea rcx, [0x18039d510]
call fcn.180360f8c
cmp dword [0x18039d510], 0xffffffff
jne 0x180030b0c
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rcx, [0x18039d510]
mov qword [0x1803a15b8], rax
call fcn.180360f2c
mov eax, dword [rbx]
cmp dword [0x1803a1558], eax
jle 0x180030b45
lea rcx, [0x1803a1558]
call fcn.180360f8c
cmp dword [0x1803a1558], 0xffffffff
jne 0x180030b45
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x1803a1558]
mov qword [0x1803a1560], rax
call fcn.180360f2c
mov rcx, rdi
call qword [0x1803a15b8]
mov rcx, rax
lea rdx, [rbp - 0x47]
call qword [0x1803a1560]
mov rdi, rax
test rax, rax
je 0x180030fad
movdqa xmm0, xmmword [0x18038f510]
xor eax, eax
movdqa xmm1, xmmword [0x18038f840]
movdqu xmmword [rbp - 0x12], xmm0
mov byte [rbp + 0x22], al
movdqa xmm0, xmmword [0x18038f780]
movdqu xmmword [rbp + 0xe], xmm0
mov dword [rbp + 0x1e], 0x77081560
movdqu xmmword [rbp - 2], xmm1
mov qword [rbp + 0x78], r14
mov rax, qword [rbp + 0x78]
nop dword [rax]
nop word [rax + rax]
mov rcx, qword [rbp + 0x78]
mov rax, qword [rbp + 0x78]
add cl, 0x2c
xor cl, byte [rbp + rax - 0x11]
mov rax, qword [rbp + 0x78]
mov byte [rbp + rax - 0x11], cl
mov rax, qword [rbp + 0x78]
inc rax
mov qword [rbp + 0x78], rax
mov rax, qword [rbp + 0x78]
cmp rax, 0x33
jb 0x180030bb0
xor r9d, r9d
mov byte [rbp + 0x22], r14b
lea r8, [rbp - 0x80]
lea rcx, [rbp - 0x11]
lea edx, [r9 + 1]
call rdi
movdqa xmm0, xmmword [0x18038f8e0]
movdqu xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x70], 0x604771
mov qword [rbp + 0x78], r14
mov rax, qword [rbp + 0x78]
nop
mov rcx, qword [rbp + 0x78]
mov rax, qword [rbp + 0x78]
add cl, 0x10
xor cl, byte [rsp + rax + 0x61]
mov rax, qword [rbp + 0x78]
mov byte [rsp + rax + 0x61], cl
mov rax, qword [rbp + 0x78]
inc rax
mov qword [rbp + 0x78], rax
mov rax, qword [rbp + 0x78]
cmp rax, 0x12
jb 0x180030c10
mov byte [rsp + 0x73], r14b
call fcn.1800015d0
mov ecx, dword [rbx]
mov rdi, rax
cmp dword [0x18039d510], ecx
jle 0x180030c82
lea rcx, [0x18039d510]
call fcn.180360f8c
cmp dword [0x18039d510], 0xffffffff
jne 0x180030c82
mov rcx, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x1803a15b8], rcx
lea rcx, [0x18039d510]
call fcn.180360f2c
mov eax, dword [rbx]
cmp dword [0x1803a1558], eax
jle 0x180030cbb
lea rcx, [0x1803a1558]
call fcn.180360f8c
cmp dword [0x1803a1558], 0xffffffff
jne 0x180030cbb
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x1803a1558]
mov qword [0x1803a1560], rax
call fcn.180360f2c
mov rcx, rdi
call qword [0x1803a15b8]
mov rcx, rax
lea rdx, [rsp + 0x61]
call qword [0x1803a1560]
mov r10, rax
test rax, rax
je 0x180030fad
cmp qword [rbp - 0x50], 0x10
lea rax, [rbp + 0x70]
mov qword [rbp + 0x38], rax
lea r9, [rbp - 0x68]
cmovae r9, qword [rbp - 0x68]
mov qword [rsp + 0x58], 3
mov qword [rbp + 0x78], 1
mov rcx, qword [rbp + 0x78]
mov rax, qword [rsp + 0x58]
add rcx, rax
mov qword [rsp + 0x28], r9
mov qword [rbp - 0x70], rcx
xor r9d, r9d
mov qword [rsp + 0x58], 4
mov qword [rbp + 0x78], r14
mov rdx, qword [rbp + 0x78]
mov rax, qword [rsp + 0x58]
lea rcx, [r9 - 1]
add rdx, rax
mov r8d, eax
mov qword [rbp + 0x78], rdx
mov rdi, qword [rbp + 0x78]
mov rdx, qword [rbp - 0x70]
add edx, dword [rbp + 0x70]
add edi, edx
lea rdx, [rsp + 0x78]
mov dword [rsp + 0x20], edi
call r10
mov qword [rsi], rax
xor eax, eax
mov byte [rsp + 0x43], al
mov dword [rsp + 0x39], 0xa0ad8d89
mov dword [rsp + 0x3d], 0xb580a9a5
mov word [rsp + 0x41], 0xacad
mov qword [rbp + 0x78], r14
mov rax, qword [rbp + 0x78]
nop dword [rax]
nop word [rax + rax]
mov rcx, qword [rbp + 0x78]
mov rax, qword [rbp + 0x78]
sub cl, 0x3f
xor cl, byte [rsp + rax + 0x3a]
mov rax, qword [rbp + 0x78]
mov byte [rsp + rax + 0x3a], cl
mov rax, qword [rbp + 0x78]
inc rax
mov qword [rbp + 0x78], rax
mov rax, qword [rbp + 0x78]
cmp rax, 9
jb 0x180030d90
mov byte [rsp + 0x43], r14b
call fcn.1800015d0
mov ecx, dword [rbx]
mov rdi, rax
cmp dword [0x18039d510], ecx
jle 0x180030e02
lea rcx, [0x18039d510]
call fcn.180360f8c
cmp dword [0x18039d510], 0xffffffff
jne 0x180030e02
mov rcx, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x1803a15b8], rcx
lea rcx, [0x18039d510]
call fcn.180360f2c
mov eax, dword [rbx]
cmp dword [0x1803a1558], eax
jle 0x180030e3b
lea rcx, [0x1803a1558]
call fcn.180360f8c
cmp dword [0x1803a1558], 0xffffffff
jne 0x180030e3b
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x1803a1558]
mov qword [0x1803a1560], rax
call fcn.180360f2c
mov rcx, rdi
call qword [0x1803a15b8]
mov rcx, rax
lea rdx, [rsp + 0x3a]
call qword [0x1803a1560]
test rax, rax
je 0x180030fad
mov rcx, qword [rbp - 0x80]
call rax
mov rcx, qword [rsi]
test rcx, rcx
je 0x180030fad
call fcn.180007b30
xor eax, eax
mov dword [rsp + 0x44], 0xc0cee34d
mov byte [rsp + 0x52], al
mov dword [rsp + 0x48], 0xc3d6dbe7
mov dword [rsp + 0x4c], 0xd1f1d0fa
mov word [rsp + 0x50], 0xdfd5
mov qword [rbp + 0x78], r14
mov rax, qword [rbp + 0x78]
nop
mov rcx, qword [rbp + 0x78]
mov rax, qword [rbp + 0x78]
sub cl, 0x52
xor cl, byte [rsp + rax + 0x45]
mov rax, qword [rbp + 0x78]
mov byte [rsp + rax + 0x45], cl
mov rax, qword [rbp + 0x78]
inc rax
mov qword [rbp + 0x78], rax
mov rax, qword [rbp + 0x78]
cmp rax, 0xd
jb 0x180030ea0
mov byte [rsp + 0x52], r14b
call fcn.1800015d0
mov edx, dword [rbx]
mov rdi, rax
cmp dword [0x18039d510], edx
jle 0x180030f12
lea rcx, [0x18039d510]
call fcn.180360f8c
cmp dword [0x18039d510], 0xffffffff
jne 0x180030f12
mov rdx, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rcx, [0x18039d510]
mov qword [0x1803a15b8], rdx
call fcn.180360f2c
mov eax, dword [rbx]
cmp dword [0x1803a1558], eax
jle 0x180030f4b
lea rcx, [0x1803a1558]
call fcn.180360f8c
cmp dword [0x1803a1558], 0xffffffff
jne 0x180030f4b
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x1803a1558]
mov qword [0x1803a1560], rax
call fcn.180360f2c
mov rcx, rdi
call qword [0x1803a15b8]
mov rcx, rax
lea rdx, [rsp + 0x45]
call qword [0x1803a1560]
test rax, rax
je 0x180030fad
mov rcx, qword [rsi]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r14
lea edx, [r9 + 6]
call rax
mov qword [rsi + 8], rax
test rax, rax
je 0x180030fad
mov rcx, rsi
call fcn.180031480
mov eax, dword [rbp + 0x70]
mov rcx, qword [rsi + 8]
mov dword [rcx], eax
mov rax, qword [rsi + 8]
test rax, rax
je 0x180030fa2
xchg dword [rax + 4], r14d
mov eax, dword [rbp + 0x70]
mov dil, 1
mov dword [rsi + 0x10], eax
jmp 0x180030fb0
xor dil, dil
lea rcx, [rbp - 0x68]
call fcn.180353810
lea r11, [rsp + 0x140]
movzx eax, dil
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret