Function at 0x1400234f0
Capabilities:
Copy file
Create directory
Encode data using xor
Enumerate files on windows
Get file size

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2e0]
sub rsp, 0x3e0
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rsp + 0x430], rbx
mov rax, qword [0x140320c20]
xor rax, rsp
mov qword [rbp + 0x2d0], rax
mov r12, r9
mov byte [rsp + 0x40], r8b
mov rbx, rdx
mov qword [rbp + 0x68], 7
xor r13d, r13d
mov qword [rbp + 0x60], r13
mov word [rbp + 0x50], r13w
cmp word [rcx], r13w
jne 0x140023557
mov r8d, r13d
jmp 0x14002356a
or r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rcx + r8*2], r13w
jne 0x140023560
mov rdx, rcx
lea rcx, [rbp + 0x50]
call fcn.140007be0
nop
mov qword [rbp + 0x28], 7
mov qword [rbp + 0x20], r13
mov word [rbp + 0x10], r13w
cmp word [rbx], 0
jne 0x140023593
mov r8, r13
jmp 0x1400235ab
or r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rbx + r8*2], 0
jne 0x1400235a0
mov rdx, rbx
lea rcx, [rbp + 0x10]
call fcn.140007be0
nop
mov qword [rbp - 0x80], r13
mov qword [rbp - 0x78], r13
xor r8d, r8d
xor edx, edx
call fcn.140004d20
mov rbx, rax
mov qword [rbp - 0x80], rax
lea r9, [rbp + 0x50]
mov r8, qword [rax + 8]
mov rdx, rax
call fcn.140011240
mov rdx, rax
movabs rcx, 0x555555555555554
mov r14, qword [rbp - 0x78]
sub rcx, r14
cmp rcx, 1
jae 0x140023608
lea rcx, str.list_T__too_long
call fcn.140216538
int3
add r14, 1
mov qword [rbp - 0x78], r14
mov qword [rbx + 8], rdx
mov rax, qword [rax + 8]
mov qword [rax], rdx
je 0x140023be2
mov r15, qword [rbp - 0x80]
nop word [rax + rax]
mov rdx, qword [r15]
add rdx, 0x10
lea r8, [0x140297498]
lea rcx, [rbp + 0x30]
call fcn.1400107c0
nop
mov rdi, qword [r15]
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 r14
mov qword [rbp - 0x78], r14
lea rbx, [rdi + 0x10]
mov r8, qword [rbx + 0x18]
cmp r8, 8
jb 0x140023683
inc r8
mov rdx, qword [rbx]
mov rcx, rbx
call fcn.140008270
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r13
cmp qword [rbx + 0x18], 8
jb 0x140023699
mov rbx, qword [rbx]
mov word [rbx], r13w
mov rcx, rdi
call fcn.1402150bc
or r9, 0xffffffffffffffff
mov r8, qword [rbp + 0x60]
lea rdx, [rsp + 0x48]
lea rcx, [rbp + 0x30]
call fcn.14000d730
nop
mov r8, rax
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x70]
call fcn.1400108a0
nop
mov r8, qword [rsp + 0x60]
cmp r8, 8
jb 0x1400236ea
inc r8
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x48]
call fcn.140008270
mov qword [rsp + 0x60], 7
xor ebx, ebx
mov qword [rsp + 0x58], rbx
mov word [rsp + 0x48], bx
lea rcx, [rbp - 0x70]
cmp qword [rbp - 0x58], 8
cmovae rcx, qword [rbp - 0x70]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [rsp + 0x68], 0x17d00e1
mov dword [rsp + 0x6c], 0x6b0066
xor eax, eax
mov word [rsp + 0x70], ax
mov r11d, ebx
mov r10d, ebx
lea rdi, [0x140000000]
movabs rbx, 0x2492492492492493
movabs rsi, 0xcccccccccccccccd
nop dword [rax]
lea r9, [rsp + 0x68]
lea r9, [r9 + r10*2]
mov rax, rbx
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 + rdi + 0x290048]
mov rax, rsi
mul r10
shr rdx, 2
lea rax, [rdx + rdx*4]
sub r10, rax
movzx eax, byte [r10 + rdi + 0x290040]
add r8w, ax
add r8w, r11w
xor word [r9], r8w
inc r11d
movsxd r10, r11d
cmp r10, 4
jb 0x140023750
movzx esi, byte [rsp + 0x40]
xor ebx, ebx
lea r8, [rsp + 0x68]
lea rdx, [rbp + 0x30]
lea rcx, [rbp - 0x50]
call fcn.1400107c0
nop
lea rcx, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae rcx, qword [rbp - 0x50]
lea rdx, [rbp + 0x80]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r13, rax
cmp rax, 0xffffffffffffffff
je 0x140023b4d
nop word [rax + rax]
lea r8, [rbp + 0xac]
lea rdx, [rbp + 0x30]
lea rcx, [rbp - 0x10]
call fcn.1400107c0
nop
test byte [rbp + 0x80], 0x10
je 0x1400238b2
movzx ecx, word [rbp + 0xac]
movzx eax, word [rbp + 0xae]
cmp cx, word [reloc.WLDAP32.dll_Ordinal_46]
jne 0x140023846
cmp ax, word [0x14029756e]
je 0x140023b11
cmp cx, word [reloc.WLDAP32.dll_Ordinal_46]
jne 0x14002386c
cmp ax, word [reloc.WLDAP32.dll_Ordinal_46]
jne 0x14002386c
movzx eax, word [rbp + 0xb0]
cmp ax, word [0x140297574]
je 0x140023b11
lea r9, [rbp - 0x10]
mov r8, qword [r15 + 8]
mov rdx, r15
call fcn.140011240
movabs rcx, 0x555555555555554
mov r14, qword [rbp - 0x78]
sub rcx, r14
cmp rcx, 1
jb 0x140023bc8
inc r14
mov qword [rbp - 0x78], r14
mov qword [r15 + 8], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rax
mov r15, qword [rbp - 0x80]
jmp 0x140023b11
lea r8, [rbp + 0xac]
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x30]
call fcn.1400107c0
nop
test sil, sil
jne 0x140023a7e
mov rdi, rbx
mov rsi, rbx
lea rdx, [rbp - 0x10]
cmp qword [rbp + 8], 8
cmovae rdx, qword [rbp - 0x10]
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x58], rbx
mov word [rsp + 0x48], bx
cmp word [rdx], 0
jne 0x140023902
mov r8, rbx
jmp 0x14002391b
or r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x140023910
lea rcx, [rsp + 0x48]
call fcn.140007be0
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rcx, qword [rsp + 0x48]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14002396b
or rcx, rax
jmp 0x140023987
lea rdx, [rbp + 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
cmovne rdi, qword [rbp + 0x70]
test rbx, rbx
je 0x14002398d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8, qword [rsp + 0x60]
cmp r8, 8
jb 0x1400239aa
inc r8
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x48]
call fcn.140008270
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rdx, qword [rbp - 0x30]
mov qword [rsp + 0x60], 7
xor ebx, ebx
mov qword [rsp + 0x58], rbx
mov word [rsp + 0x48], bx
cmp word [rdx], bx
jne 0x1400239d7
mov r8d, ebx
jmp 0x1400239ea
or r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rdx + r8*2], bx
jne 0x1400239e0
lea rcx, [rsp + 0x48]
call fcn.140007be0
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rcx, qword [rsp + 0x48]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140023a3a
or rcx, rax
jmp 0x140023a56
lea rdx, [rbp + 0x78]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
cmovne rsi, qword [rbp + 0x78]
test rbx, rbx
je 0x140023a5c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8, qword [rsp + 0x60]
cmp r8, 8
jb 0x140023a79
inc r8
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x48]
call fcn.140008270
cmp rdi, rsi
je 0x140023af0
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rdx, qword [rbp - 0x30]
lea rcx, [rbp - 0x10]
cmp qword [rbp + 8], 8
cmovae rcx, qword [rbp - 0x10]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x140023af0
test r12, r12
je 0x140023af0
mov rbx, qword [r12]
lea r9, [rbp - 0x30]
mov r8, qword [rbx + 8]
mov rdx, rbx
call fcn.140011240
mov rdx, qword [r12 + 8]
movabs rcx, 0x555555555555554
sub rcx, rdx
cmp rcx, 1
jb 0x140023bd5
lea rcx, [rdx + 1]
mov qword [r12 + 8], rcx
mov qword [rbx + 8], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rax
mov r8, qword [rbp - 0x18]
cmp r8, 8
jb 0x140023b0a
inc r8
mov rdx, qword [rbp - 0x30]
lea rcx, [rbp - 0x30]
call fcn.140008270
xor ebx, ebx
movzx esi, byte [rsp + 0x40]
mov r8, qword [rbp + 8]
cmp r8, 8
jb 0x140023b2b
inc r8
mov rdx, qword [rbp - 0x10]
lea rcx, [rbp - 0x10]
call fcn.140008270
lea rdx, [rbp + 0x80]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140023800
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
mov r8, qword [rbp - 0x38]
cmp r8, 8
jb 0x140023b67
inc r8
mov rdx, qword [rbp - 0x50]
lea rcx, [rbp - 0x50]
call fcn.140008270
mov word [rbp - 0x50], bx
mov qword [rbp - 0x40], rbx
mov qword [rbp - 0x38], 7
mov r8, qword [rbp - 0x58]
cmp r8, 8
jb 0x140023b91
inc r8
mov rdx, qword [rbp - 0x70]
lea rcx, [rbp - 0x70]
call fcn.140008270
mov word [rbp - 0x70], bx
mov qword [rbp - 0x60], rbx
mov qword [rbp - 0x58], 7
mov r8, qword [rbp + 0x48]
cmp r8, 8
jb 0x140023bbb
inc r8
mov rdx, qword [rbp + 0x30]
lea rcx, [rbp + 0x30]
call fcn.140008270
test r14, r14
je 0x140023be4
xor r13d, r13d
jmp 0x140023630
lea rcx, str.list_T__too_long
call fcn.140216538
nop
lea rcx, str.list_T__too_long
call fcn.140216538
nop
xor ebx, ebx
lea rcx, [rbp - 0x80]
call fcn.14000f2f0
mov rcx, qword [rbp - 0x80]
call fcn.1402150bc
nop
mov r8, qword [rbp + 0x28]
cmp r8, 8
jb 0x140023c11
inc r8
mov rdx, qword [rbp + 0x10]
lea rcx, [rbp + 0x10]
call fcn.140008270
mov qword [rbp + 0x28], 7
mov qword [rbp + 0x20], rbx
mov word [rbp + 0x10], bx
mov r8, qword [rbp + 0x68]
cmp r8, 8
jb 0x140023c3b
inc r8
mov rdx, qword [rbp + 0x50]
lea rcx, [rbp + 0x50]
call fcn.140008270
mov al, 1
mov rcx, qword [rbp + 0x2d0]
xor rcx, rsp
call fcn.140215090
mov rbx, qword [rsp + 0x430]
add rsp, 0x3e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret