Function at 0x100108c0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Log keystrokes via polling
Write file on windows

Disassembly:
mov eax, 0x2728
call fcn.1009c040
mov eax, dword [0x1012c310]
xor eax, esp
mov dword [esp + 0x2724], eax
push esi
push edi
push 0x79
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, 0x8000
and ax, cx
mov edx, ecx
cmp ax, dx
jne 0x10010a58
cmp byte [0x1020fc2b], 0
je 0x10010a5f
mov eax, dword [0x10227cc8]
cmp dword [eax], 0x19999
je 0x10010a41
push ebx
push ebp
xor ebp, ebp
lea ecx, [ecx]
mov ecx, dword [ebp + 0x1012d684]
add ecx, dword [0x1020fc2c]
push 0x1016f0d0
push 1
lea ebx, [ebp + 0x102277f8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push eax
call esi
cmp byte [0x1022797e], 0
je 0x100109b0
mov eax, dword [0x1020fc2c]
push 0x1016f0d0
push 0x2710
lea edx, [esp + 0x2c]
push edx
inc eax
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000002
push str.a.txt
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
lea ecx, [esp + 0x20]
push ecx
push 0x2710
lea edx, [esp + 0x30]
mov esi, eax
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebx]
cmp ebx, 2
jne 0x100109ef
mov esi, dword [ebp + 0x1012d684]
add esi, dword [0x1020fc2c]
lea eax, [esp + 0x18]
push eax
push 0x40
push 1
push esi
call edi
mov eax, dword [esp + 0x18]
mov cl, byte [0x1021edec]
lea edx, [esp + 0x20]
push edx
push eax
push 1
push esi
mov byte [esi], cl
call edi
mov byte [0x10227753], 1
jmp 0x10010a2a
cmp ebx, 4
jne 0x10010a2a
mov esi, dword [ebp + 0x1012d684]
add esi, dword [0x1020fc2c]
lea ecx, [esp + 0x10]
push ecx
push 0x40
push 1
push esi
call edi
mov ecx, dword [esp + 0x10]
mov dl, byte [0x1019e204]
lea eax, [esp + 0x14]
push eax
push ecx
push 1
push esi
mov byte [esi], dl
call edi
mov byte [0x10227753], 0
add ebp, 4
cmp ebp, 0x18
jl 0x10010920
pop ebp
pop ebx
mov byte [0x1020fc2b], 0
jmp 0x10010a5f
cmp byte [0x10227753], 0
mov byte [0x1020fc2b], 0
sete byte [0x10227753]
jmp 0x10010a5f
mov byte [0x1020fc2b], 1
cmp byte [0x10227753], 0
mov esi, dword [0x10227ca0]
je 0x10010ab7
lea edx, [esp + 8]
push edx
push 0x40
push 5
push esi
call edi
mov eax, dword [str.XXXX]
mov dword [esi], eax
mov eax, dword [esp + 8]
mov cl, byte [0x1012d67c]
lea edx, [esp + 0xc]
push edx
push eax
push 5
push esi
mov byte [esi + 4], cl
call edi
pop edi
mov byte [0x10227714], 1
pop esi
mov ecx, dword [esp + 0x2724]
xor ecx, esp
call fcn.10096904
add esp, 0x2728
ret
lea ecx, [esp + 8]
push ecx
push 0x40
push 1
push esi
call edi
mov ecx, dword [esp + 8]
mov dl, byte [0x1012d680]
lea eax, [esp + 0xc]
push eax
push ecx
push 1
push esi
mov byte [esi], dl
call edi
mov esi, dword [0x10227ca0]
lea edx, [esp + 8]
push edx
push 0x40
push 4
inc esi
push esi
call edi
mov edx, dword [esp + 8]
mov eax, dword [0x102277b8]
lea ecx, [esp + 0xc]
push ecx
push edx
push 4
push esi
mov dword [esi], eax
call edi
mov ecx, dword [esp + 0x272c]
pop edi
pop esi
xor ecx, esp
mov byte [0x10227714], 0
call fcn.10096904
add esp, 0x2728
ret