Function at 0x1022c8d
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 [0x10b1090]
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 0x1023110
push 0x80000002
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x44], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1052358
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 0x1022cf1
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
mov edi, 0x10b2098
push edi
call fcn.0102927d
push 0x10230f0
mov dword [0x10b10b0], 0x10230a8
mov dword [0x10b1088], edi
call fcn.0102aa74
push 0x10b2198
push 0x10b21c8
push 0x100e26d
push 0x1023068
call fcn.0102950b
lea eax, [ebp - 0x34]
push eax
push 0x1028fb4
mov edi, 0x1017800
push edi
mov esi, 0x80000001
push esi
mov dword [ebp - 0x34], ebx
call fcn.01018a5d
cmp dword [ebp - 0x34], ebx
je 0x105238a
cmp dword [0x10b21ec], ebx
je 0x1022dbd
mov al, byte [0x10b21f0]
cmp al, 4
jb 0x102304e
mov eax, dword [0x10b21d8]
mov ecx, dword [0x10b21dc]
mov edx, 0x4010000
and eax, edx
and ecx, 0x80000000
or eax, ecx
je 0x1022dbd
mov eax, dword [0x10b21e0]
mov ecx, eax
and ecx, edx
mov edx, dword [0x10b21e4]
and edx, 0x80000000
cmp ecx, eax
jne 0x1022dbd
cmp edx, dword [0x10b21e4]
jne 0x1022dbd
push 0x1023078
push dword [0x10b219c]
push dword [0x10b2198]
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.0102edb2
mov eax, dword [ebp - 0x28]
push ebx
push eax
push ebx
mov ecx, 0x10b20e8
mov dword [0x10b10b4], eax
call fcn.0102ccf2
test eax, eax
jl 0x10525b7
push ebx
push ebx
call fcn.01014df0
push 0x10b216c
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov dword [ebp - 0x24], ebx
call fcn.0102ce25
mov esi, eax
cmp esi, 1
jne 0x1022e4d
push 0x10230b8
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 0x24], eax
cmp eax, ebx
je 0x1022e3c
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call fcn.010293e1
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 0x10523a3
cmp dword [0x10b21ec], ebx
je 0x1022ec0
mov al, byte [0x10b21f0]
cmp al, 4
jb 0x102305b
mov eax, dword [0x10b21d8]
mov ecx, dword [0x10b21dc]
mov edx, 0x2010000
mov esi, 0x80010000
and eax, edx
and ecx, esi
or eax, ecx
je 0x1022ec0
mov eax, dword [0x10b21e0]
mov edi, dword [0x10b21e4]
mov ecx, eax
and ecx, edx
mov edx, edi
and edx, esi
cmp ecx, eax
jne 0x1022ec0
cmp edx, edi
jne 0x1022ec0
push 0x1023098
push dword [0x10b219c]
push dword [0x10b2198]
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.01029300
push ebx
push 0x12
push 0x12
push ebx
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
call fcn.0102ca9d
push ebx
mov dword [ebp - 0x38], eax
call dword [sym.imp.ole32.dll_OleInitialize]
mov dword [ebp - 0x30], eax
call fcn.01029676
push esi
call dword [sym.imp.SHELL32.dll_Ordinal_660]
call fcn.0102cbb2
call fcn.0102943d
call fcn.0102cf3d
call fcn.0102cfa9
call fcn.0102d1a5
call fcn.010292a5
call fcn.0102cc4f
call fcn.0102ca19
push ebx
call fcn.01029643
call sub.EXPLORERFRAME.dll_Ordinal_110
lea ecx, [ebp - 0x50]
call fcn.0102c9c1
call fcn.010293e1
test eax, eax
jne 0x10524ef
call fcn.01022964
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x24], ebx
je 0x1022f6d
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 0x105257f
push ebx
push esi
push 0x590
push dword [0x10b10ec]
call dword [sym.imp.USER32.dll_PostMessageW]
call fcn.010234c3
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 0x102317c
push esi
push ebx
push 0x10231bc
mov dword [ebp - 0x24], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x1022fd8
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
push 0x102316c
push eax
call dword [ecx + 0xc]
cmp dword [0x10b21ec], ebx
je 0x10524ff
mov al, byte [0x10b21f0]
cmp al, 4
jb 0x10524f7
mov eax, dword [0x10b21d8]
mov ecx, dword [0x10b21dc]
mov esi, 0x4010000
mov edi, 0x80000000
and eax, esi
and ecx, edi
or eax, ecx
je 0x1023041
mov eax, dword [0x10b21e0]
mov edx, dword [0x10b21e4]
mov ecx, eax
and ecx, esi
and edx, edi
cmp ecx, eax
jne 0x1023041
cmp edx, dword [0x10b21e4]
jne 0x1023041
push 0x1023088
push dword [0x10b219c]
push dword [0x10b2198]
call fcn.010127a5
push dword [ebp - 0x28]
call sub.SHELL32.dll_Ordinal_201
jmp 0x105250e
cmp al, bl
je 0x1022d6a
jmp 0x1022dbd
cmp al, bl
jne 0x1022ec0
jmp 0x1022e72
lea eax, [ebp - 0x40]
push eax
push 0x1052674
push ebx
push dword [ebp - 0x2c]
call fcn.01018a5d
lea eax, [ebp - 0x44]
push eax
push 0x1052638
push ebx
push dword [ebp - 0x2c]
call fcn.01018a5d
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1022cd2
push ebx
call fcn.0107f943
push 1
push 0x1028fb4
push edi
push esi
call fcn.0107a381
jmp 0x1022d55
cmp dword [ebp - 0x24], ebx
je 0x10523ba
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 0x10523d8
call fcn.0106a9a5
jmp 0x10525ad
call fcn.010185f7
cmp eax, ebx
mov dword [ebp - 0x30], eax
jl 0x10525ad
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.0106a39b
test eax, eax
je 0x10524e2
call fcn.01029676
cmp esi, 4
jne 0x1052459
lea eax, [ebp - 0x24]
push eax
push 0x102317c
push 1
push ebx
push 0x10231bc
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x10524d9
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 0x1052454
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x24]
jmp 0x10524d3
lea eax, [ebp - 0x28]
push eax
push 0x1052628
push 1
push ebx
push 0x10526b8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x10524d9
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 0x10524b2
movzx ecx, word [ebp - 0x64]
jmp 0x10524b5
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 0x10526a8
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 0x10525ad
mov dword [ebp - 0x28], ebx
jmp 0x1022f56
cmp al, bl
je 0x1022ff1
mov edi, 0x80000000
mov esi, 0x4010000
jmp 0x1023041
cmp dword [0x10b21ec], ebx
je 0x1052567
mov al, byte [0x10b21f0]
cmp al, 4
jae 0x1052523
cmp al, bl
jne 0x1052567
mov eax, dword [0x10b21d8]
mov ecx, dword [0x10b21dc]
and eax, esi
and ecx, edi
or eax, ecx
je 0x1052567
mov eax, dword [0x10b21e0]
mov ecx, eax
and ecx, esi
mov esi, dword [0x10b21e4]
mov edx, esi
and edx, edi
cmp ecx, eax
jne 0x1052567
cmp edx, esi
jne 0x1052567
push 0x1052618
push dword [0x10b219c]
push dword [0x10b2198]
call fcn.010127a5
lea ecx, [ebp - 0x50]
call fcn.0106ad8f
lea eax, [ebp - 0x24]
push eax
call fcn.01002bf6
push 1
call fcn.01029643
call sub.EXPLORERFRAME.dll_Ordinal_111
cmp dword [ebp - 0x30], ebx
jl 0x105258f
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], 0x102ca10
call fcn.0106ad8f
push 0x10b20e8
call fcn.0106acaf
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHLWAPI.dll_PathGetArgsW]
push eax
call fcn.0106a24f
call fcn.0107ab3c
mov ecx, 0x10b1180
call fcn.0101c407
push ebx
call fcn.010226cd
push 0x10b2198
call fcn.0106aa7c
call fcn.0106a858
cmp dword [0x10b36fc], ebx
pop edi
pop esi
pop ebx
je 0x1052601
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