Function at 0x7ff7980ef310
Capabilities:
Access peb ldr_data
Check os version
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
push rsi
push rdi
sub rsp, 0x268
mov rax, qword [0x7ff7981d4380]
xor rax, rsp
mov qword [rsp + 0x258], rax
mov qword [rsp + 0x218], 0
mov dword [rsp + 0x250], 0
lea rax, [rsp + 0x1d0]
lea rcx, [0x7ff79818bc88]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x1a
rep movsb byte [rdi], byte [rsi]
mov eax, 1
imul rax, rax, 0x19
movsx eax, byte [rsp + rax + 0x1d0]
test eax, eax
je 0x7ff7980ef37e
mov dword [rsp + 0x50], 1
jmp 0x7ff7980ef386
mov dword [rsp + 0x50], 0
movzx eax, byte [rsp + 0x50]
test eax, eax
je 0x7ff7980ef3e8
mov dword [rsp + 0x38], 0
jmp 0x7ff7980ef3a3
mov eax, dword [rsp + 0x38]
inc eax
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0x1a
jge 0x7ff7980ef3e8
movsxd rax, dword [rsp + 0x38]
movsx eax, byte [rsp + rax + 0x1d0]
mov dword [rsp + 0x80], eax
mov eax, dword [rsp + 0x38]
cdq
mov ecx, 0x32
idiv ecx
mov eax, edx
add eax, 0x36
mov ecx, dword [rsp + 0x80]
xor ecx, eax
mov eax, ecx
movsxd rcx, dword [rsp + 0x38]
mov byte [rsp + rcx + 0x1d0], al
jmp 0x7ff7980ef399
lea rax, [rsp + 0x1d0]
mov qword [rsp + 0x148], rax
lea rax, [rsp + 0xc0]
lea rcx, [0x7ff79818bc78]
mov rdi, rax
mov rsi, rcx
mov ecx, 0xa
rep movsb byte [rdi], byte [rsi]
mov eax, 1
imul rax, rax, 9
movsx eax, byte [rsp + rax + 0xc0]
test eax, eax
je 0x7ff7980ef433
mov dword [rsp + 0x54], 1
jmp 0x7ff7980ef43b
mov dword [rsp + 0x54], 0
movzx eax, byte [rsp + 0x54]
test eax, eax
je 0x7ff7980ef49d
mov dword [rsp + 0x3c], 0
jmp 0x7ff7980ef458
mov eax, dword [rsp + 0x3c]
inc eax
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0xa
jge 0x7ff7980ef49d
movsxd rax, dword [rsp + 0x3c]
movsx eax, byte [rsp + rax + 0xc0]
mov dword [rsp + 0x84], eax
mov eax, dword [rsp + 0x3c]
cdq
mov ecx, 0x32
idiv ecx
mov eax, edx
add eax, 0x36
mov ecx, dword [rsp + 0x84]
xor ecx, eax
mov eax, ecx
movsxd rcx, dword [rsp + 0x3c]
mov byte [rsp + rcx + 0xc0], al
jmp 0x7ff7980ef44e
lea rax, [rsp + 0xc0]
mov rcx, rax
call qword [sym.imp.kernel32.dll_GetModuleHandleA]
mov qword [rsp + 0x150], rax
mov rax, qword [rsp + 0x1f0]
mov qword [rsp + 0xb0], rax
mov rax, qword gs:[0x60]
mov qword [rsp + 0x108], rax
mov rax, qword [rsp + 0x108]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0xf8]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x110], rax
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0x208], rax
mov rax, qword [rsp + 0x208]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x220], rax
mov rax, qword [rsp + 0x70]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x118], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x118]
mov rax, qword [rcx + rax + 0x88]
mov qword [rsp + 0xd0], rax
mov eax, dword [rsp + 0xd0]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x228], rax
mov eax, dword [rsp + 0xd4]
mov dword [rsp + 0x230], eax
mov rax, qword [rsp + 0x220]
cmp qword [rsp + 0x228], rax
je 0x7ff7980ef5ae
mov dword [rsp + 0x58], 1
jmp 0x7ff7980ef5b6
mov dword [rsp + 0x58], 0
movzx eax, byte [rsp + 0x58]
mov byte [rsp + 0x32], al
movzx eax, byte [rsp + 0x32]
test eax, eax
je 0x7ff7980ef78d
mov rax, qword [rsp + 0x228]
mov eax, dword [rax + 0x18]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x88], eax
mov eax, dword [rsp + 0x40]
dec eax
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x88], 0
je 0x7ff7980ef78d
mov eax, dword [rsp + 0x100]
mov dword [rsp + 0x5c], eax
movabs rax, 0x6fa38ca907f753b1
shr rax, 0x20
mov dword [rsp + 0x5c], eax
mov rax, qword [rsp + 0x1f8]
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0x228]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x220]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 0x40]
mov eax, dword [rax + rcx*4]
add rax, qword [rsp + 0x220]
mov qword [rsp + 0xd8], rax
movabs rax, 0x6fa38ca907f753b1
mov ecx, 0xffffffff
and rax, rcx
mov dword [rsp + 0x8c], eax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0xb8], rax
mov eax, dword [rsp + 0x5c]
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0xb8]
movzx eax, byte [rax]
mov byte [rsp + 0x33], al
mov rax, qword [rsp + 0xb8]
inc rax
mov qword [rsp + 0xb8], rax
movzx eax, byte [rsp + 0x33]
mov byte [rsp + 0x30], al
movsx eax, byte [rsp + 0x30]
test eax, eax
jne 0x7ff7980ef6cd
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x90], eax
jmp 0x7ff7980ef705
xor eax, eax
test eax, eax
je 0x7ff7980ef6e1
movsx eax, byte [rsp + 0x30]
or eax, 0x20
mov dword [rsp + 0x60], eax
jmp 0x7ff7980ef6ea
movsx eax, byte [rsp + 0x30]
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x60]
mov ecx, dword [rsp + 0x48]
xor ecx, eax
mov eax, ecx
mov eax, eax
imul rax, rax, 0x1000193
mov dword [rsp + 0x48], eax
jmp 0x7ff7980ef68c
mov eax, dword [rsp + 0x8c]
cmp dword [rsp + 0x90], eax
jne 0x7ff7980ef788
mov rax, qword [rsp + 0x228]
mov eax, dword [rax + 0x1c]
add rax, qword [rsp + 0x220]
mov qword [rsp + 0x128], rax
mov rax, qword [rsp + 0x228]
mov eax, dword [rax + 0x24]
add rax, qword [rsp + 0x220]
mov qword [rsp + 0x120], rax
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x120]
movzx eax, word [rcx + rax*2]
mov rcx, qword [rsp + 0x128]
mov eax, dword [rcx + rax*4]
add rax, qword [rsp + 0x220]
mov qword [rsp + 0x130], rax
mov rax, qword [rsp + 0x130]
mov qword [rsp + 0xb0], rax
jmp 0x7ff7980ef7de
jmp 0x7ff7980ef5db
mov rax, qword [rsp + 0x208]
mov qword [rsp + 0x138], rax
mov rax, qword [rsp + 0x138]
mov rax, qword [rax]
mov qword [rsp + 0x140], rax
mov rax, qword [rsp + 0x140]
mov qword [rsp + 0x208], rax
mov byte [rsp + 0x34], 1
movzx eax, byte [rsp + 0x34]
test eax, eax
jne 0x7ff7980ef50f
mov qword [rsp + 0xb0], 0
mov rax, qword [rsp + 0x148]
mov qword [rsp + 0x158], rax
mov rax, qword [rsp + 0x150]
mov qword [rsp + 0x160], rax
mov rdx, qword [rsp + 0x158]
mov rcx, qword [rsp + 0x160]
call qword [rsp + 0xb0]
mov qword [rsp + 0x168], rax
mov rax, qword [rsp + 0x168]
mov qword [rsp + 0x1c0], rax
mov rax, qword gs:[0x60]
mov qword [rsp + 0x170], rax
mov rax, qword [rsp + 0x170]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x178], rax
mov rax, qword [rsp + 0x178]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x180], rax
mov rax, qword [rsp + 0x180]
mov qword [rsp + 0x210], rax
mov rax, qword [rsp + 0x210]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x238], rax
mov rax, qword [rsp + 0x78]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x188], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x188]
mov rax, qword [rcx + rax + 0x88]
mov qword [rsp + 0xe0], rax
mov eax, dword [rsp + 0xe0]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x240], rax
mov eax, dword [rsp + 0xe4]
mov dword [rsp + 0x248], eax
mov rax, qword [rsp + 0x238]
cmp qword [rsp + 0x240], rax
je 0x7ff7980ef915
mov dword [rsp + 0x64], 1
jmp 0x7ff7980ef91d
mov dword [rsp + 0x64], 0
movzx eax, byte [rsp + 0x64]
mov byte [rsp + 0x35], al
movzx eax, byte [rsp + 0x35]
test eax, eax
je 0x7ff7980efaf4
mov rax, qword [rsp + 0x240]
mov eax, dword [rax + 0x18]
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x94], eax
mov eax, dword [rsp + 0x44]
dec eax
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x94], 0
je 0x7ff7980efaf4
mov eax, dword [rsp + 0x1c8]
mov dword [rsp + 0x68], eax
movabs rax, 0x9a2b006b25518dc7
shr rax, 0x20
mov dword [rsp + 0x68], eax
mov rax, qword [rsp + 0x200]
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0x240]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x238]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 0x44]
mov eax, dword [rax + rcx*4]
add rax, qword [rsp + 0x238]
mov qword [rsp + 0xe8], rax
movabs rax, 0x9a2b006b25518dc7
mov ecx, 0xffffffff
and rax, rcx
mov dword [rsp + 0x98], eax
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0xa0], rax
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x4c], eax
mov rax, qword [rsp + 0xa0]
movzx eax, byte [rax]
mov byte [rsp + 0x36], al
mov rax, qword [rsp + 0xa0]
inc rax
mov qword [rsp + 0xa0], rax
movzx eax, byte [rsp + 0x36]
mov byte [rsp + 0x31], al
movsx eax, byte [rsp + 0x31]
test eax, eax
jne 0x7ff7980efa34
mov eax, dword [rsp + 0x4c]
mov dword [rsp + 0x9c], eax
jmp 0x7ff7980efa6c
xor eax, eax
test eax, eax
je 0x7ff7980efa48
movsx eax, byte [rsp + 0x31]
or eax, 0x20
mov dword [rsp + 0x6c], eax
jmp 0x7ff7980efa51
movsx eax, byte [rsp + 0x31]
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x6c]
mov ecx, dword [rsp + 0x4c]
xor ecx, eax
mov eax, ecx
mov eax, eax
imul rax, rax, 0x1000193
mov dword [rsp + 0x4c], eax
jmp 0x7ff7980ef9f3
mov eax, dword [rsp + 0x98]
cmp dword [rsp + 0x9c], eax
jne 0x7ff7980efaef
mov rax, qword [rsp + 0x240]
mov eax, dword [rax + 0x1c]
add rax, qword [rsp + 0x238]
mov qword [rsp + 0x198], rax
mov rax, qword [rsp + 0x240]
mov eax, dword [rax + 0x24]
add rax, qword [rsp + 0x238]
mov qword [rsp + 0x190], rax
mov eax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x190]
movzx eax, word [rcx + rax*2]
mov rcx, qword [rsp + 0x198]
mov eax, dword [rcx + rax*4]
add rax, qword [rsp + 0x238]
mov qword [rsp + 0x1a0], rax
mov rax, qword [rsp + 0x1a0]
mov qword [rsp + 0xf0], rax
jmp 0x7ff7980efb45
jmp 0x7ff7980ef942
mov rax, qword [rsp + 0x210]
mov qword [rsp + 0x1a8], rax
mov rax, qword [rsp + 0x1a8]
mov rax, qword [rax]
mov qword [rsp + 0x1b0], rax
mov rax, qword [rsp + 0x1b0]
mov qword [rsp + 0x210], rax
mov byte [rsp + 0x37], 1
movzx eax, byte [rsp + 0x37]
test eax, eax
jne 0x7ff7980ef876
mov qword [rsp + 0xf0], 0
call qword [rsp + 0xf0]
mov qword [rsp + 0x1b8], rax
lea rax, [rsp + 0x250]
mov qword [rsp + 0x20], rax
mov r9d, 8
lea r8, [rsp + 0x218]
mov edx, 0x1e
mov rcx, qword [rsp + 0x1b8]
call qword [rsp + 0x1c0]
mov dword [rsp + 0xa8], eax
cmp qword [rsp + 0x218], 0
je 0x7ff7980efba8
mov rcx, qword [rsp + 0x218]
call qword [sym.imp.kernel32.dll_CloseHandle]
call fcn.7ff7980f0830
mov rcx, qword [rsp + 0x258]
xor rcx, rsp
call fcn.7ff798179f10
add rsp, 0x268
pop rdi
pop rsi
ret