Function at 0x42a950
Capabilities:
Check os version
Create process on windows
Delete file
Self delete

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov edx, dword [ebp + 8]
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], ebx
mov eax, dword [edx]
test eax, eax
mov dword [ebp - 8], esi
mov edi, dword [ebp + 0xc]
je 0x42a977
and byte [edi + 0x172], 0xc7
mov eax, dword [edx]
cmp eax, 6
ja case.default.0x42a984
mov byte [ebp - 4], 0xa
jmp dword [eax*4 + 0x4d4098]
test byte [edi + 0x172], 4
je case.0x42a984.2
mov eax, 0x2e
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
movzx eax, byte [edi + 0x172]
test al, 4
jne 0x42a994
or eax, 0x20
mov byte [edi + 0x172], al
jmp 0x42aa44
movzx eax, byte [edi + 0x172]
test al, 4
jne 0x42a994
or eax, 0x10
mov byte [edi + 0x172], al
jmp 0x42aa44
test byte [edi + 0x177], 0x10
jne 0x42a994
movzx ecx, byte [edi + 0x172]
or ecx, 8
mov byte [edi + 0x172], cl
mov eax, dword [edx]
cmp eax, 5
jne 0x42a9f8
or byte [edi + 0x172], 0x10
jmp 0x42aa44
cmp eax, 6
jne 0x42aa44
or ecx, 0x20
mov byte [edi + 0x172], cl
jmp 0x42aa44
test byte [edi + 0x172], 4
je 0x42aa44
mov eax, 0x2e
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
cmp dword [0x4f9460], 0
je 0x42aa44
movzx eax, byte [edi + 0x178]
test eax, 0x80
je 0x42aa44
mov eax, dword [0x4f6f80]
test eax, eax
jne 0x42aa44
or byte [edi + 0x172], 8
and byte [edi + 0x176], 0xfd
test byte [edi + 0x179], 0x10
jne 0x42aa58
xor esi, esi
jmp 0x42aa6a
push edi
call fcn.00444250
add esp, 4
mov esi, eax
and byte [edi + 0x179], 0xef
cmp byte [edi + 0x15e], 1
je 0x42b039
test byte [edi + 0x172], 0x40
je 0x42aaa5
mov eax, dword [edi + 0x7c]
test eax, eax
je 0x42aa96
mov byte [eax + 0x1e], 0
mov eax, dword [edi + 0x7c]
test eax, eax
je 0x42aa96
mov byte [eax + 0x1f], 0
push edi
call fcn.00417100
add esp, 4
test eax, eax
je 0x42aaa5
mov esi, eax
cmp dword [0x4f9460], 0
je 0x42ab17
movzx edx, byte [edi + 0x178]
test edx, 0x80
je 0x42ab17
mov eax, dword [0x4f6f80]
test eax, eax
jne 0x42ab99
mov eax, dword [edi + 0x144]
test eax, 0xfffffffe
je 0x42aadc
cmp eax, 2
jne 0x42aaee
test byte [edi + 0x179], 2
je 0x42aea9
jmp 0x42ab99
movzx eax, byte [edi + 0x172]
not eax
and eax, 8
shr eax, 3
push eax
push dword [edi + 0xe4]
call fcn.004b8d60
add esp, 8
cmp eax, 0xffffffff
je 0x42aed0
jmp 0x42ab89
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
cmp eax, dword [edi + 0xe4]
je 0x42ab6a
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
cmp eax, dword [edi + 0xe4]
je 0x42ab6a
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
cmp eax, dword [edi + 0xe4]
je 0x42ab6a
xor eax, eax
push eax
push eax
push edi
call fcn.004185c0
add esp, 0xc
push dword [edi + 0xe4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x42aee1
jmp 0x42ab89
cmp dword [edi + 0x90], 0
je 0x42ab89
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, dword [edi + 0xe4]
cmp ecx, eax
je 0x42afaf
mov eax, dword [0x4f9460]
test eax, eax
je 0x42aba5
movzx edx, byte [edi + 0x178]
test edx, 0x80
jne 0x42adb2
push 0x30c
push 0
lea eax, [ebp - 0x40c]
push eax
call fcn.004b4870
add esp, 0xc
xor edx, edx
mov eax, 0x40
mov dword [ebp - 0x18], edx
mov dword [ebp + eax - 0x5c], edx
mov dword [ebp + eax - 0x60], edx
mov dword [ebp + eax - 0x64], edx
mov dword [ebp + eax - 0x68], edx
sub eax, 0x10
jne 0x42abc5
movzx eax, byte [edi + 0x172]
test al, 0x20
mov dword [ebp - 0x58], 0x44
je 0x42ac83
test al, 8
jne 0x42ac0a
push dword [edi + 0x60]
lea eax, [ebp - 0x40c]
push eax
call fcn.00461cc0
xor edx, edx
add esp, 8
jmp 0x42ac2d
push dword [edi + 0x60]
push dword [edi + 0x60]
push str._s__DEL__s
lea eax, [ebp - 0x40c]
push eax
call fcn.00461cc0
xor edx, edx
add esp, 0x10
and byte [edi + 0x172], 0xf7
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x58]
push ecx
push edx
push edx
push 0x4000000
push 1
push edx
push edx
lea ebx, [ebp - 0x40c]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
xor edx, edx
test eax, eax
je 0x42af14
mov ebx, edx
push 0xffffffffffffffff
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor edx, edx
test eax, eax
je 0x42aefc
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, byte [edi + 0x172]
xor edx, edx
jmp 0x42ac85
mov ebx, edx
test al, 0x10
jne 0x42ac96
mov edx, eax
and edx, 8
shr edx, 3
jmp 0x42ad93
push str.FOR_DEFAULT_PRINT_DEVICE
call fcn.004627a0
xor edx, edx
add esp, 4
test eax, eax
mov ecx, 0x4d40e0
mov dword [ebp - 0x100], 0x94
je 0x42acba
mov ecx, eax
mov dword [ebp - 0x5c], ecx
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
xor edx, edx
cmp dword [ebp - 0xf0], 1
jne 0x42acee
push dword [ebp - 0x5c]
push dword [edi + 0x60]
push str.Command.com__C_COPY___s___s
lea eax, [ebp - 0x40c]
push eax
call fcn.00461cc0
jmp 0x42ad05
push dword [ebp - 0x5c]
push dword [edi + 0x60]
push str.Cmd.exe__C_COPY___s___s
lea eax, [ebp - 0x40c]
push eax
call fcn.00461cc0
xor edx, edx
add esp, 0x10
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x58]
push ecx
push edx
push edx
push 0x4000000
push 1
push edx
push edx
lea eax, [ebp - 0x40c]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
xor edx, edx
test eax, eax
je 0x42af8a
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
test eax, eax
je 0x42af72
push 0xffffffffffffffff
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor edx, edx
cmp eax, 0xffffffff
je 0x42af5a
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
test eax, eax
je 0x42af42
movzx eax, byte [edi + 0x172]
test al, 8
je 0x42adac
cmp dword [edi + 0xe8], 0
je 0x42ad97
and eax, 0xfffffff7
mov ebx, 5
mov byte [edi + 0x172], al
test edx, edx
je 0x42adac
test al, 4
jne 0x42adac
push dword [edi + 0x60]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x42af2c
test ebx, ebx
je 0x42adb2
mov esi, ebx
push dword [edi + 0x60]
call fcn.00417390
add esp, 4
test eax, eax
je 0x42adc5
mov esi, eax
jmp 0x42add5
xor eax, eax
mov dword [edi + 0x60], str._Unknown_
mov word [edi + 0x15a], ax
push dword [edi + 0x38]
call fcn.00417390
add esp, 4
test eax, eax
je 0x42ade8
mov esi, eax
jmp 0x42adef
mov dword [edi + 0x38], 0
test byte [edi + 0x172], 0x40
je 0x42ae12
push dword [edi + 0x58]
call fcn.00417390
add esp, 4
test eax, eax
je 0x42ae0b
mov esi, eax
jmp 0x42ae12
mov dword [edi + 0x58], 0
movzx eax, byte [edi + 0x175]
test eax, 0x80
jne 0x42ae87
mov eax, dword [edi + 0x2c]
lea edx, [edi + 0x18]
mov ebx, dword [edi + 0x28]
mov dword [ebp - 0x14], eax
test byte [edi + 0x171], 0x18
je 0x42ae6c
push 0x170
push 0
mov eax, dword [edi + 0x100]
push edx
mov dword [ebp - 0x5c], eax
call fcn.004b4870
add esp, 0xc
movzx eax, byte [edi + 0x171]
and eax, 0xffffffe7
mov edx, dword [ebp - 0x5c]
or eax, 8
mov byte [edi + 0x171], al
mov dword [edi + 0x100], edx
jmp 0x42ae7c
push 0x170
push 0
push edx
call fcn.004b4870
add esp, 0xc
mov eax, dword [ebp - 0x14]
mov dword [edi + 0x28], ebx
mov dword [edi + 0x2c], eax
jmp 0x42ae8e
and byte [edi + 0x171], 0xdf
mov eax, esi
mov ebx, dword [ebp - 0x10]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
mov eax, 0x30
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
call fcn.004b9010
movzx edx, byte [edi + 0x172]
not edx
and edx, 8
shr edx, 3
push edx
push eax
call fcn.004b8d60
add esp, 8
cmp eax, 0xffffffff
jne 0x42ab89
and byte [edi + 0x172], 0xf7
mov eax, dword [0x4f9460]
jmp 0x42ab8e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0xe8], eax
mov esi, 0x1c
mov eax, dword [0x4f9460]
jmp 0x42ab8e
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
mov dword [edi + 0xe8], eax
mov ebx, 0x1c
jmp 0x42ac6f
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
mov dword [edi + 0xe8], eax
mov ebx, 0x1c
jmp 0x42ac5a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0xe8], eax
mov ebx, 0x1c
jmp 0x42adb0
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
mov dword [edi + 0xe8], eax
mov ebx, 0x1c
jmp 0x42ad71
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
mov dword [edi + 0xe8], eax
mov ebx, 0x1c
jmp 0x42ad5e
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
mov dword [edi + 0xe8], eax
mov ebx, 0x1c
jmp 0x42ad48
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0xe8], eax
mov ebx, 0x1c
movzx eax, byte [edi + 0x172]
mov edx, eax
and edx, 8
shr edx, 3
jmp 0x42ad93
push 1
mov eax, dword [edi + 0x90]
lea ebx, [ebp - 0x410]
push ebx
neg eax
cdq
push eax
mov dword [ebp - 0x414], eax
mov dword [ebp - 0x410], edx
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x414], eax
cmp eax, 0xffffffff
je 0x42b00b
mov ecx, dword [ebp - 0x410]
mov edx, 0xffffffff
sub eax, edx
sub ecx, edx
or eax, ecx
je 0x42aee1
mov dword [edi + 0x90], 0
mov eax, dword [0x4f9460]
jmp 0x42ab8e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x42b02b
mov eax, 0xffffffff
mov dword [ebp - 0x414], eax
mov dword [ebp - 0x410], eax
jmp 0x42aee1
mov eax, dword [ebp - 0x414]
mov ecx, dword [ebp - 0x410]
jmp 0x42afe6
mov eax, dword [edi + 0x7c]
test eax, eax
je 0x42aa77
cmp byte [eax + 0x1c], 0
jne 0x42b054
cmp byte [eax + 0x1d], 0
je 0x42aa77
mov edx, dword [eax + 0x10]
test edx, edx
push 1
jne 0x42b05f
mov edx, edi
lea eax, [ebp - 4]
push eax
push edx
call fcn.004185c0
add esp, 0xc
cmp eax, 0xffffffff
je 0x42b094
mov eax, dword [edi + 0x7c]
test eax, eax
je 0x42aa77
mov byte [eax + 0x1c], 0
mov eax, dword [edi + 0x7c]
test eax, eax
je 0x42aa77
mov byte [eax + 0x1d], 0
jmp 0x42aa77
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0xe8], eax
mov esi, 0x1c
jmp 0x42b071