Function at 0x10009670
Capabilities:
Check for time delay via gettickcount
Create process on windows
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001194e
mov eax, dword fs:[0]
push eax
sub esp, 0x45c
mov eax, dword [0x10020118]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x20]
cmp eax, 0x16
je 0x100096c0
push dword [ebp + 0x14]
push eax
push dword [ebp + 8]
push str.ICOM_TreatSendCommand_SID_08X_OPID_08X_dwParam1_u
call sym.isafepxy.dll_ISAFE_WriteProgramLogNoMask
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x10020d14]
xor edi, edi
mov dword [ebp - 0x448], eax
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x21c], edi
test esi, esi
je 0x10009730
mov edx, dword [esi]
mov dword [ebp - 0x458], edx
mov dword [ebp - 0x220], edx
test ecx, ecx
jne 0x100096fa
xor eax, eax
jmp 0x1000970c
push edx
call ecx
mov ecx, dword [0x10020d14]
mov edx, dword [ebp - 0x458]
add esp, 4
mov dword [ebp - 0x21c], eax
test eax, eax
je 0x1000972a
push edx
push dword [esi + 4]
push eax
call dword [sym.imp.MSVCR110.dll_memmove]
mov ecx, dword [0x10020d14]
add esp, 0xc
lea esi, [ebp - 0x220]
mov eax, dword [ebp + 0xc]
add eax, 0xfffffffd
cmp eax, 0x21
ja case.0x10009746.4
movzx eax, byte [eax + 0x1000a038]
jmp dword [eax*4 + 0x1000a004]
mov eax, dword [ebp + 8]
cmp ax, 1
jne case.0x10009746.4
push str.iSafeSvc
call sym.isafepxy.dll_ISAFE_WriteProgramLogNoMask
add esp, 4
mov dword [ebp - 0x440], sym.isafepxy.dll_struct__RTL_CRITICAL_SECTION_elex::commumod::SCommuMod::g_cs
push sym.isafepxy.dll_struct__RTL_CRITICAL_SECTION_elex::commumod::SCommuMod::g_cs
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [sym.isafepxy.dll_class_elex::commumod::ICommuInter__elex::commumod::SCommuMod::m_pCommuInter]
mov dword [ebp - 4], 0
test ecx, ecx
je 0x10009791
mov eax, dword [ecx]
call dword [eax]
push sym.isafepxy.dll_struct__RTL_CRITICAL_SECTION_elex::commumod::SCommuMod::g_cs
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp case.0x10009746.4
test ebx, ebx
je 0x10009e13
test ecx, ecx
jne 0x100097b8
xor eax, eax
jmp 0x100097bf
push 0xc
call ecx
add esp, 4
mov dword [ebx + 4], eax
test eax, eax
jne 0x100097d0
mov edi, 0xfffffffe
jmp case.0x10009746.4
mov dword [ebx], 0xc
xorps xmm0, xmm0
movq qword [eax], xmm0
mov dword [eax + 8], edi
mov eax, dword [ebx + 4]
mov dword [eax], 0xc
mov dword [eax + 4], edi
mov dword [eax + 8], edi
jmp case.0x10009746.4
test esi, esi
je 0x10009e13
mov ebx, dword [esi + 4]
test ebx, ebx
je 0x10009e13
cmp dword [esi], 0x10
jb 0x10009e13
mov eax, dword [ebp + 8]
cmp ax, 2
jne case.0x10009746.4
push sym.isafepxy.dll_struct__RTL_CRITICAL_SECTION_elex::commumod::SCommuMod::g_cs
mov dword [ebp - 0x440], sym.isafepxy.dll_struct__RTL_CRITICAL_SECTION_elex::commumod::SCommuMod::g_cs
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [sym.isafepxy.dll_class_elex::commumod::ICommuInter__elex::commumod::SCommuMod::m_pCommuInter]
mov dword [ebp - 4], 1
test ecx, ecx
je 0x10009791
mov eax, dword [ecx]
push dword [ebx + 8]
call dword [eax + 0x24]
jmp 0x10009791
test esi, esi
je 0x10009e13
mov ebx, dword [esi + 4]
test ebx, ebx
je 0x10009e13
mov eax, dword [esi]
cmp eax, 0x24
jb 0x10009e13
mov ecx, dword [ebx]
cmp ecx, eax
jne 0x10009e13
mov eax, dword [ebx + 0x20]
mov dword [ebp - 0x450], eax
test eax, eax
je 0x100098a1
cmp ecx, 0x24
ja 0x10009898
mov eax, 0xfffffffe
jmp 0x10009fe8
lea eax, [ebx + 0x24]
mov dword [ebp - 0x450], eax
push sym.isafepxy.dll_struct__RTL_CRITICAL_SECTION_elex::commumod::SCommuMod::g_cs
mov dword [ebp - 0x440], sym.isafepxy.dll_struct__RTL_CRITICAL_SECTION_elex::commumod::SCommuMod::g_cs
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [sym.isafepxy.dll_class_elex::commumod::ICommuInter__elex::commumod::SCommuMod::m_pCommuInter]
mov dword [ebp - 4], 2
test ecx, ecx
je 0x10009791
push dword [ebp - 0x450]
mov eax, dword [ecx]
push dword [ebx + 0x1c]
push dword [ebx + 0x18]
push dword [ebx + 0x14]
push dword [ebp + 8]
call dword [eax + 0x10]
jmp 0x10009791
test esi, esi
je 0x10009e13
cmp dword [esi + 4], edi
je 0x10009e13
mov ebx, dword [esi]
cmp ebx, 0x14
jb 0x10009e13
xor edx, edx
xor ecx, ecx
test ebx, ebx
je 0x100097c6
mov edi, dword [esi + 4]
lea eax, [edi + ecx]
inc edx
add ecx, dword [eax]
cmp ecx, ebx
jb 0x10009912
mov edi, 0
test edx, edx
je 0x100097c6
xor ecx, ecx
mov eax, edx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1000f0f6
add esp, 4
mov dword [ebp - 0x450], eax
test eax, eax
jne 0x10009956
lea edi, [eax - 3]
jmp case.0x10009746.4
xor ecx, ecx
xor ebx, ebx
cmp dword [esi], ecx
jbe 0x100099a2
mov edi, dword [ebp - 0x450]
mov edx, dword [esi + 4]
add edx, ecx
mov dword [edi + ebx*4], edx
cmp dword [edx + 8], 1
jne 0x10009996
mov eax, dword [edx + 0x34]
add eax, 0x20
lea eax, [edx + eax*2]
mov dword [edx + 0x34], eax
mov eax, dword [edx + 0x30]
add eax, 0x20
lea eax, [edx + eax*2]
mov dword [edx + 0x30], eax
mov eax, dword [edx + 0x38]
add eax, 0x20
lea eax, [edx + eax*2]
mov dword [edx + 0x38], eax
mov eax, dword [edi + ebx*4]
inc ebx
add ecx, dword [eax]
cmp ecx, dword [esi]
jb 0x10009964
xor edi, edi
push sym.isafepxy.dll_struct__RTL_CRITICAL_SECTION_elex::commumod::SCommuMod::g_cs
mov dword [ebp - 0x440], sym.isafepxy.dll_struct__RTL_CRITICAL_SECTION_elex::commumod::SCommuMod::g_cs
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [sym.isafepxy.dll_class_elex::commumod::ICommuInter__elex::commumod::SCommuMod::m_pCommuInter]
mov dword [ebp - 4], 3
test ecx, ecx
je 0x100099d7
mov eax, dword [ecx]
push ebx
push dword [ebp - 0x450]
push dword [ebp + 8]
call dword [eax + 4]
push dword [ebp - 0x450]
call sub.MSVCR110.dll_void___cdecl_operator_delete___void__
add esp, 4
jmp 0x10009791
test esi, esi
je 0x10009e13
mov ebx, dword [esi + 4]
test ebx, ebx
je 0x10009e13
mov eax, dword [esi]
cmp eax, 0x21c
jb 0x10009e13
cmp dword [ebx], eax
jne 0x10009e13
push sym.isafepxy.dll_struct__RTL_CRITICAL_SECTION_elex::commumod::SCommuMod::g_cs
mov dword [ebp - 0x440], sym.isafepxy.dll_struct__RTL_CRITICAL_SECTION_elex::commumod::SCommuMod::g_cs
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [sym.isafepxy.dll_class_elex::commumod::ICommuInter__elex::commumod::SCommuMod::m_pCommuInter]
mov dword [ebp - 4], 4
test ecx, ecx
je 0x10009791
mov eax, dword [ecx]
push ebx
call dword [eax + 8]
jmp 0x10009791
test esi, esi
je 0x10009a98
mov ebx, dword [esi + 4]
test ebx, ebx
je 0x10009a98
mov eax, dword [esi]
cmp eax, 0x248
jb 0x10009a98
cmp dword [ebx], eax
jne 0x10009e13
push sym.isafepxy.dll_struct__RTL_CRITICAL_SECTION_elex::commumod::SCommuMod::g_cs
mov dword [ebp - 0x440], sym.isafepxy.dll_struct__RTL_CRITICAL_SECTION_elex::commumod::SCommuMod::g_cs
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [sym.isafepxy.dll_class_elex::commumod::ICommuInter__elex::commumod::SCommuMod::m_pCommuInter]
mov dword [ebp - 4], 5
test ecx, ecx
je 0x10009791
mov eax, dword [ecx]
push ebx
call dword [eax + 0xc]
jmp 0x10009791
or eax, 0xffffffff
jmp 0x10009fe8
test esi, esi
je 0x10009e13
mov ebx, dword [esi + 4]
test ebx, ebx
je 0x10009e13
mov eax, dword [esi]
cmp eax, 4
jb 0x10009e13
cmp dword [ebx], eax
jne 0x10009e13
push sym.isafepxy.dll_struct__RTL_CRITICAL_SECTION_elex::commumod::SCommuMod::g_cs
mov dword [ebp - 0x440], sym.isafepxy.dll_struct__RTL_CRITICAL_SECTION_elex::commumod::SCommuMod::g_cs
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [sym.isafepxy.dll_class_elex::commumod::ICommuInter__elex::commumod::SCommuMod::m_pCommuInter]
mov dword [ebp - 4], 6
test ecx, ecx
je 0x10009791
mov eax, dword [ecx]
push ebx
call dword [eax + 0x14]
jmp 0x10009791
test esi, esi
je 0x10009e13
mov ebx, dword [esi + 4]
test ebx, ebx
je 0x10009e13
mov eax, dword [esi]
cmp eax, 0x28c
jb 0x10009e13
cmp dword [ebx], eax
jne 0x10009e13
push sym.isafepxy.dll_struct__RTL_CRITICAL_SECTION_elex::commumod::SCommuMod::g_cs
mov dword [ebp - 0x440], sym.isafepxy.dll_struct__RTL_CRITICAL_SECTION_elex::commumod::SCommuMod::g_cs
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [sym.isafepxy.dll_class_elex::commumod::ICommuInter__elex::commumod::SCommuMod::m_pCommuInter]
mov dword [ebp - 4], 7
test ecx, ecx
je 0x10009791
mov eax, dword [ecx]
push ebx
call dword [eax + 0x18]
jmp 0x10009791
test esi, esi
je 0x10009e13
mov ebx, dword [esi + 4]
test ebx, ebx
je 0x10009e13
mov eax, dword [esi]
cmp eax, 0x20
jb 0x10009e13
mov ecx, dword [ebx]
mov dword [ebp - 0x454], edi
mov dword [ebp - 0x450], edi
cmp eax, ecx
jbe 0x10009b99
lea edx, [ecx + ebx]
sub eax, ecx
mov dword [ebp - 0x454], edx
mov dword [ebp - 0x450], eax
push sym.isafepxy.dll_struct__RTL_CRITICAL_SECTION_elex::commumod::SCommuMod::g_cs
mov dword [ebp - 0x440], sym.isafepxy.dll_struct__RTL_CRITICAL_SECTION_elex::commumod::SCommuMod::g_cs
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [sym.isafepxy.dll_class_elex::commumod::ICommuInter__elex::commumod::SCommuMod::m_pCommuInter]
mov dword [ebp - 4], 8
test ecx, ecx
je 0x10009791
push dword [ebp - 0x450]
mov eax, dword [ecx]
push dword [ebp - 0x454]
push ebx
call dword [eax + 0x1c]
jmp 0x10009791
mov ebx, dword [ebp + 0x14]
cmp ebx, 3
jne 0x10009c5c
mov eax, dword [0x10020d24]
test eax, eax
je 0x10009bf3
push dword [ebp + 0x18]
call eax
add esp, 4
mov eax, dword [0x10020d28]
movzx ecx, word [sym.isafepxy.dll_unsigned_long_int_elex::commumod::SCommuMod::m_dwSelfModID]
test eax, eax
je 0x10009e19
lea edx, [ebp - 0x43c]
push edx
push ecx
call eax
add esp, 8
test eax, eax
jne 0x10009e19
lea eax, [ebp - 0x43c]
mov dword [ebp - 0x440], eax
mov eax, dword [0x10020d2c]
mov dword [ebp - 0x444], 0x21c
test eax, eax
je 0x10009e19
push 0
lea ecx, [ebp - 0x444]
push ecx
push 0
push 0
push 1
push 2
push 2
call eax
add esp, 0x1c
jmp 0x10009e19
push sym.isafepxy.dll_struct__RTL_CRITICAL_SECTION_elex::commumod::SCommuMod::g_cs
mov dword [ebp - 0x440], sym.isafepxy.dll_struct__RTL_CRITICAL_SECTION_elex::commumod::SCommuMod::g_cs
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [sym.isafepxy.dll_class_elex::commumod::ICommuInter__elex::commumod::SCommuMod::m_pCommuInter]
mov dword [ebp - 4], 9
test ecx, ecx
je 0x10009c8b
push dword [ebp + 0x18]
mov eax, dword [ecx]
push ebx
call dword [eax + 0x20]
push sym.isafepxy.dll_struct__RTL_CRITICAL_SECTION_elex::commumod::SCommuMod::g_cs
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10009e19
test esi, esi
je 0x10009e13
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x10009e13
mov eax, dword [esi]
cmp eax, 0x20
jb 0x10009e13
cmp dword [ecx], eax
je 0x10009cce
mov edi, 0xfffffffe
jmp case.0x10009746.4
mov eax, dword [ecx + 0x1c]
dec eax
jne case.0x10009746.4
lea eax, [ecx + 0x24]
add eax, 4
mov ecx, dword [eax - 8]
mov edx, dword [eax - 4]
mov dword [ebp - 0x440], ecx
mov dword [ebp - 0x460], edx
test edx, edx
je 0x10009d05
mov ecx, dword [eax]
add eax, 4
test ecx, ecx
je 0x10009d05
mov dword [ebp - 0x460], eax
add eax, ecx
mov ebx, dword [eax]
add eax, 4
mov dword [ebp - 0x45c], ebx
test ebx, ebx
je 0x10009d25
mov ecx, dword [eax]
add eax, 4
test ecx, ecx
je 0x10009d25
mov dword [ebp - 0x45c], eax
add eax, ecx
mov edx, dword [eax]
add eax, 4
mov dword [ebp - 0x450], edx
test edx, edx
je 0x10009d45
mov ecx, dword [eax]
add eax, 4
test ecx, ecx
je 0x10009d45
mov dword [ebp - 0x450], eax
add eax, ecx
mov ebx, dword [eax]
add eax, 4
mov dword [ebp - 0x454], ebx
test ebx, ebx
je 0x10009d65
mov ecx, dword [eax]
add eax, 4
test ecx, ecx
je 0x10009d65
mov dword [ebp - 0x454], eax
add eax, ecx
mov eax, dword [eax]
mov dword [ebp - 0x468], eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 0x464], eax
test eax, eax
je 0x10009db1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
push dword [ebp - 0x464]
mov ebx, eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [ebp - 0x458], eax
cmp ebx, eax
je 0x10009dc3
test ebx, ebx
je 0x10009dc3
test eax, eax
je 0x10009dc3
push 1
push eax
push ebx
call dword [sym.imp.USER32.dll_AttachThreadInput]
jmp 0x10009dc3
mov eax, dword [ebp - 0x448]
mov ebx, dword [ebp - 0x448]
mov dword [ebp - 0x458], eax
push dword [ebp - 0x468]
push dword [ebp - 0x454]
push dword [ebp - 0x450]
push dword [ebp - 0x45c]
push dword [ebp - 0x460]
push dword [ebp - 0x440]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [ebp - 0x464], edi
je case.0x10009746.4
mov eax, dword [ebp - 0x458]
cmp ebx, eax
je case.0x10009746.4
test ebx, ebx
je case.0x10009746.4
test eax, eax
je case.0x10009746.4
push 0
push eax
push ebx
call dword [sym.imp.USER32.dll_AttachThreadInput]
jmp case.0x10009746.4
or edi, 0xffffffff
mov ebx, dword [ebp + 0x14]
mov eax, edi
cdq
cmp eax, 0x10013
jne 0x10009e28
cmp edx, 0xe
je 0x10009e42
test esi, esi
je 0x10009e42
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x10009e42
mov eax, dword [0x10020d1c]
test eax, eax
je 0x10009e42
push ecx
call eax
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, eax
mov eax, dword [ebp - 0x448]
cmp edx, eax
jbe 0x10009fe6
lea ecx, [eax + 0x1388]
cmp edx, ecx
jbe 0x10009fe6
sub edx, eax
mov eax, 0x10624dd3
mul edx
mov esi, edx
shr esi, 6
cmp esi, 0xa
jbe 0x10009e85
cmp esi, 0x14
ja 0x10009e8a
mov esi, 0xa
jmp 0x10009ec2
cmp esi, 0x14
jbe 0x10009e96
cmp esi, 0x1e
ja 0x10009e9b
mov esi, 0xb
jmp 0x10009ec2
cmp esi, 0x1e
jbe 0x10009ea7
cmp esi, 0x3c
ja 0x10009eac
mov esi, 0xc
jmp 0x10009ec2
cmp esi, 0x3c
jbe 0x10009eb8
cmp esi, 0x78
ja 0x10009ebd
mov esi, 0xd
jmp 0x10009ec2
cmp esi, 0x78
jbe 0x10009ec2
mov esi, 0xe
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call sub.MSVCR110.dll_memset
mov eax, dword [sym.isafepxy.dll_unsigned_long_int_elex::commumod::SCommuMod::m_dwSelfModID]
and eax, 0xffff
add esp, 0xc
cmp eax, 0x8000
jne 0x10009f00
push esi
push dword [ebp + 0x18]
push ebx
push dword [ebp + 0xc]
push str.error.cotmain._u._u._u._u
jmp 0x10009f2a
cmp eax, 0x4000
jne 0x10009f16
push esi
push dword [ebp + 0x18]
push ebx
push dword [ebp + 0xc]
push str.error.cottray._u._u._u._u
jmp 0x10009f2a
cmp eax, 0x2000
jne 0x10009f3f
push esi
push dword [ebp + 0x18]
push ebx
push dword [ebp + 0xc]
push str.error.cotscan._u._u._u._u
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.MSVCR110.dll_swprintf_s]
add esp, 0x1c
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
jmp 0x10009f50
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10009f50
mov eax, dword [0x10020d14]
sub ecx, edx
sar ecx, 1
lea ebx, [ecx*2 + 0xc]
test eax, eax
je 0x10009fe6
push ebx
call eax
mov esi, eax
add esp, 4
test esi, esi
je 0x10009fe6
lea ecx, [ebp - 0x218]
mov dword [esi], ebx
mov dword [esi + 4], 1
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10009f90
sub ecx, edx
sar ecx, 1
lea eax, [ebp - 0x218]
push eax
lea eax, [ecx + 1]
push eax
lea eax, [esi + 8]
push eax
call dword [sym.imp.MSVCR110.dll_wcscpy_s]
mov eax, dword [esi]
mov dword [ebp - 0x44c], eax
mov eax, dword [0x10020d2c]
add esp, 0xc
mov dword [ebp - 0x448], esi
test eax, eax
je 0x10009fe6
push 0
lea ecx, [ebp - 0x44c]
push ecx
push 0
push 0
push 1
push 1
push 1
call eax
add esp, 0x1c
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000f53c
mov esp, ebp
pop ebp
ret