Function at 0x4a2600
Capabilities:
Create process on windows
Get file size

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4f6190
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebp
mov ebp, dword [esp + 0x30]
test ebp, ebp
jne 0x4a2634
or eax, 0xffffffff
pop ebp
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
push edi
lea eax, [esp + 0x10]
push ebp
push eax
call fcn.004a1eb0
add esp, 8
mov edi, dword [esp + 0x10]
mov eax, dword [edi - 0xc]
test eax, eax
mov dword [esp + 0x2c], 0
jge 0x4a2660
push 0x80070057
call fcn.004021ad
cmp word [edi], 0x36
je 0x4a269c
lea eax, [edi - 0x10]
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a2688
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop edi
or eax, 0xffffffff
pop ebp
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
push ebx
push esi
lea eax, [esp + 0x10]
push 0
push eax
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0x24], 1
call fcn.004a1b90
push str.takeown.bat
mov byte [esp + 0x40], 1
call dword [sym.imp.MSVCR71.dll_wcslen]
add esp, 0xc
push eax
push str.takeown.bat
lea ecx, [esp + 0x18]
call fcn.004a1a30
mov ebx, dword [esp + 0x10]
push 0
push 0
push 0
push ebx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov esi, dword [sym.imp.MSVCR71.dll__wcsicmp]
push str.6.0.6000.16386
push edi
call esi
add esp, 8
test eax, eax
jne 0x4a2713
mov dword [esp + 0x3c], 0x3f47d
jmp 0x4a2792
push str.6.0.6000.16567
push edi
call esi
add esp, 8
test eax, eax
jne 0x4a272c
mov dword [esp + 0x3c], 0x3f479
jmp 0x4a2792
push str.6.0.6000.16627
push edi
call esi
add esp, 8
test eax, eax
jne 0x4a2745
mov dword [esp + 0x3c], 0x3f4b9
jmp 0x4a2792
push str.6.0.6000.20689
push edi
call esi
add esp, 8
test eax, eax
jne 0x4a275e
mov dword [esp + 0x3c], 0x3f548
jmp 0x4a2792
push str.6.0.6000.20752
push edi
call esi
add esp, 8
test eax, eax
jne 0x4a2777
mov dword [esp + 0x3c], 0x3f5ba
jmp 0x4a2792
push str.6.0.6001.18000
push edi
call esi
add esp, 8
test eax, eax
jne 0x4a2943
mov dword [esp + 0x3c], 0x4c59e
mov esi, dword [esp + 0x40]
push 0
push 0x80
mov eax, esi
neg eax
push 3
sbb eax, eax
push 0
and eax, 0x40000000
push 1
add eax, 0x80000000
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4a2928
test ebp, ebp
je 0x4a2928
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x20], eax
xor eax, eax
test esi, esi
setne al
push 0
push 0
push 0
lea eax, [eax + eax + 2]
push eax
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
test ebx, ebx
je 0x4a28bc
cmp ebx, 0xffffffff
je 0x4a28bc
xor eax, eax
test esi, esi
setne al
push 0
push 0
push 0
lea eax, [eax + eax + 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x4a28b1
mov ecx, dword [esp + 0x3c]
lea eax, [edi + ecx]
cmp byte [eax - 2], 0xfa
jne 0x4a28aa
cmp byte [eax - 3], 0x83
jne 0x4a28aa
test esi, esi
jne 0x4a285d
cmp byte [eax], 0x90
je 0x4a2852
movzx edx, byte [eax - 1]
mov dword [esp + 0x14], edx
jmp 0x4a28aa
call fcn.004a0d60
mov dword [esp + 0x14], eax
jmp 0x4a28aa
mov ecx, 0x90909090
mov dword [eax], ecx
mov word [eax + 4], cx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x28]
push eax
push ecx
push edi
call dword [sym.imp.imagehlp.dll_CheckSumMappedFile]
push edi
call dword [sym.imp.imagehlp.dll_ImageNtHeader]
test eax, eax
je 0x4a2899
mov edx, dword [eax + 0x58]
cmp edx, dword [esp + 0x24]
jne 0x4a2899
mov ecx, dword [esp + 0x28]
mov dword [eax + 0x58], ecx
push esi
call fcn.004a0dc0
add esp, 4
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], esi
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x18]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4a293f
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x34], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a28ee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
add edi, 0xfffffff0
mov dword [esp + 0x34], 0xffffffff
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4a2910
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
pop esi
pop ebx
pop edi
mov eax, 0xfffffffe
pop ebp
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
lea eax, [ebx - 0x10]
mov byte [esp + 0x34], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x4a28e4
mov ebx, dword [esp + 0x10]
lea eax, [ebx - 0x10]
mov byte [esp + 0x34], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a2962
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
add edi, 0xfffffff0
mov dword [esp + 0x34], 0xffffffff
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4a2984
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
pop esi
pop ebx
pop edi
pop ebp
mov dword fs:[0], ecx
add esp, 0x28
ret