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

Disassembly:
mov eax, 0x2720
call fcn.10096de0
mov eax, dword [0x101252d0]
xor eax, esp
mov dword [esp + 0x271c], eax
push ebx
push esi
push 0x79
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, 0x8000
and ax, cx
mov edx, ecx
cmp ax, dx
jne 0x10010e78
cmp byte [0x1020897b], 0
je 0x10010e7f
mov eax, dword [0x10220a0c]
cmp dword [eax], 0x19999
je 0x10010e61
push ebp
push edi
xor ebp, ebp
lea ecx, [ecx]
mov ecx, dword [ebp + 0x1012661c]
add ecx, dword [0x1020897c]
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0x10167e20
push 1
lea eax, [ebp + 0x10220548]
push eax
push ecx
call edi
mov esi, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push eax
call esi
cmp byte [0x102206ce], 0
je 0x10010dae
mov eax, dword [0x1020897c]
push 0x10167e20
push 0x2710
lea edx, [esp + 0x24]
push edx
inc eax
push eax
call edi
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 + 0x1c]
push ecx
push 0x2710
lea edx, [esp + 0x28]
mov esi, eax
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x10220548]
cmp eax, 2
jne 0x10010e25
mov esi, dword [ebp + 0x1012661c]
add esi, dword [0x1020897c]
lea eax, [esp + 0x10]
push eax
push 4
push 1
push esi
call ebx
test eax, eax
je 0x10010df5
mov eax, dword [esp + 0x10]
mov cl, byte [0x10217b3c]
lea edx, [esp + 0x14]
push edx
push eax
push 1
push esi
mov byte [esi], cl
call ebx
mov byte [0x102204a3], 1
jmp 0x10010e4a
lea ecx, [esp + 0x10]
push ecx
push 0x40
push 1
push esi
call ebx
test eax, eax
je 0x10010e1c
mov ecx, dword [esp + 0x10]
mov dl, byte [0x10217b3c]
lea eax, [esp + 0x14]
push eax
push ecx
push 1
push esi
mov byte [esi], dl
call ebx
mov byte [0x102204a3], 1
jmp 0x10010e4a
cmp eax, 4
jne 0x10010e4a
mov edi, dword [ebp + 0x1012661c]
add edi, dword [0x1020897c]
push 0x10196f54
lea esi, [eax - 3]
call fcn.10008080
mov byte [0x102204a3], 0
add ebp, 4
cmp ebp, 0x18
jl 0x10010d20
pop edi
pop ebp
mov byte [0x1020897b], 0
jmp 0x10010e7f
cmp byte [0x102204a3], 0
mov byte [0x1020897b], 0
sete byte [0x102204a3]
jmp 0x10010e7f
mov byte [0x1020897b], 1
cmp byte [0x102204a3], 0
mov esi, dword [0x102209e8]
je 0x10010f2c
lea edx, [esp + 8]
push edx
push 4
push 5
push esi
call ebx
test eax, eax
je 0x10010edf
mov eax, dword [str.XXXX]
mov dword [esi], eax
mov eax, dword [esp + 8]
mov cl, byte [0x10126614]
lea edx, [esp + 0xc]
push edx
push eax
push 5
push esi
mov byte [esi + 4], cl
call ebx
pop esi
mov byte [0x10220464], 1
pop ebx
mov ecx, dword [esp + 0x271c]
xor ecx, esp
call fcn.10091714
add esp, 0x2720
ret
lea ecx, [esp + 8]
push ecx
push 0x40
push 5
push esi
call ebx
test eax, eax
je 0x10010f0e
mov edx, dword [str.XXXX]
mov dword [esi], edx
mov edx, dword [esp + 8]
mov al, byte [0x10126614]
lea ecx, [esp + 0xc]
push ecx
push edx
push 5
push esi
mov byte [esi + 4], al
call ebx
pop esi
mov byte [0x10220464], 1
pop ebx
mov ecx, dword [esp + 0x271c]
xor ecx, esp
call fcn.10091714
add esp, 0x2720
ret
lea eax, [esp + 8]
push eax
push 4
push 1
push esi
call ebx
test eax, eax
je 0x10010f50
mov cl, byte [0x10126618]
mov eax, dword [esp + 8]
lea edx, [esp + 0xc]
push edx
mov byte [esi], cl
push eax
jmp 0x10010f72
lea ecx, [esp + 8]
push ecx
push 0x40
push 1
push esi
call ebx
test eax, eax
je 0x10010f77
mov dl, byte [0x10126618]
mov ecx, dword [esp + 8]
lea eax, [esp + 0xc]
push eax
mov byte [esi], dl
push ecx
push 1
push esi
call ebx
mov esi, dword [0x102209e8]
lea edx, [esp + 8]
push edx
push 4
push 4
inc esi
push esi
call ebx
test eax, eax
je 0x10010fa1
mov eax, dword [0x10220508]
mov edx, dword [esp + 8]
lea ecx, [esp + 0xc]
push ecx
mov dword [esi], eax
push edx
jmp 0x10010fc3
lea eax, [esp + 8]
push eax
push 0x40
push 4
push esi
call ebx
test eax, eax
je 0x10010fc8
mov ecx, dword [0x10220508]
mov eax, dword [esp + 8]
lea edx, [esp + 0xc]
push edx
mov dword [esi], ecx
push eax
push 4
push esi
call ebx
mov ecx, dword [esp + 0x2724]
pop esi
pop ebx
xor ecx, esp
mov byte [0x10220464], 0
call fcn.10091714
add esp, 0x2720
ret