Function at 0x6c0d1f
Capabilities:
Accept command line arguments
Check for trap flag exception
Check mutex on windows
Create process on windows
Packed with generic packer
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6ef220
push 0x6c9d60
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
push 0x6bfe0c
call fcn.006c9c3b
add esp, 4
mov edx, dword [0x6ec26c]
xor edx, dword [0x6ec29c]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x6ec4ac
lea eax, [ebp - 0x12c]
push eax
call fcn.006c9b61
add esp, 0x10
lea ecx, [ebp - 0x12c]
push ecx
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
je 0x6c0dae
mov byte [ebp - 0x28], 0
mov edx, dword [ebp - 0x28]
and edx, 0xff
test edx, edx
je 0x6c0f56
mov eax, dword [0x6ec2a0]
xor eax, dword [0x6ec274]
xor eax, dword [0x6ec2b4]
and eax, 0x20
test eax, eax
je 0x6c0f56
mov ecx, dword [0x6ec27c]
xor ecx, dword [0x6ec2cc]
xor ecx, dword [0x6ec26c]
push ecx
push str.RN_08X
lea edx, [ebp - 0x12c]
push edx
call fcn.006c9b61
add esp, 0xc
lea eax, [ebp - 0x12c]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0
je 0x6c0f56
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x6c0f56
push 0x7530
mov ecx, dword [ebp - 0x130]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x134], eax
cmp dword [ebp - 0x134], 0
je 0x6c0e68
cmp dword [ebp - 0x134], 0x80
jne 0x6c0f4c
mov edx, dword [0x6ec27c]
xor edx, dword [0x6ec2cc]
xor edx, dword [0x6ec26c]
push edx
push 0x6ec4c0
lea eax, [ebp - 0x12c]
push eax
call fcn.006c9b61
add esp, 0xc
mov dword [ebp - 0x13c], 0
jmp 0x6c0eaa
mov ecx, dword [ebp - 0x13c]
add ecx, 1
mov dword [ebp - 0x13c], ecx
cmp dword [ebp - 0x13c], 0x12c
jge 0x6c0ee3
lea edx, [ebp - 0x12c]
push edx
push str.MainClass
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [ebp - 0x138], eax
cmp dword [ebp - 0x138], 0
je 0x6c0ed9
jmp 0x6c0ee3
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x6c0e9b
cmp dword [ebp - 0x138], 0
je 0x6c0f3f
mov eax, dword [0x6ec27c]
xor eax, dword [0x6ec2cc]
xor eax, dword [0x6ec26c]
mov dword [ebp - 0x148], eax
mov ecx, dword [0x6ef720]
push ecx
call fcn.006c9bc0
add esp, 4
add eax, 1
mov dword [ebp - 0x144], eax
mov edx, dword [0x6ef720]
mov dword [ebp - 0x140], edx
lea eax, [ebp - 0x148]
push eax
push 0
push 0x4a
mov ecx, dword [ebp - 0x138]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [ebp - 0x130]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, 1
jmp 0x6c1527
push 1
call fcn.006c1538
add esp, 4
mov eax, dword [ebp - 0x28]
and eax, 0xff
test eax, eax
je 0x6c113d
mov ecx, dword [0x6ec2a0]
xor ecx, dword [0x6ec274]
xor ecx, dword [0x6ec2b4]
and ecx, 0x40
test ecx, ecx
jne 0x6c113d
push 0x200
lea edx, [ebp - 0x348]
push edx
push str._PAD64
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x6c113d
push 0xc8
push 0x23
lea eax, [ebp - 0x348]
push eax
call fcn.006c99d0
add esp, 0xc
mov byte [ebp - 0x280], 0
mov dword [ebp - 0x44c], 1
jmp 0x6c0fe4
mov ecx, dword [ebp - 0x44c]
add ecx, 1
mov dword [ebp - 0x44c], ecx
cmp dword [ebp - 0x44c], 0x40
jg 0x6c101e
mov edx, dword [ebp - 0x44c]
push edx
push str._PAD_d
lea eax, [ebp - 0x448]
push eax
call fcn.006c9b61
add esp, 0xc
lea ecx, [ebp - 0x348]
push ecx
lea edx, [ebp - 0x448]
push edx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
jmp 0x6c0fd5
mov eax, dword [0x6ec2a0]
xor eax, dword [0x6ec274]
xor eax, dword [0x6ec2b4]
and eax, 0x10
test eax, eax
jne 0x6c113d
lea ecx, [ebp - 0x5a4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dl, byte [0x6efa5c]
mov byte [ebp - 0x6a8], dl
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 al, byte [0x6efa60]
mov byte [ebp - 0x560], al
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 [0x6ef718], 1
jne 0x6c10b8
cmp dword [ebp - 0x598], 0
jne 0x6c10b8
lea ecx, [ebp - 0x6a8]
push ecx
call fcn.006c2c75
add esp, 4
and eax, 0xff
test eax, eax
je 0x6c10b8
lea edx, [ebp - 0x6a8]
mov dword [ebp - 0x598], edx
push 0x104
lea eax, [ebp - 0x560]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x6c10d7
xor eax, eax
jmp 0x6c1527
lea ecx, [ebp - 0x45c]
push ecx
lea edx, [ebp - 0x5a4]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
lea eax, [ebp - 0x560]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x6c1133
mov dword [0x6ef950], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._Location_XEB__error_code__d_
push 0x6ef954
call fcn.006c9b61
add esp, 0xc
xor eax, eax
jmp 0x6c1527
mov eax, 1
jmp 0x6c1527
mov ecx, dword [0x6ec2a0]
xor ecx, dword [0x6ec274]
xor ecx, dword [0x6ec2b4]
and ecx, 0x10
test ecx, ecx
je 0x6c140c
mov edx, dword [0x6ec26c]
xor edx, dword [0x6ec29c]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x6ec504
lea eax, [ebp - 0x12c]
push eax
call fcn.006c9b61
add esp, 0x10
lea ecx, [ebp - 0x12c]
push ecx
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
jne 0x6c140c
push 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov byte [ebp - 0x6ac], 0
push 0x6ec510
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x6b0], eax
cmp dword [ebp - 0x6b0], 0
je 0x6c1200
push 0x6ec51c
mov edx, dword [ebp - 0x6b0]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x748], eax
cmp dword [ebp - 0x748], 0
je 0x6c1200
call dword [ebp - 0x748]
test eax, eax
je 0x6c1200
mov byte [ebp - 0x6ac], 1
mov dword [ebp - 0x744], 0x94
lea eax, [ebp - 0x744]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x734], 2
je 0x6c128d
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 0x6c1276
mov ecx, dword [ebp - 0x74c]
and ecx, 0xff
test ecx, ecx
jne 0x6c128d
mov byte [0x6efabc], 1
cmp dword [ebp - 0x734], 2
jne 0x6c12d1
pushal
xor eax, eax
jne 0x6c129d
jmp 0x6c12b2
jmp 0x6c12d2
xor eax, eax
jne 0x6c12ba
jp 0x6c12b0
jo 0x6c12b4
jmp 0x6c12b5
jb 0x6c12b9
jns 0x6c129e
call dword [0x74097900]
invalid
jns 0x6c12bb
je 0x6c12a4
jmp 0x6c123d
xchg ebx, ebx
jp 0x6c12a9
invalid
mov al, byte [0xa1646133]
xor byte [eax], al
add byte [eax], al
xor esp, dword [ecx + 0x64]
mov eax, dword [0x30]
popal
mov eax, dword fs:[0x30]
movzx eax, byte [eax + 2]
or al, al
jne 0x6c1311
jmp 0x6c1372
pushfd
pushal
jmp 0x6c1300
sub edx, edx
jo 0x6c12e6
jmp 0x6c12f7
xor ecx, ecx
je 0x6c12de
jmp 0x6c12f0
stc
xor ecx, 3
je 0x6c1276
add esi, dword [eax + edx*4 - 0x15]
add eax, 0x7410ebb9
out dx, eax
jmp 0x6c12ed
jmp 0x6c12fb
jae 0x6c12e9
sbb bl, bl
sbb bl, bl
xor ebx, ebx
jmp 0x6c12e0
jmp 0x6c12da
sbb al, 0xdb
jmp 0x6c1303
jmp 0x6c12d4
popal
popfd
mov eax, dword fs:[0x20]
or eax, eax
jne 0x6c1311
jmp 0x6c1372
pushal
xor eax, eax
jne 0x6c1318
jmp 0x6c132d
jmp 0x6c134d
xor eax, eax
jne 0x6c1335
jp 0x6c132b
jo 0x6c132f
jmp 0x6c1330
jb 0x6c1334
jns 0x6c1319
call dword [0x74097900]
invalid
jns 0x6c1336
je 0x6c131f
jmp 0x6c12b8
xchg ebx, ebx
jp 0x6c1324
mov al, byte [0x5c66133]
inc eax
stc
outsb dx, byte [esi]
add byte [ecx], al
xor esp, dword [ecx - 0x3a]
add eax, 0x6ef940
add dword [eax + 0x70d22beb], ebx
push cs
popal
mov byte [0x6ef940], 1
pushfd
pushal
jmp 0x6c136d
sub edx, edx
jo 0x6c1353
jmp 0x6c1364
xor ecx, ecx
je 0x6c134b
jmp 0x6c135d
stc
xor ecx, 3
je 0x6c12e3
jmp 0x6c135a
jmp 0x6c1368
jae 0x6c1356
sbb bl, bl
sbb bl, bl
xor ebx, ebx
jmp 0x6c134d
jmp 0x6c1347
sbb al, 0xdb
jmp 0x6c1370
jmp 0x6c1341
popal
popfd
mov edx, dword [ebp - 0x6ac]
and edx, 0xff
test edx, edx
je 0x6c13b0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x6ec530
lea eax, [ebp - 0x12c]
push eax
call fcn.006c9b61
add esp, 0xc
lea ecx, [ebp - 0x12c]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
jmp 0x6c140c
xor edx, edx
cmp dword [0x6ef718], 0
sete dl
push edx
call fcn.006c31ab
add esp, 4
and eax, 0xff
test eax, eax
jne 0x6c13f8
ret 0xe852
mov dword [0x6ef950], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._Error_code__d_
push 0x6ef954
call fcn.006c9b61
add esp, 0xc
xor eax, eax
jmp 0x6c1527
or al, 0x33
shr cl, 0x2f
add dword [eax], eax
add byte [edx], ch
push 0
call fcn.006c1538
add esp, 4
mov eax, 1
jmp 0x6c1527
call fcn.006bfe3b
mov dword [ebp - 0x1c], eax
pushal
xor eax, eax
jne 0x6c141b
jmp 0x6c1430
jmp 0x6c1450
xor eax, eax
jne 0x6c1438
jp 0x6c142e
jo 0x6c1432
jmp 0x6c1433
jb 0x6c1437
jns 0x6c141c
call dword [0x74097900]
invalid
jns 0x6c1439
je 0x6c1422
jmp 0x6c13bb
xchg ebx, ebx
jp 0x6c1427
mov al, byte [0x5ca16133]
xor esp, dword [ecx - 0x5f]
pop esp
popal
mov eax, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push eax
shr dword [esi], 0x50
call fcn.006bfdd0
add esp, 4
mov byte [ebp - 0x20], al
pushfd
pushal
jmp 0x6c147a
sub edx, edx
jo 0x6c1460
jmp 0x6c1471
xor ecx, ecx
je 0x6c1458
jmp 0x6c146a
stc
xor ecx, 3
je 0x6c13f0
jmp 0x6c1467
jmp 0x6c1475
jae 0x6c1463
sbb bl, bl
sbb bl, bl
xor ebx, ebx
jmp 0x6c145a
jmp 0x6c1454
sbb al, 0xdb
jmp 0x6c147d
jmp 0x6c144e
popal
popfd
mov ecx, dword [ebp - 0x20]
and ecx, 0xff
test ecx, ecx
je 0x6c149e
mov edx, dword [0x6ec258]
xor edx, 0x7c3
mov dword [0x6ec258], edx
pushal
xor eax, eax
jne 0x6c14a5
jmp 0x6c14ba
jmp 0x6c14da
xor eax, eax
jne 0x6c14c2
jp 0x6c14b8
jo 0x6c14bc
jmp 0x6c14bd
jb 0x6c14c1
jns 0x6c14a6
call dword [0x74097900]
invalid
jns 0x6c14c3
je 0x6c14ac
jmp 0x6c1445
xchg ebx, ebx
jp 0x6c14b1
mov al, byte [0x6a6133]
xor esp, dword [ecx + 0x6a]
add al, ch
insd dword es:[edi], dx
add byte [eax], al
add byte [ebx + 0x6a04c4], al
popal
push 0
call fcn.006c1538
add esp, 4
push 0
call fcn.006c9c3b
add esp, 4
cmp dword [ebp - 0x1c], 1
in al, 1
jne 0x6c14ef
push 0x6ef718
call dword [0x6ef73c]
add esp, 4
mov dword [ebp - 0x1c], eax
push 0x6bfe0c
call fcn.006c9c3b
add esp, 4
cmp dword [0x6ef738], 0
je 0x6c150b
call dword [0x6ef738]
cmp dword [0x6ef948], 0
je 0x6c1524
push 0
push 0
mov eax, dword [0x6ef944]
push eax
call dword [0x6ef948]
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