Function at 0x140005220
Capabilities:
Encode data using xor
Read file on windows
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x128]
sub rsp, 0x210
movaps xmmword [rax - 0x28], xmm6
movaps xmmword [rax - 0x38], xmm7
movaps xmmword [rax - 0x48], xmm8
movaps xmmword [rax - 0x58], xmm9
mov rax, qword [0x14004a010]
xor rax, rsp
mov qword [rbp + 0xc8], rax
lea rdx, [0x14004b158]
mov ecx, 0x20
call qword [sym.imp.d3d9.dll_Direct3DCreate9Ex]
test eax, eax
jns 0x140005287
mov ecx, 3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
xor ebx, ebx
mov qword [0x14004b10c], rbx
mov qword [0x14004b118], 1
mov qword [0x14004b134], rbx
mov dword [0x14004b13c], ebx
mov eax, dword [0x14004b198]
mov dword [0x14004b100], eax
mov eax, dword [0x14004b170]
mov dword [0x14004b104], eax
mov dword [0x14004b108], 0x15
mov dword [0x14004b114], ebx
mov dword [0x14004b130], 0x50
mov dword [0x14004b12c], 1
mov r9, qword [0x14004b2d0]
mov qword [0x14004b120], r9
mov dword [0x14004b128], 1
mov rcx, qword [0x14004b158]
mov rax, qword [rcx]
lea rdx, [0x14004b2d8]
mov qword [rsp + 0x30], rdx
lea rdx, [0x14004b100]
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 0x20
xor edx, edx
lea r8d, [rbx + 1]
call qword [rax + 0x80]
mov r15, qword [0x14004b1e8]
test r15, r15
je 0x140005345
inc dword [r15 + 0xec]
mov ecx, 0x5570
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rax
test rax, rax
je 0x140005375
xor edx, edx
mov rcx, rax
call fcn.14000c570
jmp 0x140005378
mov rax, rbx
mov qword [0x14004b1e8], rax
call fcn.1400131b0
test r15, r15
je 0x140005392
mov qword [0x14004b1e8], r15
jmp 0x140005399
mov r15, qword [0x14004b1e8]
mov rsi, qword [0x14004b2d0]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x1400054fd
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x1400054fd
mov rax, qword [0x14004b1e8]
test rax, rax
je 0x1400053d8
inc dword [rax + 0xec]
mov ecx, 0x48
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x14000540a
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rdi], xmm0
movups xmmword [rdi + 0x10], xmm0
movups xmmword [rdi + 0x20], xmm0
movups xmmword [rdi + 0x30], xmm0
mov qword [rdi + 0x40], rax
jmp 0x14000540d
mov rdi, rbx
mov qword [r15 + 0x90], rdi
lea rax, str.imgui_impl_win32
mov qword [r15 + 0x80], rax
or dword [r15 + 0xc], 6
mov qword [rdi], rsi
mov byte [rdi + 0x2d], 1
mov rax, qword [rsp + 0x50]
mov qword [rdi + 0x20], rax
mov rax, qword [rsp + 0x58]
mov qword [rdi + 0x18], rax
mov dword [rdi + 0x28], 9
mov rax, qword [0x14004b1e8]
mov rcx, qword [rax + 0x4088]
mov rax, qword [rcx]
mov qword [rax + 0x28], rsi
lea rax, str.xinput1_4.dll
mov qword [rbp + 0xa0], rax
lea rax, str.xinput1_3.dll
mov qword [rbp + 0xa8], rax
lea rax, str.xinput9_1_0.dll
mov qword [rbp + 0xb0], rax
lea rax, str.xinput1_2.dll
mov qword [rbp + 0xb8], rax
lea rax, str.xinput1_1.dll
mov qword [rbp + 0xc0], rax
mov rsi, rbx
nop word [rax + rax]
mov rcx, qword [rbp + rsi*8 + 0xa0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r14, rax
test rax, rax
jne 0x1400054d1
inc rsi
cmp rsi, 5
jl 0x1400054b0
jmp 0x1400054fd
mov qword [rdi + 0x30], r14
lea rdx, str.XInputGetCapabilities
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x38], rax
lea rdx, str.XInputGetState
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x40], rax
mov rsi, qword [0x14004b2d8]
mov rdi, qword [0x14004b1e8]
test rdi, rdi
je 0x140005516
inc dword [rdi + 0xec]
mov ecx, 0x28
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x48], rax
test rax, rax
je 0x14000554b
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
mov qword [rax + 0x20], rcx
mov dword [rax + 0x20], 0x1388
mov dword [rax + 0x24], 0x2710
jmp 0x14000554e
mov rax, rbx
mov qword [rdi + 0x98], rax
lea rcx, str.imgui_impl_dx9
mov qword [rdi + 0x88], rcx
or dword [rdi + 0xc], 8
mov qword [rax], rsi
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 8]
mov ecx, dword [0x14004b2e0]
mov edx, dword [0x14004b2ec]
mov eax, dword [0x14004b2e8]
cmp qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__open], 0
je 0x14000559a
add ecx, 0xa
add edx, 6
add eax, 6
jmp 0x1400055a3
add ecx, 0xfffffff6
add edx, 0xfffffffa
add eax, 0xfffffffa
mov dword [0x14004b2e8], eax
mov dword [0x14004b2ec], edx
mov dword [0x14004b2e0], ecx
cmp eax, 0xfe
jle 0x1400055c6
mov dword [0x14004b2e8], 0xff
movd xmm0, edx
cvtdq2pd xmm0, xmm0
comisd xmm0, xmmword [0x140042c48]
jbe 0x1400055e4
mov dword [0x14004b2ec], 3
jmp 0x1400055ef
cmp edx, 1
jge 0x1400055ef
mov dword [0x14004b2ec], ebx
cmp ecx, 0x230
jle 0x140005603
mov dword [0x14004b2e0], 0x231
jmp 0x14000560e
cmp ecx, 1
jge 0x14000560e
mov dword [0x14004b2e0], ebx
mov rax, qword [0x14004b1e8]
mov qword [rax + 0x37e4], 0x41a00000
mov dword [rax + 0x3814], 0x41a00000
mov qword [rax + 0x3818], 0x40a00000
mov dword [rax + 0x3820], ebx
mov dword [rax + 0x3864], 0x41000000
mov dword [rax + 0x37ec], ebx
mov dword [rax + 0x3804], ebx
mov dword [rax + 0x3850], ebx
mov dword [rax + 0x3858], ebx
mov dword [rax + 0x380c], ebx
mov dword [rax + 0x37f8], 0x3f000000
mov dword [rax + 0x37e0], 0x41a00000
movaps xmm0, xmmword [0x140042ee0]
movups xmmword [rax + 0x38c0], xmm0
movaps xmm1, xmmword [0x140042f40]
movups xmmword [rax + 0x3910], xmm1
movaps xmm0, xmmword [0x140042f80]
movups xmmword [rax + 0x3930], xmm0
movaps xmm1, xmm0
movups xmmword [rax + 0x3920], xmm0
movaps xmm0, xmmword [0x140042f20]
movups xmmword [rax + 0x39f0], xmm0
movaps xmm1, xmmword [0x140042f50]
movups xmmword [rax + 0x3a10], xmm1
movaps xmm0, xmmword [0x140042f60]
movups xmmword [rax + 0x3a00], xmm0
xorps xmm1, xmm1
movups xmmword [rax + 0x38f0], xmm1
movups xmmword [rax + 0x3a50], xmm0
movaps xmm1, xmmword [0x140042f30]
movups xmmword [rax + 0x3a80], xmm1
movaps xmm0, xmm1
movups xmmword [rax + 0x3aa0], xmm1
movups xmmword [rax + 0x3a90], xmm1
movaps xmm0, xmmword [0x140042f10]
movups xmmword [rax + 0x38d0], xmm0
movaps xmm1, xmmword [0x140042f00]
movups xmmword [rax + 0x3980], xmm1
movaps xmm0, xmm1
movups xmmword [rax + 0x3990], xmm1
movups xmmword [rax + 0x39b0], xmm1
movaps xmm0, xmmword [0x140042f70]
movups xmmword [rax + 0x3a20], xmm0
movaps xmm1, xmm0
movups xmmword [rax + 0x3a40], xmm0
movups xmmword [rax + 0x3a30], xmm0
movaps xmm1, xmmword [0x140042fa0]
movups xmmword [rax + 0x39c0], xmm1
movdqa xmm0, xmmword [0x140042ff0]
movdqu xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x70], 0xccd6e2fe
mov dword [rsp + 0x74], 0xdd86cbc7
mov word [rsp + 0x78], 0xcdde
xor eax, eax
mov byte [rsp + 0x7a], al
mov r14, qword [r15 + 0x50]
nop
movsxd rcx, ebx
lea eax, [rbx - 0x6e]
xor byte [rsp + rcx + 0x60], al
inc ebx
cmp ebx, 0x1a
jb 0x140005790
mov byte [rsp + 0x7a], 0
lea rdx, [0x1400426e4]
lea rcx, [rsp + 0x60]
call fcn.14000dc20
mov rbx, rax
test rax, rax
je 0x140005a23
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x140005a1a
xor edx, edx
lea r8d, [rdx + 2]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140005a1a
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x140005a1a
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140005a1a
cmp rdi, 0xffffffffffffffff
je 0x140005a1a
mov rax, qword [0x14004b1e8]
test rax, rax
je 0x140005835
inc dword [rax + 0xec]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x140005a1a
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x14000588c
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x14004b1e8]
test rax, rax
je 0x14000587e
dec dword [rax + 0xec]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140005a23
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xorps xmm2, xmm2
xor eax, eax
movups xmmword [rbp - 0x80], xmm2
movups xmmword [rbp - 0x70], xmm2
movups xmmword [rbp - 0x40], xmm2
movups xmmword [rbp - 0x30], xmm2
mov qword [rbp], rax
mov byte [rbp - 0x74], 1
mov dword [rbp - 0x68], 3
mov dword [rbp - 0x64], 1
mov dword [rbp - 0x3c], 0x7f7fffff
mov dword [rbp - 0x30], 0x3f800000
mov eax, 0xffff
mov word [rbp - 0x2c], ax
movaps xmm3, xmmword [rbp - 0x80]
movaps xmmword [rbp + 0x10], xmm3
movaps xmm4, xmmword [rbp - 0x70]
movaps xmmword [rbp + 0x20], xmm4
movaps xmmword [rbp + 0x30], xmm2
xorps xmm5, xmm5
movaps xmmword [rbp + 0x40], xmm5
movaps xmm6, xmmword [rbp - 0x40]
movaps xmmword [rbp + 0x50], xmm6
movaps xmm1, xmmword [rbp - 0x30]
movaps xmmword [rbp + 0x60], xmm1
xorps xmm7, xmm7
movaps xmmword [rbp + 0x70], xmm7
xorps xmm8, xmm8
movaps xmmword [rbp + 0x80], xmm8
movsd xmm9, qword [rbp]
movsd qword [rbp + 0x90], xmm9
mov rbx, rdi
movdqa xmm0, xmm1
psrldq xmm0, 6
movd eax, xmm0
test al, al
jne 0x1400059cc
lea rcx, [rsp + 0x60]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x140005945
lea r9, [rsp + 0x60]
add r9, rax
lea rax, [rsp + 0x60]
cmp r9, rax
jbe 0x14000597c
lea rcx, [r9 - 1]
movzx eax, byte [rcx]
cmp al, 0x2f
je 0x14000597c
cmp al, 0x5c
je 0x14000597c
mov r9, rcx
lea rax, [rsp + 0x60]
cmp rcx, rax
ja 0x140005960
movsd xmm0, qword [0x140042c58]
movsd qword [rsp + 0x20], xmm0
lea r8, str._s___.0fpx
mov edx, 0x28
lea rcx, [rbp + 0x66]
call fcn.14000da30
movsd xmm9, qword [rbp + 0x90]
movaps xmm8, xmmword [rbp + 0x80]
movaps xmm7, xmmword [rbp + 0x70]
movaps xmm1, xmmword [rbp + 0x60]
movaps xmm6, xmmword [rbp + 0x50]
movaps xmm5, xmmword [rbp + 0x40]
movaps xmm2, xmmword [rbp + 0x30]
movaps xmm4, xmmword [rbp + 0x20]
movaps xmm3, xmmword [rbp + 0x10]
movaps xmmword [rbp - 0x80], xmm3
movaps xmmword [rbp - 0x70], xmm4
movaps xmmword [rbp - 0x60], xmm2
movaps xmmword [rbp - 0x50], xmm5
movaps xmmword [rbp - 0x40], xmm6
movaps xmmword [rbp - 0x30], xmm1
movaps xmmword [rbp - 0x20], xmm7
movaps xmmword [rbp - 0x10], xmm8
movsd qword [rbp], xmm9
mov qword [rbp - 0x80], rsi
mov dword [rbp - 0x78], ebx
mov dword [rbp - 0x6c], 0x41600000
lea rax, [0x140042924]
mov qword [rbp - 0x48], rax
lea rdx, [rbp - 0x80]
mov rcx, r14
call fcn.14002ee50
jmp 0x140005a23
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, qword [0x14004b158]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp + 0xc8]
xor rcx, rsp
call fcn.14003aa80
lea r11, [rsp + 0x210]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
mov rsp, r11
pop r15
pop r14
pop rbp
ret