Function at 0x1003d780
Capabilities:
Check os version
Delete file
Query environment variable
Self delete

Disassembly:
endbr32
push ebp
mov ebp, esp
push esi
push edi
push ebx
sub esp, 0x51c
mov edx, dword [ebp + 8]
mov eax, dword [0x10234e38]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [edx]
mov esi, dword [ebp + 0xc]
test eax, eax
je 0x1003d7af
and byte [esi + 0x192], 0xc7
mov eax, dword [edx]
cmp eax, 6
ja 0x1003df77
mov byte [ebp - 0x4b8], 0xa
movzx eax, word [eax*2 + 0x10214f0c]
add eax, 0x1003d7cf
notrack jmp eax
mov edx, dword [0x1024c380]
test edx, edx
je 0x1003db3f
movzx ecx, byte [esi + 0x198]
test ecx, 0x80
jne 0x1003ddeb
push 0x30c
push 0
lea edx, [ebp - 0x3b3]
push edx
call fcn.10061620
add esp, 0xc
mov dword [ebp - 0x4cc], 0
mov edx, 0x40
xor ecx, ecx
mov dword [ebp + edx - 0x510], ecx
mov dword [ebp + edx - 0x514], ecx
mov dword [ebp + edx - 0x518], ecx
mov dword [ebp + edx - 0x51c], ecx
sub edx, 0x10
jne 0x1003db66
movzx edx, byte [esi + 0x192]
mov dword [ebp - 0x50c], 0x44
test dl, 0x20
je 0x1003dc59
test dl, 8
jne 0x1003dbca
cmp dword [0x102372a0], 0
je 0x1003e05f
mov ecx, dword [0x10237310]
push dword [esi + 0x74]
lea edx, [ebp - 0x3b3]
push edx
call ecx
add esp, 8
jmp 0x1003dbfb
cmp dword [0x102372a0], 0
je 0x1003e095
mov ecx, dword [0x10237310]
push dword [esi + 0x74]
push dword [esi + 0x74]
push str._s__DEL__s
lea edx, [ebp - 0x3b3]
push edx
call ecx
add esp, 0x10
and byte [esi + 0x192], 0xf7
lea edx, [ebp - 0x51c]
push edx
xor edx, edx
lea ecx, [ebp - 0x50c]
push ecx
push edx
push edx
push 0x4000000
push 1
push edx
push edx
lea edi, [ebp - 0x3b3]
push edi
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x1003e07f
xor edi, edi
push 0xffffffffffffffff
push dword [ebp - 0x518]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
je 0x1003e069
push dword [ebp - 0x51c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx edx, byte [esi + 0x192]
jmp 0x1003dc5b
xor edi, edi
test dl, 0x10
jne 0x1003dc6e
test dl, 8
jne 0x1003ddcf
jmp 0x1003dde5
push 0x105
lea edx, [ebp - 0x4b7]
push edx
push str.FOR_DEFAULT_PRINT_DEVICE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jbe 0x1003dc99
cmp eax, 0x105
jae 0x1003dc99
movsx edx, byte [ebp - 0x4b7]
jmp 0x1003dca2
mov byte [ebp - 0x4b7], 0
xor edx, edx
test edx, edx
jne 0x1003dcb2
mov dword [ebp - 0x520], 0x10214f48
jmp 0x1003dcbb
lea edx, [ebp - 0x4b7]
mov dword [edx - 0x69], edx
mov dword [ebp - 0xa4], 0x94
lea edx, [ebp - 0xa4]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x94], 1
jne 0x1003dd07
cmp dword [0x102372a0], 0
je 0x1003e09f
mov ecx, dword [0x10237310]
push dword [ebp - 0x520]
push dword [esi + 0x74]
push str.Command.com__C_COPY___s___s
lea edx, [ebp - 0x3b3]
push edx
call ecx
jmp 0x1003dd31
cmp dword [0x102372a0], 0
je 0x1003e126
mov ecx, dword [0x10237310]
push dword [ebp - 0x520]
push dword [esi + 0x74]
push str.Cmd.exe__C_COPY___s___s
lea edx, [ebp - 0x3b3]
push edx
call ecx
add esp, 0x10
lea edx, [ebp - 0x51c]
push edx
lea ecx, [ebp - 0x50c]
push ecx
xor ecx, ecx
lea edx, [ebp - 0x3b3]
push ecx
push ecx
push 0x4000000
push 1
push ecx
push ecx
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x1003e101
push dword [ebp - 0x518]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1003e0eb
push 0xffffffffffffffff
push dword [ebp - 0x51c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x1003e0d5
push dword [ebp - 0x51c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1003e0bf
movzx edx, byte [esi + 0x192]
mov ecx, edx
btr ecx, 3
jae 0x1003dde5
cmp dword [esi + 0x100], 0
je 0x1003ddcf
mov edx, ecx
mov edi, 5
mov byte [esi + 0x192], dl
xor ecx, ecx
test ecx, ecx
je 0x1003dde9
test dl, 4
jne 0x1003dde5
push dword [esi + 0x74]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x1003e0a9
test edi, edi
je 0x1003ddeb
mov ebx, edi
push dword [esi + 0x74]
call fcn.10025800
add esp, 4
test eax, eax
je 0x1003ddfe
mov ebx, eax
jmp 0x1003de0e
xor edx, edx
mov dword [esi + 0x74], str._Unknown_
mov word [esi + 0x178], dx
push dword [esi + 0x48]
call fcn.10025800
add esp, 4
test eax, eax
je 0x1003de21
mov ebx, eax
jmp 0x1003de28
mov dword [esi + 0x48], 0
test byte [esi + 0x192], 0x40
je 0x1003de7a
mov edi, dword [esi + 0x6c]
test edi, edi
je 0x1003de7a
movzx edx, byte [edi + 0x73]
btr edx, 1
jae 0x1003de57
push dword [edi + 4]
mov byte [edi + 0x73], dl
call fcn.10025800
add esp, 4
mov dword [edi + 4], 0
movzx edx, word [esi + 0x17a]
test edx, edx
jg 0x1003de73
push dword [esi + 0x6c]
call fcn.10025800
add esp, 4
test eax, eax
je 0x1003de73
mov ebx, eax
mov dword [esi + 0x6c], 0
movzx edx, byte [esi + 0x195]
test edx, 0x80
jne 0x1003df52
mov ecx, dword [esi + 0x3c]
lea edx, [esi + 0x20]
mov dword [ebp - 0x4bc], ecx
mov ecx, dword [esi + 0x30]
mov edi, dword [esi + 0x38]
mov dword [ebp - 0x4c4], ecx
mov ecx, dword [esi + 0xa4]
mov dword [ebp - 0x4c0], edi
movzx edi, byte [esi + 0x19d]
mov dword [ebp - 0x4c8], ecx
test byte [esi + 0x191], 0x18
je 0x1003df04
push 0x188
push 0
push edx
mov edx, dword [esi + 0x118]
mov dword [ebp - 0x520], edx
call fcn.10061620
add esp, 0xc
movzx edx, byte [esi + 0x191]
and edx, 0xffffffe7
mov ecx, dword [ebp - 0x520]
add edx, 8
mov byte [esi + 0x191], dl
mov dword [esi + 0x118], ecx
jmp 0x1003df14
push 0x188
push 0
push edx
call fcn.10061620
add esp, 0xc
mov edx, dword [ebp - 0x4c0]
and edi, 2
mov dword [esi + 0x38], edx
movzx edx, byte [esi + 0x19d]
and edx, 0xfffffffd
or edx, edi
mov byte [esi + 0x19d], dl
mov ecx, dword [ebp - 0x4bc]
mov edi, dword [ebp - 0x4c4]
mov edx, dword [ebp - 0x4c8]
mov dword [esi + 0x3c], ecx
mov dword [esi + 0x30], edi
mov dword [esi + 0xa4], edx
jmp 0x1003df59
and byte [esi + 0x191], 0xdf
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x10234e38]
jne 0x1003df98
mov eax, ebx
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x10234e38]
jne 0x1003df98
mov eax, 0x30
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
call fcn.101a6152
call fcn.10066b40
movzx edx, byte [esi + 0x192]
not edx
and edx, 8
shr edx, 3
push edx
push eax
call fcn.10066b20
add esp, 8
cmp eax, 0xffffffff
jne 0x1003db22
and byte [esi + 0x192], 0xf7
mov edx, dword [0x1024c380]
jmp 0x1003db28
call fcn.10061c60
jmp 0x1003dbb3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x100], eax
mov edi, 0x1c
jmp 0x1003dc44
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x100], eax
mov edi, 0x1c
jmp 0x1003dc2e
call fcn.10061c60
jmp 0x1003dbd7
call fcn.10061c60
jmp 0x1003dce8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x100], eax
mov edi, 0x1c
jmp 0x1003dde9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x100], eax
mov edi, 0x1c
jmp 0x1003dda4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x100], eax
mov edi, 0x1c
jmp 0x1003dd90
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x100], eax
mov edi, 0x1c
jmp 0x1003dd79
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, byte [esi + 0x192]
mov ecx, edx
and ecx, 8
mov edi, 0x1c
mov dword [esi + 0x100], eax
shr ecx, 3
jmp 0x1003ddcb
call fcn.10061c60
jmp 0x1003dd14