Function at 0x140003670
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 [0x1400f6080]
xor rax, rsp
mov qword [rbp + 0xc8], rax
lea rdx, [0x1400f7518]
mov ecx, reloc.WLDAP32.dll_Ordinal_32
call qword [sym.imp.d3d9.dll_Direct3DCreate9Ex]
test eax, eax
jns 0x1400036d7
mov ecx, 3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
xor ebx, ebx
mov qword [0x1400f74dc], rbx
mov qword [0x1400f74e8], 1
mov qword [0x1400f7504], rbx
mov dword [0x1400f750c], ebx
mov eax, dword [0x1400f7594]
mov dword [0x1400f74d0], eax
mov eax, dword [0x1400f7528]
mov dword [0x1400f74d4], eax
mov dword [0x1400f74d8], 0x15
mov dword [0x1400f74e4], ebx
mov dword [0x1400f7500], 0x50
mov dword [0x1400f74fc], 1
mov r9, qword [0x1400f7908]
mov qword [0x1400f74f0], r9
mov dword [0x1400f74f8], 1
mov rcx, qword [0x1400f7518]
mov rax, qword [rcx]
lea rdx, [0x1400f7910]
mov qword [rsp + 0x30], rdx
lea rdx, [0x1400f74d0]
mov qword [rsp + 0x28], rdx
mov dword [rsp + reloc.WLDAP32.dll_Ordinal_32], 0x20
xor edx, edx
lea r8d, [rbx + 1]
call qword [rax + 0x80]
mov rdi, qword [0x1400f75b0]
test rdi, rdi
je 0x140003794
inc dword [rdi + 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 0x1400037c4
xor edx, edx
mov rcx, rax
call fcn.140015090
jmp 0x1400037c7
mov rax, rbx
mov qword [0x1400f75b0], rax
call fcn.14001bde0
mov r15, qword [0x1400f75b0]
test rdi, rdi
cmovne r15, rdi
mov qword [0x1400f75b0], r15
mov rdi, qword [0x1400f7908]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x14000393d
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x14000393d
mov rax, qword [0x1400f75b0]
test rax, rax
je 0x140003827
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 0x140003854
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 0x140003857
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 [0x1400f75b0]
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
nop
mov rcx, qword [rbp + rdi*8 + 0xa0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r14, rax
test rax, rax
jne 0x140003911
inc rdi
cmp rdi, 5
jl 0x1400038f0
jmp 0x14000393d
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 [0x1400f7910]
mov rdi, qword [0x1400f75b0]
test rdi, rdi
je 0x140003956
inc dword [rdi + 0xec]
mov ecx, Ordinal_41
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test rax, rax
je 0x140003985
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 0x140003988
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 + reloc.WS2_32.dll_htonl]
movdqa xmm0, xmmword [0x1400e6f60]
movdqu xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x70], 0x362c1c00
mov dword [rsp + 0x74], 0x174c0d01
mov word [rsp + 0x78], 0x310
xor eax, eax
mov byte [rsp + 0x7a], al
mov r14, qword [r15 + 0x50]
nop dword [rax]
movsxd rcx, ebx
lea eax, [rbx + 0x4c]
xor byte [rsp + rcx + 0x60], al
inc ebx
cmp ebx, 0x1a
jb 0x1400039e0
mov byte [rsp + 0x7a], 0
lea rdx, [0x1400e6704]
lea rcx, [rsp + 0x60]
call fcn.140016740
mov rbx, rax
test rax, rax
je 0x140003c73
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x140003c6a
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 0x140003c6a
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x140003c6a
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 0x140003c6a
cmp rdi, 0xffffffffffffffff
je 0x140003c6a
mov rax, qword [0x1400f75b0]
test rax, rax
je 0x140003a85
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 0x140003c6a
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 0x140003adc
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1400f75b0]
test rax, rax
je 0x140003ace
dec dword [rax + 0xec]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140003c73
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 0x140003c1c
lea rcx, [rsp + 0x60]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x140003b95
lea r9, [rsp + 0x60]
add r9, rax
lea rax, [rsp + 0x60]
cmp r9, rax
jbe 0x140003bcc
lea rcx, [r9 - 1]
movzx eax, byte [rcx]
cmp al, 0x2f
je 0x140003bcc
cmp al, 0x5c
je 0x140003bcc
mov r9, rcx
lea rax, [rsp + 0x60]
cmp rcx, rax
ja 0x140003bb0
movsd xmm0, qword [0x1400e6d10]
movsd qword [rsp + 0x20], xmm0
lea r8, str._s___.0fpx
mov edx, Ordinal_41
lea rcx, [rbp + 0x66]
call fcn.140016550
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, [0x1400e69a4]
mov qword [rbp - 0x48], rax
lea rdx, [rbp - 0x80]
mov rcx, r14
call fcn.1400378b0
jmp 0x140003c73
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, qword [0x1400f7518]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp + 0xc8]
xor rcx, rsp
call fcn.1400afe40
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