Function at 0x140024b80
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.14002a8b0
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 0x140024c21
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 0x140025366
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov ecx, eax
call fcn.1400288e4
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 0x140025366
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 0x140024d00
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 0x140024dc0
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov ecx, eax
call fcn.1400288e4
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 0x14002531b
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 0x140024eca
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 0x140024ea0
movaps xmmword [rbp + 0x120], xmm0
sub rdi, 0x10
sub r14, 1
jne 0x140024e80
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 0x140025290
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 0x140024f14
call fcn.1400012e0
jmp 0x140024f37
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, [0x140062ca8]
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 0x140024f98
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 0x1400250fb
mov r15d, ecx
mov rax, qword [r12 + 8]
sub rax, r8
sar rax, 4
test rax, rax
je 0x140025129
mov r14d, ecx
mov rdi, qword [rsp + 0x60]
mov rax, qword [r14 + r8]
cmp dword [rax + 0x80], 0x80
jne 0x1400250c8
mov rdx, qword [rax]
mov rax, qword [rax + 8]
sub rax, rdx
sar rax, 5
or esi, 2
test rax, rax
je 0x140025007
lea rcx, [rbp - 0x80]
call fcn.1400012e0
jmp 0x14002502a
mov qword [rbp - 0x80], rcx
mov qword [rbp - 0x70], rcx
mov qword [rbp - 0x68], 0xf
xor r8d, r8d
lea rdx, [0x140062ca8]
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 0x14002508d
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 0x1400250c8
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400250c3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400253d3
call fcn.140027fdc
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 0x140024fd2
mov r15, rdi
mov r14, qword [rsp + 0x50]
mov rax, qword [rdx + r14]
cmp dword [rax + 0x80], 2
jne 0x140025250
mov r14d, ecx
mov rax, qword [r12 + 8]
sub rax, rdx
sar rax, 4
test rax, rax
je 0x14002524b
mov rdi, rcx
jmp 0x140025132
mov r15, qword [rsp + 0x60]
jmp 0x1400250fb
xor ecx, ecx
mov rax, qword [rdi + rdx]
cmp dword [rax + 0x80], 0x100
jne 0x140025228
mov rdx, qword [rax]
mov rax, qword [rax + 8]
sub rax, rdx
sar rax, 5
or esi, 4
test rax, rax
je 0x140025167
lea rcx, [rbp - 0x80]
call fcn.1400012e0
jmp 0x14002518a
mov qword [rbp - 0x80], rcx
mov qword [rbp - 0x70], rcx
mov qword [rbp - 0x68], 0xf
xor r8d, r8d
lea rdx, [0x140062ca8]
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 0x1400251ed
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 0x140025228
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140025223
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400253d9
call fcn.140027fdc
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 0x140025130
mov r14, qword [rsp + 0x50]
mov rdx, qword [rbp - 0x20]
cmp rdx, 0x10
jb 0x14002528b
inc rdx
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140025286
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400253df
call fcn.140027fdc
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 0x1400252bf
movzx r9d, byte [rsp + 0x40]
jmp 0x140024e1a
mov rcx, qword [rsp + 0x70]
call fcn.140027fdc
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x1400252dc
mov rcx, rax
call fcn.140027fdc
nop
cmp byte [rsp + 0x40], 0
je 0x140025318
mov rdx, qword [rbp + 0x20]
inc rdx
mov rcx, qword [rbp + 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140025313
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400253e5
call fcn.140027fdc
xor r13d, r13d
mov rdx, qword [rbp - 0x40]
cmp rdx, 0x10
jb 0x140025356
inc rdx
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140025351
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400253eb
call fcn.140027fdc
mov qword [rbp - 0x48], r13
mov qword [rbp - 0x40], 0xf
mov byte [rbp - 0x58], 0
mov rdx, qword [rbp]
cmp rdx, 0x10
jb 0x14002539d
inc rdx
mov rcx, qword [rbp - 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140025398
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400253cd
call fcn.140027fdc
mov rcx, qword [rbp + 0x240]
xor rcx, rsp
call fcn.140027f90
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.14002e928
nop
call fcn.14002e928
nop
call fcn.14002e928
nop
call fcn.14002e928
nop
call fcn.14002e928
nop
call fcn.14002e928
int3