Function at 0x10034497
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 0x1005f2c8
push 0x10045760
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffff8c4
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov byte [ebp - 0x24], 1
mov eax, dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
mov edx, dword [sym.imp.USER32.dll_LoadStringA]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
mov ecx, dword [sym.imp.USER32.dll_LoadStringW]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
push 0x1003340c
call dword [sym.imp.MSVCRT.dll_int____cdecl___unsigned_int____cdecl__set_new_handler_int____cdecl___unsigned_int__]
add esp, 4
mov eax, dword [0x1005d3c8]
xor eax, dword [0x1005d3dc]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x1005d66c
lea ecx, [ebp - 0x128]
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea edx, [ebp - 0x128]
push edx
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
je 0x1003454b
mov byte [ebp - 0x24], 0
mov eax, dword [ebp - 0x24]
and eax, 0xff
test eax, eax
je 0x100346f4
mov ecx, dword [0x1005d3bc]
xor ecx, dword [0x1005d3f8]
xor ecx, dword [0x1005d3a8]
and ecx, 0x20
test ecx, ecx
je 0x100346f4
mov edx, dword [0x1005d398]
xor edx, dword [0x1005d3c4]
xor edx, dword [0x1005d3c8]
push edx
push 0x1005d664
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [ebp - 0x128]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 0
je 0x100346f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x100346f4
push 0x7530
mov edx, dword [ebp - 0x12c]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0
je 0x10034606
cmp dword [ebp - 0x130], 0x80
jne 0x100346ea
mov eax, dword [0x1005d398]
xor eax, dword [0x1005d3c4]
xor eax, dword [0x1005d3c8]
push eax
push 0x1005d65c
lea ecx, [ebp - 0x128]
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
mov dword [ebp - 0x138], 0
jmp 0x10034648
mov edx, dword [ebp - 0x138]
add edx, 1
mov dword [ebp - 0x138], edx
cmp dword [ebp - 0x138], 0x12c
jge 0x10034681
lea eax, [ebp - 0x128]
push eax
push 0x1005d650
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [ebp - 0x134], eax
cmp dword [ebp - 0x134], 0
je 0x10034677
jmp 0x10034681
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10034639
cmp dword [ebp - 0x134], 0
je 0x100346dd
mov ecx, dword [0x1005d398]
xor ecx, dword [0x1005d3c4]
xor ecx, dword [0x1005d3c8]
mov dword [ebp - 0x144], ecx
mov edx, dword [0x10060f30]
push edx
call sub.MSVCRT.dll_strlen
add esp, 4
add eax, 1
mov dword [ebp - 0x140], eax
mov eax, dword [0x10060f30]
mov dword [ebp - 0x13c], eax
lea ecx, [ebp - 0x144]
push ecx
push 0
push 0x4a
mov edx, dword [ebp - 0x134]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, 1
jmp 0x10034c5b
push 1
call fcn.10034c6c
add esp, 4
mov ecx, dword [ebp - 0x24]
and ecx, 0xff
test ecx, ecx
je 0x100348f1
mov edx, dword [0x1005d3bc]
xor edx, dword [0x1005d3f8]
xor edx, dword [0x1005d3a8]
and edx, 0x40
test edx, edx
jne 0x100348f1
push 0x200
lea eax, [ebp - 0x344]
push eax
push 0x1005d648
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x100348f1
push 0xc8
push 0x23
lea ecx, [ebp - 0x344]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov byte [ebp - 0x27c], 0
mov dword [ebp - 0x448], 1
jmp 0x10034783
mov edx, dword [ebp - 0x448]
add edx, 1
mov dword [ebp - 0x448], edx
cmp dword [ebp - 0x448], 0x40
jg 0x100347be
mov eax, dword [ebp - 0x448]
push eax
push 0x1005d640
lea ecx, [ebp - 0x444]
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea edx, [ebp - 0x344]
push edx
lea eax, [ebp - 0x444]
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
jmp 0x10034774
mov ecx, dword [0x1005d3bc]
xor ecx, dword [0x1005d3f8]
xor ecx, dword [0x1005d3a8]
and ecx, 0x10
test ecx, ecx
jne 0x100348f1
lea edx, [ebp - 0x5a0]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov al, byte [0x10060f08]
mov byte [ebp - 0x6a4], al
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x6a3]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov cl, byte [0x10060f08]
mov byte [ebp - 0x55c], cl
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x55b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
cmp dword [0x10060f28], 1
jne 0x10034859
cmp dword [ebp - 0x594], 0
jne 0x10034859
lea edx, [ebp - 0x6a4]
push edx
call fcn.10035cd0
add esp, 4
and eax, 0xff
test eax, eax
je 0x10034859
lea eax, [ebp - 0x6a4]
mov dword [ebp - 0x594], eax
push 0x104
lea ecx, [ebp - 0x55c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10034878
xor eax, eax
jmp 0x10034c5b
lea edx, [ebp - 0x458]
push edx
lea eax, [ebp - 0x5a0]
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 - 0x55c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x100348d5
mov dword [0x10061168], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1005d620
push 0x1006116c
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
xor eax, eax
jmp 0x10034c5b
push 0x2710
mov edx, dword [ebp - 0x458]
push edx
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov eax, 1
jmp 0x10034c5b
mov eax, dword [0x1005d3bc]
xor eax, dword [0x1005d3f8]
xor eax, dword [0x1005d3a8]
and eax, 0x10
test eax, eax
je 0x10034bd0
mov ecx, dword [0x1005d3c8]
xor ecx, dword [0x1005d3dc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x1005d66c
lea edx, [ebp - 0x128]
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea eax, [ebp - 0x128]
push eax
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
jne 0x10034bce
push 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov byte [ebp - 0x6a8], 0
push 0x1005d614
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x6ac], eax
cmp dword [ebp - 0x6ac], 0
je 0x100349b4
push 0x1005d600
mov ecx, dword [ebp - 0x6ac]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x744], eax
cmp dword [ebp - 0x744], 0
je 0x100349b4
call dword [ebp - 0x744]
test eax, eax
je 0x100349b4
mov byte [ebp - 0x6a8], 1
mov dword [ebp - 0x740], 0x94
lea edx, [ebp - 0x740]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x730], 2
je 0x10034a40
mov byte [ebp - 0x748], 0
mov dword [ebp - 4], 0
pushf
pop eax
or eax, 0x100
push eax
popf
nop
mov dword [ebp - 4], 0xffffffff
jmp 0x10034a2a
mov eax, dword [ebp - 0x748]
and eax, 0xff
test eax, eax
jne 0x10034a40
mov byte [0x10061410], 1
cmp dword [ebp - 0x730], 2
jne 0x10034aaa
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 0x10034a6c
add ebp, ebx
and ch, bl
jmp 0x10034a8d
xor ebx, ebx
je 0x10034a70
jmp 0x10034a7f
mov ecx, 0x34f9c987
nop
stc
je 0x10034a83
jmp 0x10034ab3
xor eax, eax
je 0x10034a75
mov eax, 0x4840c987
test eax, eax
jne 0x10034a69
jmp 0xa269e7f2
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 0x10034ac1
jmp 0x10034b32
jo 0x10034ab3
jl 0x10034ab1
jmp 0x10034ab5
je 0x10034aae
jmp 0x10034aae
mov eax, dword fs:[0x20]
or eax, eax
jne 0x10034ac1
jmp 0x10034b32
pushal
xor eax, eax
jne 0x10034ac8
jmp 0x10034add
jmp 0x10034afd
xor eax, eax
jne 0x10034ae5
jp 0x10034adb
jo 0x10034adf
jmp 0x10034ae0
jb 0x10034ae4
jns 0x10034ac9
call dword [0x74097900]
invalid
jns 0x10034ae6
je 0x10034acf
jmp 0x10034a68
xchg ebx, ebx
jp 0x10034ad4
mov al, byte [0x5c66133]
push esp
adc dword [esi], eax
adc byte [ecx], al
xor esp, dword [ecx - 0x3a]
add eax, 0x10061154
add dword [eax - 9], edx
ror byte [edi], 1
enter 0x7358, 0
popal
mov byte [0x10061154], 1
push eax
not eax
bswap eax
pop eax
jae 0x10034af6
pushfd
pushal
jmp 0x10034b25
sub edx, edx
jo 0x10034b0b
jmp 0x10034b1c
xor ecx, ecx
je 0x10034b03
jmp 0x10034b15
stc
xor ecx, 3
je 0x10034a9b
jmp 0x10034b12
jmp 0x10034b20
jae 0x10034b0e
sbb bl, bl
sbb bl, bl
xor ebx, ebx
jmp 0x10034b05
jmp 0x10034aff
sbb al, 0xdb
jmp 0x10034b28
jmp 0x10034af9
popal
popfd
bswap eax
not ecx
bswap eax
not ecx
mov ecx, dword [ebp - 0x6a8]
and ecx, 0xff
test ecx, ecx
je 0x10034b71
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x1005d5f8
lea edx, [ebp - 0x128]
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0x128]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
jmp 0x10034bce
xor ecx, ecx
cmp dword [0x10060f28], 0
sete cl
push ecx
call fcn.100369b9
add esp, 4
and eax, 0xff
test eax, eax
jne 0x10034bba
mov dword [0x10061168], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1005d5e8
push 0x1006116c
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
xor eax, eax
jmp 0x10034c5b
push 0
call fcn.10034c6c
add esp, 4
mov eax, 1
jmp 0x10034c5b
jmp 0x10034bee
mov edx, dword [0x1005d384]
xor edx, dword [0x1005d3f8]
xor edx, dword [0x1005d3a8]
and edx, 2
test edx, edx
je 0x10034bee
call fcn.100323d9
call fcn.1003343c
mov dword [ebp - 0x1c], eax
push 0
call fcn.10034c6c
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 0x10034c22
push 0x10060f28
call dword [0x10060f50]
add esp, 4
mov dword [ebp - 0x1c], eax
push 0x1003340c
call dword [sym.imp.MSVCRT.dll_int____cdecl___unsigned_int____cdecl__set_new_handler_int____cdecl___unsigned_int__]
add esp, 4
cmp dword [0x10060f4c], 0
je 0x10034c3f
call dword [0x10060f4c]
cmp dword [0x10061160], 0
je 0x10034c58
push 0
push 0
mov eax, dword [0x1006115c]
push eax
call dword [0x10061160]
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