Function at 0x4ad435
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 0x4ba530
push 0x4b0254
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 0x4ad487
mov byte [0x4bad94], 1
jmp 0x4ad49e
cmp dword [ebp - 0x234], 4
jne 0x4ad49e
cmp dword [ebp - 0x230], 0x5a
jb 0x4ad49e
call fcn.004af56e
xor ecx, ecx
mov cl, byte [0x4bad94]
test ecx, ecx
jne 0x4ad4b0
cli
not esp
not esp
sti
mov edx, dword [0x4b7264]
xor edx, dword [0x4b7268]
xor edx, dword [0x4b7250]
and edx, 4
test edx, edx
je 0x4ad4d0
mov byte [0x4bad65], 1
mov eax, dword [0x4b7264]
xor eax, dword [0x4b7268]
xor eax, dword [0x4b7250]
and eax, 8
test eax, eax
je 0x4ad4ef
mov byte [0x4bad66], 1
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, dword [0x4b7230]
xor ecx, dword [0x4b7268]
xor ecx, dword [0x4b7238]
add eax, ecx
mov dword [0x4bad74], eax
mov edx, dword [0x4b722c]
xor edx, dword [0x4b7258]
xor edx, dword [0x4b7250]
add edx, 0xfff
shr edx, 0xc
mov dword [0x4bad7c], edx
mov dword [ebp - 0x198], 0
mov dword [ebp - 0x294], 0xffffffff
xor eax, eax
mov al, byte [0x4bad65]
test eax, eax
je 0x4ad9cb
push 0
call fcn.004b0607
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, eax
xor esi, dword [0x4b7238]
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 0x4ad965
xor al, al
jmp 0x4ae76c
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 0x4b7650
lea edx, [ebp - 0x5a4]
push edx
call fcn.004b007f
add esp, 0xc
lea eax, [ebp - 0x5a4]
push eax
push 0x4b7654
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov ecx, dword [0x4bad7c]
shl ecx, 2
push ecx
call fcn.004af8ad
add esp, 4
mov dword [ebp - 0x5ec], eax
mov edx, dword [ebp - 0x5ec]
mov dword [0x4bad84], edx
mov eax, dword [0x4bad7c]
shl eax, 2
push eax
call fcn.004af8ad
add esp, 4
mov dword [ebp - 0x5f0], eax
mov ecx, dword [ebp - 0x5f0]
mov dword [0x4bad6c], ecx
mov edx, dword [0x4bad7c]
shl edx, 2
push edx
call fcn.004af8ad
add esp, 4
mov dword [ebp - 0x5f4], eax
mov eax, dword [ebp - 0x5f4]
mov dword [0x4bad88], eax
mov ecx, dword [0x4bad7c]
shl ecx, 2
push ecx
call fcn.004af8ad
add esp, 4
mov dword [ebp - 0x5f8], eax
mov edx, dword [ebp - 0x5f8]
mov dword [0x4bad8c], edx
push 0x1000
call fcn.004af8ad
add esp, 4
mov dword [ebp - 0x5fc], eax
mov eax, dword [ebp - 0x5fc]
mov dword [0x4bad90], eax
mov ecx, dword [0x4bad7c]
shl ecx, 2
push ecx
call fcn.004af8ad
add esp, 4
mov dword [ebp - 0x600], eax
mov edx, dword [ebp - 0x600]
mov dword [0x4bad68], edx
mov eax, dword [0x4b7240]
xor eax, dword [ebp - 0x198]
mov dword [ebp - 0x188], eax
mov dword [ebp - 0x1a4], 0
jmp 0x4adac7
mov ecx, dword [ebp - 0x1a4]
add ecx, 1
mov dword [ebp - 0x1a4], ecx
mov edx, dword [ebp - 0x1a4]
cmp edx, dword [0x4bad7c]
jge 0x4adec8
mov eax, dword [ebp - 0x1a4]
mov ecx, dword [0x4bad84]
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 [0x4bad6c]
mov dword [eax + edx*4], ecx
mov ecx, dword [ebp - 0x1a4]
mov edx, dword [0x4bad88]
mov dword [edx + ecx*4], 0
mov eax, dword [ebp - 0x1a4]
mov ecx, dword [0x4bad8c]
mov dword [ecx + eax*4], 0xffffffff
mov edx, dword [ebp - 0x1a4]
mov eax, dword [0x4bad68]
mov dword [eax + edx*4], 0
jmp 0x4adab8
mov ecx, dword [0x4bad7c]
sar ecx, 1
add ecx, 1
mov dword [0x4b7628], ecx
xor edx, edx
mov dl, byte [0x4bad66]
test edx, edx
jne 0x4adefa
cmp dword [0x4b7628], 6
jae 0x4adef8
mov dword [0x4b7628], 6
jmp 0x4adf0d
cmp dword [0x4b7628], 0x12
jae 0x4adf0d
mov dword [0x4b7628], 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 [0x4bad70], edx
lea eax, [ebp - 0x280]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov cl, byte [0x4bad98]
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 [0x4bad9c]
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 0x4adfd9
cmp dword [ebp - 0x274], 0
jne 0x4adfd9
lea ecx, [ebp - 0x4a4]
push ecx
call fcn.004ad2a2
add esp, 4
and eax, 0xff
test eax, eax
je 0x4adfd9
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 0x4adff8
xor al, al
jmp 0x4ae76c
mov ecx, dword [0x4bad70]
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 0x4ae031
xor al, al
jmp 0x4ae76c
mov dword [ebp - 0x194], 0
lea ecx, [ebp - 0x194]
push ecx
push 0
mov edx, dword [0x4bad70]
mov eax, dword [edx]
push eax
push 0x4ad331
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 [0x4bad70]
push eax
call fcn.004af41d
add esp, 0xc
mov ecx, dword [ebp - 0x19c]
push ecx
mov edx, dword [0x4bad70]
push edx
call fcn.004af4e1
add esp, 8
mov eax, dword [0x4bad70]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, dword [0x4bad70]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DebugActiveProcess]
mov ecx, dword [0x4bad70]
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 [0x4bad70]
push ecx
call fcn.004af41d
add esp, 0xc
lea edx, [ebp - 0x184]
mov dword [ebp - 0x18c], edx
mov byte [ebp - 0x1c], 1
mov eax, dword [0x4bad70]
mov ecx, dword [eax]
push ecx
call fcn.004ad413
add esp, 4
and eax, 0xff
test eax, eax
je 0x4ae76a
push 0x3e8
mov edx, dword [ebp - 0x18c]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForDebugEvent]
test eax, eax
je 0x4ae765
mov dword [ebp - 0x298], str.None
xor eax, eax
mov al, byte [0x4bad64]
test eax, eax
jne 0x4ae1cb
mov ecx, dword [ebp - 0x1c]
and ecx, 0xff
test ecx, ecx
je 0x4ae1cb
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 0x4ae1cb
mov edx, dword [ebp - 0x18c]
mov eax, dword [0x4bad70]
mov ecx, dword [edx + 4]
cmp ecx, dword [eax + 8]
jne 0x4ae746
mov dword [ebp - 0x5bc], 0x80010001
mov edx, dword [ebp - 0x18c]
cmp dword [edx], 1
jne 0x4ae514
mov dword [ebp - 0x298], str.Exception_Debug_Event
xor eax, eax
mov al, byte [0x4bad65]
test eax, eax
je 0x4ae2f4
mov ecx, dword [ebp - 0x18c]
cmp dword [ecx + 0xc], 0x80000001
jne 0x4ae2f4
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 [0x4bad74]
shr ecx, 0xc
mov dword [ebp - 0x5c0], ecx
xor edx, edx
mov dl, byte [0x4bad66]
test edx, edx
je 0x4ae2a7
mov eax, dword [ebp - 0x5c0]
sub eax, 1
test eax, eax
jl 0x4ae282
push 1
mov ecx, dword [ebp - 0x5c0]
sub ecx, 1
push ecx
call fcn.004ae77d
add esp, 8
mov edx, dword [ebp - 0x5c0]
add edx, 1
cmp edx, dword [0x4bad7c]
jge 0x4ae2a7
push 1
mov eax, dword [ebp - 0x5c0]
add eax, 1
push eax
call fcn.004ae77d
add esp, 8
cmp dword [ebp - 0x5c0], 0
jl 0x4ae2ef
mov ecx, dword [ebp - 0x5c0]
cmp ecx, dword [0x4bad7c]
jge 0x4ae2ef
mov edx, dword [ebp - 0x1c]
and edx, 0xff
test edx, edx
je 0x4ae2e5
push 0
mov eax, dword [ebp - 0x5c0]
push eax
call fcn.004ae77d
add esp, 8
and eax, 0xff
test eax, eax
je 0x4ae2ef
mov dword [ebp - 0x5bc], 0x10002
jmp 0x4ae50f
mov ecx, dword [ebp - 0x18c]
cmp dword [ecx + 0xc], 0xc0000005
jne 0x4ae4c6
mov edx, dword [ebp - 0x18c]
cmp dword [edx + 0x5c], 0
je 0x4ae31f
mov dword [ebp - 0x298], str.Access_Violation__first_chance
jmp 0x4ae329
mov dword [ebp - 0x298], str.Access_Violation__last_chance
mov byte [ebp - 0x5c8], 0
xor eax, eax
mov al, byte [0x4bad94]
test eax, eax
jne 0x4ae427
xor ecx, ecx
mov cl, byte [0x4bad65]
test ecx, ecx
je 0x4ae427
mov edx, dword [ebp - 0x1c]
and edx, 0xff
test edx, edx
je 0x4ae427
mov eax, dword [ebp - 0x18c]
mov ecx, dword [eax + 0x24]
mov dword [ebp - 0x5d0], ecx
mov edx, dword [ebp - 0x5d0]
sub edx, dword [0x4bad74]
shr edx, 0xc
mov dword [ebp - 0x5cc], edx
xor eax, eax
mov al, byte [0x4bad66]
test eax, eax
je 0x4ae3d5
mov ecx, dword [ebp - 0x5cc]
sub ecx, 1
test ecx, ecx
jl 0x4ae3b0
push 1
mov edx, dword [ebp - 0x5cc]
sub edx, 1
push edx
call fcn.004ae77d
add esp, 8
mov eax, dword [ebp - 0x5cc]
add eax, 1
cmp eax, dword [0x4bad7c]
jge 0x4ae3d5
push 1
mov ecx, dword [ebp - 0x5cc]
add ecx, 1
push ecx
call fcn.004ae77d
add esp, 8
cmp dword [ebp - 0x5cc], 0
jl 0x4ae412
mov edx, dword [ebp - 0x5cc]
cmp edx, dword [0x4bad7c]
jge 0x4ae412
push 0
mov eax, dword [ebp - 0x5cc]
push eax
call fcn.004ae77d
add esp, 8
and eax, 0xff
test eax, eax
je 0x4ae412
mov dword [ebp - 0x5bc], 0x10002
jmp 0x4ae425
mov ecx, dword [ebp - 0x18c]
cmp dword [ecx + 0x5c], 0
jne 0x4ae425
mov byte [ebp - 0x5c8], 1
jmp 0x4ae43a
mov edx, dword [ebp - 0x18c]
cmp dword [edx + 0x5c], 0
jne 0x4ae43a
mov byte [ebp - 0x5c8], 1
mov eax, dword [ebp - 0x5c8]
and eax, 0xff
test eax, eax
je 0x4ae4c4
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 0x4ae498
mov dword [ebp - 0x6d4], str.write_to
jmp 0x4ae4a2
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.004af77d
add esp, 0x10
jmp 0x4ae50f
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 0x4ae505
cmp dword [ebp - 0x6d8], 0xc0000008
je 0x4ae505
jmp 0x4ae50f
mov dword [ebp - 0x5bc], 0x10002
jmp 0x4ae723
mov edx, dword [ebp - 0x18c]
cmp dword [edx], 2
jne 0x4ae545
mov dword [ebp - 0x298], 0x4b7814
mov eax, dword [0x4b7624]
add eax, 1
mov dword [0x4b7624], eax
mov dword [ebp - 0x5bc], 0x10002
jmp 0x4ae723
mov ecx, dword [ebp - 0x18c]
cmp dword [ecx], 4
jne 0x4ae578
mov dword [ebp - 0x298], str.ExitThread
mov edx, dword [0x4b7624]
sub edx, 1
mov dword [0x4b7624], edx
mov dword [ebp - 0x5bc], 0x10002
jmp 0x4ae723
mov eax, dword [ebp - 0x18c]
cmp dword [eax], 5
jne 0x4ae59c
mov dword [ebp - 0x298], 0x4b7860
mov dword [ebp - 0x5bc], 0x10002
jmp 0x4ae723
mov ecx, dword [ebp - 0x18c]
cmp dword [ecx], 8
jne 0x4ae679
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.004af8ad
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 [0x4bad70]
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 0x4ae639
cmp dword [ebp - 0x20], 0
je 0x4ae637
mov edx, dword [ebp - 0x5e4]
push edx
call dword [ebp - 0x20]
jmp 0x4ae64f
cmp dword [ebp - 0x1a0], 0
je 0x4ae64f
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.004af8a2
add esp, 4
mov dword [ebp - 0x5bc], 0x10002
jmp 0x4ae723
mov eax, dword [ebp - 0x18c]
cmp dword [eax], 9
jne 0x4ae693
mov dword [ebp - 0x298], str.RIP_Event
jmp 0x4ae723
mov ecx, dword [ebp - 0x18c]
cmp dword [ecx], 3
jne 0x4ae719
xor edx, edx
mov dl, byte [0x4b762c]
test edx, edx
je 0x4ae717
mov byte [0x4b762c], 0
mov eax, dword [0x4b7248]
xor eax, dword [0x4b7238]
push eax
mov ecx, dword [0x4bad70]
mov edx, dword [ecx + 8]
push edx
push str._X::DA_08X
lea eax, [ebp - 0x39c]
push eax
call fcn.004b007f
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 0x4ae6fd
xor al, al
jmp 0x4ae76c
mov dword [ebp - 0x5bc], 0x10002
mov edx, dword [0x4bad70]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x4ae723
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 0x4ae765
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 0x4ae11a
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