Function at 0x103c71f7
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 0x10404a70
push 0x103e5060
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 0x103c623c
call fcn.103e4f3b
add esp, 4
mov eax, dword [0x104002b0]
xor eax, dword [0x10400284]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x10400540
lea ecx, [ebp - 0x12c]
push ecx
call fcn.103e4e61
add esp, 0x10
lea edx, [ebp - 0x12c]
push edx
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
je 0x103c72a9
mov byte [ebp - 0x28], 0
mov eax, dword [ebp - 0x28]
and eax, 0xff
test eax, eax
je 0x103c7450
mov ecx, dword [0x104002c8]
xor ecx, dword [0x104002b4]
xor ecx, dword [0x1040028c]
and ecx, 0x20
test ecx, ecx
je 0x103c7450
mov edx, dword [0x1040026c]
xor edx, dword [0x10400290]
xor edx, dword [0x104002b0]
push edx
push 0x10400538
lea eax, [ebp - 0x12c]
push eax
call fcn.103e4e61
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 0x103c7450
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x103c7450
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 0x103c7363
cmp dword [ebp - 0x134], 0x80
jne 0x103c7446
mov eax, dword [0x1040026c]
xor eax, dword [0x10400290]
xor eax, dword [0x104002b0]
push eax
push 0x10400530
lea ecx, [ebp - 0x12c]
push ecx
call fcn.103e4e61
add esp, 0xc
mov dword [ebp - 0x13c], 0
jmp 0x103c73a4
mov edx, dword [ebp - 0x13c]
add edx, 1
mov dword [ebp - 0x13c], edx
cmp dword [ebp - 0x13c], 0x12c
jge 0x103c73dd
lea eax, [ebp - 0x12c]
push eax
push 0x10400524
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [ebp - 0x138], eax
cmp dword [ebp - 0x138], 0
je 0x103c73d3
jmp 0x103c73dd
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x103c7395
cmp dword [ebp - 0x138], 0
je 0x103c7439
mov ecx, dword [0x1040026c]
xor ecx, dword [0x10400290]
xor ecx, dword [0x104002b0]
mov dword [ebp - 0x148], ecx
mov edx, dword [0x104060f8]
push edx
call fcn.103e4ec0
add esp, 4
add eax, 1
mov dword [ebp - 0x144], eax
mov eax, dword [0x104060f8]
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 0x103c7a63
push 1
call fcn.103c7a74
add esp, 4
mov ecx, dword [ebp - 0x28]
and ecx, 0xff
test ecx, ecx
je 0x103c7639
mov edx, dword [0x104002c8]
xor edx, dword [0x104002b4]
xor edx, dword [0x1040028c]
and edx, 0x40
test edx, edx
jne 0x103c7639
push 0x200
lea eax, [ebp - 0x348]
push eax
push 0x1040051c
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x103c7639
push 0xc8
push 0x23
lea ecx, [ebp - 0x348]
push ecx
call fcn.103e4cd0
add esp, 0xc
mov byte [ebp - 0x280], 0
mov dword [ebp - 0x44c], 1
jmp 0x103c74df
mov edx, dword [ebp - 0x44c]
add edx, 1
mov dword [ebp - 0x44c], edx
cmp dword [ebp - 0x44c], 0x40
jg 0x103c7519
mov eax, dword [ebp - 0x44c]
push eax
push 0x10400514
lea ecx, [ebp - 0x448]
push ecx
call fcn.103e4e61
add esp, 0xc
lea edx, [ebp - 0x348]
push edx
lea eax, [ebp - 0x448]
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
jmp 0x103c74d0
mov ecx, dword [0x104002c8]
xor ecx, dword [0x104002b4]
xor ecx, dword [0x1040028c]
and ecx, 0x10
test ecx, ecx
jne 0x103c7639
lea edx, [ebp - 0x5a4]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov al, byte [0x1040643c]
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 [0x1040643c]
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 [0x104060f0], 1
jne 0x103c75b4
cmp dword [ebp - 0x598], 0
jne 0x103c75b4
lea edx, [ebp - 0x6a8]
push edx
call fcn.103d3ccf
add esp, 4
and eax, 0xff
test eax, eax
je 0x103c75b4
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 0x103c75d3
xor eax, eax
jmp 0x103c7a63
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 0x103c762f
mov dword [0x1040632c], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x104004f4
push 0x10406330
call fcn.103e4e61
add esp, 0xc
xor eax, eax
jmp 0x103c7a63
mov eax, 1
jmp 0x103c7a63
mov edx, dword [0x104002c8]
xor edx, dword [0x104002b4]
xor edx, dword [0x1040028c]
and edx, 0x10
test edx, edx
je 0x103c7913
mov eax, dword [0x104002b0]
xor eax, dword [0x10400284]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x10400540
lea ecx, [ebp - 0x12c]
push ecx
call fcn.103e4e61
add esp, 0x10
lea edx, [ebp - 0x12c]
push edx
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
jne 0x103c7913
push 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov byte [ebp - 0x6ac], 0
push 0x104004e8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x6b0], eax
cmp dword [ebp - 0x6b0], 0
je 0x103c76fb
push 0x104004d4
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 0x103c76fb
call dword [ebp - 0x748]
test eax, eax
je 0x103c76fb
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 0x103c7788
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 0x103c7771
mov edx, dword [ebp - 0x74c]
and edx, 0xff
test edx, edx
jne 0x103c7788
mov byte [0x104065c4], 1
cmp dword [ebp - 0x734], 2
jne 0x103c77f2
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 0x103c77b4
add ebp, ebx
and ch, bl
jmp 0x103c77d5
xor ebx, ebx
je 0x103c77b8
jmp 0x103c77c7
mov ecx, 0x34f9c987
nop
stc
je 0x103c77cb
jmp 0x103c77fb
xor eax, eax
je 0x103c77bd
mov eax, 0x4840c987
test eax, eax
jne 0x103c77b1
jmp 0xa2a3153a
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 0x103c7809
jmp 0x103c787a
jo 0x103c77fb
jl 0x103c77f9
jmp 0x103c77fd
je 0x103c77f6
jmp 0x103c77f6
mov eax, dword fs:[0x20]
or eax, eax
jne 0x103c7809
jmp 0x103c787a
pushal
xor eax, eax
jne 0x103c7810
jmp 0x103c7825
jmp 0x103c7845
xor eax, eax
jne 0x103c782d
jp 0x103c7823
jo 0x103c7827
jmp 0x103c7828
jb 0x103c782c
jns 0x103c7811
call dword [0x74097900]
invalid
jns 0x103c782e
je 0x103c7817
jmp 0x103c77b0
xchg ebx, ebx
jp 0x103c781c
mov al, byte [0x5c66133]
sbb byte [ebx + 0x40], ah
adc byte [ecx], al
xor esp, dword [ecx - 0x3a]
add eax, 0x10406318
add dword [eax - 9], edx
ror byte [edi], 1
enter 0x7358, 0
popal
mov byte [0x10406318], 1
push eax
not eax
bswap eax
pop eax
jae 0x103c783e
pushfd
pushal
jmp 0x103c786d
sub edx, edx
jo 0x103c7853
jmp 0x103c7864
xor ecx, ecx
je 0x103c784b
jmp 0x103c785d
stc
xor ecx, 3
je 0x103c77e3
jmp 0x103c785a
jmp 0x103c7868
jae 0x103c7856
sbb bl, bl
sbb bl, bl
xor ebx, ebx
jmp 0x103c784d
jmp 0x103c7847
sbb al, 0xdb
jmp 0x103c7870
jmp 0x103c7841
popal
popfd
bswap eax
not ecx
bswap eax
not ecx
mov eax, dword [ebp - 0x6ac]
and eax, 0xff
test eax, eax
je 0x103c78b7
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x104004cc
lea ecx, [ebp - 0x12c]
push ecx
call fcn.103e4e61
add esp, 0xc
lea edx, [ebp - 0x12c]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
jmp 0x103c7913
xor eax, eax
cmp dword [0x104060f0], 0
sete al
push eax
call fcn.103d4246
rcl byte [eax - 0x18], 0x7d
leave
add byte [eax], al
add esp, 4
and eax, 0xff
test eax, eax
jne 0x103c78ff
mov dword [0x1040632c], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x104004bc
push 0x10406330
call fcn.103e4e61
add esp, 0xc
xor eax, eax
jmp 0x103c7a63
push 0
call fcn.103c7a74
add esp, 4
mov eax, 1
jmp 0x103c7a63
add al, ch
outsb dx, byte [esi]
add dword [eax], eax
add byte [ebx + 0x1b804c4], al
add byte [eax], al
add cl, ch
push eax
add dword [eax], eax
add al, ch
push ebx
jmp 0x55c67919
call fcn.103c626b
mov dword [ebp - 0x1c], eax
pushal
xor eax, eax
jne 0x103c7922
jmp 0x103c7937
jmp 0x103c7957
xor eax, eax
jne 0x103c793f
jp 0x103c7935
jo 0x103c7939
jmp 0x103c793a
jb 0x103c793e
jns 0x103c7923
call dword [0x74097900]
invalid
jns 0x103c7940
je 0x103c7929
jmp 0x103c78c2
xchg ebx, ebx
jp 0x103c792e
mov al, byte [0xd8b6133]
add dword fs:[eax + 0x10], eax
xor esp, dword [ecx - 0x75]
or eax, sym.imp.KERNEL32.dll_WriteProcessMemory
popal
mov ecx, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push ecx
call fcn.103c6200
add esp, 4
mov byte [ebp - 0x20], al
push eax
not eax
bswap eax
pop eax
jae 0x103c795b
enter 0x7358, 0
pushfd
pushal
jmp 0x103c798a
sub edx, edx
jo 0x103c7970
jmp 0x103c7981
xor ecx, ecx
je 0x103c7968
jmp 0x103c797a
stc
xor ecx, 3
je 0x103c7900
jmp 0x103c7977
jmp 0x103c7985
jae 0x103c7973
sbb bl, bl
sbb bl, bl
xor ebx, ebx
jmp 0x103c796a
jmp 0x103c7964
sbb al, 0xdb
jmp 0x103c798d
jmp 0x103c795e
popal
popfd
bswap eax
not ecx
bswap eax
not ecx
mov edx, dword [ebp - 0x20]
and edx, 0xff
test edx, edx
je 0x103c79b3
mov eax, dword [0x10400298]
xor eax, 0x7c3
mov dword [0x10400298], 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 0x103c79d6
jmp 0x103c79f7
xor ebx, ebx
je 0x103c79da
jmp 0x103c79e9
mov ecx, 0x34f9c987
nop
stc
je 0x103c79ed
jmp 0x103c7a1d
xor eax, eax
je 0x103c79df
mov eax, 0x4840c987
test eax, eax
jne 0x103c79d3
jmp 0xa2a3175c
popal
popfd
xchg dx, ax
xchg dx, ax
mov eax, eax
push 0
call fcn.103c7a74
add esp, 4
push 0
call fcn.103e4f3b
add esp, 4
cmp dword [ebp - 0x1c], 1
jne 0x103c7a2a
push 0x104060f0
call dword [0x10406114]
adc bh, bh
adc eax, 0x10406114
add esp, 4
mov dword [ebp - 0x1c], eax
push 0x103c623c
call fcn.103e4f3b
add esp, 4
cmp dword [0x10406110], 0
je 0x103c7a46
call dword [0x10406110]
cmp dword [0x10406324], 0
je 0x103c7a60
push 0
push 0
mov ecx, dword [0x10406320]
push ecx
call dword [0x10406324]
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