Function at 0x4e0435
Capabilities:
Accept command line arguments
Check mutex on windows
Check os version
Create process on windows
Create process suspended
Create thread
Resume thread
Set environment variable
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ed530
push 0x4e3254
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffff938
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x238], 0x94
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x228], 2
jne 0x4e0487
mov byte [0x4edd94], 1
jmp 0x4e049e
cmp dword [ebp - 0x234], 4
jne 0x4e049e
cmp dword [ebp - 0x230], 0x5a
jb 0x4e049e
call fcn.004e256e
xor ecx, ecx
mov cl, byte [0x4edd94]
test ecx, ecx
jne 0x4e04b0
cli
not esp
not esp
sti
mov edx, dword [0x4ea264]
xor edx, dword [0x4ea268]
xor edx, dword [0x4ea250]
and edx, 4
test edx, edx
je 0x4e04d0
mov byte [0x4edd65], 1
mov eax, dword [0x4ea264]
xor eax, dword [0x4ea268]
xor eax, dword [0x4ea250]
and eax, 8
test eax, eax
je 0x4e04ef
mov byte [0x4edd66], 1
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, dword [0x4ea230]
xor ecx, dword [0x4ea268]
xor ecx, dword [0x4ea238]
add eax, ecx
mov dword [0x4edd74], eax
mov edx, dword [0x4ea22c]
xor edx, dword [0x4ea258]
xor edx, dword [0x4ea250]
add edx, 0xfff
shr edx, 0xc
mov dword [0x4edd7c], edx
mov dword [ebp - 0x198], 0
mov dword [ebp - 0x294], 0xffffffff
xor eax, eax
mov al, byte [0x4edd65]
test eax, eax
je 0x4e09cb
push 0
call fcn.004e3607
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, eax
xor esi, dword [0x4ea238]
mov dword [ebp - 0x610], esi
mov ecx, dword [ebp - 0x610]
mov dword [ebp - 0x5b4], ecx
mov dword [ebp - 0x634], pe_nt_image_headers32
mov eax, dword [ebp - 0x5b4]
cdq
mov ecx, 0x2710
idiv ecx
mov dword [ebp - 0x628], eax
mov eax, dword [ebp - 0x5b4]
cdq
mov ecx, 0x2710
idiv ecx
mov dword [ebp - 0x624], edx
mov eax, 0x1df5e0d
cdq
mov ecx, 0x2710
idiv ecx
mov dword [ebp - 0x630], eax
mov eax, 0x1df5e0d
cdq
mov ecx, 0x2710
idiv ecx
mov dword [ebp - 0x62c], edx
mov ecx, dword [ebp - 0x624]
imul ecx, dword [ebp - 0x62c]
mov edx, dword [ebp - 0x628]
imul edx, dword [ebp - 0x62c]
mov eax, dword [ebp - 0x624]
imul eax, dword [ebp - 0x630]
add eax, edx
xor edx, edx
mov esi, 0x2710
div esi
mov eax, edx
imul eax, eax, 0x2710
add eax, ecx
xor edx, edx
mov ecx, 0x5f5e100
div ecx
mov eax, edx
add eax, 1
xor edx, edx
mov ecx, 0x5f5e100
div ecx
mov dword [ebp - 0x5b4], edx
mov eax, dword [ebp - 0x5b4]
xor edx, edx
mov ecx, 0x2710
div ecx
imul eax, dword [ebp - 0x634]
xor edx, edx
mov ecx, 0x2710
div ecx
and eax, 0xff
mov dword [ebp - 0x620], eax
mov dword [ebp - 0x648], pe_nt_image_headers32
mov eax, dword [ebp - 0x5b4]
cdq
mov ecx, 0x2710
idiv ecx
mov dword [ebp - 0x63c], eax
mov eax, dword [ebp - 0x5b4]
cdq
mov ecx, 0x2710
idiv ecx
mov dword [ebp - 0x638], edx
mov eax, 0x1df5e0d
cdq
mov ecx, 0x2710
idiv ecx
mov dword [ebp - 0x644], eax
mov eax, 0x1df5e0d
cdq
mov ecx, 0x2710
idiv ecx
mov dword [ebp - 0x640], edx
mov ecx, dword [ebp - 0x638]
imul ecx, dword [ebp - 0x640]
mov edx, dword [ebp - 0x63c]
imul edx, dword [ebp - 0x640]
mov eax, dword [ebp - 0x638]
imul eax, dword [ebp - 0x644]
add eax, edx
xor edx, edx
mov esi, 0x2710
div esi
mov eax, edx
imul eax, eax, 0x2710
add eax, ecx
xor edx, edx
mov ecx, 0x5f5e100
div ecx
mov eax, edx
add eax, 1
xor edx, edx
mov ecx, 0x5f5e100
div ecx
mov dword [ebp - 0x5b4], edx
mov eax, dword [ebp - 0x5b4]
xor edx, edx
mov ecx, 0x2710
div ecx
imul eax, dword [ebp - 0x648]
xor edx, edx
mov ecx, 0x2710
div ecx
and eax, 0xff
mov dword [ebp - 0x614], eax
mov dword [ebp - 0x65c], pe_nt_image_headers32
mov eax, dword [ebp - 0x5b4]
cdq
mov ecx, 0x2710
idiv ecx
mov dword [ebp - 0x650], eax
mov eax, dword [ebp - 0x5b4]
cdq
mov ecx, 0x2710
idiv ecx
mov dword [ebp - 0x64c], edx
mov eax, 0x1df5e0d
cdq
mov ecx, 0x2710
idiv ecx
mov dword [ebp - 0x658], eax
mov eax, 0x1df5e0d
cdq
mov ecx, 0x2710
idiv ecx
mov dword [ebp - 0x654], edx
mov ecx, dword [ebp - 0x64c]
imul ecx, dword [ebp - 0x654]
mov edx, dword [ebp - 0x650]
imul edx, dword [ebp - 0x654]
mov eax, dword [ebp - 0x64c]
imul eax, dword [ebp - 0x658]
add eax, edx
xor edx, edx
mov esi, 0x2710
div esi
mov eax, edx
imul eax, eax, 0x2710
add eax, ecx
xor edx, edx
mov ecx, 0x5f5e100
div ecx
mov eax, edx
add eax, 1
xor edx, edx
mov ecx, 0x5f5e100
div ecx
mov dword [ebp - 0x5b4], edx
mov eax, dword [ebp - 0x5b4]
xor edx, edx
mov ecx, 0x2710
div ecx
imul eax, dword [ebp - 0x65c]
xor edx, edx
mov ecx, 0x2710
div ecx
and eax, 0xff
mov dword [ebp - 0x618], eax
mov dword [ebp - 0x670], pe_nt_image_headers32
mov eax, dword [ebp - 0x5b4]
cdq
mov ecx, 0x2710
idiv ecx
mov dword [ebp - 0x664], eax
mov eax, dword [ebp - 0x5b4]
cdq
mov ecx, 0x2710
idiv ecx
mov dword [ebp - 0x660], edx
mov eax, 0x1df5e0d
cdq
mov ecx, 0x2710
idiv ecx
mov dword [ebp - 0x66c], eax
mov eax, 0x1df5e0d
cdq
mov ecx, 0x2710
idiv ecx
mov dword [ebp - 0x668], edx
mov ecx, dword [ebp - 0x660]
imul ecx, dword [ebp - 0x668]
mov edx, dword [ebp - 0x664]
imul edx, dword [ebp - 0x668]
mov eax, dword [ebp - 0x660]
imul eax, dword [ebp - 0x66c]
add eax, edx
xor edx, edx
mov esi, 0x2710
div esi
mov eax, edx
imul eax, eax, 0x2710
add eax, ecx
xor edx, edx
mov ecx, 0x5f5e100
div ecx
mov eax, edx
add eax, 1
xor edx, edx
mov ecx, 0x5f5e100
div ecx
mov dword [ebp - 0x5b4], edx
mov eax, dword [ebp - 0x5b4]
xor edx, edx
mov ecx, 0x2710
div ecx
imul eax, dword [ebp - 0x670]
xor edx, edx
mov ecx, 0x2710
div ecx
and eax, 0xff
mov dword [ebp - 0x61c], eax
mov edx, dword [ebp - 0x618]
shl edx, 8
mov eax, dword [ebp - 0x614]
shl eax, 0x10
mov ecx, dword [ebp - 0x620]
shl ecx, 0x18
or ecx, eax
or ecx, edx
or ecx, dword [ebp - 0x61c]
mov dword [ebp - 0x198], ecx
mov dword [ebp - 0x5b0], 0xc
mov dword [ebp - 0x5ac], 0
mov dword [ebp - 0x5a8], 1
push 0
push 0x1000
push 0
push 4
lea edx, [ebp - 0x5b0]
push edx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x294], eax
cmp dword [ebp - 0x294], 0
jne 0x4e0965
xor al, al
jmp 0x4e176c
push 0x1000
push 0
push 0
push 2
mov eax, dword [ebp - 0x294]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x5b8], eax
mov ecx, dword [ebp - 0x5b8]
mov edx, dword [ebp - 0x198]
mov dword [ecx], edx
mov eax, dword [ebp - 0x5b8]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [ebp - 0x294]
push ecx
push 0x4ea650
lea edx, [ebp - 0x5a4]
push edx
call fcn.004e307f
add esp, 0xc
lea eax, [ebp - 0x5a4]
push eax
push 0x4ea654
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov ecx, dword [0x4edd7c]
shl ecx, 2
push ecx
call fcn.004e28ad
add esp, 4
mov dword [ebp - 0x5ec], eax
mov edx, dword [ebp - 0x5ec]
mov dword [0x4edd84], edx
mov eax, dword [0x4edd7c]
shl eax, 2
push eax
call fcn.004e28ad
add esp, 4
mov dword [ebp - 0x5f0], eax
mov ecx, dword [ebp - 0x5f0]
mov dword [0x4edd6c], ecx
mov edx, dword [0x4edd7c]
shl edx, 2
push edx
call fcn.004e28ad
add esp, 4
mov dword [ebp - 0x5f4], eax
mov eax, dword [ebp - 0x5f4]
mov dword [0x4edd88], eax
mov ecx, dword [0x4edd7c]
shl ecx, 2
push ecx
call fcn.004e28ad
add esp, 4
mov dword [ebp - 0x5f8], eax
mov edx, dword [ebp - 0x5f8]
mov dword [0x4edd8c], edx
push 0x1000
call fcn.004e28ad
add esp, 4
mov dword [ebp - 0x5fc], eax
mov eax, dword [ebp - 0x5fc]
mov dword [0x4edd90], eax
mov ecx, dword [0x4edd7c]
shl ecx, 2
push ecx
call fcn.004e28ad
add esp, 4
mov dword [ebp - 0x600], eax
mov edx, dword [ebp - 0x600]
mov dword [0x4edd68], edx
mov eax, dword [str.9_bN]
xor eax, dword [ebp - 0x198]
mov dword [ebp - 0x188], eax
mov dword [ebp - 0x1a4], 0
jmp 0x4e0ac7
mov ecx, dword [ebp - 0x1a4]
add ecx, 1
mov dword [ebp - 0x1a4], ecx
mov edx, dword [ebp - 0x1a4]
cmp edx, dword [0x4edd7c]
jge 0x4e0ec8
mov eax, dword [ebp - 0x1a4]
mov ecx, dword [0x4edd84]
mov dword [ecx + eax*4], 0xffffffff
mov dword [ebp - 0x694], pe_nt_image_headers32
mov eax, dword [ebp - 0x188]
cdq
mov ecx, 0x2710
idiv ecx
mov dword [ebp - 0x688], eax
mov eax, dword [ebp - 0x188]
cdq
mov ecx, 0x2710
idiv ecx
mov dword [ebp - 0x684], edx
mov eax, 0x1df5e0d
cdq
mov ecx, 0x2710
idiv ecx
mov dword [ebp - 0x690], eax
mov eax, 0x1df5e0d
cdq
mov ecx, 0x2710
idiv ecx
mov dword [ebp - 0x68c], edx
mov ecx, dword [ebp - 0x684]
imul ecx, dword [ebp - 0x68c]
mov edx, dword [ebp - 0x688]
imul edx, dword [ebp - 0x68c]
mov eax, dword [ebp - 0x684]
imul eax, dword [ebp - 0x690]
add eax, edx
xor edx, edx
mov esi, 0x2710
div esi
mov eax, edx
imul eax, eax, 0x2710
add eax, ecx
xor edx, edx
mov ecx, 0x5f5e100
div ecx
mov eax, edx
add eax, 1
xor edx, edx
mov ecx, 0x5f5e100
div ecx
mov dword [ebp - 0x188], edx
mov eax, dword [ebp - 0x188]
xor edx, edx
mov ecx, 0x2710
div ecx
imul eax, dword [ebp - 0x694]
xor edx, edx
mov ecx, 0x2710
div ecx
and eax, 0xff
mov dword [ebp - 0x680], eax
mov dword [ebp - 0x6a8], pe_nt_image_headers32
mov eax, dword [ebp - 0x188]
cdq
mov ecx, 0x2710
idiv ecx
mov dword [ebp - 0x69c], eax
mov eax, dword [ebp - 0x188]
cdq
mov ecx, 0x2710
idiv ecx
mov dword [ebp - 0x698], edx
mov eax, 0x1df5e0d
cdq
mov ecx, 0x2710
idiv ecx
mov dword [ebp - 0x6a4], eax
mov eax, 0x1df5e0d
cdq
mov ecx, 0x2710
idiv ecx
mov dword [ebp - 0x6a0], edx
mov ecx, dword [ebp - 0x698]
imul ecx, dword [ebp - 0x6a0]
mov edx, dword [ebp - 0x69c]
imul edx, dword [ebp - 0x6a0]
mov eax, dword [ebp - 0x698]
imul eax, dword [ebp - 0x6a4]
add eax, edx
xor edx, edx
mov esi, 0x2710
div esi
mov eax, edx
imul eax, eax, 0x2710
add eax, ecx
xor edx, edx
mov ecx, 0x5f5e100
div ecx
mov eax, edx
add eax, 1
xor edx, edx
mov ecx, 0x5f5e100
div ecx
mov dword [ebp - 0x188], edx
mov eax, dword [ebp - 0x188]
xor edx, edx
mov ecx, 0x2710
div ecx
imul eax, dword [ebp - 0x6a8]
xor edx, edx
mov ecx, 0x2710
div ecx
and eax, 0xff
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x6bc], pe_nt_image_headers32
mov eax, dword [ebp - 0x188]
cdq
mov ecx, 0x2710
idiv ecx
mov dword [ebp - 0x6b0], eax
mov eax, dword [ebp - 0x188]
cdq
mov ecx, 0x2710
idiv ecx
mov dword [ebp - 0x6ac], edx
mov eax, 0x1df5e0d
cdq
mov ecx, 0x2710
idiv ecx
mov dword [ebp - 0x6b8], eax
mov eax, 0x1df5e0d
cdq
mov ecx, 0x2710
idiv ecx
mov dword [ebp - 0x6b4], edx
mov ecx, dword [ebp - 0x6ac]
imul ecx, dword [ebp - 0x6b4]
mov edx, dword [ebp - 0x6b0]
imul edx, dword [ebp - 0x6b4]
mov eax, dword [ebp - 0x6ac]
imul eax, dword [ebp - 0x6b8]
add eax, edx
xor edx, edx
mov esi, 0x2710
div esi
mov eax, edx
imul eax, eax, 0x2710
add eax, ecx
xor edx, edx
mov ecx, 0x5f5e100
div ecx
mov eax, edx
add eax, 1
xor edx, edx
mov ecx, 0x5f5e100
div ecx
mov dword [ebp - 0x188], edx
mov eax, dword [ebp - 0x188]
xor edx, edx
mov ecx, 0x2710
div ecx
imul eax, dword [ebp - 0x6bc]
xor edx, edx
mov ecx, 0x2710
div ecx
and eax, 0xff
mov dword [ebp - 0x678], eax
mov dword [ebp - 0x6d0], pe_nt_image_headers32
mov eax, dword [ebp - 0x188]
cdq
mov ecx, 0x2710
idiv ecx
mov dword [ebp - 0x6c4], eax
mov eax, dword [ebp - 0x188]
cdq
mov ecx, 0x2710
idiv ecx
mov dword [ebp - 0x6c0], edx
mov eax, 0x1df5e0d
cdq
mov ecx, 0x2710
idiv ecx
mov dword [ebp - 0x6cc], eax
mov eax, 0x1df5e0d
cdq
mov ecx, 0x2710
idiv ecx
mov dword [ebp - 0x6c8], edx
mov ecx, dword [ebp - 0x6c0]
imul ecx, dword [ebp - 0x6c8]
mov edx, dword [ebp - 0x6c4]
imul edx, dword [ebp - 0x6c8]
mov eax, dword [ebp - 0x6c0]
imul eax, dword [ebp - 0x6cc]
add eax, edx
xor edx, edx
mov esi, 0x2710
div esi
mov eax, edx
imul eax, eax, 0x2710
add eax, ecx
xor edx, edx
mov ecx, 0x5f5e100
div ecx
mov eax, edx
add eax, 1
xor edx, edx
mov ecx, 0x5f5e100
div ecx
mov dword [ebp - 0x188], edx
mov eax, dword [ebp - 0x188]
xor edx, edx
mov ecx, 0x2710
div ecx
imul eax, dword [ebp - 0x6d0]
xor edx, edx
mov ecx, 0x2710
div ecx
and eax, 0xff
mov dword [ebp - 0x67c], eax
mov edx, dword [ebp - 0x678]
shl edx, 8
mov eax, dword [ebp - 0x674]
shl eax, 0x10
mov ecx, dword [ebp - 0x680]
shl ecx, 0x18
or ecx, eax
or ecx, edx
or ecx, dword [ebp - 0x67c]
mov edx, dword [ebp - 0x1a4]
mov eax, dword [0x4edd6c]
mov dword [eax + edx*4], ecx
mov ecx, dword [ebp - 0x1a4]
mov edx, dword [0x4edd88]
mov dword [edx + ecx*4], 0
mov eax, dword [ebp - 0x1a4]
mov ecx, dword [0x4edd8c]
mov dword [ecx + eax*4], 0xffffffff
mov edx, dword [ebp - 0x1a4]
mov eax, dword [0x4edd68]
mov dword [eax + edx*4], 0
jmp 0x4e0ab8
mov ecx, dword [0x4edd7c]
sar ecx, 1
add ecx, 1
mov dword [0x4ea628], ecx
xor edx, edx
mov dl, byte [0x4edd66]
test edx, edx
jne 0x4e0efa
cmp dword [0x4ea628], 6
jae 0x4e0ef8
mov dword [0x4ea628], 6
jmp 0x4e0f0d
cmp dword [0x4ea628], 0x12
jae 0x4e0f0d
mov dword [0x4ea628], 0x12
push str.Kernel32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x190], eax
push str.OutputDebugStringA
mov eax, dword [ebp - 0x190]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1a0], eax
push str.OutputDebugStringW
mov ecx, dword [ebp - 0x190]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x20], eax
lea edx, [ebp - 0x290]
mov dword [0x4edd70], edx
lea eax, [ebp - 0x280]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov cl, byte [0x4edd98]
mov byte [ebp - 0x4a4], cl
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x4a3]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dl, byte [0x4edd9c]
mov byte [ebp - 0x124], dl
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x123]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
and eax, 0xff
test eax, eax
je 0x4e0fd9
cmp dword [ebp - 0x274], 0
jne 0x4e0fd9
lea ecx, [ebp - 0x4a4]
push ecx
call fcn.004e02a2
add esp, 4
and eax, 0xff
test eax, eax
je 0x4e0fd9
lea edx, [ebp - 0x4a4]
mov dword [ebp - 0x274], edx
push 0x104
lea eax, [ebp - 0x124]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4e0ff8
xor al, al
jmp 0x4e176c
mov ecx, dword [0x4edd70]
push ecx
lea edx, [ebp - 0x280]
push edx
push 0
push 0
push 4
push 1
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4e1031
xor al, al
jmp 0x4e176c
mov dword [ebp - 0x194], 0
lea ecx, [ebp - 0x194]
push ecx
push 0
mov edx, dword [0x4edd70]
mov eax, dword [edx]
push eax
push 0x4e0331
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x23c], eax
mov ecx, dword [ebp - 0x23c]
mov edx, dword [ebp - 0x23c]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x3a0], edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, dword [ebp - 0x3a0]
add eax, dword [ecx + 0x28]
mov dword [ebp - 0x19c], eax
mov edx, dword [ebp - 0x19c]
push edx
push 1
mov eax, dword [0x4edd70]
push eax
call fcn.004e241d
add esp, 0xc
mov ecx, dword [ebp - 0x19c]
push ecx
mov edx, dword [0x4edd70]
push edx
call fcn.004e24e1
add esp, 8
mov eax, dword [0x4edd70]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, dword [0x4edd70]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DebugActiveProcess]
mov ecx, dword [0x4edd70]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov eax, dword [ebp - 0x19c]
push eax
push 0
mov ecx, dword [0x4edd70]
push ecx
call fcn.004e241d
add esp, 0xc
lea edx, [ebp - 0x184]
mov dword [ebp - 0x18c], edx
mov byte [ebp - 0x1c], 1
mov eax, dword [0x4edd70]
mov ecx, dword [eax]
push ecx
call fcn.004e0413
add esp, 4
and eax, 0xff
test eax, eax
je 0x4e176a
push 0x3e8
mov edx, dword [ebp - 0x18c]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForDebugEvent]
test eax, eax
je 0x4e1765
mov dword [ebp - 0x298], str.None
xor eax, eax
mov al, byte [0x4edd64]
test eax, eax
jne 0x4e11cb
mov ecx, dword [ebp - 0x1c]
and ecx, 0xff
test ecx, ecx
je 0x4e11cb
mov byte [ebp - 0x1c], 0
mov dword [ebp - 4], 0
pushf
pop ax
add ax, 0x62
add ax, 0x9e
push ax
popf
add ax, 1
mov dword [ebp - 4], 0xffffffff
jmp 0x4e11cb
mov edx, dword [ebp - 0x18c]
mov eax, dword [0x4edd70]
mov ecx, dword [edx + 4]
cmp ecx, dword [eax + 8]
jne 0x4e1746
mov dword [ebp - 0x5bc], 0x80010001
mov edx, dword [ebp - 0x18c]
cmp dword [edx], 1
jne 0x4e1514
mov dword [ebp - 0x298], str.Exception_Debug_Event
xor eax, eax
mov al, byte [0x4edd65]
test eax, eax
je 0x4e12f4
mov ecx, dword [ebp - 0x18c]
cmp dword [ecx + 0xc], 0x80000001
jne 0x4e12f4
mov dword [ebp - 0x298], str.Guard_Page
mov edx, dword [ebp - 0x18c]
mov eax, dword [edx + 0x24]
mov dword [ebp - 0x5c4], eax
mov ecx, dword [ebp - 0x5c4]
sub ecx, dword [0x4edd74]
shr ecx, 0xc
mov dword [ebp - 0x5c0], ecx
xor edx, edx
mov dl, byte [0x4edd66]
test edx, edx
je 0x4e12a7
mov eax, dword [ebp - 0x5c0]
sub eax, 1
test eax, eax
jl 0x4e1282
push 1
mov ecx, dword [ebp - 0x5c0]
sub ecx, 1
push ecx
call fcn.004e177d
add esp, 8
mov edx, dword [ebp - 0x5c0]
add edx, 1
cmp edx, dword [0x4edd7c]
jge 0x4e12a7
push 1
mov eax, dword [ebp - 0x5c0]
add eax, 1
push eax
call fcn.004e177d
add esp, 8
cmp dword [ebp - 0x5c0], 0
jl 0x4e12ef
mov ecx, dword [ebp - 0x5c0]
cmp ecx, dword [0x4edd7c]
jge 0x4e12ef
mov edx, dword [ebp - 0x1c]
and edx, 0xff
test edx, edx
je 0x4e12e5
push 0
mov eax, dword [ebp - 0x5c0]
push eax
call fcn.004e177d
add esp, 8
and eax, 0xff
test eax, eax
je 0x4e12ef
mov dword [ebp - 0x5bc], 0x10002
jmp 0x4e150f
mov ecx, dword [ebp - 0x18c]
cmp dword [ecx + 0xc], 0xc0000005
jne 0x4e14c6
mov edx, dword [ebp - 0x18c]
cmp dword [edx + 0x5c], 0
je 0x4e131f
mov dword [ebp - 0x298], str.Access_Violation__first_chance
jmp 0x4e1329
mov dword [ebp - 0x298], str.Access_Violation__last_chance
mov byte [ebp - 0x5c8], 0
xor eax, eax
mov al, byte [0x4edd94]
test eax, eax
jne 0x4e1427
xor ecx, ecx
mov cl, byte [0x4edd65]
test ecx, ecx
je 0x4e1427
mov edx, dword [ebp - 0x1c]
and edx, 0xff
test edx, edx
je 0x4e1427
mov eax, dword [ebp - 0x18c]
mov ecx, dword [eax + 0x24]
mov dword [ebp - 0x5d0], ecx
mov edx, dword [ebp - 0x5d0]
sub edx, dword [0x4edd74]
shr edx, 0xc
mov dword [ebp - 0x5cc], edx
xor eax, eax
mov al, byte [0x4edd66]
test eax, eax
je 0x4e13d5
mov ecx, dword [ebp - 0x5cc]
sub ecx, 1
test ecx, ecx
jl 0x4e13b0
push 1
mov edx, dword [ebp - 0x5cc]
sub edx, 1
push edx
call fcn.004e177d
add esp, 8
mov eax, dword [ebp - 0x5cc]
add eax, 1
cmp eax, dword [0x4edd7c]
jge 0x4e13d5
push 1
mov ecx, dword [ebp - 0x5cc]
add ecx, 1
push ecx
call fcn.004e177d
add esp, 8
cmp dword [ebp - 0x5cc], 0
jl 0x4e1412
mov edx, dword [ebp - 0x5cc]
cmp edx, dword [0x4edd7c]
jge 0x4e1412
push 0
mov eax, dword [ebp - 0x5cc]
push eax
call fcn.004e177d
add esp, 8
and eax, 0xff
test eax, eax
je 0x4e1412
mov dword [ebp - 0x5bc], 0x10002
jmp 0x4e1425
mov ecx, dword [ebp - 0x18c]
cmp dword [ecx + 0x5c], 0
jne 0x4e1425
mov byte [ebp - 0x5c8], 1
jmp 0x4e143a
mov edx, dword [ebp - 0x18c]
cmp dword [edx + 0x5c], 0
jne 0x4e143a
mov byte [ebp - 0x5c8], 1
mov eax, dword [ebp - 0x5c8]
and eax, 0xff
test eax, eax
je 0x4e14c4
mov ecx, dword [ebp - 0x18c]
mov edx, dword [ecx + 0x18]
mov dword [ebp - 0x5dc], edx
mov eax, dword [ebp - 0x18c]
mov ecx, dword [eax + 0x24]
mov dword [ebp - 0x5d4], ecx
mov edx, dword [ebp - 0x18c]
xor eax, eax
cmp dword [edx + 0x20], 0
setne al
mov byte [ebp - 0x5d8], al
mov ecx, dword [ebp - 0x5d8]
and ecx, 0xff
test ecx, ecx
je 0x4e1498
mov dword [ebp - 0x6d4], str.write_to
jmp 0x4e14a2
mov dword [ebp - 0x6d4], str.read_from
mov edx, dword [ebp - 0x5d4]
push edx
mov eax, dword [ebp - 0x6d4]
push eax
mov ecx, dword [ebp - 0x5dc]
push ecx
push str.Error:_Access_violation_at_0x_08X__tried_to__s_0x_08X___program_terminated.
call fcn.004e277d
add esp, 0x10
jmp 0x4e150f
mov dword [ebp - 0x298], str.Other_Debug_Event
mov edx, dword [ebp - 0x18c]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x5e0], eax
mov ecx, dword [ebp - 0x5e0]
mov dword [ebp - 0x6d8], ecx
cmp dword [ebp - 0x6d8], 0x80000003
je 0x4e1505
cmp dword [ebp - 0x6d8], 0xc0000008
je 0x4e1505
jmp 0x4e150f
mov dword [ebp - 0x5bc], 0x10002
jmp 0x4e1723
mov edx, dword [ebp - 0x18c]
cmp dword [edx], 2
jne 0x4e1545
mov dword [ebp - 0x298], 0x4ea814
mov eax, dword [0x4ea624]
add eax, 1
mov dword [0x4ea624], eax
mov dword [ebp - 0x5bc], 0x10002
jmp 0x4e1723
mov ecx, dword [ebp - 0x18c]
cmp dword [ecx], 4
jne 0x4e1578
mov dword [ebp - 0x298], str.ExitThread
mov edx, dword [0x4ea624]
sub edx, 1
mov dword [0x4ea624], edx
mov dword [ebp - 0x5bc], 0x10002
jmp 0x4e1723
mov eax, dword [ebp - 0x18c]
cmp dword [eax], 5
jne 0x4e159c
mov dword [ebp - 0x298], 0x4ea860
mov dword [ebp - 0x5bc], 0x10002
jmp 0x4e1723
mov ecx, dword [ebp - 0x18c]
cmp dword [ecx], 8
jne 0x4e1679
mov dword [ebp - 0x298], str.Debug_String
mov edx, dword [ebp - 0x18c]
xor eax, eax
mov ax, word [edx + 0x12]
mov dword [ebp - 0x5e8], eax
mov ecx, dword [ebp - 0x5e8]
add ecx, 2
push ecx
call fcn.004e28ad
add esp, 4
mov dword [ebp - 0x604], eax
mov edx, dword [ebp - 0x604]
mov dword [ebp - 0x5e4], edx
push 0
mov eax, dword [ebp - 0x5e8]
add eax, 2
push eax
mov ecx, dword [ebp - 0x5e4]
push ecx
mov edx, dword [ebp - 0x18c]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [0x4edd70]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov eax, dword [ebp - 0x18c]
xor ecx, ecx
mov cx, word [eax + 0x10]
test ecx, ecx
je 0x4e1639
cmp dword [ebp - 0x20], 0
je 0x4e1637
mov edx, dword [ebp - 0x5e4]
push edx
call dword [ebp - 0x20]
jmp 0x4e164f
cmp dword [ebp - 0x1a0], 0
je 0x4e164f
mov eax, dword [ebp - 0x5e4]
push eax
call dword [ebp - 0x1a0]
mov ecx, dword [ebp - 0x5e4]
mov dword [ebp - 0x608], ecx
mov edx, dword [ebp - 0x608]
push edx
call fcn.004e28a2
add esp, 4
mov dword [ebp - 0x5bc], 0x10002
jmp 0x4e1723
mov eax, dword [ebp - 0x18c]
cmp dword [eax], 9
jne 0x4e1693
mov dword [ebp - 0x298], str.RIP_Event
jmp 0x4e1723
mov ecx, dword [ebp - 0x18c]
cmp dword [ecx], 3
jne 0x4e1719
xor edx, edx
mov dl, byte [0x4ea62c]
test edx, edx
je 0x4e1717
mov byte [0x4ea62c], 0
mov eax, dword [0x4ea248]
xor eax, dword [0x4ea238]
push eax
mov ecx, dword [0x4edd70]
mov edx, dword [ecx + 8]
push edx
push str._X::DA_08X
lea eax, [ebp - 0x39c]
push eax
call fcn.004e307f
add esp, 0x10
lea ecx, [ebp - 0x39c]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4e16fd
xor al, al
jmp 0x4e176c
mov dword [ebp - 0x5bc], 0x10002
mov edx, dword [0x4edd70]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x4e1723
mov dword [ebp - 0x5bc], 0x10002
mov ecx, dword [ebp - 0x5bc]
push ecx
mov edx, dword [ebp - 0x18c]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 0x18c]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_ContinueDebugEvent]
jmp 0x4e1765
push 0x10002
mov eax, dword [ebp - 0x18c]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp - 0x18c]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ContinueDebugEvent]
jmp 0x4e111a
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret