Function at 0x140001f60
Capabilities:
Create directory
Get common file path
Write file on windows

Disassembly:
push rbp
lea rbp, [rsp - 0x510]
sub rsp, 0x610
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rsp + 0x620], rbx
mov rax, qword [0x140021f60]
xor rax, rsp
mov qword [rbp + 0x500], rax
lea rcx, [rsp + 0x30]
call fcn.140001340
nop
lea rdx, str.Rules
lea rcx, [rsp + 0x30]
call fcn.140003910
lea rbx, [0x140017600]
mov rcx, rbx
mov rax, qword [rsp + 0x38]
test rax, rax
cmovne rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea rdx, str._rules.conf
lea rcx, [rsp + 0x30]
call fcn.140003910
mov word [rbp + 0x1c0], pe_nt_image_headers64
mov byte [rbp + 0xb0], 0
mov rdx, rbx
mov rax, qword [rsp + 0x38]
test rax, rax
cmovne rdx, rax
mov r8d, 0x103
lea rcx, [rbp + 0xb0]
call fcn.140006000
mov byte [rbp + 0x1c1], 1
lea rcx, [rbp + 0xb0]
call fcn.140001510
test al, al
je 0x140002339
mov byte [rbp + 0x3f0], 0
xor edx, edx
mov r8d, 0x103
lea rcx, [rbp + 0x3f1]
call fcn.140007260
mov edx, 0x104
lea rcx, [rbp + 0x3f0]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
or r8d, 0xffffffff
lea rdx, [rbp + 0x3f0]
lea rcx, [rsp + 0x48]
call fcn.140003a60
nop
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp + 0x2e0]
call fcn.140007260
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x80]
call fcn.140002d00
lea r8, str._system32_svchost.exe
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.140001030
mov rcx, qword [rax + 8]
mov rdx, rbx
test rcx, rcx
cmovne rdx, rcx
mov r8d, 0x103
lea rcx, [rbp + 0x2e0]
call fcn.140006000
lea rcx, [rsp + 0x60]
call fcn.140002e20
mov dword [rbp + 0x3e4], 2
lea r9, [rbp - 0x60]
lea r10, [rbp + 0x2e0]
lea rcx, [rbp - 0x60]
lea rdx, [rbp + 0x2e0]
mov rax, rdx
or rax, rcx
and eax, 0xf
jne 0x140002159
mov eax, 2
nop dword [rax]
movaps xmm0, xmmword [rdx]
movaps xmmword [rcx], xmm0
movaps xmm1, xmmword [rdx + 0x10]
movaps xmmword [rcx + 0x10], xmm1
movaps xmm0, xmmword [rdx + 0x20]
movaps xmmword [rcx + 0x20], xmm0
movaps xmm1, xmmword [rdx + 0x30]
movaps xmmword [rcx + 0x30], xmm1
movaps xmm0, xmmword [rdx + 0x40]
movaps xmmword [rcx + 0x40], xmm0
movaps xmm1, xmmword [rdx + 0x50]
movaps xmmword [rcx + 0x50], xmm1
movaps xmm0, xmmword [rdx + 0x60]
movaps xmmword [rcx + 0x60], xmm0
lea rcx, [rcx + 0x80]
movaps xmm1, xmmword [rdx + 0x70]
movaps xmmword [rcx - 0x10], xmm1
lea rdx, [rdx + 0x80]
dec rax
jne 0x140002100
mov rax, qword [rdx]
mov qword [rcx], rax
jmp 0x14000216a
mov r8d, 0x108
mov rdx, r10
mov rcx, r9
call fcn.140005b00
xor edx, edx
lea r8d, [rdx + 2]
mov rcx, qword [rbp + 0x1b8]
call fcn.1400066dc
cmp byte [rbp + 0x1c1], 0
je 0x1400021a6
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 0x108
lea rdx, [rbp - 0x60]
lea rcx, [rbp + 0xb0]
call fcn.1400010a0
mov r9, qword [rbp + 0x1b8]
mov edx, 0x108
mov r8d, 1
lea rcx, [rbp - 0x60]
call fcn.1400068e0
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp + 0x1d0]
call fcn.140007260
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x80]
call fcn.140002d00
lea r8, str._system32_ntoskrnl.exe
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.140001030
mov rcx, qword [rax + 8]
test rcx, rcx
cmovne rbx, rcx
mov r8d, 0x103
mov rdx, rbx
lea rcx, [rbp + 0x1d0]
call fcn.140006000
lea rcx, [rsp + 0x60]
call fcn.140002e20
mov dword [rbp + 0x2d4], 2
lea r9, [rbp - 0x60]
lea r10, [rbp + 0x1d0]
lea rdx, [rbp - 0x60]
lea rax, [rbp + 0x1d0]
mov rcx, rax
or rcx, rdx
and ecx, 0xf
jne 0x1400022aa
mov ecx, 2
movaps xmm0, xmmword [rax]
movaps xmmword [rdx], xmm0
movaps xmm1, xmmword [rax + 0x10]
movaps xmmword [rdx + 0x10], xmm1
movaps xmm0, xmmword [rax + 0x20]
movaps xmmword [rdx + 0x20], xmm0
movaps xmm1, xmmword [rax + 0x30]
movaps xmmword [rdx + 0x30], xmm1
movaps xmm0, xmmword [rax + 0x40]
movaps xmmword [rdx + 0x40], xmm0
movaps xmm1, xmmword [rax + 0x50]
movaps xmmword [rdx + 0x50], xmm1
movaps xmm0, xmmword [rax + 0x60]
movaps xmmword [rdx + 0x60], xmm0
lea rdx, [rdx + 0x80]
movaps xmm1, xmmword [rax + 0x70]
movaps xmmword [rdx - 0x10], xmm1
lea rax, [rax + 0x80]
dec rcx
jne 0x140002251
mov rcx, qword [rax]
mov qword [rdx], rcx
jmp 0x1400022bb
mov r8d, 0x108
mov rdx, r10
mov rcx, r9
call fcn.140005b00
xor edx, edx
lea r8d, [rdx + 2]
mov rcx, qword [rbp + 0x1b8]
call fcn.1400066dc
cmp byte [rbp + 0x1c1], 0
je 0x1400022f7
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 0x108
lea rdx, [rbp - 0x60]
lea rcx, [rbp + 0xb0]
call fcn.1400010a0
mov r9, qword [rbp + 0x1b8]
mov edx, 0x108
mov r8d, 1
lea rcx, [rbp - 0x60]
call fcn.1400068e0
cmp byte [rbp + 0x1c0], 1
jne 0x14000232e
mov rcx, qword [rbp + 0x1b8]
call fcn.1400063bc
mov byte [rbp + 0x1c0], 0
lea rcx, [rsp + 0x48]
call fcn.140002e20
nop
cmp byte [rbp + 0x1c0], 1
jne 0x140002355
mov rcx, qword [rbp + 0x1b8]
call fcn.1400063bc
mov byte [rbp + 0x1c0], 0
lea rcx, [rsp + 0x30]
call fcn.140002e20
mov rcx, qword [rbp + 0x500]
xor rcx, rsp
call fcn.140007230
mov rbx, qword [rsp + 0x620]
add rsp, 0x610
pop rbp
ret