Function at 0x1400246e0
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 [0x14006b030]
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.14002a410
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 0x140024781
lea rdx, [rbp + 0x130]
lea rcx, [rbp - 0x18]
call fcn.1400019d0
nop
mov r8d, 8
lea rdx, str.002.dat
lea rcx, [rbp - 0x18]
call fcn.1400028c0
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 0x140024ec6
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov ecx, eax
call fcn.140028444
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 0x140024ec6
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 0x140024860
mov r8, rdi
lea rdx, [rbp + 0x130]
lea rcx, [rbp - 0x58]
call fcn.1400019d0
nop
mov r8d, 8
lea rdx, str.001.dat
lea rcx, [rbp - 0x58]
call fcn.1400028c0
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 0x140024920
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov ecx, eax
call fcn.140028444
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 0x140024e7b
mov edx, 0x15
lea rcx, [rbp + 8]
call fcn.1400140b0
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.140001bf0
movups xmm0, xmmword [rbx]
movaps xmmword [rbp + 0x120], xmm0
mov rbx, r15
test r13d, r13d
je 0x140024a2a
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.140002600
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 0x140024a00
movaps xmmword [rbp + 0x120], xmm0
sub rdi, 0x10
sub r14, 1
jne 0x1400249e0
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 0x140024df0
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 0x140024a74
call fcn.1400012e0
jmp 0x140024a97
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, [0x140061cb8]
call fcn.1400019d0
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 0x140024af8
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 0x140024c5b
mov r15d, ecx
mov rax, qword [r12 + 8]
sub rax, r8
sar rax, 4
test rax, rax
je 0x140024c89
mov r14d, ecx
mov rdi, qword [rsp + 0x60]
mov rax, qword [r14 + r8]
cmp dword [rax + 0x80], 0x80
jne 0x140024c28
mov rdx, qword [rax]
mov rax, qword [rax + 8]
sub rax, rdx
sar rax, 5
or esi, 2
test rax, rax
je 0x140024b67
lea rcx, [rbp - 0x80]
call fcn.1400012e0
jmp 0x140024b8a
mov qword [rbp - 0x80], rcx
mov qword [rbp - 0x70], rcx
mov qword [rbp - 0x68], 0xf
xor r8d, r8d
lea rdx, [0x140061cb8]
lea rcx, [rbp - 0x80]
call fcn.1400019d0
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 0x140024bed
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 0x140024c28
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140024c23
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140024f33
call fcn.140027b3c
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 0x140024b32
mov r15, rdi
mov r14, qword [rsp + 0x50]
mov rax, qword [rdx + r14]
cmp dword [rax + 0x80], 2
jne 0x140024db0
mov r14d, ecx
mov rax, qword [r12 + 8]
sub rax, rdx
sar rax, 4
test rax, rax
je 0x140024dab
mov rdi, rcx
jmp 0x140024c92
mov r15, qword [rsp + 0x60]
jmp 0x140024c5b
xor ecx, ecx
mov rax, qword [rdi + rdx]
cmp dword [rax + 0x80], 0x100
jne 0x140024d88
mov rdx, qword [rax]
mov rax, qword [rax + 8]
sub rax, rdx
sar rax, 5
or esi, 4
test rax, rax
je 0x140024cc7
lea rcx, [rbp - 0x80]
call fcn.1400012e0
jmp 0x140024cea
mov qword [rbp - 0x80], rcx
mov qword [rbp - 0x70], rcx
mov qword [rbp - 0x68], 0xf
xor r8d, r8d
lea rdx, [0x140061cb8]
lea rcx, [rbp - 0x80]
call fcn.1400019d0
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 0x140024d4d
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 0x140024d88
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140024d83
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140024f39
call fcn.140027b3c
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 0x140024c90
mov r14, qword [rsp + 0x50]
mov rdx, qword [rbp - 0x20]
cmp rdx, 0x10
jb 0x140024deb
inc rdx
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140024de6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140024f3f
call fcn.140027b3c
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 0x140024e1f
movzx r9d, byte [rsp + 0x40]
jmp 0x14002497a
mov rcx, qword [rsp + 0x70]
call fcn.140027b3c
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x140024e3c
mov rcx, rax
call fcn.140027b3c
nop
cmp byte [rsp + 0x40], 0
je 0x140024e78
mov rdx, qword [rbp + 0x20]
inc rdx
mov rcx, qword [rbp + 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140024e73
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140024f45
call fcn.140027b3c
xor r13d, r13d
mov rdx, qword [rbp - 0x40]
cmp rdx, 0x10
jb 0x140024eb6
inc rdx
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140024eb1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140024f4b
call fcn.140027b3c
mov qword [rbp - 0x48], r13
mov qword [rbp - 0x40], 0xf
mov byte [rbp - 0x58], 0
mov rdx, qword [rbp]
cmp rdx, 0x10
jb 0x140024efd
inc rdx
mov rcx, qword [rbp - 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140024ef8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140024f2d
call fcn.140027b3c
mov rcx, qword [rbp + 0x240]
xor rcx, rsp
call fcn.140027af0
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.14002e488
nop
call fcn.14002e488
nop
call fcn.14002e488
nop
call fcn.14002e488
nop
call fcn.14002e488
nop
call fcn.14002e488
int3