Function at 0xaa6ee3
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 0xad5720
push 0xaba500
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 0xaa5e7c
call fcn.00aba3db
add esp, 4
mov eax, dword [0xad12d0]
xor eax, dword [0xad1308]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0xad1590
lea ecx, [ebp - 0x12c]
push ecx
call fcn.00aba301
add esp, 0x10
lea edx, [ebp - 0x12c]
push edx
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
je 0xaa6f95
mov byte [ebp - 0x28], 0
mov eax, dword [ebp - 0x28]
and eax, 0xff
test eax, eax
je 0xaa713c
mov ecx, dword [0xad12fc]
xor ecx, dword [0xad1304]
xor ecx, dword [0xad12f0]
and ecx, 0x20
test ecx, ecx
je 0xaa713c
mov edx, dword [0xad12b0]
xor edx, dword [0xad12f4]
xor edx, dword [0xad12d0]
push edx
push 0xad1588
lea eax, [ebp - 0x12c]
push eax
call fcn.00aba301
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 0xaa713c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0xaa713c
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 0xaa704f
cmp dword [ebp - 0x134], 0x80
jne 0xaa7132
mov eax, dword [0xad12b0]
xor eax, dword [0xad12f4]
xor eax, dword [0xad12d0]
push eax
push 0xad1580
lea ecx, [ebp - 0x12c]
push ecx
call fcn.00aba301
add esp, 0xc
mov dword [ebp - 0x13c], 0
jmp 0xaa7090
mov edx, dword [ebp - 0x13c]
add edx, 1
mov dword [ebp - 0x13c], edx
cmp dword [ebp - 0x13c], 0x12c
jge 0xaa70c9
lea eax, [ebp - 0x12c]
push eax
push 0xad1574
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [ebp - 0x138], eax
cmp dword [ebp - 0x138], 0
je 0xaa70bf
jmp 0xaa70c9
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0xaa7081
cmp dword [ebp - 0x138], 0
je 0xaa7125
mov ecx, dword [0xad12b0]
xor ecx, dword [0xad12f4]
xor ecx, dword [0xad12d0]
mov dword [ebp - 0x148], ecx
mov edx, dword [0xad72d0]
push edx
call fcn.00aba360
add esp, 4
add eax, 1
mov dword [ebp - 0x144], eax
mov eax, dword [0xad72d0]
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 0xaa774f
push 1
call fcn.00aa7760
add esp, 4
mov ecx, dword [ebp - 0x28]
and ecx, 0xff
test ecx, ecx
je 0xaa7325
mov edx, dword [0xad12fc]
xor edx, dword [0xad1304]
xor edx, dword [0xad12f0]
and edx, 0x40
test edx, edx
jne 0xaa7325
push 0x200
lea eax, [ebp - 0x348]
push eax
push 0xad156c
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0xaa7325
push 0xc8
push 0x23
lea ecx, [ebp - 0x348]
push ecx
call fcn.00aba170
add esp, 0xc
mov byte [ebp - 0x280], 0
mov dword [ebp - 0x44c], 1
jmp 0xaa71cb
mov edx, dword [ebp - 0x44c]
add edx, 1
mov dword [ebp - 0x44c], edx
cmp dword [ebp - 0x44c], 0x40
jg 0xaa7205
mov eax, dword [ebp - 0x44c]
push eax
push 0xad1564
lea ecx, [ebp - 0x448]
push ecx
call fcn.00aba301
add esp, 0xc
lea edx, [ebp - 0x348]
push edx
lea eax, [ebp - 0x448]
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
jmp 0xaa71bc
mov ecx, dword [0xad12fc]
xor ecx, dword [0xad1304]
xor ecx, dword [0xad12f0]
and ecx, 0x10
test ecx, ecx
jne 0xaa7325
lea edx, [ebp - 0x5a4]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov al, byte [0xad7614]
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 [0xad7614]
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 [0xad72c8], 1
jne 0xaa72a0
cmp dword [ebp - 0x598], 0
jne 0xaa72a0
lea edx, [ebp - 0x6a8]
push edx
call fcn.00aa908f
add esp, 4
and eax, 0xff
test eax, eax
je 0xaa72a0
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 0xaa72bf
xor eax, eax
jmp 0xaa774f
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 0xaa731b
mov dword [0xad7504], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xad1544
push 0xad7508
call fcn.00aba301
add esp, 0xc
xor eax, eax
jmp 0xaa774f
mov eax, 1
jmp 0xaa774f
mov edx, dword [0xad12fc]
xor edx, dword [0xad1304]
xor edx, dword [0xad12f0]
and edx, 0x10
test edx, edx
je 0xaa75ff
mov eax, dword [0xad12d0]
xor eax, dword [0xad1308]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0xad1590
lea ecx, [ebp - 0x12c]
push ecx
call fcn.00aba301
add esp, 0x10
lea edx, [ebp - 0x12c]
push edx
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
jne 0xaa75ff
push 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov byte [ebp - 0x6ac], 0
push 0xad1538
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x6b0], eax
cmp dword [ebp - 0x6b0], 0
je 0xaa73e7
push 0xad1524
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 0xaa73e7
call dword [ebp - 0x748]
test eax, eax
je 0xaa73e7
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 0xaa7474
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 0xaa745d
mov edx, dword [ebp - 0x74c]
and edx, 0xff
test edx, edx
jne 0xaa7474
mov byte [0xad779c], 1
cmp dword [ebp - 0x734], 2
jne 0xaa74de
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 0xaa74a0
add ebp, ebx
and ch, bl
jmp 0xaa74c1
xor ebx, ebx
je 0xaa74a4
jmp 0xaa74b3
mov ecx, 0x34f9c987
nop
stc
je 0xaa74b7
jmp 0xaa74e7
xor eax, eax
je 0xaa74a9
mov eax, 0x4840c987
test eax, eax
jne 0xaa749d
jmp 0x93111226
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 0xaa74f5
jmp 0xaa7566
jo 0xaa74e7
jl 0xaa74e5
jmp 0xaa74e9
je 0xaa74e2
jmp 0xaa74e2
mov eax, dword fs:[0x20]
or eax, eax
jne 0xaa74f5
jmp 0xaa7566
pushal
xor eax, eax
jne 0xaa74fc
jmp 0xaa7511
jmp 0xaa7531
xor eax, eax
jne 0xaa7519
jp 0xaa750f
jo 0xaa7513
jmp 0xaa7514
jb 0xaa7518
jns 0xaa74fd
call dword [0x74097900]
invalid
jns 0xaa751a
je 0xaa7503
jmp 0xaa749c
xchg ebx, ebx
jp 0xaa7508
mov al, byte [0x5c66133]
invalid
xor esp, dword [ecx - 0x3a]
add eax, 0xad74f0
add dword [eax - 9], edx
ror byte [edi], 1
enter 0x7358, 0
popal
mov byte [0xad74f0], 1
push eax
not eax
bswap eax
pop eax
jae 0xaa752a
pushfd
pushal
jmp 0xaa7559
sub edx, edx
jo 0xaa753f
jmp 0xaa7550
xor ecx, ecx
je 0xaa7537
jmp 0xaa7549
stc
xor ecx, 3
je 0xaa74cf
jmp 0xaa7546
jmp 0xaa7554
jae 0xaa7542
sbb bl, bl
sbb bl, bl
xor ebx, ebx
jmp 0xaa7539
jmp 0xaa7533
sbb al, 0xdb
jmp 0xaa755c
jmp 0xaa752d
popal
popfd
bswap eax
not ecx
bswap eax
not ecx
mov eax, dword [ebp - 0x6ac]
and eax, 0xff
test eax, eax
je 0xaa75a3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0xad151c
lea ecx, [ebp - 0x12c]
push ecx
call fcn.00aba301
add esp, 0xc
lea edx, [ebp - 0x12c]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
jmp 0xaa75ff
xor eax, eax
cmp dword [0xad72c8], 0
sete al
push eax
call fcn.00aa9606
add esp, 4
and eax, 0xff
test eax, eax
jne 0xaa75eb
rcl byte [eax - 0x18], 0x51
and byte [eax], al
add byte [ebx - 0xdafb3c], al
add byte [eax], al
add byte [ebp - 0x38d58a40], al
add eax, 0xad7504
push es
add byte [eax], al
add bh, bh
adc eax, sym.imp.KERNEL32.dll_GetLastError
mov dword [0xad7504], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xad150c
push 0xad7508
call fcn.00aba301
add esp, 0xc
xor eax, eax
jmp 0xaa774f
push 0
call fcn.00aa7760
add esp, 4
mov eax, 1
jmp 0xaa774f
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
cmpsd dword [esi], dword es:[edi]
call 0x46347605
in al, 0x60
call fcn.00aa5eab
mov dword [ebp - 0x1c], eax
pushal
xor eax, eax
jne 0xaa760e
jmp 0xaa7623
jmp 0xaa7643
xor eax, eax
jne 0xaa762b
jp 0xaa7621
jo 0xaa7625
jmp 0xaa7626
jb 0xaa762a
jns 0xaa760f
call dword [0x74097900]
invalid
jns 0xaa762c
je 0xaa7615
jmp 0xaa75ae
xchg ebx, ebx
jp 0xaa761a
mov al, byte [0xd8b6133]
pop esp
adc dword [ebp + 0x7e85100], ebp
call 0xc52e763a
add al, 0x88
inc ebp
loopne 0xaa7690
xor esp, dword [ecx - 0x75]
or eax, sym.imp.KERNEL32.dll_WriteProcessMemory
popal
mov ecx, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push ecx
call 0xaa5e40
add esp, 4
mov byte [ebp - 0x20], al
push eax
not eax
bswap eax
pop eax
jae 0xaa7647
enter 0x7358, 0
pushfd
pushal
jmp 0xaa7676
sub edx, edx
jo 0xaa765c
jmp 0xaa766d
xor ecx, ecx
je 0xaa7654
jmp 0xaa7666
stc
xor ecx, 3
je 0xaa75ec
jmp 0xaa7663
jmp 0xaa7671
jae 0xaa765f
sbb bl, bl
sbb bl, bl
xor ebx, ebx
jmp 0xaa7656
jmp 0xaa7650
sbb al, 0xdb
jmp 0xaa7679
jmp 0xaa764a
popal
popfd
bswap eax
not ecx
bswap eax
not ecx
mov edx, dword [ebp - 0x20]
and edx, 0xff
test edx, edx
je 0xaa769f
mov eax, dword [0xad12d4]
xor eax, 0x7c3
mov dword [0xad12d4], 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 0xaa76c2
jmp 0xaa76e3
xor ebx, ebx
je 0xaa76c6
jmp 0xaa76d5
mov ecx, 0x34f9c987
nop
stc
je 0xaa76d9
jmp 0xaa7709
xor eax, eax
je 0xaa76cb
mov eax, 0x4840c987
test eax, eax
jne 0xaa76bf
jmp 0x93111448
popal
popfd
xchg dx, ax
xchg dx, ax
mov eax, eax
push 0
call fcn.00aa7760
add esp, 4
push 0
call fcn.00aba3db
add esp, 4
cmp dword [ebp - 0x1c], 1
jne 0xaa7716
push 0xad72c8
call dword [0xad72ec]
add bh, bh
adc eax, 0xad72ec
add esp, 4
mov dword [ebp - 0x1c], eax
push 0xaa5e7c
call fcn.00aba3db
add esp, 4
cmp dword [0xad72e8], 0
je 0xaa7732
call dword [0xad72e8]
cmp dword [0xad74fc], 0
je 0xaa774c
push 0
push 0
mov ecx, dword [0xad74f8]
push ecx
call dword [0xad74fc]
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