Function at 0x1007c150
Capabilities:
Accept command line arguments
Check for trap flag exception
Check mutex on windows
Create process on windows
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b7018
push 0x100979d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffff8c0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov byte [ebp - 0x28], 1
mov eax, dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x24], ecx
mov edx, dword [sym.imp.USER32.dll_LoadStringA]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x24], eax
mov ecx, dword [sym.imp.USER32.dll_LoadStringW]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
add edx, 1
mov dword [ebp - 0x24], edx
push 0x1007b18c
call dword [sym.imp.MSVCRT.dll_int____cdecl___unsigned_int____cdecl__set_new_handler_int____cdecl___unsigned_int__]
add esp, 4
mov eax, dword [0x100b52a0]
xor eax, dword [0x100b525c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x100b5518
lea ecx, [ebp - 0x12c]
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea edx, [ebp - 0x12c]
push edx
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
je 0x1007c204
mov byte [ebp - 0x28], 0
mov eax, dword [ebp - 0x28]
and eax, 0xff
test eax, eax
je 0x1007c3ad
mov ecx, dword [0x100b5290]
xor ecx, dword [0x100b52a4]
xor ecx, dword [0x100b52a8]
and ecx, 0x20
test ecx, ecx
je 0x1007c3ad
mov edx, dword [0x100b529c]
xor edx, dword [0x100b5278]
xor edx, dword [0x100b52a0]
push edx
push 0x100b5510
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [ebp - 0x12c]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0
je 0x1007c3ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1007c3ad
push 0x7530
mov edx, dword [ebp - 0x130]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x134], eax
cmp dword [ebp - 0x134], 0
je 0x1007c2bf
cmp dword [ebp - 0x134], 0x80
jne 0x1007c3a3
mov eax, dword [0x100b529c]
xor eax, dword [0x100b5278]
xor eax, dword [0x100b52a0]
push eax
push 0x100b5508
lea ecx, [ebp - 0x12c]
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
mov dword [ebp - 0x13c], 0
jmp 0x1007c301
mov edx, dword [ebp - 0x13c]
add edx, 1
mov dword [ebp - 0x13c], edx
cmp dword [ebp - 0x13c], 0x12c
jge 0x1007c33a
lea eax, [ebp - 0x12c]
push eax
push 0x100b54fc
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [ebp - 0x138], eax
cmp dword [ebp - 0x138], 0
je 0x1007c330
jmp 0x1007c33a
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1007c2f2
cmp dword [ebp - 0x138], 0
je 0x1007c396
mov ecx, dword [0x100b529c]
xor ecx, dword [0x100b5278]
xor ecx, dword [0x100b52a0]
mov dword [ebp - 0x148], ecx
mov edx, dword [0x100b8248]
push edx
call sub.MSVCRT.dll_strlen
add esp, 4
add eax, 1
mov dword [ebp - 0x144], eax
mov eax, dword [0x100b8248]
mov dword [ebp - 0x140], eax
lea ecx, [ebp - 0x148]
push ecx
push 0
push 0x4a
mov edx, dword [ebp - 0x138]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, 1
jmp 0x1007c9c7
push 1
call fcn.1007c9d8
add esp, 4
mov ecx, dword [ebp - 0x28]
and ecx, 0xff
test ecx, ecx
je 0x1007c598
mov edx, dword [0x100b5290]
xor edx, dword [0x100b52a4]
xor edx, dword [0x100b52a8]
and edx, 0x40
test edx, edx
jne 0x1007c598
push 0x200
lea eax, [ebp - 0x348]
push eax
push 0x100b54f4
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x1007c598
push 0xc8
push 0x23
lea ecx, [ebp - 0x348]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov byte [ebp - 0x280], 0
mov dword [ebp - 0x44c], 1
jmp 0x1007c43c
mov edx, dword [ebp - 0x44c]
add edx, 1
mov dword [ebp - 0x44c], edx
cmp dword [ebp - 0x44c], 0x40
jg 0x1007c477
mov eax, dword [ebp - 0x44c]
push eax
push 0x100b54ec
lea ecx, [ebp - 0x448]
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea edx, [ebp - 0x348]
push edx
lea eax, [ebp - 0x448]
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
jmp 0x1007c42d
mov ecx, dword [0x100b5290]
xor ecx, dword [0x100b52a4]
xor ecx, dword [0x100b52a8]
and ecx, 0x10
test ecx, ecx
jne 0x1007c598
lea edx, [ebp - 0x5a4]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov al, byte [0x100b8234]
mov byte [ebp - 0x6a8], al
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x6a7]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov cl, byte [0x100b8234]
mov byte [ebp - 0x560], cl
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x55f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
cmp dword [0x100b8240], 1
jne 0x1007c512
cmp dword [ebp - 0x598], 0
jne 0x1007c512
lea edx, [ebp - 0x6a8]
push edx
call fcn.10088855
add esp, 4
and eax, 0xff
test eax, eax
je 0x1007c512
lea eax, [ebp - 0x6a8]
mov dword [ebp - 0x598], eax
push 0x104
lea ecx, [ebp - 0x560]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1007c531
xor eax, eax
jmp 0x1007c9c7
lea edx, [ebp - 0x45c]
push edx
lea eax, [ebp - 0x5a4]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
lea ecx, [ebp - 0x560]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x1007c58e
mov dword [0x100b847c], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x100b54cc
push 0x100b8480
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
xor eax, eax
jmp 0x1007c9c7
mov eax, 1
jmp 0x1007c9c7
mov edx, dword [0x100b5290]
xor edx, dword [0x100b52a4]
xor edx, dword [0x100b52a8]
and edx, 0x10
test edx, edx
je 0x1007c875
mov eax, dword [0x100b52a0]
xor eax, dword [0x100b525c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x100b5518
lea ecx, [ebp - 0x12c]
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea edx, [ebp - 0x12c]
push edx
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
jne 0x1007c875
push 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov byte [ebp - 0x6ac], 0
push 0x100b54c0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x6b0], eax
cmp dword [ebp - 0x6b0], 0
je 0x1007c65b
push 0x100b54ac
mov eax, dword [ebp - 0x6b0]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x748], eax
cmp dword [ebp - 0x748], 0
je 0x1007c65b
call dword [ebp - 0x748]
test eax, eax
je 0x1007c65b
mov byte [ebp - 0x6ac], 1
mov dword [ebp - 0x744], 0x94
lea ecx, [ebp - 0x744]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x734], 2
je 0x1007c6e8
mov byte [ebp - 0x74c], 0
mov dword [ebp - 4], 0
pushf
pop eax
or eax, 0x100
push eax
popf
nop
mov dword [ebp - 4], 0xffffffff
jmp 0x1007c6d1
mov edx, dword [ebp - 0x74c]
and edx, 0xff
test edx, edx
jne 0x1007c6e8
mov byte [0x100b8704], 1
cmp dword [ebp - 0x734], 2
jne 0x1007c752
push ecx
bswap ecx
not ecx
push eax
not eax
mov eax, 0x6c65696d
xchg ecx, eax
mov ecx, 0xdeadc0de
xchg ecx, eax
not eax
pop eax
not ecx
pop ecx
pushfd
pushal
xor ebx, ebx
je 0x1007c714
add ebp, ebx
and ch, bl
jmp 0x1007c735
xor ebx, ebx
je 0x1007c718
jmp 0x1007c727
mov ecx, 0x34f9c987
nop
stc
je 0x1007c72b
jmp 0x1007c75b
xor eax, eax
je 0x1007c71d
mov eax, 0x4840c987
test eax, eax
jne 0x1007c711
jmp 0xa26e649a
popal
popfd
xchg dx, ax
xchg dx, ax
mov eax, eax
mov eax, dword fs:[0x30]
movzx eax, byte [eax + 2]
or al, al
jne 0x1007c769
jmp 0x1007c7da
jo 0x1007c75b
jl 0x1007c759
jmp 0x1007c75d
je 0x1007c756
jmp 0x1007c756
mov eax, dword fs:[0x20]
or eax, eax
jne 0x1007c769
jmp 0x1007c7da
pushal
xor eax, eax
jne 0x1007c770
jmp 0x1007c785
jmp 0x1007c7a5
xor eax, eax
jne 0x1007c78d
jp 0x1007c783
jo 0x1007c787
jmp 0x1007c788
jb 0x1007c78c
jns 0x1007c771
call dword [0x74097900]
invalid
jns 0x1007c78e
je 0x1007c777
jmp 0x1007c710
xchg ebx, ebx
jp 0x1007c77c
mov al, byte [0x5c66133]
push 0x1100b84
xor esp, dword [ecx - 0x3a]
add eax, 0x100b8468
add dword [eax - 9], edx
ror byte [edi], 1
enter 0x7358, 0
popal
mov byte [0x100b8468], 1
push eax
not eax
bswap eax
pop eax
jae 0x1007c79e
pushfd
pushal
jmp 0x1007c7cd
sub edx, edx
jo 0x1007c7b3
jmp 0x1007c7c4
xor ecx, ecx
je 0x1007c7ab
jmp 0x1007c7bd
stc
xor ecx, 3
je 0x1007c743
jmp 0x1007c7ba
jmp 0x1007c7c8
jae 0x1007c7b6
sbb bl, bl
sbb bl, bl
xor ebx, ebx
jmp 0x1007c7ad
jmp 0x1007c7a7
sbb al, 0xdb
jmp 0x1007c7d0
jmp 0x1007c7a1
popal
popfd
bswap eax
not ecx
bswap eax
not ecx
mov eax, dword [ebp - 0x6ac]
and eax, 0xff
test eax, eax
je 0x1007c818
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x100b54a4
lea ecx, [ebp - 0x12c]
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea edx, [ebp - 0x12c]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
jmp 0x1007c875
xor eax, eax
cmp dword [0x100b8240], 0
sete al
push eax
call fcn.10088dce
add esp, 4
and eax, 0xff
test eax, eax
jne 0x1007c861
mov dword [0x100b847c], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x100b5494
push 0x100b8480
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
xor eax, eax
jmp 0x1007c9c7
push 0
call fcn.1007c9d8
add al, ch
jo 0x1007c867
add byte [eax], al
add byte [ebx + 0x1b804c4], al
add byte [eax], al
add cl, ch
push edx
add dword [eax], eax
add al, ch
inc edx
jmp 0x5591c87b
add esp, 4
mov eax, 1
jmp 0x1007c9c7
call fcn.1007b1bc
mov dword [ebp - 0x1c], eax
pushal
xor eax, eax
jne 0x1007c884
jmp 0x1007c899
jmp 0x1007c8b9
xor eax, eax
jne 0x1007c8a1
jp 0x1007c897
jo 0x1007c89b
jmp 0x1007c89c
jb 0x1007c8a0
jns 0x1007c885
call dword [0x74097900]
invalid
jns 0x1007c8a2
je 0x1007c88b
jmp 0x1007c824
xchg ebx, ebx
jp 0x1007c890
mov al, byte [0xd8b6133]
fcom dword [eax + 0xb]
adc byte [ecx - 0x18], dl
mov eax, dword [0x83ffffe8]
les eax, [eax + ecx*4]
inc ebp
loopne 0x1007c906
xor esp, dword [ecx - 0x75]
or eax, sym.imp.KERNEL32.dll_WriteProcessMemory
popal
mov ecx, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push ecx
call 0x1007b150
add esp, 4
mov byte [ebp - 0x20], al
push eax
not eax
bswap eax
pop eax
jae 0x1007c8bd
enter 0x7358, 0
pushfd
pushal
jmp 0x1007c8ec
sub edx, edx
jo 0x1007c8d2
jmp 0x1007c8e3
xor ecx, ecx
je 0x1007c8ca
jmp 0x1007c8dc
stc
xor ecx, 3
je 0x1007c862
jmp 0x1007c8d9
jmp 0x1007c8e7
jae 0x1007c8d5
sbb bl, bl
sbb bl, bl
xor ebx, ebx
jmp 0x1007c8cc
jmp 0x1007c8c6
sbb al, 0xdb
jmp 0x1007c8ef
jmp 0x1007c8c0
popal
popfd
bswap eax
not ecx
bswap eax
not ecx
mov edx, dword [ebp - 0x20]
and edx, 0xff
test edx, edx
je 0x1007c915
mov eax, dword [0x100b5240]
xor eax, 0x7c3
mov dword [0x100b5240], eax
push ecx
bswap ecx
not ecx
push eax
not eax
mov eax, 0x6c65696d
xchg ecx, eax
mov ecx, 0xdeadc0de
xchg ecx, eax
not eax
pop eax
not ecx
pop ecx
pushfd
pushal
xor ebx, ebx
je 0x1007c938
jmp 0x1007c959
xor ebx, ebx
je 0x1007c93c
jmp 0x1007c94b
mov ecx, 0x34f9c987
nop
stc
je 0x1007c94f
jmp 0x1007c97f
xor eax, eax
je 0x1007c941
mov eax, 0x4840c987
test eax, eax
jne 0x1007c935
jmp 0xa26e66be
popal
popfd
xchg dx, ax
xchg dx, ax
mov eax, eax
push 0
call fcn.1007c9d8
add esp, 4
push 0
call dword [sym.imp.MSVCRT.dll_int____cdecl___unsigned_int____cdecl__set_new_handler_int____cdecl___unsigned_int__]
add esp, 4
cmp dword [ebp - 0x1c], 1
jne 0x1007c98d
push 0x100b8240
or edx, dword [eax]
call dword [0x100b8264]
add esp, 4
mov dword [ebp - 0x1c], eax
push 0x1007b18c
call dword [sym.imp.MSVCRT.dll_int____cdecl___unsigned_int____cdecl__set_new_handler_int____cdecl___unsigned_int__]
add esp, 4
cmp dword [0x100b8260], 0
je 0x1007c9aa
call dword [0x100b8260]
cmp dword [0x100b8474], 0
je 0x1007c9c4
push 0
push 0
mov ecx, dword [0x100b8470]
push ecx
call dword [0x100b8474]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret