Function at 0x441670
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 0x441697
and byte [edi + 0x16a], 0xc7
mov eax, dword [edx]
cmp eax, 6
ja case.default.0x4416a4
mov byte [ebp - 4], 0xa
jmp dword [eax*4 + 0x4e77c8]
test byte [edi + 0x16a], 4
je case.0x4416a4.2
mov eax, 0x2e
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
movzx eax, byte [edi + 0x16a]
test al, 4
jne 0x4416b4
or eax, 0x20
mov byte [edi + 0x16a], al
jmp 0x441764
movzx eax, byte [edi + 0x16a]
test al, 4
jne 0x4416b4
or eax, 0x10
mov byte [edi + 0x16a], al
jmp 0x441764
test byte [edi + 0x16f], 0x10
jne 0x4416b4
movzx ecx, byte [edi + 0x16a]
or ecx, 8
mov byte [edi + 0x16a], cl
mov eax, dword [edx]
cmp eax, 5
jne 0x441718
or byte [edi + 0x16a], 0x10
jmp 0x441764
cmp eax, 6
jne 0x441764
or ecx, 0x20
mov byte [edi + 0x16a], cl
jmp 0x441764
test byte [edi + 0x16a], 4
je 0x441764
mov eax, 0x2e
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
cmp dword [0x5115c0], 0
je 0x441764
movzx eax, byte [edi + 0x170]
test eax, 0x80
je 0x441764
mov eax, dword [0x50bce0]
test eax, eax
jne 0x441764
or byte [edi + 0x16a], 8
and byte [edi + 0x16e], 0xfd
test byte [edi + 0x171], 0x10
jne 0x441778
xor esi, esi
jmp 0x44178a
push edi
call fcn.0044e8a0
add esp, 4
mov esi, eax
and byte [edi + 0x171], 0xef
cmp byte [edi + 0x156], 1
je 0x441d5c
test byte [edi + 0x16a], 0x40
je 0x4417c5
mov eax, dword [edi + 0x7c]
test eax, eax
je 0x4417b6
mov byte [eax + 0x1e], 0
mov eax, dword [edi + 0x7c]
test eax, eax
je 0x4417b6
mov byte [eax + 0x1f], 0
push edi
call fcn.004327b0
add esp, 4
test eax, eax
je 0x4417c5
mov esi, eax
cmp dword [0x5115c0], 0
je 0x44183c
movzx eax, byte [edi + 0x170]
test eax, 0x80
je 0x44183c
mov edx, dword [0x50bce0]
test edx, edx
jne 0x4418be
mov ecx, dword [edi + 0x140]
cmp ecx, 0x20
jae 0x441813
mov edx, 1
shl edx, cl
test dl, 7
je 0x441813
test byte [edi + 0x171], 2
je 0x441bcc
jmp 0x4418be
movzx eax, byte [edi + 0x16a]
not eax
and eax, 8
shr eax, 3
push eax
push dword [edi + 0xe4]
call fcn.004cd7a0
add esp, 8
cmp eax, 0xffffffff
je 0x441bf3
jmp 0x4418ae
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
cmp eax, dword [edi + 0xe4]
je 0x44188f
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
cmp eax, dword [edi + 0xe4]
je 0x44188f
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
cmp eax, dword [edi + 0xe4]
je 0x44188f
xor eax, eax
push eax
push eax
push edi
call fcn.0042d970
add esp, 0xc
push dword [edi + 0xe4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x441c04
jmp 0x4418ae
cmp dword [edi + 0x90], 0
je 0x4418ae
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, dword [edi + 0xe4]
cmp ecx, eax
je 0x441cd2
mov eax, dword [0x5115c0]
test eax, eax
je 0x4418c9
movzx eax, byte [edi + 0x170]
test eax, 0x80
jne 0x441ad5
push 0x30c
push 0
lea eax, [ebp - 0x40c]
push eax
call fcn.004c9070
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 0x4418e9
movzx eax, byte [edi + 0x16a]
test al, 0x20
mov dword [ebp - 0x58], 0x44
je 0x4419a7
test al, 8
jne 0x44192e
push dword [edi + 0x60]
lea eax, [ebp - 0x40c]
push eax
call fcn.00473880
xor edx, edx
add esp, 8
jmp 0x441951
push dword [edi + 0x60]
push dword [edi + 0x60]
push str._s__DEL__s
lea eax, [ebp - 0x40c]
push eax
call fcn.00473880
xor edx, edx
add esp, 0x10
and byte [edi + 0x16a], 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 0x441c37
mov ebx, edx
push 0xffffffffffffffff
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor edx, edx
test eax, eax
je 0x441c1f
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, byte [edi + 0x16a]
xor edx, edx
jmp 0x4419a9
mov ebx, edx
test al, 0x10
jne 0x4419ba
mov edx, eax
and edx, 8
shr edx, 3
jmp 0x441ab6
push str.FOR_DEFAULT_PRINT_DEVICE
call fcn.00473f30
xor edx, edx
add esp, 4
test eax, eax
mov ecx, 0x4e7810
mov dword [ebp - 0x100], 0x94
jne 0x4419de
mov eax, ecx
mov dword [ebp - 0x5c], eax
lea ecx, [ebp - 0x100]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [ebp - 0x5c]
xor edx, edx
cmp dword [ebp - 0xf0], 1
jne 0x441a13
push eax
push dword [edi + 0x60]
push str.Command.com__C_COPY___s___s
lea eax, [ebp - 0x40c]
push eax
call fcn.00473880
jmp 0x441a28
push eax
push dword [edi + 0x60]
push str.Cmd.exe__C_COPY___s___s
lea eax, [ebp - 0x40c]
push eax
call fcn.00473880
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 0x441cad
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
test eax, eax
je 0x441c95
push 0xffffffffffffffff
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor edx, edx
cmp eax, 0xffffffff
je 0x441c7d
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
test eax, eax
je 0x441c65
movzx eax, byte [edi + 0x16a]
test al, 8
je 0x441acf
cmp dword [edi + 0xe8], 0
je 0x441aba
and eax, 0xfffffff7
mov ebx, 5
mov byte [edi + 0x16a], al
test edx, edx
je 0x441acf
test al, 4
jne 0x441acf
push dword [edi + 0x60]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x441c4f
test ebx, ebx
je 0x441ad5
mov esi, ebx
push dword [edi + 0x60]
call fcn.00429c10
add esp, 4
test eax, eax
je 0x441ae8
mov esi, eax
jmp 0x441af8
xor eax, eax
mov dword [edi + 0x60], str._Unknown_
mov word [edi + 0x152], ax
push dword [edi + 0x38]
call fcn.00429c10
add esp, 4
test eax, eax
je 0x441b0b
mov esi, eax
jmp 0x441b12
mov dword [edi + 0x38], 0
test byte [edi + 0x16a], 0x40
je 0x441b35
push dword [edi + 0x58]
call fcn.00429c10
add esp, 4
test eax, eax
je 0x441b2e
mov esi, eax
jmp 0x441b35
mov dword [edi + 0x58], 0
movzx eax, byte [edi + 0x16d]
test eax, 0x80
jne 0x441baa
mov eax, dword [edi + 0x28]
lea edx, [edi + 0x18]
mov ebx, dword [edi + 0x2c]
mov dword [ebp - 0x14], eax
test byte [edi + 0x169], 0x18
je 0x441b8f
push 0x168
push 0
mov eax, dword [edi + 0x100]
push edx
mov dword [ebp - 0x5c], eax
call fcn.004c9070
add esp, 0xc
movzx eax, byte [edi + 0x169]
and eax, 0xffffffe7
mov edx, dword [ebp - 0x5c]
or eax, 8
mov byte [edi + 0x169], al
mov dword [edi + 0x100], edx
jmp 0x441b9f
push 0x168
push 0
push edx
call fcn.004c9070
add esp, 0xc
mov eax, dword [ebp - 0x14]
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], ebx
jmp 0x441bb1
and byte [edi + 0x169], 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.004cda50
movzx edx, byte [edi + 0x16a]
not edx
and edx, 8
shr edx, 3
push edx
push eax
call fcn.004cd7a0
add esp, 8
cmp eax, 0xffffffff
jne 0x4418ae
and byte [edi + 0x16a], 0xf7
mov eax, dword [0x5115c0]
jmp 0x4418b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0xe8], eax
mov esi, 0x1c
mov eax, dword [0x5115c0]
jmp 0x4418b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
mov dword [edi + 0xe8], eax
mov ebx, 0x1c
jmp 0x441993
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
mov dword [edi + 0xe8], eax
mov ebx, 0x1c
jmp 0x44197e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0xe8], eax
mov ebx, 0x1c
jmp 0x441ad3
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
mov dword [edi + 0xe8], eax
mov ebx, 0x1c
jmp 0x441a94
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
mov dword [edi + 0xe8], eax
mov ebx, 0x1c
jmp 0x441a81
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
mov dword [edi + 0xe8], eax
mov ebx, 0x1c
jmp 0x441a6b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0xe8], eax
mov ebx, 0x1c
movzx eax, byte [edi + 0x16a]
mov edx, eax
and edx, 8
shr edx, 3
jmp 0x441ab6
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 0x441d2e
mov ecx, dword [ebp - 0x410]
mov edx, 0xffffffff
sub eax, edx
sub ecx, edx
or eax, ecx
je 0x441c04
mov dword [edi + 0x90], 0
mov eax, dword [0x5115c0]
jmp 0x4418b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x441d4e
mov eax, 0xffffffff
mov dword [ebp - 0x414], eax
mov dword [ebp - 0x410], eax
jmp 0x441c04
mov eax, dword [ebp - 0x414]
mov ecx, dword [ebp - 0x410]
jmp 0x441d09
mov edx, dword [edi + 0x7c]
test edx, edx
je 0x441797
movzx eax, byte [edx + 0x1c]
test eax, eax
jne 0x441d7b
movzx eax, byte [edx + 0x1d]
test eax, eax
je 0x441797
mov edx, dword [edx + 0x10]
test edx, edx
push 1
jne 0x441d86
mov edx, edi
lea eax, [ebp - 4]
push eax
push edx
call fcn.0042d970
add esp, 0xc
cmp eax, 0xffffffff
je 0x441dbb
mov eax, dword [edi + 0x7c]
test eax, eax
je 0x441797
mov byte [eax + 0x1c], 0
mov eax, dword [edi + 0x7c]
test eax, eax
je 0x441797
mov byte [eax + 0x1d], 0
jmp 0x441797
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0xe8], eax
mov esi, 0x1c
jmp 0x441d98