Function at 0x1400246c0
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.14002a3f0
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 0x140024761
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 0x140024ea6
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov ecx, eax
call fcn.140028424
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 0x140024ea6
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 0x140024840
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 0x140024900
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov ecx, eax
call fcn.140028424
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 0x140024e5b
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 0x140024a0a
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 0x1400249e0
movaps xmmword [rbp + 0x120], xmm0
sub rdi, 0x10
sub r14, 1
jne 0x1400249c0
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 0x140024dd0
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 0x140024a54
call fcn.1400012e0
jmp 0x140024a77
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 0x140024ad8
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 0x140024c3b
mov r15d, ecx
mov rax, qword [r12 + 8]
sub rax, r8
sar rax, 4
test rax, rax
je 0x140024c69
mov r14d, ecx
mov rdi, qword [rsp + 0x60]
mov rax, qword [r14 + r8]
cmp dword [rax + 0x80], 0x80
jne 0x140024c08
mov rdx, qword [rax]
mov rax, qword [rax + 8]
sub rax, rdx
sar rax, 5
or esi, 2
test rax, rax
je 0x140024b47
lea rcx, [rbp - 0x80]
call fcn.1400012e0
jmp 0x140024b6a
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 0x140024bcd
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 0x140024c08
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140024c03
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140024f13
call fcn.140027b1c
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 0x140024b12
mov r15, rdi
mov r14, qword [rsp + 0x50]
mov rax, qword [rdx + r14]
cmp dword [rax + 0x80], 2
jne 0x140024d90
mov r14d, ecx
mov rax, qword [r12 + 8]
sub rax, rdx
sar rax, 4
test rax, rax
je 0x140024d8b
mov rdi, rcx
jmp 0x140024c72
mov r15, qword [rsp + 0x60]
jmp 0x140024c3b
xor ecx, ecx
mov rax, qword [rdi + rdx]
cmp dword [rax + 0x80], 0x100
jne 0x140024d68
mov rdx, qword [rax]
mov rax, qword [rax + 8]
sub rax, rdx
sar rax, 5
or esi, 4
test rax, rax
je 0x140024ca7
lea rcx, [rbp - 0x80]
call fcn.1400012e0
jmp 0x140024cca
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 0x140024d2d
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 0x140024d68
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140024d63
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140024f19
call fcn.140027b1c
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 0x140024c70
mov r14, qword [rsp + 0x50]
mov rdx, qword [rbp - 0x20]
cmp rdx, 0x10
jb 0x140024dcb
inc rdx
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140024dc6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140024f1f
call fcn.140027b1c
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 0x140024dff
movzx r9d, byte [rsp + 0x40]
jmp 0x14002495a
mov rcx, qword [rsp + 0x70]
call fcn.140027b1c
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x140024e1c
mov rcx, rax
call fcn.140027b1c
nop
cmp byte [rsp + 0x40], 0
je 0x140024e58
mov rdx, qword [rbp + 0x20]
inc rdx
mov rcx, qword [rbp + 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140024e53
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140024f25
call fcn.140027b1c
xor r13d, r13d
mov rdx, qword [rbp - 0x40]
cmp rdx, 0x10
jb 0x140024e96
inc rdx
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140024e91
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140024f2b
call fcn.140027b1c
mov qword [rbp - 0x48], r13
mov qword [rbp - 0x40], 0xf
mov byte [rbp - 0x58], 0
mov rdx, qword [rbp]
cmp rdx, 0x10
jb 0x140024edd
inc rdx
mov rcx, qword [rbp - 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140024ed8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140024f0d
call fcn.140027b1c
mov rcx, qword [rbp + 0x240]
xor rcx, rsp
call fcn.140027ad0
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.14002e468
nop
call fcn.14002e468
nop
call fcn.14002e468
nop
call fcn.14002e468
nop
call fcn.14002e468
nop
call fcn.14002e468
int3