Function at 0x14001ac10
Capabilities:
Copy file
Create directory
Encode data using xor
Enumerate files on windows
Move file

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3a0]
sub rsp, 0x4a0
mov qword [rbp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x4e0], rbx
mov rax, qword [0x140320c20]
xor rax, rsp
mov qword [rbp + 0x390], rax
mov qword [rsp + 0x60], r9
mov qword [rsp + 0x70], r8
mov rdi, rdx
mov qword [rsp + 0x68], rdx
mov r15b, 1
xor r12d, r12d
mov qword [rbp + 0x88], r12
mov qword [rbp + 0x90], r12
xor r8d, r8d
xor edx, edx
call fcn.140004d20
mov rbx, rax
mov qword [rbp + 0x88], rax
mov r9, rdi
mov r8, qword [rax + 8]
mov rdx, rax
call fcn.140011240
mov rcx, rax
movabs rax, 0x555555555555554
mov rsi, qword [rbp + 0x90]
sub rax, rsi
cmp rax, 1
jae 0x14001acbf
lea rcx, str.list_T__too_long
call fcn.140216538
int3
add rsi, 1
mov qword [rbp + 0x90], rsi
mov qword [rbx + 8], rcx
mov rax, qword [rcx + 8]
mov qword [rax], rcx
je 0x14001b4f6
mov r14, qword [rbp + 0x88]
mov rdx, qword [r14]
add rdx, 0x10
lea r8, [0x140297498]
lea rcx, [rbp + 0x118]
call fcn.1400107c0
nop
mov rdi, qword [r14]
mov rcx, qword [rdi + 8]
mov rax, qword [rdi]
mov qword [rcx], rax
mov rcx, qword [rdi]
mov rax, qword [rdi + 8]
mov qword [rcx + 8], rax
dec rsi
mov qword [rbp + 0x90], rsi
lea rbx, [rdi + 0x10]
cmp qword [rbx + 0x18], 8
jb 0x14001ad3c
mov r8, qword [rbx + 0x18]
inc r8
mov rdx, qword [rbx]
mov rcx, rbx
call fcn.140008270
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r12
cmp qword [rbx + 0x18], 8
jb 0x14001ad52
mov rbx, qword [rbx]
mov word [rbx], r12w
mov rcx, rdi
call fcn.1402150bc
mov dword [rsp + 0x30], 0x17d00e1
mov dword [rsp + 0x34], 0x6b0066
xor eax, eax
mov word [rsp + 0x38], ax
xor edi, edi
mov r11d, edi
mov r10d, edi
lea rbx, [0x140000000]
movabs rdi, 0x2492492492492493
movabs r13, 0xcccccccccccccccd
nop dword [rax + rax]
lea r9, [rsp + 0x30]
lea r9, [r9 + r10*2]
mov rax, rdi
mul r10
mov rax, r10
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 2
imul rax, rax, 7
mov rcx, r10
sub rcx, rax
movzx r8d, byte [rcx + rbx + 0x290048]
mov rax, r13
mul r10
shr rdx, 2
lea rax, [rdx + rdx*4]
sub r10, rax
movzx eax, byte [r10 + rbx + 0x290040]
add r8w, ax
add r8w, r11w
xor word [r9], r8w
inc r11d
movsxd r10, r11d
cmp r10, 4
jb 0x14001ada0
mov r13, qword [rsp + 0x60]
xor edi, edi
lea r8, [rsp + 0x30]
lea rdx, [rbp + 0x118]
lea rcx, [rbp + 0x98]
call fcn.1400107c0
nop
lea rcx, [rbp + 0x98]
cmp qword [rbp + 0xb0], 8
cmovae rcx, qword [rbp + 0x98]
lea rdx, [rbp + 0x140]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x14001b43a
nop word [rax + rax]
lea r8, [rbp + 0x16c]
lea rdx, [rbp + 0x118]
lea rcx, [rbp + 0xf8]
call fcn.1400107c0
nop
or r9, 0xffffffffffffffff
mov rax, qword [rsp + 0x68]
mov r8, qword [rax + 0x10]
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x118]
call fcn.14000d730
nop
mov r8, rax
mov rdx, qword [rsp + 0x70]
lea rcx, [rbp + 0xd8]
call fcn.1400108a0
nop
mov r8, qword [rsp + 0x58]
cmp r8, 8
jb 0x14001aecc
inc r8
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x40]
call fcn.140008270
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], rdi
mov word [rsp + 0x40], di
lea r8, [rbp + 0x16c]
lea rdx, [rbp + 0xd8]
lea rcx, [rbp + 0x68]
call fcn.1400107c0
nop
lea r8, [rbp + 0x16c]
lea rdx, [rbp + 0xd8]
lea rcx, [rsp + 0x40]
call fcn.1400107c0
nop
lea r8, str..bak
mov rdx, rax
lea rcx, [rbp + 0xb8]
call fcn.140010750
nop
mov r8, qword [rsp + 0x58]
cmp r8, 8
jb 0x14001af44
inc r8
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x40]
call fcn.140008270
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], rdi
mov word [rsp + 0x40], di
test byte [rbp + 0x140], 0x10
je 0x14001b01c
movzx ecx, word [rbp + 0x16c]
movzx eax, word [rbp + 0x16e]
cmp cx, word [reloc.WLDAP32.dll_Ordinal_46]
jne 0x14001af88
cmp ax, word [0x14029756e]
je 0x14001b1cd
cmp cx, word [reloc.WLDAP32.dll_Ordinal_46]
jne 0x14001afae
cmp ax, word [reloc.WLDAP32.dll_Ordinal_46]
jne 0x14001afae
movzx eax, word [rbp + 0x170]
cmp ax, word [0x140297574]
je 0x14001b1cd
lea rcx, [rbp + 0x68]
cmp qword [rbp + 0x80], 8
cmovae rcx, qword [rbp + 0x68]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea r9, [rbp + 0xf8]
mov r8, qword [r14 + 8]
mov rdx, r14
call fcn.140011240
mov rcx, rax
movabs rax, 0x555555555555554
mov rsi, qword [rbp + 0x90]
sub rax, rsi
cmp rax, 1
jb 0x14001b42d
inc rsi
mov qword [rbp + 0x90], rsi
mov qword [r14 + 8], rcx
mov rax, qword [rcx + 8]
mov qword [rax], rcx
mov r14, qword [rbp + 0x88]
jmp 0x14001b1cd
lea rdx, [rbp + 0xb8]
cmp qword [rbp + 0xd0], 8
cmovae rdx, qword [rbp + 0xb8]
lea rcx, [rbp + 0x68]
cmp qword [rbp + 0x80], 8
cmovae rcx, qword [rbp + 0x68]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne dil
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, [rbp + 0x68]
cmp qword [rbp + 0x80], 8
cmovae rdx, qword [rbp + 0x68]
lea rax, [rbp - 0x38]
mov qword [rbp - 0x40], rax
mov r8d, 0xfde9
lea rcx, [rbp - 0x40]
call fcn.1400078f0
nop
mov dword [rsp + 0x20], ebx
movzx r9d, dil
mov r8, qword [rbp - 0x40]
lea rdx, str.backup_result
call fcn.14001cb60
nop
lea rax, [rbp - 0x38]
mov rcx, qword [rbp - 0x40]
cmp rcx, rax
je 0x14001b0ac
call fcn.140222478
test dil, dil
je 0x14001b2da
lea r8, [rbp + 0xb8]
lea rdx, [rbp + 0x68]
lea rcx, [rbp - 0x80]
call fcn.14001cd50
nop
mov rdx, rax
mov rcx, r13
call fcn.14001cfd0
lea r9, [rax + 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0x58]
mov rcx, r13
call fcn.14001d050
nop
mov r8, qword [rbp - 0x48]
cmp r8, 8
jb 0x14001b105
inc r8
mov rdx, qword [rbp - 0x60]
lea rcx, [rbp - 0x60]
call fcn.140008270
mov qword [rbp - 0x48], 7
xor edi, edi
mov qword [rbp - 0x50], rdi
mov word [rbp - 0x60], di
mov r8, qword [rbp - 0x68]
cmp r8, 8
jb 0x14001b131
inc r8
mov rdx, qword [rbp - 0x80]
lea rcx, [rbp - 0x80]
call fcn.140008270
lea rdx, [rbp + 0x68]
cmp qword [rbp + 0x80], 8
cmovae rdx, qword [rbp + 0x68]
lea rcx, [rbp + 0xf8]
cmp qword [rbp + 0x110], 8
cmovae rcx, qword [rbp + 0xf8]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
setne r15b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, [rbp + 0x68]
cmp qword [rbp + 0x80], 8
cmovae rdx, qword [rbp + 0x68]
lea rax, [rbp - 0x38]
mov qword [rbp - 0x40], rax
mov r8d, 0xfde9
lea rcx, [rbp - 0x40]
call fcn.1400078f0
nop
mov dword [rsp + 0x20], ebx
movzx r9d, r15b
mov r8, qword [rbp - 0x40]
lea rdx, str.copy_result
call fcn.14001cb60
nop
lea rax, [rbp - 0x38]
mov rcx, qword [rbp - 0x40]
cmp rcx, rax
je 0x14001b1c4
call fcn.140222478
test r15b, r15b
je 0x14001b2b5
mov r8, qword [rbp + 0xd0]
cmp r8, 8
jb 0x14001b1f0
inc r8
mov rdx, qword [rbp + 0xb8]
lea rcx, [rbp + 0xb8]
call fcn.140008270
mov qword [rbp + 0xd0], 7
mov qword [rbp + 0xc8], rdi
mov word [rbp + 0xb8], di
mov r8, qword [rbp + 0x80]
cmp r8, 8
jb 0x14001b226
inc r8
mov rdx, qword [rbp + 0x68]
lea rcx, [rbp + 0x68]
call fcn.140008270
mov qword [rbp + 0x80], 7
mov qword [rbp + 0x78], rdi
mov word [rbp + 0x68], di
mov r8, qword [rbp + 0xf0]
cmp r8, 8
jb 0x14001b25c
inc r8
mov rdx, qword [rbp + 0xd8]
lea rcx, [rbp + 0xd8]
call fcn.140008270
mov qword [rbp + 0xf0], 7
mov qword [rbp + 0xe8], rdi
mov word [rbp + 0xd8], di
mov r8, qword [rbp + 0x110]
cmp r8, 8
jb 0x14001b298
inc r8
mov rdx, qword [rbp + 0xf8]
lea rcx, [rbp + 0xf8]
call fcn.140008270
lea rdx, [rbp + 0x140]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x14001b3aa
jmp 0x14001ae60
mov r8, qword [rbp + 0xd0]
cmp r8, 8
jb 0x14001b302
inc r8
mov rdx, qword [rbp + 0xb8]
lea rcx, [rbp + 0xb8]
call fcn.140008270
jmp 0x14001b302
xor r15b, r15b
mov r8, qword [rbp + 0xd0]
cmp r8, 8
jb 0x14001b300
inc r8
mov rdx, qword [rbp + 0xb8]
lea rcx, [rbp + 0xb8]
call fcn.140008270
xor edi, edi
mov word [rbp + 0xb8], di
mov qword [rbp + 0xc8], rdi
mov qword [rbp + 0xd0], 7
mov r8, qword [rbp + 0x80]
cmp r8, 8
jb 0x14001b338
inc r8
mov rdx, qword [rbp + 0x68]
lea rcx, [rbp + 0x68]
call fcn.140008270
mov word [rbp + 0x68], di
mov qword [rbp + 0x78], rdi
mov qword [rbp + 0x80], 7
mov r8, qword [rbp + 0xf0]
cmp r8, 8
jb 0x14001b36e
inc r8
mov rdx, qword [rbp + 0xd8]
lea rcx, [rbp + 0xd8]
call fcn.140008270
mov word [rbp + 0xd8], di
mov qword [rbp + 0xe8], rdi
mov qword [rbp + 0xf0], 7
mov r8, qword [rbp + 0x110]
cmp r8, 8
jb 0x14001b3aa
inc r8
mov rdx, qword [rbp + 0xf8]
lea rcx, [rbp + 0xf8]
call fcn.140008270
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
mov r8, qword [rbp + 0xb0]
test r15b, r15b
je 0x14001b49d
cmp r8, 8
jb 0x14001b3e0
inc r8
mov rdx, qword [rbp + 0x98]
lea rcx, [rbp + 0x98]
call fcn.140008270
mov qword [rbp + 0xb0], 7
mov qword [rbp + 0xa8], rdi
mov word [rbp + 0x98], di
mov r8, qword [rbp + 0x130]
cmp r8, 8
jb 0x14001b41c
inc r8
mov rdx, qword [rbp + 0x118]
lea rcx, [rbp + 0x118]
call fcn.140008270
test rsi, rsi
je 0x14001b4f6
xor r12d, r12d
jmp 0x14001ace2
lea rcx, str.list_T__too_long
call fcn.140216538
nop
lea rdx, [rbp + 0x98]
cmp qword [rbp + 0xb0], 8
cmovae rdx, qword [rbp + 0x98]
lea rax, [rbp - 0x38]
mov qword [rbp - 0x40], rax
mov r8d, 0xfde9
lea rcx, [rbp - 0x40]
call fcn.1400078f0
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov rdx, qword [rbp - 0x40]
mov ecx, 0x106c
call fcn.140004d70
nop
lea rax, [rbp - 0x38]
mov rcx, qword [rbp - 0x40]
cmp rcx, rax
je 0x14001b493
call fcn.140222478
xor r15b, r15b
mov r8, qword [rbp + 0xb0]
cmp r8, 8
jb 0x14001b4b9
inc r8
mov rdx, qword [rbp + 0x98]
lea rcx, [rbp + 0x98]
call fcn.140008270
mov word [rbp + 0x98], di
mov qword [rbp + 0xa8], rdi
mov qword [rbp + 0xb0], 7
mov r8, qword [rbp + 0x130]
cmp r8, 8
jb 0x14001b4f6
inc r8
mov rdx, qword [rbp + 0x118]
lea rcx, [rbp + 0x118]
call fcn.140008270
nop
lea rcx, [rbp + 0x88]
call fcn.14000f2f0
mov rcx, qword [rbp + 0x88]
call fcn.1402150bc
movzx eax, r15b
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.140215090
mov rbx, qword [rsp + 0x4e0]
add rsp, 0x4a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret