Function at 0x1400251a0
Capabilities:
Encode data using xor
Get file size
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x250]
sub rsp, 0x350
mov rax, qword [0x14006c030]
xor rax, rsp
mov qword [rbp + 0x240], rax
mov r12, rcx
xor r13d, r13d
mov esi, r13d
mov dword [rsp + 0x48], r13d
xor edx, edx
mov r8d, 0x104
lea rcx, [rbp + 0x130]
call fcn.14002aed0
mov r8d, 0x104
lea rdx, [rbp + 0x130]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rcx, [rbp + 0x130]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
mov qword [rbp - 0x18], r13
mov qword [rbp - 8], r13
mov qword [rbp], 0xf
mov byte [rbp - 0x18], sil
lea rax, [rbp + 0x130]
mov rdi, 0xffffffffffffffff
mov r8, rdi
inc r8
cmp byte [rax + r8], sil
jne 0x140025241
lea rdx, [rbp + 0x130]
lea rcx, [rbp - 0x18]
call fcn.1400019f0
nop
mov r8d, 8
lea rdx, str.002.dat
lea rcx, [rbp - 0x18]
call fcn.1400028e0
lea rcx, [rbp - 0x18]
cmp qword [rbp], 0x10
cmovae rcx, qword [rbp - 0x18]
mov qword [rsp + 0x30], r13
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_CreateFileA]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x140025986
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov ecx, eax
call fcn.140028f04
mov r15, rax
mov qword [rsp + 0x70], rax
mov dword [rbp - 0x60], r13d
mov qword [rsp + 0x20], r13
lea r9, [rbp - 0x60]
mov r8d, ebx
mov rdx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 0xa8
jne 0x140025986
mov qword [rbp - 0x58], r13
mov qword [rbp - 0x48], r13
mov qword [rbp - 0x40], 0xf
mov byte [rbp - 0x58], 0
lea rax, [rbp + 0x130]
nop dword [rax + rax]
inc rdi
cmp byte [rax + rdi], 0
jne 0x140025320
mov r8, rdi
lea rdx, [rbp + 0x130]
lea rcx, [rbp - 0x58]
call fcn.1400019f0
nop
mov r8d, 8
lea rdx, str.001.dat
lea rcx, [rbp - 0x58]
call fcn.1400028e0
mov qword [rsp + 0x68], r13
lea rcx, [rbp - 0x58]
cmp qword [rbp - 0x40], 0x10
cmovae rcx, qword [rbp - 0x58]
mov qword [rsp + 0x30], r13
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_CreateFileA]
mov rdi, rax
mov ebx, r13d
cmp rax, 0xffffffffffffffff
je 0x1400253e0
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov ecx, eax
call fcn.140028f04
mov qword [rsp + 0x68], rax
mov dword [rbp - 0x5c], r13d
mov qword [rsp + 0x20], r13
lea r9, [rbp - 0x5c]
mov r8d, ebx
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop word [rax + rax]
lea rdi, [r15 + 4]
mov qword [rsp + 0x58], rdi
mov eax, dword [r15 + 0x94]
add eax, dword [r15 + 0x7c]
add eax, dword [r15 + 0x64]
add eax, dword [r15 + 0x4c]
add eax, dword [r15 + 0x34]
add eax, dword [r15 + 0x1c]
add eax, dword [rdi]
cmp eax, ebx
jne 0x14002593b
mov edx, 0x15
lea rcx, [rbp + 8]
call fcn.1400140c0
nop
mov eax, r13d
mov dword [rsp + 0x44], eax
cmp qword [rbp + 0x20], 0x10
setae r9b
mov byte [rsp + 0x40], r9b
mov r14, r13
mov qword [rsp + 0x50], r13
mov rcx, qword [rbp + 8]
mov r8d, dword [rdi]
mov dword [rsp + 0x48], r8d
lea rdx, [rbp + 8]
test r9b, r9b
cmovne rdx, rcx
lea r13d, [r8 - 0x10]
mov ebx, eax
add rbx, qword [rsp + 0x68]
lea r15, [rbx + 0x10]
mov qword [rsp + 0x60], r15
lea rcx, [rbp + 0x30]
call fcn.140001c10
movups xmm0, xmmword [rbx]
movaps xmmword [rbp + 0x120], xmm0
mov rbx, r15
test r13d, r13d
je 0x1400254ea
lea rdi, [rbp + 0x120]
sub rdi, r15
lea r14, [r13 - 1]
shr r14, 4
inc r14
nop word [rax + rax]
movups xmm0, xmmword [rbx]
lea rdx, [rbp + 0x30]
mov rcx, rbx
call fcn.140002620
mov ecx, 0x10
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rdi + rbx]
xor byte [rbx], al
inc rbx
sub rcx, 1
jne 0x1400254c0
movaps xmmword [rbp + 0x120], xmm0
sub rdi, 0x10
sub r14, 1
jne 0x1400254a0
mov r14, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
lea eax, [r13 - 1]
movzx eax, byte [rax + r15]
sub r13d, eax
cmp eax, 0x10
mov ebx, 0
cmova r13d, ebx
test r13d, r13d
je 0x1400258b0
mov rax, qword [r12]
mov rcx, qword [r14 + rax]
mov rdx, qword [rcx]
mov rax, qword [rcx + 8]
sub rax, rdx
sar rax, 5
or esi, 1
lea rcx, [rbp - 0x38]
test rax, rax
je 0x140025534
call fcn.140001300
jmp 0x140025557
mov qword [rbp - 0x38], rbx
mov qword [rbp - 0x28], rbx
mov qword [rbp - 0x20], 0xf
mov byte [rbp - 0x38], bl
xor r8d, r8d
lea rdx, [0x140062cc8]
call fcn.1400019f0
nop
lea rcx, [rbp - 0x38]
cmp qword [rbp - 0x20], 0x10
cmovae rcx, qword [rbp - 0x38]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400255b8
xor eax, eax
mov dword [rsp + 0x78], eax
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x78]
mov r8d, r13d
mov rdx, r15
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8, qword [r12]
mov rdx, r8
mov rax, qword [r8 + r14]
xor ecx, ecx
cmp dword [rax + 0x80], 1
jne 0x14002571b
mov r15d, ecx
mov rax, qword [r12 + 8]
sub rax, r8
sar rax, 4
test rax, rax
je 0x140025749
mov r14d, ecx
mov rdi, qword [rsp + 0x60]
mov rax, qword [r14 + r8]
cmp dword [rax + 0x80], 0x80
jne 0x1400256e8
mov rdx, qword [rax]
mov rax, qword [rax + 8]
sub rax, rdx
sar rax, 5
or esi, 2
test rax, rax
je 0x140025627
lea rcx, [rbp - 0x80]
call fcn.140001300
jmp 0x14002564a
mov qword [rbp - 0x80], rcx
mov qword [rbp - 0x70], rcx
mov qword [rbp - 0x68], 0xf
xor r8d, r8d
lea rdx, [0x140062cc8]
lea rcx, [rbp - 0x80]
call fcn.1400019f0
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 0x10
cmovae rcx, qword [rbp - 0x80]
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400256ad
xor eax, eax
mov dword [rsp + 0x78], eax
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x78]
mov r8d, r13d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbp - 0x68]
cmp rdx, 0x10
jb 0x1400256e8
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400256e3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400259f3
call fcn.1400285fc
inc r15d
add r14, 0x10
mov rdx, qword [r12]
mov rcx, qword [r12 + 8]
sub rcx, rdx
sar rcx, 4
mov r8, rdx
movsxd rax, r15d
cmp rax, rcx
mov ecx, 0
jb 0x1400255f2
mov r15, rdi
mov r14, qword [rsp + 0x50]
mov rax, qword [rdx + r14]
cmp dword [rax + 0x80], 2
jne 0x140025870
mov r14d, ecx
mov rax, qword [r12 + 8]
sub rax, rdx
sar rax, 4
test rax, rax
je 0x14002586b
mov rdi, rcx
jmp 0x140025752
mov r15, qword [rsp + 0x60]
jmp 0x14002571b
xor ecx, ecx
mov rax, qword [rdi + rdx]
cmp dword [rax + 0x80], 0x100
jne 0x140025848
mov rdx, qword [rax]
mov rax, qword [rax + 8]
sub rax, rdx
sar rax, 5
or esi, 4
test rax, rax
je 0x140025787
lea rcx, [rbp - 0x80]
call fcn.140001300
jmp 0x1400257aa
mov qword [rbp - 0x80], rcx
mov qword [rbp - 0x70], rcx
mov qword [rbp - 0x68], 0xf
xor r8d, r8d
lea rdx, [0x140062cc8]
lea rcx, [rbp - 0x80]
call fcn.1400019f0
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 0x10
cmovae rcx, qword [rbp - 0x80]
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14002580d
xor eax, eax
mov dword [rsp + 0x78], eax
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x78]
mov r8d, r13d
mov rdx, r15
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbp - 0x68]
cmp rdx, 0x10
jb 0x140025848
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140025843
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400259f9
call fcn.1400285fc
inc r14d
add rdi, 0x10
mov rdx, qword [r12]
mov rcx, qword [r12 + 8]
sub rcx, rdx
sar rcx, 4
movsxd rax, r14d
cmp rax, rcx
jb 0x140025750
mov r14, qword [rsp + 0x50]
mov rdx, qword [rbp - 0x20]
cmp rdx, 0x10
jb 0x1400258ab
inc rdx
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400258a6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400259ff
call fcn.1400285fc
mov rdi, qword [rsp + 0x58]
mov eax, dword [rsp + 0x44]
add eax, dword [rsp + 0x48]
mov dword [rsp + 0x44], eax
add rdi, 0x18
mov qword [rsp + 0x58], rdi
add r14, 0x10
mov qword [rsp + 0x50], r14
cmp r14, 0x70
jge 0x1400258df
movzx r9d, byte [rsp + 0x40]
jmp 0x14002543a
mov rcx, qword [rsp + 0x70]
call fcn.1400285fc
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x1400258fc
mov rcx, rax
call fcn.1400285fc
nop
cmp byte [rsp + 0x40], 0
je 0x140025938
mov rdx, qword [rbp + 0x20]
inc rdx
mov rcx, qword [rbp + 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140025933
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140025a05
call fcn.1400285fc
xor r13d, r13d
mov rdx, qword [rbp - 0x40]
cmp rdx, 0x10
jb 0x140025976
inc rdx
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140025971
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140025a0b
call fcn.1400285fc
mov qword [rbp - 0x48], r13
mov qword [rbp - 0x40], 0xf
mov byte [rbp - 0x58], 0
mov rdx, qword [rbp]
cmp rdx, 0x10
jb 0x1400259bd
inc rdx
mov rcx, qword [rbp - 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400259b8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400259ed
call fcn.1400285fc
mov rcx, qword [rbp + 0x240]
xor rcx, rsp
call fcn.1400285b0
lea r11, [rsp + 0x350]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.14002ef48
nop
call fcn.14002ef48
nop
call fcn.14002ef48
nop
call fcn.14002ef48
nop
call fcn.14002ef48
nop
call fcn.14002ef48
int3