Function at 0x449140
Capabilities:
Check os version
Create thread
Resume thread
Set environment variable
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f0098
mov eax, dword fs:[0]
push eax
sub esp, 0x13c
mov eax, dword [0x513f3c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 3
push 0
call fcn.00486aa0
add esp, 8
push 0x5168f8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x40], eax
push 0x5168d8
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x4491a8
push 1
push 0x100
call dword [ebp - 0x38]
mov dword [ebp - 0xfc], 0x94
lea ecx, [ebp - 0xfc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0xec], 2
jne 0x4491d1
mov byte [0x52dff9], 1
jmp 0x4491ed
cmp dword [ebp - 0xf8], 4
jne 0x4491e8
cmp dword [ebp - 0xf4], 0x5a
jb 0x4491e8
call fcn.00449d50
call fcn.00449e30
movzx edx, byte [0x52dff9]
test edx, edx
jne 0x4491fe
cli
not esp
not esp
sti
mov eax, dword [0x52e044]
mov ecx, dword [0x52e044]
mov edx, dword [eax + 0x38]
xor edx, dword [ecx + 0x68]
mov eax, dword [0x52e044]
xor edx, dword [eax + 0xc]
and edx, 4
je 0x449223
mov byte [0x52dff5], 1
mov ecx, dword [0x52e044]
mov edx, dword [0x52e044]
mov eax, dword [ecx + 0x38]
xor eax, dword [edx + 0x68]
mov ecx, dword [0x52e044]
xor eax, dword [ecx + 0xc]
and eax, 0x200
je 0x44924c
mov byte [0x52dff7], 1
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edx, dword [0x52e044]
mov ecx, dword [0x52e044]
mov edx, dword [edx + 0x6c]
xor edx, dword [ecx + 0x68]
mov ecx, dword [0x52e044]
xor edx, dword [ecx + 0x20]
add eax, edx
mov dword [0x52e004], eax
mov edx, dword [0x52e044]
mov eax, dword [0x52e044]
mov ecx, dword [edx + 0x50]
xor ecx, dword [eax + 0x60]
mov edx, dword [0x52e044]
xor ecx, dword [edx + 0xc]
add ecx, 0xfff
shr ecx, 0xc
mov dword [0x52e018], ecx
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x30], 0xffffffff
push 0
call fcn.0044e170
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, eax
mov eax, dword [0x52e044]
xor esi, dword [eax + 0x20]
push esi
lea ecx, [ebp - 0x118]
call fcn.00446610
lea ecx, [ebp - 0x118]
call fcn.00446a90
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x114], 0xc
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x10c], 1
push 0
push 0x1000
push 0
push 4
lea ecx, [ebp - 0x114]
push ecx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x44932b
xor al, al
jmp 0x449894
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0x104], eax
mov dword [ebp - 0x108], 0
push 2
push 1
push 0
lea edx, [ebp - 0x108]
push edx
mov eax, dword [ebp - 0x104]
push eax
mov ecx, dword [ebp - 0x104]
push ecx
mov edx, dword [ebp - 0x104]
push edx
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 0x1000
push 0
push 0
push 2
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [0x52e014], eax
movzx ecx, byte [0x52e190]
test ecx, ecx
je 0x4493a1
lea ecx, [ebp - 0x118]
call fcn.00446a90
mov dword [ebp - 0x140], eax
jmp 0x4493aa
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x140], edx
mov eax, dword [0x52e044]
mov ecx, dword [ebp - 0x140]
xor ecx, dword [eax + 0x60]
mov edx, dword [0x52e044]
xor ecx, dword [edx + 0x2c]
mov eax, dword [0x52e044]
xor ecx, dword [eax + 0x10]
mov edx, dword [0x52e044]
xor ecx, dword [edx + 0x5c]
mov eax, dword [0x52e044]
xor ecx, dword [eax + 0x3c]
mov edx, dword [0x52e014]
mov dword [edx], ecx
mov eax, dword [0x52e014]
mov ecx, dword [ebp - 0x108]
mov dword [eax + 4], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, dword [0x52e014]
mov dword [edx + 8], eax
mov eax, dword [0x52e014]
mov dword [eax + 0x20], 0
mov ecx, dword [0x52e014]
add ecx, 0xe00
mov dword [0x52e034], ecx
mov edx, dword [0x52e034]
mov byte [edx], 0
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x124], eax
lea ecx, [ebp - 0x124]
push ecx
lea edx, [ebp - 0x2c]
push edx
call fcn.0044b6a0
add esp, 8
mov dword [ebp - 0x144], eax
mov eax, dword [ebp - 0x144]
mov dword [ebp - 0x148], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x148]
call fcn.00456d00
push eax
push 0x5168d4
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004423e0
xor ecx, ecx
mov eax, dword [0x52e018]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a0e3c
add esp, 4
mov dword [ebp - 0x128], eax
mov eax, dword [ebp - 0x128]
mov dword [0x52e020], eax
mov eax, dword [0x52e018]
shl eax, 4
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a0e3c
add esp, 4
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x12c]
mov dword [0x52e000], eax
xor ecx, ecx
mov eax, dword [0x52e018]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a0e3c
add esp, 4
mov dword [ebp - 0x130], eax
mov eax, dword [ebp - 0x130]
mov dword [0x52e024], eax
xor ecx, ecx
mov eax, dword [0x52e018]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a0e3c
add esp, 4
mov dword [ebp - 0x134], eax
mov eax, dword [ebp - 0x134]
mov dword [0x52e028], eax
push 0x1000
call fcn.004a0e3c
add esp, 4
mov dword [ebp - 0x138], eax
mov ecx, dword [ebp - 0x138]
mov dword [0x52e02c], ecx
xor ecx, ecx
mov eax, dword [0x52e018]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a0e3c
add esp, 4
mov dword [ebp - 0x13c], eax
mov eax, dword [ebp - 0x13c]
mov dword [0x52dffc], eax
mov ecx, dword [0x52e044]
mov edx, dword [ecx + 0x2c]
xor edx, dword [ebp - 0x5c]
push edx
lea ecx, [ebp - 0x4c]
call fcn.00446610
mov dword [ebp - 0x11c], 0
jmp 0x4495be
mov eax, dword [ebp - 0x11c]
add eax, 1
mov dword [ebp - 0x11c], eax
mov ecx, dword [0x52e018]
shl ecx, 4
cmp dword [ebp - 0x11c], ecx
jge 0x449615
lea ecx, [ebp - 0x4c]
call fcn.00446a90
mov edx, dword [0x52e044]
xor eax, dword [edx + 0x60]
mov ecx, dword [0x52e044]
xor eax, dword [ecx + 0x2c]
mov edx, dword [0x52e044]
xor eax, dword [edx + 0x10]
mov ecx, dword [0x52e044]
xor eax, dword [ecx + 0x5c]
mov edx, dword [0x52e044]
xor eax, dword [edx + 0x3c]
mov ecx, dword [ebp - 0x11c]
mov edx, dword [0x52e000]
mov dword [edx + ecx*4], eax
jmp 0x4495af
mov dword [ebp - 0x120], 0
jmp 0x449630
mov eax, dword [ebp - 0x120]
add eax, 1
mov dword [ebp - 0x120], eax
mov ecx, dword [ebp - 0x120]
cmp ecx, dword [0x52e018]
jge 0x44968a
mov edx, dword [ebp - 0x120]
mov eax, dword [0x52e020]
mov dword [eax + edx*4], 0xffffffff
mov ecx, dword [ebp - 0x120]
mov edx, dword [0x52e024]
mov dword [edx + ecx*4], 0
mov eax, dword [ebp - 0x120]
mov ecx, dword [0x52e028]
mov dword [ecx + eax*4], 0xffffffff
mov edx, dword [ebp - 0x120]
mov eax, dword [0x52dffc]
mov dword [eax + edx*4], 0
jmp 0x449621
mov ecx, dword [0x52e018]
sar ecx, 1
add ecx, 1
mov dword [0x5129d8], ecx
movzx edx, byte [0x52dff6]
test edx, edx
jne 0x4496bb
cmp dword [0x5129d8], 6
jae 0x4496b9
mov dword [0x5129d8], 6
jmp 0x4496ce
cmp dword [0x5129d8], 0x12
jae 0x4496ce
mov dword [0x5129d8], 0x12
push 0x5168c8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x60], eax
push 0x5168b4
mov eax, dword [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x48], eax
push 0x5168a0
mov ecx, dword [ebp - 0x60]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x50], eax
mov edx, dword [0x52e044]
mov eax, dword [0x52e044]
mov ecx, dword [edx + 0x4c]
xor ecx, dword [eax + 0x68]
mov edx, dword [0x52e044]
xor ecx, dword [edx + 0xc]
and ecx, 2
je 0x449724
call fcn.00484490
movzx eax, byte [ebp + 8]
push eax
call fcn.00449a30
add esp, 4
movzx ecx, al
test ecx, ecx
jne 0x44973f
xor al, al
jmp 0x449894
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x100], eax
mov edx, dword [ebp - 0x100]
mov eax, dword [ebp - 0x100]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x58], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, dword [ebp - 0x58]
add eax, dword [ecx + 0x28]
mov dword [ebp - 0x34], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edx, dword [ebp - 0x58]
sub eax, dword [edx + 0x34]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x34]
push eax
push 1
mov ecx, dword [0x5129d0]
push ecx
call fcn.004498b0
add esp, 0xc
mov edx, dword [ebp - 0x34]
push edx
mov eax, dword [0x5129d0]
push eax
call fcn.00449990
add esp, 8
mov ecx, dword [0x5129d0]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [0x5129d0]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DebugActiveProcess]
mov dword [ebp - 0x54], eax
mov edx, dword [0x5129d0]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov ecx, dword [ebp - 0x34]
push ecx
push 0
mov edx, dword [0x5129d0]
push edx
call fcn.004498b0
add esp, 0xc
mov eax, dword [0x5129d0]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [0x5129d0]
mov eax, dword [edx + 0xc]
push eax
call fcn.00448e90
add esp, 8
mov dword [ebp - 0x3c], 0
lea ecx, [ebp - 0x3c]
push ecx
push 0
mov edx, dword [0x5129d0]
mov eax, dword [edx]
push eax
push 0x4461f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx ecx, byte [ebp + 8]
test ecx, ecx
je 0x449844
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push 0x52dfc8
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea edx, [ebp - 0x4c]
push edx
mov eax, dword [ebp - 0x44]
push eax
call fcn.00446c70
add esp, 8
movzx ecx, al
test ecx, ecx
jne 0x44986a
xor al, al
jmp 0x449894
mov edx, dword [0x52e014]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [0x52e014], 0
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x30], 0xffffffff
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ae0b3
mov esp, ebp
pop ebp
ret