Function at 0x1022cfd
Capabilities:
Accept command line arguments
Check mutex and terminate process on windows
Check mutex on windows
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x10b0090]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x2c]
push eax
push 1
xor ebx, ebx
push ebx
push 0x1023180
push 0x80000002
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x44], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1052440
xor eax, eax
cmp dword [ebp - 0x40], ebx
sete al
push eax
call dword [sym.imp.KERNEL32.dll_SetProcessDEPPolicy]
cmp dword [ebp - 0x44], ebx
jne 0x1022d61
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
mov edi, 0x10b1098
push edi
call fcn.010292dd
push 0x1023160
mov dword [0x10b00b0], 0x1023118
mov dword [0x10b0088], edi
call fcn.0102aa8c
push 0x10b1198
push 0x10b11c8
push 0x100e26d
push 0x10230d8
call fcn.0102956b
lea eax, [ebp - 0x34]
push eax
push 0x1029014
mov edi, 0x1017800
push edi
mov esi, 0x80000001
push esi
mov dword [ebp - 0x34], ebx
call fcn.01018a5d
cmp dword [ebp - 0x34], ebx
je 0x1052472
cmp dword [0x10b11ec], ebx
je 0x1022e2d
mov al, byte [0x10b11f0]
cmp al, 4
jb 0x10230be
mov eax, dword [0x10b11d8]
mov ecx, dword [0x10b11dc]
mov edx, 0x4010000
and eax, edx
and ecx, 0x80000000
or eax, ecx
je 0x1022e2d
mov eax, dword [0x10b11e0]
mov ecx, eax
and ecx, edx
mov edx, dword [0x10b11e4]
and edx, 0x80000000
cmp ecx, eax
jne 0x1022e2d
cmp edx, dword [0x10b11e4]
jne 0x1022e2d
push 0x10230e8
push dword [0x10b119c]
push dword [0x10b1198]
call fcn.010127a5
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x80
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push dword [ebp - 0x28]
call fcn.0102ee1a
mov eax, dword [ebp - 0x28]
push ebx
push eax
push ebx
mov ecx, 0x10b10e8
mov dword [0x10b00b4], eax
call fcn.0102cd5a
test eax, eax
jl 0x105269f
push ebx
push ebx
call fcn.01014df0
push 0x10b116c
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov dword [ebp - 0x24], ebx
call fcn.0102ce8d
mov esi, eax
cmp esi, 1
jne 0x1022ebd
push 0x1023128
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 0x24], eax
cmp eax, ebx
je 0x1022eac
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call fcn.01029441
mov esi, eax
neg esi
sbb esi, esi
and esi, 2
add esi, 3
push esi
call dword [sym.imp.SHELL32.dll_Ordinal_899]
cmp esi, 3
jne 0x105248b
cmp dword [0x10b11ec], ebx
je 0x1022f30
mov al, byte [0x10b11f0]
cmp al, 4
jb 0x10230cb
mov eax, dword [0x10b11d8]
mov ecx, dword [0x10b11dc]
mov edx, 0x2010000
mov esi, 0x80010000
and eax, edx
and ecx, esi
or eax, ecx
je 0x1022f30
mov eax, dword [0x10b11e0]
mov edi, dword [0x10b11e4]
mov ecx, eax
and ecx, edx
mov edx, edi
and edx, esi
cmp ecx, eax
jne 0x1022f30
cmp edx, edi
jne 0x1022f30
push 0x1023108
push dword [0x10b119c]
push dword [0x10b1198]
call fcn.010127a5
xor esi, esi
inc esi
push esi
call dword [sym.imp.SHELL32.dll_Ordinal_188]
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
call fcn.01029360
push ebx
push 0x12
push 0x12
push ebx
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
call fcn.0102cb05
push ebx
mov dword [ebp - 0x38], eax
call dword [sym.imp.ole32.dll_OleInitialize]
mov dword [ebp - 0x30], eax
call fcn.010296d6
push esi
call dword [sym.imp.SHELL32.dll_Ordinal_660]
call fcn.0102cc1a
call fcn.0102949d
call fcn.0102cfa5
call fcn.0102d011
call fcn.0102d20d
call fcn.01029305
call fcn.0102ccb7
call fcn.0102ca81
push ebx
call fcn.010296a3
call sub.EXPLORERFRAME.dll_Ordinal_110
lea ecx, [ebp - 0x50]
call fcn.0102ca29
call fcn.01029441
test eax, eax
jne 0x10525d7
call fcn.010229d4
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x24], ebx
je 0x1022fdd
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x28], ebx
je 0x1052667
push ebx
push esi
push 0x590
push dword [0x10b00ec]
call dword [sym.imp.USER32.dll_PostMessageW]
call fcn.0102352f
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push 0x80000008
push 0x100f000
call dword [sym.imp.KERNEL32.dll_RegisterApplicationRestart]
lea eax, [ebp - 0x24]
push eax
push 0x10231ec
push esi
push ebx
push 0x102322c
mov dword [ebp - 0x24], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x1023048
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
push 0x10231dc
push eax
call dword [ecx + 0xc]
cmp dword [0x10b11ec], ebx
je 0x10525e7
mov al, byte [0x10b11f0]
cmp al, 4
jb 0x10525df
mov eax, dword [0x10b11d8]
mov ecx, dword [0x10b11dc]
mov esi, 0x4010000
mov edi, 0x80000000
and eax, esi
and ecx, edi
or eax, ecx
je 0x10230b1
mov eax, dword [0x10b11e0]
mov edx, dword [0x10b11e4]
mov ecx, eax
and ecx, esi
and edx, edi
cmp ecx, eax
jne 0x10230b1
cmp edx, dword [0x10b11e4]
jne 0x10230b1
push 0x10230f8
push dword [0x10b119c]
push dword [0x10b1198]
call fcn.010127a5
push dword [ebp - 0x28]
call sub.SHELL32.dll_Ordinal_201
jmp 0x10525f6
cmp al, bl
je 0x1022dda
jmp 0x1022e2d
cmp al, bl
jne 0x1022f30
jmp 0x1022ee2
lea eax, [ebp - 0x40]
push eax
push 0x105275c
push ebx
push dword [ebp - 0x2c]
call fcn.01018a5d
lea eax, [ebp - 0x44]
push eax
push 0x1052720
push ebx
push dword [ebp - 0x2c]
call fcn.01018a5d
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1022d42
push ebx
call fcn.0107f483
push 1
push 0x1029014
push edi
push esi
call fcn.01079f71
jmp 0x1022dc5
cmp dword [ebp - 0x24], ebx
je 0x10524a2
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
cmp esi, 5
jne 0x10524c0
call fcn.0106a8b9
jmp 0x1052695
call fcn.010185f7
cmp eax, ebx
mov dword [ebp - 0x30], eax
jl 0x1052695
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHLWAPI.dll_PathGetArgsW]
lea ecx, [ebp - 0x20]
push ecx
push eax
call fcn.0106a2af
test eax, eax
je 0x10525ca
call fcn.010296d6
cmp esi, 4
jne 0x1052541
lea eax, [ebp - 0x24]
push eax
push 0x10231ec
push 1
push ebx
push 0x102322c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x10525c1
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
push eax
call dword [ecx + 0xc]
test eax, eax
jl 0x105253c
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x24]
jmp 0x10525bb
lea eax, [ebp - 0x28]
push eax
push 0x1052710
push 1
push ebx
push 0x10527a0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x10525c1
push 0x40
lea eax, [ebp - 0x90]
push ebx
push eax
mov dword [ebp - 0x94], 0x44
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
xor eax, eax
test byte [ebp - 0x68], 1
lea edi, [ebp - 0x38]
mov dword [ebp - 0x3c], ebx
stosd dword es:[edi], eax
je 0x105259a
movzx ecx, word [ebp - 0x64]
jmp 0x105259d
push 0xa
pop ecx
mov eax, dword [ebp - 0x28]
mov edx, dword [eax]
push ecx
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push dword [ebp - 0x18]
push dword [ebp - 0x20]
push 0x1052790
push eax
call dword [edx + 0xc]
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 0x20]
call dword [sym.imp.SHELL32.dll_ILFree]
push dword [ebp - 0x30]
call fcn.0101959d
jmp 0x1052695
mov dword [ebp - 0x28], ebx
jmp 0x1022fc6
cmp al, bl
je 0x1023061
mov edi, 0x80000000
mov esi, 0x4010000
jmp 0x10230b1
cmp dword [0x10b11ec], ebx
je 0x105264f
mov al, byte [0x10b11f0]
cmp al, 4
jae 0x105260b
cmp al, bl
jne 0x105264f
mov eax, dword [0x10b11d8]
mov ecx, dword [0x10b11dc]
and eax, esi
and ecx, edi
or eax, ecx
je 0x105264f
mov eax, dword [0x10b11e0]
mov ecx, eax
and ecx, esi
mov esi, dword [0x10b11e4]
mov edx, esi
and edx, edi
cmp ecx, eax
jne 0x105264f
cmp edx, esi
jne 0x105264f
push 0x1052700
push dword [0x10b119c]
push dword [0x10b1198]
call fcn.010127a5
lea ecx, [ebp - 0x50]
call fcn.0106aca3
lea eax, [ebp - 0x24]
push eax
call fcn.01002bf6
push 1
call fcn.010296a3
call sub.EXPLORERFRAME.dll_Ordinal_111
cmp dword [ebp - 0x30], ebx
jl 0x1052677
call dword [sym.imp.ole32.dll_OleUninitialize]
push dword [ebp - 0x38]
call fcn.0101959d
push ebx
call dword [sym.imp.SHELL32.dll_Ordinal_188]
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x50], 0x102ca78
call fcn.0106aca3
push 0x10b10e8
call fcn.0106abc3
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHLWAPI.dll_PathGetArgsW]
push eax
call fcn.0106a163
call fcn.0107a714
mov ecx, 0x10b0180
call fcn.0101c407
push ebx
call fcn.0102273d
push 0x10b1198
call fcn.0106a990
call fcn.0106a76c
cmp dword [0x10b26fc], ebx
pop edi
pop esi
pop ebx
je 0x10526e9
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
inc eax
call fcn.0100204d
leave
ret 0x10