Function at 0x18005ce90
Capabilities:
Encode data using xor
Hash data with crc32
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x9b0]
sub rsp, 0xab0
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0xb00], rbx
mov rax, qword [0x1800eb008]
xor rax, rsp
mov qword [rbp + 0x9a0], rax
mov rbx, rdx
mov r14, rcx
xor edx, edx
mov r8d, 0x1ff
lea rcx, [rbp + 0x7a1]
call fcn.18008c000
mov dword [rbp + 0x7a0], 0x5120372
mov dword [rbp + 0x7a4], 2
mov eax, dword [r14 + 0x378]
mov dword [rbp + 0x7b4], eax
mov eax, dword [r14 + 0x370]
mov dword [rbp + 0x7b0], eax
mov rax, qword [r14 + 0x30]
shr rax, 9
mov dword [rbp + 0x7bc], eax
lea rcx, [rsp + 0x60]
call fcn.18005f5b0
nop
xor edi, edi
mov dword [r14 + 0x88], edi
mov dword [rsp + 0x3c], edi
mov dword [rsp + 0x40], edi
mov qword [rsp + 0x30], rdi
mov rax, qword [rbx]
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x3c]
mov rcx, rbx
call qword [rax + 0x58]
or r15d, 0xffffffff
lea r12, [0x1800cd2a0]
test eax, eax
jne 0x18005d17d
cmp dword [rsp + 0x3c], eax
je 0x18005d17d
cmp qword [rsp + 0x30], rdi
je 0x18005d17d
lea rcx, [0x1800d3af0]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
mov qword [rsp + 0x50], rax
test rax, rax
jne 0x18005cfa9
mov ecx, 0x8007000e
call fcn.18000b410
nop
xor r9d, r9d
mov r8d, 0x400
mov rdx, rbx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.OLEAUT32.dll_VarR8Pow]
cmp eax, 1
sete sil
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
xor sil, 1
je 0x18005d17d
mov dword [r14 + 0x88], 1
or dword [rbp + 0x7a8], 1
cmp qword [r14 + 0x398], 0
jne 0x18005d067
mov ecx, dword [r14 + 0x370]
lea rdx, [0x1800ece24]
call fcn.180072944
mov qword [r14 + 0x398], rax
test rax, rax
jne 0x18005d056
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
xor edx, edx
mov r8d, 0x280
lea rcx, [rsp + 0x60]
call fcn.18008c000
cmp dword [rbp + 0x478], 0
je 0x18005d04c
xor edx, edx
mov rcx, qword [rbp + 0x470]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
mov eax, 0x8007000e
jmp 0x18005d67f
mov r8d, dword [r14 + 0x370]
xor edx, edx
mov rcx, rax
call fcn.18008c000
mov ebx, 0x40
mov r8d, ebx
lea rdx, [rbp + 0x7c0]
lea rcx, [rsp + 0x60]
call fcn.18005f6b0
test eax, eax
jne 0x18005d0c5
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
xor edx, edx
mov r8d, 0x280
lea rcx, [rsp + 0x60]
call fcn.18008c000
cmp dword [rbp + 0x478], 0
je 0x18005d0bb
xor edx, edx
mov rcx, qword [rbp + 0x470]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
mov eax, 0x80004005
jmp 0x18005d67f
lea rcx, [rsp + 0x60]
call fcn.18005f9c0
mov r8d, ebx
lea rdx, [rbp + 0x810]
lea rcx, [rsp + 0x60]
call fcn.18005f6b0
test eax, eax
jne 0x18005d128
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
xor edx, edx
mov r8d, 0x280
lea rcx, [rsp + 0x60]
call fcn.18008c000
cmp dword [rbp + 0x478], 0
je 0x18005d11e
xor edx, edx
mov rcx, qword [rbp + 0x470]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
mov eax, 0x80004005
jmp 0x18005d67f
lea rcx, [rsp + 0x60]
call fcn.18005f9c0
mov dword [rbp + 0x800], 0x10211a41
lea r9, [rbp + 0x810]
mov r8d, r15d
nop word [rax + rax]
mov ecx, r8d
movzx eax, byte [r9]
xor rcx, rax
movzx edx, cl
mov eax, r8d
shr eax, 8
mov r8d, dword [r12 + rdx*4]
xor r8d, eax
lea r9, [r9 + 1]
sub ebx, 1
jne 0x18005d150
not r8d
mov dword [rbp + 0x804], r8d
xor eax, eax
mov qword [rbp + 0x760], rax
mov qword [rbp + 0x768], rax
mov qword [rbp + 0x770], rax
mov qword [rbp + 0x778], rax
mov qword [rbp + 0x780], rax
mov qword [rbp + 0x788], rax
mov qword [rbp + 0x790], rax
mov qword [rbp + 0x798], rax
or r13, 0xffffffffffffffff
cmp dword [r14 + 0x88], eax
je 0x18005d301
movaps xmm0, xmmword [rbp + 0x810]
movaps xmmword [rbp + 0x760], xmm0
movaps xmm1, xmmword [rbp + 0x820]
movaps xmmword [rbp + 0x770], xmm1
movaps xmm0, xmmword [rbp + 0x830]
movaps xmmword [rbp + 0x780], xmm0
movaps xmm1, xmmword [rbp + 0x840]
movaps xmmword [rbp + 0x790], xmm1
mov r8d, 0x150
lea rdx, [rbp + 0x850]
lea rcx, [rsp + 0x60]
call fcn.18005f6b0
test eax, eax
jne 0x18005d25c
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
xor edx, edx
mov r8d, 0x280
lea rcx, [rsp + 0x60]
call fcn.18008c000
cmp dword [rbp + 0x478], 0
je 0x18005d252
xor edx, edx
mov rcx, qword [rbp + 0x470]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
mov eax, 0x80004005
jmp 0x18005d67f
mov rbx, qword [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8d, eax
lea r9, [rbp + 0x7c0]
mov rdx, rbx
lea rcx, [rbp + 0x480]
call fcn.18005ee20
test eax, eax
jne 0x18005d2c8
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
xor edx, edx
mov r8d, 0x280
lea rcx, [rsp + 0x60]
call fcn.18008c000
cmp dword [rbp + 0x478], 0
je 0x18005d2be
xor edx, edx
mov rcx, qword [rbp + 0x470]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
mov eax, 0x80004005
jmp 0x18005d67f
mov r9, r13
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rbp + 0x7b0]
lea rcx, [rbp + 0x480]
call fcn.18005f000
mov r9, r13
mov r8d, 0x1a0
lea rdx, [rbp + 0x800]
lea rcx, [rbp + 0x480]
call fcn.18005f000
nop
lea r8, [rbp + 0x7a0]
mov r9d, 0x200
nop
mov ecx, r15d
movzx eax, byte [r8]
xor rcx, rax
movzx edx, cl
mov eax, r15d
shr eax, 8
mov r15d, dword [r12 + rdx*4]
xor r15d, eax
lea r8, [r8 + 1]
sub r9d, 1
jne 0x18005d310
not r15d
mov dword [rbp + 0x7ac], r15d
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [r14 + 0x70]
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x18005d397
call fcn.180002050
mov ebx, eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
xor edx, edx
mov r8d, 0x280
lea rcx, [rsp + 0x60]
call fcn.18008c000
cmp dword [rbp + 0x478], 0
je 0x18005d390
xor edx, edx
mov rcx, qword [rbp + 0x470]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
mov eax, ebx
jmp 0x18005d67f
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x44]
mov r8d, 0x200
lea rdx, [rbp + 0x7a0]
mov rcx, qword [r14 + 0x70]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x18005d401
call fcn.180002050
mov ebx, eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
xor edx, edx
mov r8d, 0x280
lea rcx, [rsp + 0x60]
call fcn.18008c000
cmp dword [rbp + 0x478], 0
je 0x18005d3fa
xor edx, edx
mov rcx, qword [rbp + 0x470]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
mov eax, ebx
jmp 0x18005d67f
mov edx, dword [r14 + 0x378]
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [r14 + 0x70]
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x18005d461
call fcn.180002050
mov ebx, eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
xor edx, edx
mov r8d, 0x280
lea rcx, [rsp + 0x60]
call fcn.18008c000
cmp dword [rbp + 0x478], 0
je 0x18005d45a
xor edx, edx
mov rcx, qword [rbp + 0x470]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
mov eax, ebx
jmp 0x18005d67f
mov ecx, dword [r14 + 0x374]
mov rax, qword [r14 + 0x30]
shr rax, 9
xor edx, edx
div rcx
mov ecx, eax
lea rbx, [rcx*4 + 0x1ff]
shr rbx, 2
and ebx, 0xffffff80
mov rcx, qword [r14 + 0x380]
test rcx, rcx
je 0x18005d497
call fcn.18007294c
mov esi, ebx
mov eax, 4
mul rsi
cmovo rax, r13
lea rdx, [0x1800ece24]
mov rcx, rax
call fcn.180072944
mov qword [r14 + 0x380], rax
test rax, rax
jne 0x18005d501
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
xor edx, edx
mov r8d, 0x280
lea rcx, [rsp + 0x60]
call fcn.18008c000
cmp dword [rbp + 0x478], 0
je 0x18005d4f7
xor edx, edx
mov rcx, qword [rbp + 0x470]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
mov eax, 0x8007000e
jmp 0x18005d67f
lea rsi, [rbx*4]
mov r8, rsi
mov edx, 0xff
mov rcx, rax
call fcn.18008c000
cmp dword [r14 + 0x88], 0
je 0x18005d5ab
lea rdx, [rbp + 0x760]
lea rcx, [r14 + 0x8c]
call fcn.18005ef70
test eax, eax
jne 0x18005d57f
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
xor edx, edx
mov r8d, 0x280
lea rcx, [rsp + 0x60]
call fcn.18008c000
cmp dword [rbp + 0x478], 0
je 0x18005d575
xor edx, edx
mov rcx, qword [rbp + 0x470]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
mov eax, 0x80004005
jmp 0x18005d67f
mov r9, rsi
shr r9, 9
not r9
mov qword [r14 + 0x368], r9
lea r8d, [rbx*4]
mov rdx, qword [r14 + 0x380]
lea rcx, [r14 + 0x8c]
call fcn.18005f000
lea r8d, [rbx*4]
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x44]
mov rdx, qword [r14 + 0x380]
mov rcx, qword [r14 + 0x70]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x18005d627
mov rcx, qword [r14 + 0x380]
call fcn.18007294c
mov qword [r14 + 0x380], rdi
call fcn.180002050
mov ebx, eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
xor edx, edx
mov r8d, 0x280
lea rcx, [rsp + 0x60]
call fcn.18008c000
cmp dword [rbp + 0x478], 0
je 0x18005d623
xor edx, edx
mov rcx, qword [rbp + 0x470]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
mov eax, ebx
jmp 0x18005d67f
cmp dword [r14 + 0x88], 0
je 0x18005d646
mov r8, rsi
mov edx, 0xff
mov rcx, qword [r14 + 0x380]
call fcn.18008c000
nop
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
xor edx, edx
mov r8d, 0x280
lea rcx, [rsp + 0x60]
call fcn.18008c000
cmp dword [rbp + 0x478], 0
je 0x18005d67d
xor edx, edx
mov rcx, qword [rbp + 0x470]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
xor eax, eax
mov rcx, qword [rbp + 0x9a0]
xor rcx, rsp
call fcn.180072920
mov rbx, qword [rsp + 0xb00]
add rsp, 0xab0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret