Function at 0x18006b830
Capabilities:
Encode data using xor
Hash data using fnv
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x620]
sub rsp, 0x720
mov rax, qword [0x18017b040]
xor rax, rsp
mov qword [rbp + 0x610], rax
mov rbx, rcx
mov rdi, rdx
lea rcx, [rbp + 0x400]
call fcn.1800532f0
test al, al
je 0x18006c266
cmp word [rbp + 0x400], 0
lea rax, [rbp + 0x400]
je 0x18006b89a
nop
add rax, 2
cmp word [rax], 0
jne 0x18006b890
movzx ecx, word [rbx]
test cx, cx
je 0x18006b8c0
sub rbx, rax
nop word [rax + rax]
mov word [rax], cx
add rax, 2
movzx ecx, word [rax + rbx]
test cx, cx
jne 0x18006b8b0
xor r15d, r15d
lea rcx, [rbp + 0x400]
mov qword [rsp + 0x30], r15
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0x40000000
mov r8d, 1
mov dword [rsp + 0x20], 2
mov word [rax], r15w
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x60], rax
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x18006c266
xor ecx, ecx
call fcn.1800e75e0
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x68], rax
lea rcx, [rbp + 0x20]
call fcn.1800e75d8
movabs rax, 0xf6de52420d014f5a
lea r9, [rbp + 0x20]
mov qword [rsp + 0x40], rax
lea r8, [rbp + 0x3b0]
mov rcx, qword [rsp + 0x40]
movabs rax, 0x204187d3793b2d5f
mov qword [rbp + 0x3b0], rcx
movabs r13, 0xd3f33f6720656a01
mov qword [rsp + 0x40], rax
movabs rcx, 0xcff81662ff124d8a
mov rax, qword [rsp + 0x40]
movabs r12, 0x5320a78e2d1e0d06
mov qword [rbp + 0x3b8], rax
mov edx, 0x40
movabs rax, 0xc16f2ac8a017f2a3
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rbp + 0x3c0], rax
movabs rax, 0x4590d45d588e61a8
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rbp + 0x3c8], rax
movabs rax, 0x6defbe0104f084c1
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rbp + 0x3d0], rax
mov qword [rsp + 0x40], rcx
mov rax, qword [rsp + 0x40]
mov qword [rbp + 0x3d8], rax
mov qword [rsp + 0x40], r13
mov rax, qword [rsp + 0x40]
mov qword [rbp + 0x380], rax
mov qword [rsp + 0x40], r12
mov rax, qword [rsp + 0x40]
mov qword [rbp + 0x388], rax
movabs rax, 0xbd4f4ba1d86e9ad3
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rbp + 0x390], rax
movabs rax, 0x65f1b93830ed1288
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rbp + 0x398], rax
movabs rax, 0x6defb40b749df1a5
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rbp + 0x3a0], rax
mov qword [rsp + 0x40], rcx
lea rcx, [rbp - 0x20]
mov rax, qword [rsp + 0x40]
movdqa xmm0, xmmword [rbp + 0x3b0]
xorps xmm0, xmmword [rbp + 0x380]
movdqa xmm1, xmmword [rbp + 0x3c0]
xorps xmm1, xmmword [rbp + 0x390]
movdqa xmmword [rbp + 0x3b0], xmm0
movdqa xmm0, xmmword [rbp + 0x3d0]
mov qword [rbp + 0x3a8], rax
xorps xmm0, xmmword [rbp + 0x3a0]
movdqa xmmword [rbp + 0x3d0], xmm0
movdqa xmmword [rbp + 0x3c0], xmm1
call fcn.18005b5a0
lea rcx, [rbp - 0x20]
lea rax, [rbp - 0x20]
mov r8d, ecx
cmp byte [rbp - 0x20], r15b
je 0x18006badb
nop dword [rax]
inc rax
mov r8, rax
cmp byte [rax], r15b
jne 0x18006bad0
sub r8d, ecx
mov qword [rsp + 0x20], r15
mov rcx, r14
lea rdx, [rbp - 0x20]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [0x18017dac0]
xor r8d, r8d
mov rdx, rdi
mov rax, qword [rcx]
mov r9, qword [rax + 0x68]
call r9
mov qword [rsp + 0x58], rax
mov rdi, rax
test rax, rax
je 0x18006c266
movsxd rbx, dword [rax + 0x50c]
mov dl, 1
mov qword [rsp + 0x750], rsi
call fcn.180076590
mov rsi, rax
lea rdx, [rbp - 0x70]
movabs rax, 0xd3d11f034e100567
mov r8d, edx
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x40]
mov qword [rbp - 0x70], rcx
mov qword [rsp + 0x40], r12
mov rcx, qword [rsp + 0x40]
mov qword [rbp - 0x68], rcx
mov qword [rsp + 0x40], r13
mov rcx, qword [rsp + 0x40]
mov qword [rbp - 0x60], rcx
lea rcx, [rbp - 0x70]
mov qword [rsp + 0x40], r12
mov rax, qword [rsp + 0x40]
movdqa xmm0, xmmword [rbp - 0x70]
mov qword [rbp - 0x58], rax
xorps xmm0, xmmword [rbp - 0x60]
movq rax, xmm0
movdqa xmmword [rbp - 0x70], xmm0
test al, al
je 0x18006bbab
nop dword [rax + rax]
inc rcx
mov r8, rcx
cmp byte [rcx], r15b
jne 0x18006bba0
mov rcx, qword [0x18017bed8]
sub r8d, edx
lea rdx, [rbp - 0x70]
mov qword [rsp + 0x20], r15
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_WriteFile]
movzx eax, word [rsi + 8]
test al, 4
je 0x18006bbde
lea rdi, [0x180162c90]
mov r9d, 0x10
jmp 0x18006bc10
test al, 0x10
je 0x18006bbfb
mov r9d, 8
lea rdx, [rbp + 0x3b2]
mov ecx, ebx
call fcn.18006c760
mov rdx, rax
jmp 0x18006bc3f
test al, 0x20
je 0x18006c054
lea rdi, [0x180162c94]
mov r9d, 2
lea rdx, [rbp + 0x3b2]
mov ecx, ebx
call fcn.18006c760
test byte [rsi + 8], 2
mov rcx, rax
mov rdx, rax
je 0x18006bc3a
movzx eax, byte [rdi + 1]
mov byte [rdx - 1], al
lea rdx, [rdx - 2]
movzx eax, byte [rdi]
mov byte [rdx], al
mov rdi, qword [rsp + 0x58]
test ebx, ebx
js 0x18006bc54
mov eax, 0x400
test word [rsi + 8], ax
je 0x18006bc54
dec rdx
mov byte [rdx], 0x2b
mov rcx, qword [0x18017bed8]
lea r8, [rbp + 0x3f2]
xor esi, esi
sub r8d, edx
xor r9d, r9d
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
movabs rax, 0xb29e5a0f43164a23
lea rdx, [rbp - 0x50]
mov qword [rsp + 0x40], rax
lea rcx, [rbp - 0x50]
mov rax, qword [rsp + 0x40]
mov r8d, edx
mov qword [rbp - 0x50], rax
movabs rax, 0x2045d4fd4c726e26
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rbp - 0x48], rax
movabs rax, 0xc82b24ccf800f3f3
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rbp - 0x40], rax
movabs rax, 0x65f1b93830ed77e4
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rbp - 0x38], rax
mov qword [rsp + 0x40], r13
mov rax, qword [rsp + 0x40]
mov qword [rbp + 0x380], rax
mov qword [rsp + 0x40], r12
mov rax, qword [rsp + 0x40]
mov qword [rbp + 0x388], rax
movabs rax, 0xbd4f4ba1d86e9ad3
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rbp + 0x390], rax
movabs rax, 0x65f1b93830ed1288
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
movdqa xmm1, xmmword [rbp - 0x50]
xorps xmm1, xmmword [rbp + 0x380]
movdqa xmm0, xmmword [rbp - 0x40]
mov qword [rbp + 0x398], rax
movq rax, xmm1
xorps xmm0, xmmword [rbp + 0x390]
movdqa xmmword [rbp - 0x50], xmm1
movdqa xmmword [rbp - 0x40], xmm0
test al, al
je 0x18006bd6e
inc rcx
mov r8, rcx
cmp byte [rcx], sil
jne 0x18006bd63
mov rcx, qword [0x18017bed8]
sub r8d, edx
lea rdx, [rbp - 0x50]
mov qword [rsp + 0x20], rsi
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_WriteFile]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, 0xffffffffffffffff
lea edx, [rbx + 1]
mov r9, rax
mov eax, 8
mul rdx
cmovb rax, rcx
xor edx, edx
mov r8, rax
mov rcx, r9
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r10, rbx
mov qword [rsp + 0x70], rax
mov r15, rax
lea r11, [rdi + 0x5a0]
mov rbx, rsi
mov r9d, esi
mov r8d, esi
mov rdx, rsi
mov rcx, qword [r11]
test rcx, rcx
je 0x18006bdfe
nop dword [rax]
sub r9d, 1
jns 0x18006bdf5
mov qword [rax + rdx*8], rcx
inc r8d
inc rdx
cmp rdx, r10
jge 0x18006be0e
mov rcx, qword [rcx + 8]
test rcx, rcx
jne 0x18006bde0
inc rbx
add r11, 0x28
cmp rbx, 0x100
jl 0x18006bdd5
movsxd rax, r8d
mov qword [rbp - 0x70], rax
test r8d, r8d
jle 0x18006c238
mov r12, rsi
mov qword [rsp + 0x40], rsi
movabs rbx, 0x100000001b3
mov rax, qword [r15 + r12*8]
test rax, rax
je 0x18006c226
mov r13, qword [rax + 0x10]
test r13, r13
je 0x18006c226
mov rax, qword [rdi]
lea rdx, [rsp + 0x50]
mov r8, qword [r13 + 8]
mov rcx, rdi
call qword [rax + 0x10]
mov r8, qword [rsp + 0x50]
test r8, r8
je 0x18006c226
cmp word [r8 + 0x1c], 0
je 0x18006c226
mov r8, qword [r8 + 8]
lea rdx, [rbp - 0x30]
movabs rax, 0xa0d61f1453040662
lea rcx, [rbp + 0x50]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rbp - 0x30], rax
movabs rax, 0x5320a78e2d1e0d0c
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rbp - 0x28], rax
movabs rax, 0xd3f33f6720656a01
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rbp - 0x80], rax
movabs rax, 0x5320a78e2d1e0d06
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
movdqa xmm0, xmmword [rbp - 0x30]
mov qword [rbp - 0x78], rax
xorps xmm0, xmmword [rbp - 0x80]
movdqa xmmword [rbp - 0x30], xmm0
call fcn.18006c4f0
cmp byte [rbp + 0x50], 0
lea rax, [rbp + 0x50]
lea r8, [rbp + 0x50]
je 0x18006bf0e
inc rax
cmp byte [rax], 0
jne 0x18006bf03
mov r8d, eax
lea rax, [rbp + 0x50]
mov qword [rsp + 0x20], rsi
sub r8d, eax
lea rdx, [rbp + 0x50]
xor r9d, r9d
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x50]
mov r14d, esi
cmp si, word [rcx + 0x1c]
jge 0x18006c221
mov r15, qword [rsp + 0x60]
xor r12d, r12d
mov edi, r12d
nop word [rax + rax]
mov rsi, qword [rcx + 0x28]
lea rdx, [rbp - 0x60]
mov r8, qword [r13 + 8]
movabs rcx, 0x5320a78e2d1e0d06
movabs rax, 0xd3f34c421e481924
mov r9, qword [rdi + rsi]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rbp - 0x60], rax
mov qword [rsp + 0x48], rcx
mov rax, qword [rsp + 0x48]
mov qword [rbp - 0x58], rax
movabs rax, 0xd3f33f6720656a01
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rbp - 0x50], rax
mov qword [rsp + 0x48], rcx
lea rcx, [rbp + 0x270]
mov rax, qword [rsp + 0x48]
movdqa xmm0, xmmword [rbp - 0x60]
mov qword [rbp - 0x48], rax
xorps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x60], xmm0
call fcn.18006c4f0
lea rax, [rbp + 0x270]
movabs rdx, 0xcbf29ce484222325
cmp byte [rbp + 0x270], r12b
je 0x18006bff8
nop word [rax + rax]
inc rax
cmp byte [rax], r12b
jne 0x18006bff0
lea rcx, [rbp + 0x270]
mov r8, r12
sub rax, rcx
je 0x18006c028
nop word [rax + rax]
movsx rcx, byte [rbp + r8 + 0x270]
inc r8
xor rdx, rcx
imul rdx, rbx
cmp r8, rax
jb 0x18006c010
mov rcx, qword [0x18017d630]
lea rbx, [rdi + rsi]
cmp rcx, qword [0x18017d638]
mov qword [rsp + 0x48], rdx
je 0x18006c070
mov qword [rcx], rdx
mov eax, dword [rbx + 0x10]
mov dword [rcx + 8], eax
add qword [0x18017d630], 0x10
jmp 0x18006c081
mov r9d, 0xa
lea rdx, [rbp + 0x3b2]
mov ecx, ebx
call fcn.18006c760
mov rdx, rax
jmp 0x18006bc3f
lea r9, [rbx + 0x10]
mov rdx, rcx
lea r8, [rsp + 0x48]
call fcn.18006c8e0
mov rax, qword [rdi + rsi + 8]
movabs rdx, 0x65f1b93830ed1288
mov ecx, dword [rbx + 0x10]
mov r9, qword [rdi + rsi]
mov dword [rsp + 0x20], ecx
lea rcx, [rbp + 0x160]
mov r8, qword [rax + 8]
movabs rax, 0xf6d34c4200454a21
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rbp + 0x380], rax
movabs rax, 0xb05dfbe0d232d75
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rbp + 0x388], rax
movabs rax, 0xbd4f4ba1d86e9ad9
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rbp + 0x390], rax
mov qword [rsp + 0x48], rdx
mov rax, qword [rsp + 0x48]
mov qword [rbp + 0x398], rax
movabs rax, 0xd3f33f6720656a01
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rbp + 0x3b0], rax
movabs rax, 0x5320a78e2d1e0d06
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rbp + 0x3b8], rax
movabs rax, 0xbd4f4ba1d86e9ad3
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rbp + 0x3c0], rax
mov qword [rsp + 0x48], rdx
lea rdx, [rbp + 0x380]
mov rax, qword [rsp + 0x48]
movdqa xmm0, xmmword [rbp + 0x380]
xorps xmm0, xmmword [rbp + 0x3b0]
mov qword [rbp + 0x3c8], rax
movdqa xmm1, xmmword [rbp + 0x3c0]
xorps xmm1, xmmword [rbp + 0x390]
movdqa xmmword [rbp + 0x390], xmm1
movdqa xmmword [rbp + 0x380], xmm0
call fcn.18006c4f0
lea rax, [rbp + 0x160]
lea r8, [rbp + 0x160]
cmp byte [rbp + 0x160], r12b
je 0x18006c1cb
nop dword [rax + rax]
inc rax
cmp byte [rax], r12b
jne 0x18006c1c0
mov r8d, eax
lea rax, [rbp + 0x160]
mov qword [rsp + 0x20], r12
sub r8d, eax
lea rdx, [rbp + 0x160]
xor r9d, r9d
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x50]
inc r14d
add rdi, 0x20
movabs rbx, 0x100000001b3
movsx eax, word [rcx + 0x1c]
cmp r14d, eax
jl 0x18006bf50
mov r15, qword [rsp + 0x70]
xor esi, esi
mov r12, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x58]
mov r14, qword [rsp + 0x60]
inc r12
mov qword [rsp + 0x40], r12
cmp r12, qword [rbp - 0x70]
jl 0x18006be30
mov rsi, qword [rsp + 0x750]
test r15, r15
je 0x18006c259
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r15
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x18006c268
xor al, al
mov rcx, qword [rbp + 0x610]
xor rcx, rsp
call fcn.1800db5c0
lea r11, [rsp + 0x720]
mov rbx, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret