Function at 0x1800076f0
Capabilities:
Move file
Print debug messages
Write file on windows

Disassembly:
push rbp
push rbx
push rsi
push r12
push r13
push r15
lea rbp, [rsp - 0x108]
sub rsp, 0x208
mov rax, qword [0x1800c6d00]
xor rax, rsp
mov qword [rbp + 0xe0], rax
mov eax, dword [rcx + 0xc]
xor r15d, r15d
mov r12, qword [rbp + 0x160]
mov ebx, r15d
mov dword [rsp + 0x58], eax
mov rsi, rcx
mov dword [rsp + 0x44], ebx
mov eax, 1
mov qword [rsp + 0x60], r9
mov qword [rsp + 0x48], r8
mov qword [rsp + 0x78], rdx
mov qword [rsp + 0x68], r12
lock xadd dword [0x1800c9b50], eax
inc eax
cmp eax, 1
jle 0x180007786
nop dword [rax]
lock dec dword [0x1800c9b50]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 1
lock xadd dword [0x1800c9b50], eax
inc eax
cmp eax, 1
jg 0x180007760
mov qword [rsp + 0x200], rdi
mov qword [rsp + 0x1f8], r14
cmp byte [rsi + 0x10], bl
je 0x180007ccc
xorps xmm0, xmm0
mov byte [rbp - 0x80], bl
xor eax, eax
mov rdi, 0xffffffffffffffff
movups xmmword [rbp - 0x7f], xmm0
mov qword [rbp - 0x3f], rax
mov r12d, 4
movups xmmword [rbp - 0x6f], xmm0
mov dword [rbp - 0x37], eax
movups xmmword [rbp - 0x5f], xmm0
mov word [rbp - 0x33], ax
movups xmmword [rbp - 0x4f], xmm0
mov byte [rbp - 0x31], al
nop dword [rax]
nop word [rax + rax]
mov eax, dword [rsi + 8]
lea rcx, [rsi + 0x10]
mov qword [rsp + 0x30], r15
xor r9d, r9d
mov dword [rsp + 0x28], eax
mov edx, 0x40000000
mov r8d, 1
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r14, rax
cmp rax, rdi
jne 0x18000782f
mov eax, r12d
dec r12d
test eax, eax
jle 0x180007a4e
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1800077e0
mov r9d, 2
mov dword [rsp + 0x50], r15d
lea r8, [rsp + 0x50]
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [rsi + 0x184]
mov dword [rsp + 0x54], eax
test edx, edx
je 0x180007a67
test ebx, ebx
jne 0x180007a67
mov r8, qword [rsp + 0x78]
test r8, r8
je 0x180007a67
lea ecx, [rax + 0x1ff]
shr ecx, 0xa
cmp ecx, edx
jb 0x180007a67
mov eax, dword [rsi + 0x190]
lea rcx, [0x1800a6138]
inc eax
mov dword [rsi + 0x190], eax
movzx eax, word [r8 + 2]
movzx edx, word [r8]
movzx r9d, word [r8 + 6]
lea r8, str.__2u._s._u__Continued__u_
lea rcx, [rcx + rax*4]
mov eax, dword [rsi + 0x190]
add rcx, 0xfffffffffffffffc
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], edx
mov edx, 0x50
mov qword [rsp + 0x20], rcx
lea rcx, [rbp - 0x80]
call fcn.180004550
mov r8, qword [rsp + 0x48]
mov rdx, rsi
mov rcx, r14
call fcn.180007490
cmp dword [rsi + 0x194], 2
lea rbx, [rsi + 0x198]
jne 0x18000792f
mov dword [rsp + 0x28], 0x7d0
lea r8, [rbp - 0x80]
mov r9d, edi
mov qword [rsp + 0x20], rbx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov rdx, rbx
mov r8, rdi
nop word [rax + rax]
inc r8
cmp word [rbx + r8*2], r15w
jne 0x180007920
add r8d, r8d
jmp 0x180007949
lea rdx, [rbp - 0x80]
mov r8, rdi
lea rax, [rbp - 0x80]
nop word [rax + rax]
inc r8
cmp byte [rax + r8], r15b
jne 0x180007940
lea r9, [rsp + 0x70]
mov qword [rsp + 0x20], r15
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [rsi + 0x194], 2
jne 0x18000799f
mov dword [rsp + 0x28], 0x7d0
lea r8, [0x1800a6168]
mov r9d, edi
mov qword [rsp + 0x20], rbx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov r8, rdi
nop dword [rax]
inc r8
cmp word [rbx + r8*2], r15w
jne 0x180007990
add r8d, r8d
jmp 0x1800079ac
lea rbx, [0x1800a6168]
mov r8d, 2
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], r15
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r8, [rsi + 0x10]
mov edx, 0x104
lea rcx, [rbp - 0x30]
mov r14, rdi
call fcn.180065ef0
lea rax, [rbp - 0x30]
mov rcx, rdi
nop word [rax + rax]
cmp byte [rax + rcx + 1], r15b
lea rcx, [rcx + 1]
jne 0x1800079f0
mov eax, dword [rsi + 0x190]
cmp eax, 1
lea rax, [rbp + rcx - 0x31]
jne 0x180007a1d
cmp byte [rax], 0x31
mov ecx, 0x49
mov edx, 0x31
cmovne ecx, edx
jmp 0x180007a26
cmp byte [rax], 0x24
mov cl, 0x7e
je 0x180007a26
mov cl, 0x24
mov byte [rax], cl
lea rdx, [rbp - 0x30]
lea rcx, [rsi + 0x10]
mov r8d, 9
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x180007a5f
mov ebx, 1
mov dword [rsp + 0x44], ebx
jmp 0x1800077e0
inc dword [rsi + 0x1138]
mov r15d, 1
jmp 0x180007cd3
mov eax, dword [rsp + 0x54]
mov ebx, dword [rsp + 0x44]
test eax, eax
jne 0x180007c14
cmp dword [rsi + 0x194], 2
jne 0x180007aa0
mov eax, 0xfeff
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x40]
mov word [rsp + 0x44], ax
mov r8d, 2
lea rdx, [rsp + 0x44]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r12, qword [rsp + 0x48]
test ebx, ebx
je 0x180007c19
mov r8, r12
mov rdx, rsi
mov rcx, r14
call fcn.180007490
cmp dword [rsi + 0x194], 2
lea rbx, [rsi + 0x198]
jne 0x180007aff
mov dword [rsp + 0x28], 0x7d0
lea r8, [rbp - 0x80]
mov r9d, edi
mov qword [rsp + 0x20], rbx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov rdx, rbx
mov r8, rdi
nop
inc r8
cmp word [rbx + r8*2], r15w
jne 0x180007af0
add r8d, r8d
jmp 0x180007b19
lea rdx, [rbp - 0x80]
mov r8, rdi
lea rax, [rbp - 0x80]
nop word [rax + rax]
inc r8
cmp byte [rax + r8], r15b
jne 0x180007b10
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], r15
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [rsi + 0x194], 2
jne 0x180007b6f
mov dword [rsp + 0x28], 0x7d0
lea r8, [0x1800a6168]
mov r9d, edi
mov qword [rsp + 0x20], rbx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov rdx, rbx
mov r8, rdi
nop dword [rax]
inc r8
cmp word [rbx + r8*2], r15w
jne 0x180007b60
add r8d, r8d
jmp 0x180007b7c
lea rdx, [0x1800a6168]
mov r8d, 2
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], r15
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r8, r12
mov rdx, rsi
mov rcx, r14
call fcn.180007490
lea r8, [rsi + 0x114]
mov rdx, rsi
mov rcx, r14
call fcn.180007490
cmp dword [rsi + 0x194], 2
jne 0x180007bef
mov dword [rsp + 0x28], 0x7d0
lea r8, [0x1800a6168]
mov r9d, edi
mov qword [rsp + 0x20], rbx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov r8, rdi
nop dword [rax]
inc r8
cmp word [rbx + r8*2], r15w
jne 0x180007be0
add r8d, r8d
jmp 0x180007bfc
lea rbx, [0x1800a6168]
mov r8d, 2
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], r15
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x180007c19
mov r12, qword [rsp + 0x48]
test r12, r12
je 0x180007c2c
mov r8, r12
mov rdx, rsi
mov rcx, r14
call fcn.180007490
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x180007c44
mov r8, rax
mov rdx, rsi
mov rcx, r14
call fcn.180007490
mov r12, qword [rsp + 0x68]
test r12, r12
je 0x180007c5c
mov r8, r12
mov rdx, rsi
mov rcx, r14
call fcn.180007490
cmp dword [rsi + 0x194], 2
jne 0x180007c9e
lea rbx, [rsi + 0x198]
mov dword [rsp + 0x28], 0x7d0
mov r9d, edi
mov qword [rsp + 0x20], rbx
lea r8, [0x1800a6168]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
nop dword [rax]
inc rdi
cmp word [rbx + rdi*2], r15w
jne 0x180007c90
add edi, edi
jmp 0x180007caa
lea rbx, [0x1800a6168]
mov edi, 2
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], r15
mov r8d, edi
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x58], r15d
je 0x180007d20
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x180007cf1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x180007d01
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test r15d, r15d
je 0x180007d13
lea rcx, [0x1800a6240]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rcx, [0x1800a6168]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lock dec dword [0x1800c9b50]
mov r14, qword [rsp + 0x1f8]
mov rdi, qword [rsp + 0x200]
mov rcx, qword [rbp + 0xe0]
xor rcx, rsp
call fcn.180032180
add rsp, 0x208
pop r15
pop r13
pop r12
pop rsi
pop rbx
pop rbp
ret