Function at 0x140042d80
Capabilities:
Access peb ldr_data
Encode data using xor
Get kernel32 base address
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x140740ee8]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rdi, rcx
call fcn.14001f070
lea rcx, [rsp + 0x58]
mov rbx, rax
call qword [0x1400df410]
test eax, eax
je 0x14004310f
lea rcx, [rsp + 0x60]
call qword [0x1400df418]
test eax, eax
je 0x14004310f
mov qword [rsp + 0x80], rbp
mov ecx, 0x48
mov qword [rsp + 0x88], rsi
mov qword [rsp + 0x90], r14
call fcn.140021f80
xor ebp, ebp
mov qword [rsp + 0x28], rax
mov r14, rax
test rax, rax
je 0x140042e19
xorps xmm0, xmm0
xor eax, eax
movups xmmword [r14], xmm0
movups xmmword [r14 + 0x10], xmm0
movups xmmword [r14 + 0x20], xmm0
movups xmmword [r14 + 0x30], xmm0
mov qword [r14 + 0x40], rax
jmp 0x140042e1c
mov r14, rbp
or dword [rbx + 4], 6
lea rax, str.imgui_impl_win32
mov qword [rbx + 0x78], rax
mov qword [rbx + 0x88], r14
mov qword [r14], rdi
mov byte [r14 + 0x2d], 1
mov rax, qword [rsp + 0x58]
mov qword [r14 + 0x20], rax
mov rax, qword [rsp + 0x60]
mov qword [r14 + 0x18], rax
mov dword [r14 + 0x28], 9
call fcn.14001f080
mov qword [rax + 0x28], rdi
lea rax, str.xinput1_4.dll
mov qword [rsp + 0x30], rax
lea rax, str.xinput1_3.dll
mov qword [rsp + 0x38], rax
lea rax, str.xinput9_1_0.dll
mov qword [rsp + 0x40], rax
lea rax, str.xinput1_2.dll
mov qword [rsp + 0x48], rax
lea rax, str.xinput1_1.dll
mov qword [rsp + 0x50], rax
nop dword [rax]
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax]
nop word [rax + rax]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x140042f37
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x140042f37
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0x16f4fbf3
lea rcx, [rdi + r9*4]
mov ecx, dword [rcx + r10]
add rcx, r10
movzx edx, byte [rcx]
inc rcx
test dl, dl
je 0x140042f32
nop
movsx edx, dl
lea rcx, [rcx + 1]
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rcx - 1]
test dl, dl
jne 0x140042f10
cmp r8d, 0x5e9c3625
je 0x140042f3c
test r9d, r9d
jne 0x140042ef0
mov rax, qword [rax]
jmp 0x140042ec0
mov ecx, dword [rbx + 0x24]
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
mov rcx, qword [rsp + rbp*8 + 0x30]
add rax, r10
call rax
mov rsi, rax
test rax, rax
jne 0x140042f74
inc rbp
cmp rbp, 5
jl 0x140042ea0
jmp 0x1400430f3
mov qword [r14 + 0x30], rsi
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x140043007
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x140043007
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0x8bb83c2c
lea rcx, [rdi + r9*4]
mov edx, dword [rcx + r10]
add rdx, r10
movzx ecx, byte [rdx]
inc rdx
test cl, cl
je 0x140043002
nop
movsx ecx, cl
lea rdx, [rdx + 1]
xor ecx, r8d
imul r8d, ecx, 0x1000193
movzx ecx, byte [rdx - 1]
test cl, cl
jne 0x140042fe0
cmp r8d, 0x6c70bd80
je 0x14004300c
test r9d, r9d
jne 0x140042fc0
mov rax, qword [rax]
jmp 0x140042f90
mov ecx, dword [rbx + 0x24]
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
lea rdx, str.XInputGetCapabilities
add rax, r10
mov rcx, rsi
call rax
mov qword [r14 + 0x38], rax
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax]
nop dword [rax + rax]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x1400430c7
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x1400430c7
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0x84b5f290
lea rcx, [rdi + r9*4]
mov edx, dword [rcx + r10]
add rdx, r10
movzx ecx, byte [rdx]
inc rdx
test cl, cl
je 0x1400430c2
nop
movsx ecx, cl
lea rdx, [rdx + 1]
xor ecx, r8d
imul r8d, ecx, 0x1000193
movzx ecx, byte [rdx - 1]
test cl, cl
jne 0x1400430a0
cmp r8d, 0xf96a65fc
je 0x1400430cc
test r9d, r9d
jne 0x140043080
mov rax, qword [rax]
jmp 0x140043050
mov ecx, dword [rbx + 0x24]
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
lea rdx, str.XInputGetState
add rax, r10
mov rcx, rsi
call rax
mov qword [r14 + 0x40], rax
mov r14, qword [rsp + 0x90]
mov al, 1
mov rsi, qword [rsp + 0x88]
mov rbp, qword [rsp + 0x80]
jmp 0x140043111
xor al, al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14008d530
mov rbx, qword [rsp + 0x98]
add rsp, 0x70
pop rdi
ret