Function at 0x100844f0
Capabilities:
Check mutex on windows
Packed with generic packer
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101156bd
mov eax, dword fs:[0]
push eax
sub esp, 0x7f8
mov eax, dword [0x1013d8f0]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0xd], 1
call fcn.100d8e80
mov eax, dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [sym.imp.USER32.dll_LoadStringA]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [sym.imp.USER32.dll_LoadStringW]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
push 0x10083110
call fcn.100eae0b
add esp, 4
mov eax, dword [0x101536b4]
mov ecx, dword [0x101536b4]
mov edx, dword [eax + 0x18]
xor edx, dword [ecx + 0x8c]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x1013fa50
push 0x104
lea eax, reloc.USER32.dll_SetCursor
push eax
call fcn.100eabaa
add esp, 0x14
lea ecx, reloc.USER32.dll_SetCursor
push ecx
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
je 0x100845b7
mov byte [ebp - 0xd], 0
movzx edx, byte [ebp - 0xd]
test edx, edx
je 0x1008478c
mov eax, dword [0x101536b4]
mov ecx, dword [0x101536b4]
mov edx, dword [eax + 0x34]
xor edx, dword [ecx + 0x2c]
mov eax, dword [0x101536b4]
xor edx, dword [eax + 4]
and edx, 0x20
je 0x1008478c
mov ecx, dword [0x101536b4]
mov edx, dword [0x101536b4]
mov eax, dword [ecx + 0x88]
xor eax, dword [edx + 0x74]
mov ecx, dword [0x101536b4]
xor eax, dword [ecx + 0x18]
push eax
push 0x1013fa48
push 0x104
lea edx, reloc.USER32.dll_SetCursor
push edx
call fcn.100eabaa
add esp, 0x10
lea eax, reloc.USER32.dll_SetCursor
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - reloc.USER32.dll_SetCursor], eax
cmp dword [ebp - reloc.USER32.dll_SetCursor], 0
je 0x1008478c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1008478c
push 0x7530
mov ecx, dword [ebp - reloc.USER32.dll_SetCursor]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - reloc.USER32.dll_SetCursor], eax
cmp dword [ebp - reloc.USER32.dll_SetCursor], 0
je 0x10084683
cmp dword [ebp - reloc.USER32.dll_SetCursor], 0x80
jne 0x10084782
mov edx, dword [0x101536b4]
mov eax, dword [0x101536b4]
mov ecx, dword [edx + 0x88]
xor ecx, dword [eax + 0x74]
mov edx, dword [0x101536b4]
xor ecx, dword [edx + 0x18]
push ecx
push 0x1013fa40
push 0x104
lea eax, reloc.USER32.dll_SetCursor
push eax
call fcn.100eabaa
add esp, 0x10
mov dword [ebp - reloc.USER32.dll_SetCursor], 0
jmp 0x100846d5
mov ecx, dword [ebp - reloc.USER32.dll_SetCursor]
add ecx, 1
mov dword [ebp - reloc.USER32.dll_SetCursor], ecx
cmp dword [ebp - reloc.USER32.dll_SetCursor], 0x12c
jge 0x1008470e
lea edx, reloc.USER32.dll_SetCursor
push edx
push 0x1013fa34
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [ebp - reloc.USER32.dll_SetCursor], eax
cmp dword [ebp - reloc.USER32.dll_SetCursor], 0
je 0x10084704
jmp 0x1008470e
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100846c6
cmp dword [ebp - reloc.USER32.dll_SetCursor], 0
je 0x10084775
mov eax, dword [0x101536b4]
mov ecx, dword [0x101536b4]
mov edx, dword [eax + 0x88]
xor edx, dword [ecx + 0x74]
mov eax, dword [0x101536b4]
xor edx, dword [eax + 0x18]
mov dword [ebp - reloc.USER32.dll_SetCursor], edx
mov ecx, dword [0x10153458]
push ecx
call fcn.100e66e0
add esp, 4
add eax, 1
mov dword [ebp - reloc.USER32.dll_SetCursor], eax
mov edx, dword [0x10153458]
mov dword [ebp - reloc.USER32.dll_SetCursor], edx
lea eax, reloc.USER32.dll_SetCursor
push eax
push 0
push 0x4a
mov ecx, dword [ebp - reloc.USER32.dll_SetCursor]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [ebp - reloc.USER32.dll_SetCursor]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, 1
jmp 0x10084e2a
push 1
call fcn.10084f40
add esp, 4
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x10084b12
mov ecx, dword [0x101536b4]
mov edx, dword [0x101536b4]
mov eax, dword [ecx + 0x34]
xor eax, dword [edx + 0x2c]
mov ecx, dword [0x101536b4]
xor eax, dword [ecx + 4]
and eax, 0x40
jne 0x10084b12
push 0x200
lea edx, reloc.USER32.dll_SetCursor
push edx
push 0x1013fa2c
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x10084b12
push 0xc8
push reloc.USER32.dll_ModifyMenuW
lea eax, reloc.USER32.dll_SetCursor
push eax
call fcn.100e6130
add esp, 0xc
mov byte [ebp - 0x27c], 0
mov dword [ebp - reloc.USER32.dll_SetCursor], 1
jmp 0x1008481d
mov ecx, dword [ebp - reloc.USER32.dll_SetCursor]
add ecx, 1
mov dword [ebp - reloc.USER32.dll_SetCursor], ecx
cmp dword [ebp - reloc.USER32.dll_SetCursor], 0x40
jg 0x1008485c
mov edx, dword [ebp - reloc.USER32.dll_SetCursor]
push edx
push 0x1013fa24
push 0x100
lea eax, reloc.USER32.dll_SetCursor
push eax
call fcn.100eabaa
add esp, 0x10
lea ecx, reloc.USER32.dll_SetCursor
push ecx
lea edx, reloc.USER32.dll_SetCursor
push edx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
jmp 0x1008480e
mov eax, dword [0x101536b4]
mov ecx, dword [0x101536b4]
mov edx, dword [eax + 0x34]
xor edx, dword [ecx + 0x2c]
mov eax, dword [0x101536b4]
xor edx, dword [eax + 4]
and edx, 0x10
jne 0x10084b12
lea ecx, reloc.USER32.dll_SetCursor
push ecx
call fcn.100c66e0
add esp, 4
mov dword [ebp - 4], 0
lea edx, reloc.USER32.dll_SetCursor
push edx
call fcn.10086770
add esp, 4
mov dword [ebp - reloc.USER32.dll_SetCursor], eax
mov eax, dword [ebp - reloc.USER32.dll_SetCursor]
mov dword [ebp - reloc.USER32.dll_SetCursor], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - reloc.USER32.dll_SetCursor]
push ecx
lea ecx, reloc.USER32.dll_SetCursor
call fcn.100c0910
mov byte [ebp - 4], 3
lea ecx, reloc.USER32.dll_SetCursor
call fcn.10085540
cmp dword [0x10153450], 1
jne 0x1008490f
cmp dword [ebp - reloc.USER32.dll_SetCursor], 0
jne 0x1008490f
lea ecx, reloc.USER32.dll_SetCursor
call fcn.100c15d0
movzx edx, al
test edx, edx
jne 0x1008490f
lea ecx, reloc.USER32.dll_SetCursor
call fcn.100c1170
mov dword [ebp - reloc.USER32.dll_SetCursor], eax
push 0
lea eax, reloc.USER32.dll_SetCursor
push eax
call fcn.100c5fc0
add esp, 8
mov byte [ebp - 4], 4
lea ecx, reloc.USER32.dll_SetCursor
call fcn.100855b0
movzx ecx, al
test ecx, ecx
je 0x1008497b
mov dword [ebp - reloc.USER32.dll_SetCursor], 0
mov byte [ebp - 4], 3
lea ecx, reloc.USER32.dll_SetCursor
call fcn.10085540
mov byte [ebp - 4], 0
lea ecx, reloc.USER32.dll_SetCursor
call fcn.10084ed0
mov dword [ebp - 4], reloc.USER32.dll_SetCursor
lea ecx, reloc.USER32.dll_SetCursor
call fcn.10084f90
mov eax, dword [ebp - reloc.USER32.dll_SetCursor]
jmp 0x10084e2a
lea edx, reloc.USER32.dll_SetCursor
push edx
call fcn.100c6900
add esp, 4
mov dword [ebp - reloc.USER32.dll_SetCursor], eax
mov eax, dword [ebp - reloc.USER32.dll_SetCursor]
mov dword [ebp - reloc.USER32.dll_SetCursor], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - reloc.USER32.dll_SetCursor]
push ecx
lea ecx, reloc.USER32.dll_SetCursor
call fcn.10084e50
mov byte [ebp - 4], 6
lea ecx, reloc.USER32.dll_SetCursor
call fcn.10085590
push eax
lea ecx, reloc.USER32.dll_SetCursor
call fcn.10084e50
mov byte [ebp - 4], 7
lea edx, reloc.USER32.dll_SetCursor
push edx
lea eax, reloc.USER32.dll_SetCursor
push eax
push 0x101546e8
push 0x101546e8
push 0
push 0
push 0
push 0
lea ecx, reloc.USER32.dll_SetCursor
push ecx
lea edx, reloc.USER32.dll_SetCursor
push edx
call fcn.100c61e0
add esp, 0x28
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0x70d], al
mov byte [ebp - 4], 6
lea ecx, reloc.USER32.dll_SetCursor
call fcn.10084ed0
mov byte [ebp - 4], 5
lea ecx, reloc.USER32.dll_SetCursor
call fcn.10084ed0
mov byte [ebp - 4], 4
lea ecx, reloc.USER32.dll_SetCursor
call fcn.10085250
movzx eax, byte [ebp - 0x70d]
test eax, eax
je 0x10084abb
mov dword [0x10153590], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1013fa04
push 0x100
push 0x10153598
call fcn.100eabaa
add esp, 0x10
mov dword [ebp - reloc.USER32.dll_SetCursor], 0
mov byte [ebp - 4], 3
lea ecx, reloc.USER32.dll_SetCursor
call fcn.10085540
mov byte [ebp - 4], 0
lea ecx, reloc.USER32.dll_SetCursor
call fcn.10084ed0
mov dword [ebp - 4], reloc.USER32.dll_SetCursor
lea ecx, reloc.USER32.dll_SetCursor
call fcn.10084f90
mov eax, dword [ebp - reloc.USER32.dll_SetCursor]
jmp 0x10084e2a
push 0x2710
mov ecx, dword [ebp - reloc.USER32.dll_SetCursor]
push ecx
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov dword [ebp - reloc.USER32.dll_SetCursor], 1
mov byte [ebp - 4], 3
lea ecx, reloc.USER32.dll_SetCursor
call fcn.10085540
mov byte [ebp - 4], 0
lea ecx, reloc.USER32.dll_SetCursor
call fcn.10084ed0
mov dword [ebp - 4], reloc.USER32.dll_SetCursor
lea ecx, reloc.USER32.dll_SetCursor
call fcn.10084f90
mov eax, dword [ebp - reloc.USER32.dll_SetCursor]
jmp 0x10084e2a
mov edx, dword [0x101536b4]
mov eax, dword [0x101536b4]
mov ecx, dword [edx + 0x34]
xor ecx, dword [eax + 0x2c]
mov edx, dword [0x101536b4]
xor ecx, dword [edx + 4]
and ecx, 0x10
je 0x10084d90
mov eax, dword [0x101536b4]
mov ecx, dword [0x101536b4]
mov edx, dword [eax + 0x18]
xor edx, dword [ecx + 0x8c]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x1013fa50
push 0x104
lea eax, reloc.USER32.dll_SetCursor
push eax
call fcn.100eabaa
add esp, 0x14
lea ecx, reloc.USER32.dll_SetCursor
push ecx
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
jne 0x10084d8e
push 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov byte [ebp - 0x645], 0
push 0x1013f9f8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - reloc.USER32.dll_SetCursor], eax
cmp dword [ebp - reloc.USER32.dll_SetCursor], 0
je 0x10084be8
push 0x1013f9e4
mov edx, dword [ebp - reloc.USER32.dll_SetCursor]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - reloc.USER32.dll_SetCursor], eax
cmp dword [ebp - reloc.USER32.dll_SetCursor], 0
je 0x10084be8
call dword [ebp - 0x6e8]
test eax, eax
je 0x10084be8
mov byte [ebp - 0x645], 1
mov dword [ebp - reloc.USER32.dll_SetCursor], 0x94
lea eax, reloc.USER32.dll_SetCursor
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - reloc.USER32.dll_SetCursor], 2
jne 0x10084c69
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 0x10084c2b
add ebp, ebx
and ch, bl
jmp 0x10084c4c
xor ebx, ebx
je 0x10084c2f
jmp 0x10084c3e
mov ecx, 0x34f9c987
nop
stc
je 0x10084c42
jmp 0x10084c72
xor eax, eax
je 0x10084c34
mov eax, 0x4840c987
test eax, eax
jne 0x10084c28
jmp 0xa26ee9b1
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 0x10084c80
jmp 0x10084cf1
jo 0x10084c72
jl 0x10084c70
jmp 0x10084c74
je 0x10084c6d
jmp 0x10084c6d
mov eax, dword fs:[0x20]
or eax, eax
jne 0x10084c80
jmp 0x10084cf1
pushal
xor eax, eax
jne 0x10084c87
jmp 0x10084c9c
jmp 0x10084cbc
xor eax, eax
jne 0x10084ca4
jp 0x10084c9a
jo 0x10084c9e
jmp 0x10084c9f
jb 0x10084ca3
jns 0x10084c88
call dword [0x74097900]
invalid
jns 0x10084ca5
je 0x10084c8e
jmp 0x10084c27
xchg ebx, ebx
jp 0x10084c93
mov al, byte [0x5c66133]
jl 0x10084cde
xor esp, dword [ecx - 0x3a]
add eax, 0x1015347c
add dword [eax - 9], edx
popal
mov byte [0x1015347c], 1
push eax
not eax
bswap eax
pop eax
jae 0x10084cb5
adc eax, 0xf7500110
ror byte [edi], 1
enter 0x7358, 0
pushfd
pushal
jmp 0x10084ce4
sub edx, edx
jo 0x10084cca
jmp 0x10084cdb
xor ecx, ecx
je 0x10084cc2
jmp 0x10084cd4
stc
xor ecx, 3
je 0x10084c5a
jmp 0x10084cd1
jmp 0x10084cdf
jae 0x10084ccd
sbb bl, bl
sbb bl, bl
xor ebx, ebx
jmp 0x10084cc4
jmp 0x10084cbe
invalid
sbb al, 0xdb
jmp 0x10084ce7
jmp 0x10084cb8
popal
popfd
bswap eax
not ecx
bswap eax
not ecx
movzx ecx, byte [ebp - 0x645]
test ecx, ecx
je 0x10084d2f
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x1013f9dc
push 0x104
lea edx, reloc.USER32.dll_SetCursor
push edx
call fcn.100eabaa
add esp, 0x10
lea eax, reloc.USER32.dll_SetCursor
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
jmp 0x10084d8e
cmp dword [0x10153450], 0
sete cl
push ecx
call fcn.1008b3b0
add esp, 4
movzx edx, al
test edx, edx
jne 0x10084d7a
mov dword [0x10153590], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1013f9cc
push 0x100
push 0x10153598
call fcn.100eabaa
add esp, 0x10
xor eax, eax
jmp 0x10084e2a
push 0
call fcn.10084f40
add esp, 4
mov eax, 1
jmp 0x10084e2a
jmp 0x10084db2
mov eax, dword [0x101536b4]
mov ecx, dword [0x101536b4]
mov edx, dword [eax]
xor edx, dword [ecx + 0x2c]
mov eax, dword [0x101536b4]
xor edx, dword [eax + 4]
and edx, 2
je 0x10084db2
call fcn.1009bf60
call fcn.10083140
mov dword [ebp - reloc.USER32.dll_SetCursor], eax
push 0
call fcn.10084f40
add esp, 4
push 0
call fcn.100eae0b
add esp, 4
cmp dword [ebp - reloc.USER32.dll_SetCursor], 1
jne 0x10084dee
push 0x10153450
call dword [0x10153478]
add esp, 4
mov dword [ebp - reloc.USER32.dll_SetCursor], eax
push 0x10083110
call fcn.100eae0b
add esp, 4
cmp dword [0x10153474], 0
je 0x10084e0a
call dword [0x10153474]
cmp dword [0x10153588], 0
je 0x10084e24
push 0
push 0
mov ecx, dword [0x10153584]
push ecx
call dword [0x10153588]
mov eax, dword [ebp - reloc.USER32.dll_SetCursor]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.100e6605
mov esp, ebp
pop ebp
ret