Function at 0x62efa0
Capabilities:
Delete file
Get common file path
Query environment variable
Self delete

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
sub esp, 0x1b8
mov edx, dword [ebp + 8]
mov eax, dword [0x7adbc0]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [edx]
mov ebx, dword [ebp + 0xc]
test eax, eax
je 0x62efcb
and byte [ebx + 0x1a2], 0xc7
mov eax, dword [edx]
cmp eax, 6
ja 0x62f88b
mov byte [ebp - 0x118], 0xa
movzx eax, word [eax*2 + 0x74b6b8]
add eax, 0x62efea
jmp eax
mov edx, dword [0x80ec60]
test edx, edx
je 0x62f35a
movzx ecx, byte [ebx + 0x1a8]
test ecx, 0x80
jne 0x62f6e4
movsx edi, word [ebx + 0x188]
lea edx, [ebp - 0x11c]
push edx
push 0
lea edi, [edi + edi*2 + 0x28]
push edi
call fcn.005e1480
add esp, 0xc
test eax, eax
jne 0x62f6de
push edi
push 0
push dword [ebp - 0x11c]
call fcn.0065d380
add esp, 0xc
mov dword [ebp - 0x130], 0
mov edx, 0x40
xor ecx, ecx
mov dword [ebp + edx - 0x174], ecx
mov dword [ebp + edx - 0x178], ecx
mov dword [ebp + edx - 0x17c], ecx
mov dword [ebp + edx - 0x180], ecx
sub edx, 0x10
jne 0x62f3a1
movzx edx, byte [ebx + 0x1a2]
mov dword [ebp - 0x170], 0x44
test dl, 0x20
je 0x62f4c6
test dl, 8
jne 0x62f41a
mov edx, dword [ebx + 0x78]
mov dword [ebp - 0x1bc], edx
mov dword [ebp - 0x194], edx
call fcn.00692c20
lea edx, [ebp - 0x190]
push edx
push 0
push dword [ebp - 0x1bc]
push edi
push dword [ebp - 0x11c]
push dword [eax + 4]
push dword [eax]
call fcn.006bd0bf
add esp, 0x1c
jmp 0x62f461
mov edx, dword [ebx + 0x78]
mov dword [ebp - 0x1a8], str._s__DEL__s
mov dword [ebp - 0x1a4], edx
mov dword [ebp - 0x1a0], edx
call fcn.00692c20
lea edx, [ebp - 0x1a4]
push edx
push 0
push str._s__DEL__s
push edi
push dword [ebp - 0x11c]
push dword [eax + 4]
push dword [eax]
call fcn.006bd0bf
add esp, 0x1c
and byte [ebx + 0x1a2], 0xf7
lea edx, [ebp - 0x184]
push edx
xor edx, edx
lea ecx, [ebp - 0x170]
push ecx
push edx
push edx
push 0x4000000
push 1
push edx
push edx
push dword [ebp - 0x11c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x62f98e
mov dword [ebp - 0x12c], 0
push 0xffffffffffffffff
push dword [ebp - 0x180]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
je 0x62f973
push dword [ebp - 0x184]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx edx, byte [ebx + 0x1a2]
jmp 0x62f4d0
mov dword [ebp - 0x12c], 0
test dl, 0x10
je 0x62f6ab
push 0x103
lea edx, [ebp - 0x117]
push edx
push str.FOR_DEFAULT_PRINT_DEVICE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jbe 0x62f504
cmp eax, 0x103
jae 0x62f504
movsx edx, byte [ebp - 0x117]
jmp 0x62f50d
mov byte [ebp - 0x117], 0
xor edx, edx
test edx, edx
jne 0x62f518
mov edx, str.PRN_FILE
jmp 0x62f51e
lea edx, [ebp - 0x117]
mov ecx, dword [ebx + 0x78]
mov dword [ebp - 0x1bc], str.Cmd.exe__C_COPY___s___s
mov dword [ebp - 0x1b8], ecx
mov dword [ebp - 0x1b4], edx
call fcn.00692c20
lea edx, [ebp - 0x1b8]
push edx
push 0
push str.Cmd.exe__C_COPY___s___s
push edi
push dword [ebp - 0x11c]
push dword [eax + 4]
push dword [eax]
call fcn.006bd0bf
lea ecx, [ebp - 0x174]
push ecx
push 0
lea edx, [edi + 0x106]
push edx
mov dword [ecx - 0x14], edx
call fcn.005e1480
mov edx, dword [ebp - 0x188]
add esp, 0x28
test eax, eax
je 0x62f59f
push dword [ebp - 0x11c]
mov dword [ebp - 0x188], eax
call fcn.006c607e
mov eax, dword [ebp - 0x188]
add esp, 4
jmp 0x62f6de
push edx
push dword [ebp - 0x174]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x62f5e9
lea edx, [edi + 0x105]
push edx
push 0x74b718
push edx
push dword [ebp - 0x174]
call fcn.006d71ae
lea edx, [edi + 1]
add edi, 0x102
push edx
push dword [ebp - 0x11c]
push edi
push dword [ebp - 0x174]
call fcn.006d71ae
add esp, 0x20
jmp 0x62f601
push 0
push 0x313
call fcn.0060b140
add esp, 8
mov edx, dword [ebp - 0x174]
mov byte [edx], 0
xor edi, edi
lea edx, [ebp - 0x184]
push edx
lea ecx, [ebp - 0x170]
push ecx
push edi
push edi
push 0x4000000
push 1
push edi
push edi
push dword [ebp - 0x174]
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x62fa15
push dword [ebp - 0x180]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x62f9fa
push 0xffffffffffffffff
push dword [ebp - 0x184]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x62f9df
push dword [ebp - 0x184]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x62f9c4
movzx edx, byte [ebx + 0x1a2]
btr edx, 3
jae 0x62f696
cmp dword [ebx + 0x108], 0
je 0x62f696
mov byte [ebx + 0x1a2], dl
mov dword [ebp - 0x12c], 5
push dword [ebp - 0x174]
call fcn.005e1540
add esp, 4
movzx edx, byte [ebx + 0x1a2]
test dl, 8
je 0x62f6c6
test dl, 4
jne 0x62f6c6
push dword [ebx + 0x78]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x62f9a9
push dword [ebp - 0x11c]
call fcn.005e1540
add esp, 4
test eax, eax
jne 0x62f6de
mov eax, dword [ebp - 0x12c]
test eax, eax
je 0x62f6e4
mov esi, eax
movsx edx, word [ebx + 0x188]
test edx, edx
jle 0x62f712
push dword [ebx + 0x78]
call fcn.005e1540
add esp, 4
test eax, eax
je 0x62f702
mov esi, eax
jmp 0x62f712
xor edx, edx
mov dword [ebx + 0x78], str._Unknown_
mov word [ebx + 0x188], dx
push dword [ebx + 0x4c]
call fcn.005e1540
add esp, 4
test eax, eax
je 0x62f725
mov esi, eax
jmp 0x62f72c
mov dword [ebx + 0x4c], 0
test byte [ebx + 0x1a2], 0x40
je 0x62f78e
mov edi, dword [ebx + 0x70]
test edi, edi
je 0x62f78e
movzx edx, byte [edi + 0x73]
btr edx, 1
jae 0x62f75e
push dword [edi + 4]
mov byte [edi + 0x73], dl
call fcn.005e1540
add esp, 4
mov dword [edi + 4], 0
mov edi, dword [ebx + 0x70]
movzx edx, word [ebx + 0x18a]
test edx, edx
jg 0x62f77b
push edi
call fcn.005e1540
add esp, 4
test eax, eax
mov edi, dword [ebx + 0x70]
je 0x62f77b
mov esi, eax
cmp edi, dword [ebx + 0x74]
jne 0x62f787
mov dword [ebx + 0x74], 0
mov dword [ebx + 0x70], 0
movzx edx, byte [ebx + 0x1a5]
test edx, 0x80
jne 0x62f866
mov ecx, dword [ebx + 0x40]
lea edx, [ebx + 0x20]
mov dword [ebp - 0x120], ecx
mov ecx, dword [ebx + 0x30]
mov edi, dword [ebx + 0x3c]
mov dword [ebp - 0x128], ecx
mov ecx, dword [ebx + 0xa8]
mov dword [ebp - 0x124], edi
movzx edi, byte [ebx + 0x1ad]
mov dword [ebp - 0x12c], ecx
test byte [ebx + 0x1a1], 0x18
je 0x62f818
push 0x198
push 0
push edx
mov edx, dword [ebx + 0x124]
mov dword [ebp - 0x188], edx
call fcn.0065d380
add esp, 0xc
movzx edx, byte [ebx + 0x1a1]
and edx, 0xffffffe7
mov ecx, dword [ebp - 0x188]
add edx, 8
mov byte [ebx + 0x1a1], dl
mov dword [ebx + 0x124], ecx
jmp 0x62f828
push 0x198
push 0
push edx
call fcn.0065d380
add esp, 0xc
mov edx, dword [ebp - 0x124]
and edi, 2
mov dword [ebx + 0x3c], edx
movzx edx, byte [ebx + 0x1ad]
and edx, 0xfffffffd
or edx, edi
mov byte [ebx + 0x1ad], dl
mov ecx, dword [ebp - 0x120]
mov edi, dword [ebp - 0x128]
mov edx, dword [ebp - 0x12c]
mov dword [ebx + 0x40], ecx
mov dword [ebx + 0x30], edi
mov dword [ebx + 0xa8], edx
jmp 0x62f86d
and byte [ebx + 0x1a1], 0xdf
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x7adbc0]
jne 0x62f8ac
mov eax, esi
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 [0x7adbc0]
jne 0x62f8ac
mov eax, 0x30
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
call fcn.00693023
call fcn.00692590
movzx edx, byte [ebx + 0x1a2]
not edx
and edx, 8
shr edx, 3
push edx
push eax
call fcn.006922e0
add esp, 8
cmp eax, 0xffffffff
jne 0x62f33d
and byte [ebx + 0x1a2], 0xf7
mov edx, dword [0x80ec60]
jmp 0x62f343
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x108], eax
mov dword [ebp - 0x12c], 0x1c
jmp 0x62f4b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x108], eax
mov dword [ebp - 0x12c], 0x1c
jmp 0x62f49b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x108], eax
mov dword [ebp - 0x12c], 0x1c
jmp 0x62f6c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x108], eax
mov dword [ebp - 0x12c], 0x1c
jmp 0x62f670
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x108], eax
mov dword [ebp - 0x12c], 0x1c
jmp 0x62f65c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x108], eax
mov dword [ebp - 0x12c], 0x1c
jmp 0x62f645
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x108], eax
mov dword [ebp - 0x12c], 0x1c
jmp 0x62f696