Function at 0x140003480
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 [0x140057010]
xor rax, rsp
mov qword [rbp + 0xc8], rax
lea rdx, [0x140057cc8]
mov ecx, 0x20
call qword [sym.imp.d3d9.dll_Direct3DCreate9Ex]
test eax, eax
jns 0x1400034e7
mov ecx, 3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
xor ebx, ebx
mov qword [0x140057c8c], rbx
mov qword [0x140057c98], 1
mov qword [0x140057cb4], rbx
mov dword [0x140057cbc], ebx
mov eax, dword [0x140057d40]
mov dword [0x140057c80], eax
mov eax, dword [0x140057cd4]
mov dword [0x140057c84], eax
mov dword [0x140057c88], 0x15
mov dword [0x140057c94], ebx
mov dword [0x140057cb0], 0x50
mov dword [0x140057cac], 1
mov r9, qword [0x140057e20]
mov qword [0x140057ca0], r9
mov dword [0x140057ca8], 1
mov rcx, qword [0x140057cc8]
mov rax, qword [rcx]
lea rdx, [0x140057e28]
mov qword [rsp + 0x30], rdx
lea rdx, [0x140057c80]
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 0x20
xor edx, edx
lea r8d, [rbx + 1]
call qword [rax + 0x80]
mov r15, qword [0x140057d60]
test r15, r15
je 0x1400035a5
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 0x1400035d5
xor edx, edx
mov rcx, rax
call fcn.14000ef00
jmp 0x1400035d8
mov rax, rbx
mov qword [0x140057d60], rax
call fcn.140015c80
test r15, r15
je 0x1400035f2
mov qword [0x140057d60], r15
jmp 0x1400035f9
mov r15, qword [0x140057d60]
mov rdi, qword [0x140057e20]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x14000374d
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x14000374d
mov rax, qword [0x140057d60]
test rax, rax
je 0x140003638
inc dword [rax + 0xec]
mov ecx, 0x48
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x140003665
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm0
movups xmmword [rsi + 0x20], xmm0
movups xmmword [rsi + 0x30], xmm0
mov qword [rsi + 0x40], rax
jmp 0x140003668
mov rsi, rbx
mov qword [r15 + 0x90], rsi
lea rax, str.imgui_impl_win32
mov qword [r15 + 0x80], rax
or dword [r15 + 0xc], 6
mov qword [rsi], rdi
mov byte [rsi + 0x2d], 1
mov rax, qword [rsp + 0x50]
mov qword [rsi + 0x20], rax
mov rax, qword [rsp + 0x58]
mov qword [rsi + 0x18], rax
mov dword [rsi + 0x28], 9
mov rax, qword [0x140057d60]
mov rcx, qword [rax + 0x4088]
mov rax, qword [rcx]
mov qword [rax + 0x28], rdi
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 rdi, rbx
mov rcx, qword [rbp + rdi*8 + 0xa0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r14, rax
test rax, rax
jne 0x140003721
inc rdi
cmp rdi, 5
jl 0x140003700
jmp 0x14000374d
mov qword [rsi + 0x30], r14
lea rdx, str.XInputGetCapabilities
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x38], rax
lea rdx, str.XInputGetState
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x40], rax
mov rsi, qword [0x140057e28]
mov rdi, qword [0x140057d60]
test rdi, rdi
je 0x140003766
inc dword [rdi + 0xec]
mov ecx, 0x28
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test rax, rax
je 0x140003795
mov qword [rax], rbx
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbx
mov dword [rax + 0x20], 0x1388
mov dword [rax + 0x24], 0x2710
jmp 0x140003798
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]
movdqa xmm0, xmmword [0x14004f630]
movdqu xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x70], 0xd2c8f8e4
mov dword [rsp + 0x74], 0xcb90d1dd
mov word [rsp + 0x78], 0xa7b4
xor eax, eax
mov byte [rsp + 0x7a], al
mov r14, qword [r15 + 0x50]
nop dword [rax]
movsxd rcx, ebx
lea eax, [rbx - 0x58]
xor byte [rsp + rcx + 0x60], al
inc ebx
cmp ebx, 0x1a
jb 0x1400037f0
mov byte [rsp + 0x7a], 0
lea rdx, [0x14004ed54]
lea rcx, [rsp + 0x60]
call fcn.1400105b0
mov rbx, rax
test rax, rax
je 0x140003a83
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x140003a7a
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 0x140003a7a
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x140003a7a
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 0x140003a7a
cmp rdi, 0xffffffffffffffff
je 0x140003a7a
mov rax, qword [0x140057d60]
test rax, rax
je 0x140003895
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 0x140003a7a
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 0x1400038ec
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x140057d60]
test rax, rax
je 0x1400038de
dec dword [rax + 0xec]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140003a83
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 0x140003a2c
lea rcx, [rsp + 0x60]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x1400039a5
lea r9, [rsp + 0x60]
add r9, rax
lea rax, [rsp + 0x60]
cmp r9, rax
jbe 0x1400039dc
lea rcx, [r9 - 1]
movzx eax, byte [rcx]
cmp al, 0x2f
je 0x1400039dc
cmp al, 0x5c
je 0x1400039dc
mov r9, rcx
lea rax, [rsp + 0x60]
cmp rcx, rax
ja 0x1400039c0
movsd xmm0, qword [0x14004f2f8]
movsd qword [rsp + 0x20], xmm0
lea r8, str._s___.0fpx
mov edx, 0x28
lea rcx, [rbp + 0x66]
call fcn.1400103c0
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, [0x14004ef8c]
mov qword [rbp - 0x48], rax
lea rdx, [rbp - 0x80]
mov rcx, r14
call fcn.140031ab0
jmp 0x140003a83
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, qword [0x140057cc8]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp + 0xc8]
xor rcx, rsp
call fcn.140047190
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